/* =============================================
   CQSM — Comité de Quartier Saint-Michel
   Design 2026 — Full immersive, burger nav
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* =============================================
   TOKENS
   ============================================= */
:root {
  --brique:     #E04E2F;
  --brique-d:   #B83D20;
  --vert-vif:   #00C464;
  --jaune:      #F5CB47;

  --nuit:       #0D0C0A;
  --encre:      #1C1917;
  --graphite:   #3A3530;
  --gris:       #6B6560;
  --gris-clair: #B8B2AB;
  --fond:       #FAF8F5;
  --fond-alt:   #F2EDE6;
  --bordure:    #E4DDD5;
  --blanc:      #FFFFFF;

  --grad-chaud: linear-gradient(135deg, #E04E2F 0%, #F5CB47 100%);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w:  1200px;
  --r:      8px;
  --r-lg:   14px;

  --ombre-xs: 0 1px 4px rgba(13,12,10,.07);
  --ombre-sm: 0 2px 12px rgba(13,12,10,.09);
  --ombre-md: 0 6px 28px rgba(13,12,10,.13);
  --ombre-xl: 0 16px 56px rgba(13,12,10,.22);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-optical-sizing: auto;
  background: var(--fond);
  color: var(--encre);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
::selection { background: var(--brique); color: var(--blanc); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* =============================================
   HEADER — minimal + transparent sur le hero
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}

/* Transparent par défaut (sur hero) */
.site-header.hero-mode {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* Opaque après scroll / pages intérieures */
.site-header.solid {
  background: rgba(250,248,245,.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bordure);
}

/* Logo CQSM */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.site-logo .logo-main {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--blanc);
  transition: color .3s;
}
.site-logo .logo-sub {
  font-family: var(--font-body);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  transition: color .3s;
  margin-top: .1rem;
}
.site-header.solid .site-logo .logo-main { color: var(--encre); }
.site-header.solid .site-logo .logo-sub  { color: var(--gris); }

/* Burger button */
.burger-btn {
  width: auto;
  height: 42px;
  border: none;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border-radius: 99px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 8px;
  padding: 0 16px 0 14px;
  transition: background .2s;
  flex-shrink: 0;
}
.burger-label {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blanc);
}
.burger-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.burger-btn:hover { background: rgba(255,255,255,.22); }
.site-header.solid .burger-btn { background: var(--encre); }
.site-header.solid .burger-btn:hover { background: var(--graphite); }

.burger-btn .bar {
  width: 18px;
  height: 1.5px;
  background: var(--blanc);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, background .3s;
  transform-origin: center;
}
.site-header.solid .burger-btn .bar { background: var(--blanc); }

/* Burger animé quand ouvert */
.burger-btn.is-open .burger-bars .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger-btn.is-open .burger-bars .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.is-open .burger-bars .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.burger-btn.is-open .burger-label { opacity: 0; }

/* Lien retour parent dans le header */
.header-back {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gris);
  text-decoration: none;
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: .3rem .6rem;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.header-back:hover {
  color: var(--encre);
  background: var(--fond-alt);
}
.header-back svg { flex-shrink: 0; }

/* Résultats de recherche */
.search-result-card {
  display: block;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
}
.search-result-card:hover { box-shadow: var(--ombre-md); transform: translateY(-2px); }
.search-result-card__type { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brique); margin-bottom: .35rem; }
.search-result-card__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--encre); margin-bottom: .3rem; }
.search-result-card__excerpt { font-size: .85rem; color: var(--gris); line-height: 1.6; }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(13,12,10,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.search-overlay.is-open { opacity: 1; pointer-events: all; }
.search-overlay__inner {
  width: 100%;
  max-width: 640px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.search-form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 99px;
  padding: .75rem 1.25rem;
  color: rgba(255,255,255,.5);
}
.search-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-family: inherit;
  color: #fff;
  caret-color: var(--brique);
}
.search-form input::placeholder { color: rgba(255,255,255,.35); }
.search-overlay__close {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.search-overlay__close:hover { background: rgba(255,255,255,.2); color: #fff; }

/* Bouton search dans le header */
.header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.4);
  background: none;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.header-search-btn:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }
.site-header.solid .header-search-btn { color: var(--gris); border-color: var(--bordure); }
.site-header.solid .header-search-btn:hover { color: var(--encre); border-color: var(--encre); background: var(--fond-alt); }

/* Actions groupées à droite */
.header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

/* Bouton J'adhère dans le header */
.header-adhesion {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 1rem;
  border-radius: 99px;
  border: 1.5px solid rgba(255,255,255,.55);
  color: var(--blanc);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.header-adhesion:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.9);
}
.site-header.solid .header-adhesion {
  color: var(--blanc);
  background: var(--brique);
  border-color: var(--brique);
}
.site-header.solid .header-adhesion:hover {
  background: var(--brique-d);
  border-color: var(--brique-d);
}

/* Barre sticky mobile "J'adhère" */
.adhesion-sticky-bar {
  display: none;
}
@media (max-width: 768px) {
  .adhesion-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 600;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(250,248,245,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--bordure);
    box-shadow: 0 -4px 20px rgba(13,12,10,.08);
  }
  .adhesion-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    background: var(--brique);
    color: var(--blanc);
    border-radius: var(--r);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
    transition: background .2s;
  }
  .adhesion-sticky-btn:hover { background: var(--brique-d); }
  /* Espace en bas pour ne pas que le contenu passe sous la barre */
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  /* Masquer la barre sur la page adhesion elle-même */
  .page-adhesion .adhesion-sticky-bar { display: none; }
}

/* Icône Facebook dans le header */
.header-fb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.header-fb:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }
.site-header.solid .header-fb { color: var(--gris); border-color: var(--bordure); }
.site-header.solid .header-fb:hover { color: var(--encre); border-color: var(--encre); background: var(--fond-alt); }

/* =============================================
   MENU OVERLAY
   ============================================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr 480px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}

.menu-overlay.is-open {
  pointer-events: all;
  opacity: 1;
}

/* Fond sombre semi-transparent à gauche */
.menu-backdrop {
  background: rgba(13,12,10,.65);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

/* Panel de droite */
.menu-panel {
  position: relative;
  background: var(--encre);
  display: flex;
  flex-direction: column;
  padding: 5rem 3rem 3rem;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
}
.menu-overlay.is-open .menu-panel {
  transform: translateX(0);
}

/* Liens du menu */
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-top: auto;
  flex: 1;
  justify-content: center;
}

.menu-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: rgba(255,255,255,.4);
  line-height: 1.15;
  padding: .25rem 0;
  transition: color .2s, transform .2s;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.menu-nav a:last-child { border-bottom: none; }
.menu-nav a:hover {
  color: var(--blanc);
  transform: translateX(6px);
}
.menu-nav a.is-active { color: var(--brique); }

/* Infos bas du menu */
.menu-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.menu-footer p {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
}
.menu-footer a { color: var(--jaune); font-weight: 600; }

/* Numéro de réunion dans le menu */
.menu-reunion-badge {
  display: inline-block;
  background: rgba(245,203,71,.1);
  border: 1px solid rgba(245,203,71,.2);
  padding: .6rem 1rem .6rem 2rem;
  border-radius: var(--r);
  margin-bottom: 1.5rem;
  position: relative;
}
.menu-reunion-badge::before {
  content: '';
  position: absolute;
  left: .75rem;
  top: 1rem;
  width: 6px; height: 6px;
  background: var(--jaune);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
.menu-reunion-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--jaune);
  margin-bottom: .2rem;
}
.menu-reunion-date {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--blanc);
  line-height: 1.3;
}
.menu-reunion-lieu {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  margin-top: .2rem;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.6); opacity: .5; }
}

/* =============================================
   HERO — FULL SCREEN PHOTO
   ============================================= */
.hero-fullscreen {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--blanc);
}

/* Photo de fond */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img,
.hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

/* Fallback sans photo */
.hero-bg-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a0e06 0%, #3d1c0a 40%, #1C1917 100%);
}
/* Texture grain */
.hero-bg-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .4;
}

/* Dégradé progressif du bas */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(13,12,10,.92) 0%,
    rgba(13,12,10,.55) 35%,
    rgba(13,12,10,.12) 65%,
    rgba(13,12,10,.0) 100%
  );
}

/* Contenu du hero */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem 7rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 1.5rem;
}
.hero-headline .cqsm-word {
  display: block;
}
.hero-headline .lieu-word {
  display: block;
  font-style: italic;
  font-weight: 300;
  font-size: .72em;
  color: rgba(255,255,255,.7);
  letter-spacing: -.02em;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.75rem;
}
.hero-tag::before,
.hero-tag::after {
  content: '';
  display: block;
  width: 28px; height: 1.5px;
  background: var(--brique);
  flex-shrink: 0;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  max-width: 480px;
  line-height: 1.65;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

/* Indicateur de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  animation: scroll-bounce 2s ease-in-out infinite;
  transition: color .2s;
}
.scroll-indicator:hover {
  color: rgba(255,255,255,1);
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Badge réunion flottant (dans le hero) */
.hero-badges {
  position: absolute;
  top: 5.5rem;
  right: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: flex-end;
}
.hero-reunion-badge, .hero-event-badge {
  background: var(--nuit);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r);
  padding: .75rem 1rem;
  max-width: 250px;
  text-align: right;
}
.hero-event-badge {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease;
}
.hero-event-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.28);
}
.hero-event-badge .badge-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 9px;
}
.hero-reunion-badge .badge-label, .hero-event-badge .badge-label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--jaune);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
  margin-bottom: .35rem;
}
.hero-reunion-badge .badge-label::before, .hero-event-badge .badge-label::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--jaune);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
.hero-event-badge .badge-label { color: var(--vert-vif); }
.hero-event-badge .badge-label::before { background: var(--vert-vif); }
.hero-reunion-badge .badge-date, .hero-event-badge .badge-date {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--blanc);
  line-height: 1.3;
}
.hero-reunion-badge .badge-lieu, .hero-event-badge .badge-lieu {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  margin-top: .2rem;
}

/* Carrousel « à la une » (3 prochains événements à affiche) */
.hero-carousel { width: 250px; max-width: 250px; }
.hero-carousel__track { display: grid; }
.hero-carousel__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.hero-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.hero-carousel__dots {
  display: flex;
  justify-content: flex-end;
  gap: .4rem;
  margin-top: .5rem;
}
.hero-carousel__dot {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hero-carousel__dot:hover { background: rgba(255,255,255,.6); }
.hero-carousel__dot.is-active { background: var(--vert-vif); transform: scale(1.25); }

/* =============================================
   BOUTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.6rem;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--brique);
  color: var(--blanc);
}
.btn-primary:hover { background: var(--brique-d); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(224,78,47,.35); }

.btn-glass {
  background: rgba(255,255,255,.12);
  color: var(--blanc);
  border-color: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255,255,255,.22); }

.btn-outline {
  background: transparent;
  border-color: var(--bordure);
  color: var(--graphite);
}
.btn-outline:hover { border-color: var(--encre); color: var(--encre); }

.btn-dark {
  background: var(--encre);
  color: var(--blanc);
}
.btn-dark:hover { background: var(--graphite); transform: translateY(-1px); }

/* =============================================
   SECTION / TITRES
   ============================================= */
.section { padding: 4.5rem 0; }

.section-titre {
  margin-bottom: 2.5rem;
}
.section-titre .eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brique);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-titre .eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 1.5px;
  background: var(--brique);
}
.section-titre h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--encre);
}
.section-titre h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gris);
}

/* =============================================
   PAGE HEADER (pages intérieures)
   ============================================= */
.page-header {
  padding: 8rem 0 3rem;
  border-bottom: 1px solid var(--bordure);
  margin-bottom: 3rem;
}.page-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brique);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.page-eyebrow::before {
  content: '';
  width: 20px; height: 1.5px;
  background: var(--brique);
}
.page-titre {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--encre);
  line-height: 1.05;
}
.page-titre em { font-style: italic; font-weight: 300; color: var(--brique); }
.page-intro {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--gris);
  max-width: 640px;
  line-height: 1.7;
}

/* =============================================
   ACTU GRID
   ============================================= */
.actu-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}
.actu-card:first-child { grid-column: span 7; }
.actu-card:nth-child(2) { grid-column: span 5; }
.actu-card:nth-child(n+3) { grid-column: span 4; }

.actu-card {
  background: var(--blanc);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--ombre-xs);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow .25s, transform .25s;
  border: 1px solid var(--bordure);
}
.actu-card:hover { box-shadow: var(--ombre-xl); transform: translateY(-4px); }

.actu-card__img {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--fond-alt);
  position: relative;
}
.actu-card__img.no-img {
  background: linear-gradient(135deg, var(--encre) 0%, var(--graphite) 100%);
}
.actu-card__img.no-img::after {
  content: 'CQSM';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.05em;
  color: rgba(255,255,255,.07);
  pointer-events: none;
}
.actu-card:first-child .actu-card__img { aspect-ratio: 16/9; }
.actu-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.actu-card:hover .actu-card__img img { transform: scale(1.05); }

.actu-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.actu-card__date {
  display: inline-flex;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brique);
  background: rgba(224,78,47,.07);
  padding: .18rem .55rem;
  border-radius: 99px;
  width: fit-content;
}
.actu-card__titre {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
  color: var(--encre);
}
.actu-card:first-child .actu-card__titre { font-size: 1.3rem; }
.actu-card__intro {
  font-size: .85rem;
  color: var(--gris);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.actu-card__lien {
  margin-top: .75rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brique);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap .15s;
}
.actu-card:hover .actu-card__lien { gap: .55rem; }
.actu-card__lien::after { content: '→'; }

/* =============================================
   BANDE RACCOURCIS
   ============================================= */
.shortcuts-band {
  background: var(--nuit);
  padding: 0;
  position: sticky;
  top: 64px;
  z-index: 400;
}
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.06);
}
.shortcut-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 2rem;
  border-right: 1px solid rgba(255,255,255,.06);
  color: var(--blanc);
  transition: background .2s;
}
.shortcut-item:last-child { border-right: none; }
.shortcut-item:hover { background: rgba(255,255,255,.05); }
.shortcut-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.shortcut-label { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--blanc); letter-spacing: -.01em; }
.shortcut-sub { font-size: .72rem; color: rgba(255,255,255,.35); margin-top: .1rem; }
.shortcut-arrow { margin-left: auto; color: rgba(255,255,255,.15); font-size: .85rem; transition: color .2s, transform .2s; }
.shortcut-item:hover .shortcut-arrow { color: rgba(255,255,255,.5); transform: translateX(3px); }

/* =============================================
   PROSE
   ============================================= */
.prose { font-size: .975rem; line-height: 1.8; color: var(--graphite); max-width: 960px; display: flow-root; }
.prose h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: var(--encre); margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1rem; font-weight: 700; color: var(--encre); margin: 1.5rem 0 .5rem; }
.prose p  { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: .75rem 0 1rem 1.5rem; }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--encre); font-weight: 700; }
.prose a { color: var(--brique); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(224,78,47,.3); }
.prose a:hover { text-decoration-color: var(--brique); }

/* =============================================
   AGENDA
   ============================================= */
.agenda-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }
#calendar { background: var(--blanc); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--ombre-sm); border: 1px solid var(--bordure); }
.fc { font-family: var(--font-body) !important; }
.fc .fc-button-primary { background: var(--brique) !important; border-color: var(--brique) !important; border-radius: 99px !important; font-size: .78rem !important; font-weight: 600 !important; }
.fc .fc-button-primary:hover { background: var(--brique-d) !important; }
.fc .fc-toolbar-title { font-family: var(--font-display) !important; font-weight: 700 !important; letter-spacing: -.02em !important; font-size: 1.2rem !important; }
.fc-day-today .fc-daygrid-day-frame { background: rgba(245,203,71,.12) !important; }
.fc-event { border-radius: 4px !important; border: none !important; font-size: .72rem !important; font-weight: 600 !important; }

.evenements-sidebar h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--encre); margin-bottom: 1rem; }
.event-card { background: var(--blanc); border-radius: var(--r); padding: 1rem 1.1rem 1rem 1.3rem; margin-bottom: .65rem; box-shadow: var(--ombre-xs); border: 1px solid var(--bordure); border-left: 3px solid var(--brique); display: block; color: inherit; transition: box-shadow .2s, transform .15s; }
.event-card:hover { box-shadow: var(--ombre-md); transform: translateX(3px); }
.event-card.type-reunion { border-left-color: var(--vert-vif); }
.event-card.type-balade  { border-left-color: #7C3AED; }
.event-card.type-marche  { border-left-color: var(--jaune); }
.event-card__type { font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin-bottom: .25rem; }
.event-card__titre { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--encre); }
.event-card__date { font-size: .78rem; color: var(--gris); margin-top: .2rem; }
.event-card__lieu { font-size: .75rem; color: var(--gris-clair); margin-top: .15rem; }
.event-card__inscription { font-size: .7rem; font-weight: 700; color: var(--brique); margin-top: .4rem; }

/* =============================================
   RETOUR PAGE PARENTE
   ============================================= */
.back-link { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--bordure); }
.back-link a, .back-link__a { color: var(--brique); font-weight: 600; font-size: .9rem; text-decoration: none; }
.back-link a:hover, .back-link__a:hover { text-decoration: underline; }

/* =============================================
   PAGE ÉVÉNEMENT (détail)
   ============================================= */
.event-badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 2rem; background: var(--brique); color: var(--blanc); }
.event-badge.type-reunion  { background: var(--vert-vif); }
.event-badge.type-balade   { background: #7C3AED; }
.event-badge.type-marche   { background: var(--jaune); color: var(--encre); }
.event-badge.type-animation { background: var(--brique); }
.event-detail-grid { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--bordure); border-radius: var(--r); overflow: hidden; margin-top: 1.5rem; }
.event-detail-row { display: grid; grid-template-columns: 140px 1fr; align-items: baseline; padding: 1rem 1.25rem; border-bottom: 1px solid var(--bordure); }
.event-detail-row:last-child { border-bottom: none; }
.event-detail-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brique); }
.event-detail-value { font-size: .95rem; font-weight: 500; }
.event-detail-sub { display: block; font-size: .85rem; color: var(--gris); margin-top: .2rem; }
.event-detail-value--alert { color: var(--brique); font-weight: 600; }

/* =============================================
   CARTE
   ============================================= */
#map { height: 440px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--ombre-sm); margin-bottom: 2.5rem; position: relative; z-index: 0; }
.leaflet-control-container { z-index: 1; }

/* =============================================
   MARCHÉ
   ============================================= */
.infos-pratiques { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.info-bloc { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--r); padding: .9rem 1.25rem; min-width: 200px; box-shadow: var(--ombre-xs); }
.info-bloc__label { font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brique); margin-bottom: .3rem; }
.info-bloc__valeur { font-weight: 600; font-size: .9rem; }
.producteurs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.categorie-card { background: var(--blanc); border-radius: var(--r); padding: 1.1rem; border: 1px solid var(--bordure); box-shadow: var(--ombre-xs); }
.categorie-card__titre { font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brique); margin-bottom: .7rem; padding-bottom: .5rem; border-bottom: 1px solid var(--bordure); }
.categorie-card ul { list-style: none; }
.categorie-card li { padding: .3rem 0; font-size: .875rem; border-bottom: 1px solid var(--fond-alt); }
.categorie-card li:last-child { border-bottom: none; }
.categorie-card li strong { display: block; }
.categorie-card li span { font-size: .78rem; color: var(--gris); }

/* =============================================
   LA LETTRE
   ============================================= */
.lettres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.lettre-card { background: var(--blanc); border-radius: var(--r); overflow: hidden; border: 1px solid var(--bordure); transition: box-shadow .2s, transform .2s; }
.lettre-card:hover { box-shadow: var(--ombre-md); transform: translateY(-3px); }
.lettre-card__img { aspect-ratio: 3/4; overflow: hidden; background: var(--fond-alt); position: relative; }
.lettre-card__img img { width: 100%; height: 100%; object-fit: cover; }
.lettre-card__body { padding: .65rem; }
.lettre-card__mois { font-size: .75rem; color: var(--gris); margin-bottom: .4rem; }
.lettre-card__dl { display: block; text-align: center; background: var(--encre); color: var(--blanc); font-size: .72rem; font-weight: 600; padding: .35rem; border-radius: 4px; transition: background .15s; }
.lettre-card__dl:hover { background: var(--brique); }

/* =============================================
   PROJETS
   ============================================= */
.projets-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.projet-card { background: var(--blanc); border-radius: var(--r); padding: 1.25rem; border: 1px solid var(--bordure); box-shadow: var(--ombre-xs); }
.projet-statut { display: inline-flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 99px; margin-bottom: .6rem; }
.statut-en_cours   { background: rgba(0,196,100,.1); color: #016D30; }
.statut-victoire   { background: rgba(0,196,100,.15); color: #014d22; }
.statut-en_attente { background: rgba(245,203,71,.2); color: #7a5f00; }
.statut-abandonne  { background: var(--fond-alt); color: var(--gris-clair); }
.projet-titre { font-family: var(--font-display); font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.projet-depuis { font-size: .73rem; color: var(--gris); margin-bottom: .5rem; }
.projet-desc { font-size: .84rem; color: var(--gris); line-height: 1.55; }

/* =============================================
   FORMULAIRES
   ============================================= */
.form-bloc { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--ombre-sm); }
.form-bloc h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: var(--graphite); }
.form-group input, .form-group textarea { width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--bordure); border-radius: var(--r); font-size: .9rem; font-family: inherit; background: var(--fond); color: var(--encre); transition: border-color .15s, box-shadow .15s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--brique); box-shadow: 0 0 0 3px rgba(224,78,47,.1); }
.alert { padding: .85rem 1.1rem; border-radius: var(--r); font-size: .875rem; font-weight: 500; margin-bottom: 1.25rem; }
.alert-success { background: rgba(0,196,100,.08); color: #016D30; border: 1px solid rgba(0,196,100,.18); }
.alert-error   { background: rgba(224,78,47,.07); color: var(--brique-d); border: 1px solid rgba(224,78,47,.15); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--encre); color: rgba(255,255,255,.5); padding: 4rem 2rem 2rem; margin-top: 5rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto 2.5rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
.footer-col h4 { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--blanc); margin-bottom: .9rem; }
.footer-col a { display: block; font-size: .84rem; margin-bottom: .4rem; color: rgba(255,255,255,.45); transition: color .15s; }
.footer-col a:hover { color: var(--blanc); }
.footer-col p { font-size: .84rem; line-height: 1.65; }
.footer-email { color: var(--jaune) !important; font-weight: 600 !important; }
.footer-fb {
  display: inline-flex !important;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem !important;
  color: var(--blanc) !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  letter-spacing: .03em;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding-bottom: .1rem;
  transition: color .2s, border-color .2s;
}
.footer-fb:hover { color: var(--jaune) !important; border-color: var(--jaune) !important; }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; align-items: center; font-size: .73rem; color: rgba(255,255,255,.22); flex-wrap: wrap; gap: .5rem; }
.footer-dot { width: 6px; height: 6px; background: var(--vert-vif); border-radius: 50%; display: inline-block; margin-right: .4rem; }

/* =============================================
   PAGE HEADER — variante avec photo de couverture
   ============================================= */
.page-header-cover {
  display: grid;
  grid-template-columns: 45% 55%;
  grid-template-rows: minmax(320px, auto);
  border-bottom: none;
  margin-bottom: 3rem;
  padding: 0;
}
.page-header-cover .container {
  grid-column: 1;
  grid-row: 1;
  background: var(--encre);
  max-width: none;
  margin: 0;
  padding: calc(64px + 2rem) 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.page-header-cover__bg {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  overflow: hidden;
}
.page-header-cover__bg img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.page-header-cover .page-titre { color: var(--blanc); font-size: clamp(1.8rem, 3.5vw, 3rem); }
.page-header-cover .page-eyebrow { color: var(--brique); }
.page-header-cover .page-intro { color: rgba(255,255,255,.75); max-width: 38ch; }

/* =============================================
   STAT BAND
   ============================================= */
.stat-band {
  display: flex;
  flex-wrap: wrap;
  background: var(--encre);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}
.stat-item {
  flex: 1;
  min-width: 120px;
  padding: 1.75rem 2rem;
  border-right: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.05em;
  color: var(--blanc);
  line-height: 1;
  display: block;
}
.stat-num em { color: var(--brique); font-style: normal; }
.stat-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  display: block;
  margin-top: .45rem;
}

/* =============================================
   PULL QUOTE
   ============================================= */
.pull-quote {
  margin: 0 0 2.5rem;
  padding: 1.75rem 2rem 1.75rem 2.25rem;
  border-left: 3px solid var(--brique);
  background: var(--fond-alt);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--encre);
  margin: 0;
}

/* =============================================
   PROSE — enrichi
   ============================================= */
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--encre);
  margin: 2.5rem 0 .85rem;
  padding-bottom: .7rem;
  border-bottom: 1.5px solid var(--bordure);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.prose h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: var(--brique);
  border-radius: 2px;
  flex-shrink: 0;
}
.prose h3 {
  font-size: .75rem;
  font-weight: 700;
  color: var(--brique);
  margin: 1.75rem 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.prose ul { list-style: none; margin-left: 0; }
.prose ul li {
  padding: .45rem 0 .45rem 1.3rem;
  position: relative;
  border-bottom: 1px solid var(--fond-alt);
  font-size: .93rem;
}
.prose ul li:last-child { border-bottom: none; }
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .9em;
  width: 5px; height: 5px;
  background: var(--brique);
  border-radius: 50%;
}

/* =============================================
   PHOTOS GRID
   ============================================= */
.photos-featured {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  aspect-ratio: 16/7;
  background: var(--fond-alt);
}
.photos-featured img { width: 100%; height: 100%; object-fit: cover; }

.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 3rem;
}
.photos-grid a { display: block; overflow: hidden; border-radius: var(--r); }
.photos-grid img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .4s ease, box-shadow .3s;
  display: block;
}
.photos-grid a:hover img { transform: scale(1.05); }

/* =============================================
   GALERIE (template galerie.php)
   ============================================= */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .75rem;
  margin-top: 2.5rem;
}
.galerie-item {
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  aspect-ratio: 4/3;
  background: var(--bordure);
}
.galerie-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.galerie-item:hover img { transform: scale(1.05); }

.galerie-affiches-titre {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris);
  margin: 2.5rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bordure);
}
.galerie-affiches {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.galerie-affiche-item {
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  flex: 0 0 auto;
  width: 160px;
  box-shadow: var(--ombre-xs);
  transition: transform .3s ease, box-shadow .3s;
}
.galerie-affiche-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre);
}
.galerie-affiche-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   CINEMA (template cinema.php)
   ============================================= */
.cinema-affiches-titre {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris);
  margin: 2.5rem 0 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bordure);
}
.cinema-affiches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.cinema-affiche-card {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--ombre-xs);
  transition: transform .3s ease, box-shadow .3s;
  background: var(--encre);
}
.cinema-affiche-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre);
}
.cinema-affiche-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   NAV CARDS (sous-pages)
   ============================================= */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.nav-card {
  background: var(--blanc);
  border: 1.5px solid var(--bordure);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  color: inherit;
}
.nav-card:hover {
  border-color: var(--brique);
  box-shadow: var(--ombre-md);
  transform: translateY(-2px);
}
.nav-card__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.01em;
  color: var(--encre);
}
.nav-card__arrow {
  width: 32px; height: 32px;
  background: var(--fond-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.nav-card:hover .nav-card__arrow { background: var(--brique); color: var(--blanc); }

/* =============================================
   MARCHÉ — highlights band
   ============================================= */
.marche-highlights {
  display: flex;
  align-items: stretch;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--encre);
  border: 1px solid rgba(255,255,255,.04);
  margin-bottom: 2.5rem;
}
.marche-highlight {
  flex: 1;
  padding: 1.5rem 1.75rem;
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.marche-highlight:last-child { border-right: none; }
.marche-highlight__icon { line-height: 1; margin-bottom: .5rem; }
.marche-highlight__icon img { display: block; }
.marche-highlight__val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--blanc);
  letter-spacing: -.02em;
}
.marche-highlight__sub { font-size: .67rem; color: rgba(255,255,255,.38); text-transform: uppercase; letter-spacing: .08em; }

/* =============================================
   SECTION ACCENT (bande colorée)
   ============================================= */
.section-accent {
  background: var(--fond-alt);
  border-top: 1.5px solid var(--bordure);
  border-bottom: 1.5px solid var(--bordure);
  padding: 3rem 0;
  margin: 3rem 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
/* Bouton fermer dans le panel menu */
.menu-close-btn {
  display: none;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  background: var(--fond-alt);
  border: 1px solid var(--bordure);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gris);
  transition: background .15s, color .15s;
  z-index: 10;
}
.menu-close-btn:hover { background: var(--bordure); color: var(--encre); }

/* Bandeau retour parent — desktop : caché (utilise header-back) */
.back-band { display: none; }

@media (max-width: 960px) {
  .menu-overlay { grid-template-columns: 0 100%; }
  .menu-close-btn { display: flex; }
  .header-adhesion { display: none; }
  /* Cacher le lien retour dans la topbar sur mobile */
  .header-back { display: none; }
  /* Bandeau blanc sous la topbar */
  .back-band {
    display: block;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    z-index: 490;
    background: var(--blanc);
    border-bottom: 1px solid var(--bordure);
    padding: 0 1.25rem;
  }
  .back-band__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    height: 36px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--gris);
    text-decoration: none;
    transition: color .15s;
  }
  .back-band__link:hover { color: var(--encre); }
  .back-band__link svg { flex-shrink: 0; }
  .agenda-layout { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .shortcuts-grid { grid-template-columns: repeat(2,1fr); }
  .actu-grid { grid-template-columns: 1fr; }
  .actu-card { grid-column: span 1 !important; }
  .hero-badges { display: none; }
  .page-header-cover { grid-template-columns: 1fr; grid-template-rows: auto; }
  .page-header-cover__bg { grid-column: 1; grid-row: 1; height: 220px; }
  .page-header-cover .container { grid-column: 1; grid-row: 2; padding: 2rem 1.5rem; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .hero-headline { font-size: 3rem; }
  .page-titre { font-size: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .shortcuts-grid { grid-template-columns: 1fr; }
  .shortcuts-band { position: static; }
  .container { padding: 0 1.25rem; }
  .page-header { padding-top: 6rem; }
  /* Pages cover : juste la hauteur de la topbar, pas de padding supplémentaire */
  .page-header-cover { padding-top: 64px; }
  /* Sous-pages avec back-band : ajouter 36px au-dessus du contenu texte */
  body:has(.back-band) .page-header:not(.page-header-cover) { padding-top: calc(6rem + 36px); }
  body:has(.back-band) .page-header-cover { padding-top: calc(64px + 36px); }
  .stat-band { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .stat-item:last-child { border-bottom: none; }
  .marche-highlights { flex-direction: column; }
  .marche-highlight { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .marche-highlight:last-child { border-bottom: none; }
  .photos-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-cards { grid-template-columns: 1fr; }
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lb-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
  cursor: zoom-out;
}
.lb-overlay.is-open { opacity: 1; pointer-events: all; }
.lb-img {
  max-width: 92vw; max-height: 92vh;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  cursor: default;
  transition: opacity .22s ease;
}
.lb-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: none; border: none;
  color: rgba(255,255,255,.6); font-size: 2rem; line-height: 1;
  cursor: pointer; padding: .25rem .5rem;
  transition: color .15s;
}
.lb-close:hover { color: #fff; }
.galerie-item, .cinema-affiche-card, .galerie-affiche-item { cursor: zoom-in; }
.prose figure {
  float: right;
  margin: .25rem 0 1.5rem 2rem;
  max-width: 320px;
  clear: right;
  position: relative;
  z-index: 1;
  background: var(--fond);
}
.prose figure img {
  border-radius: 1.25rem;
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}
.prose figure figcaption {
  font-size: .78rem;
  color: var(--graphite);
  opacity: .7;
  margin-top: .4rem;
  text-align: center;
}
@media (max-width: 640px) {
  .prose figure {
    float: none;
    margin: 1.25rem 0;
    max-width: 100%;
  }
}

/* =========================================
   ACTUALITÉ — page article
   ========================================= */
.actu-article { padding-top: 2rem; padding-bottom: 4rem; max-width: 720px; }
.actu-doc-link {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bordure);
}
.actu-doc-link a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--fond-alt);
  color: var(--encre);
  font-weight: 600;
  font-size: .88rem;
  padding: .7rem 1.25rem;
  border-radius: .5rem;
  text-decoration: none;
  transition: background .15s;
}
.actu-doc-link a:hover { background: var(--bordure); }

/* =========================================
   LA LETTRE — design éditorial premium
   ========================================= */

/* Hero dernier numéro */
.lettre-hero {
  background: var(--nuit);
  padding: 4rem 0;
}
.lettre-hero__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}
.lettre-hero__cover-wrap {
  position: relative;
  width: 260px;
}
.lettre-hero__cover-wrap img {
  width: 260px;
  height: auto;
  display: block;
  border-radius: .75rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.lettre-hero__badge { display: none; }
.lettre-hero__badge--hidden {
  position: absolute;
  top: -.75rem;
  right: -.75rem;
  background: var(--brique);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .06em;
  padding: .3rem .65rem;
  border-radius: 2rem;
}
.lettre-hero__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brique);
  margin-bottom: .75rem;
}
.lettre-hero__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  line-height: 1;
}
.lettre-hero__bignum {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #fff;
  line-height: .9;
  margin-bottom: .5rem;
}
.lettre-hero__mois {
  font-size: .9rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.lettre-hero__desc {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  max-width: 36ch;
  margin-bottom: 2rem;
}
.lettre-hero__dl {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--brique);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: .8rem 1.6rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.lettre-hero__dl:hover {
  background: #c83d26;
  transform: translateY(-1px);
}

/* Archive */
.lettre-archive {
  padding: 3.5rem 0 5rem;
}
.lettre-archive__titre {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--encre);
  opacity: .4;
  margin-bottom: 2rem;
}
.lettre-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.5rem 1.25rem;
}
.lettre-card {
  display: flex;
  flex-direction: column;
}
.lettre-card__img {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: .6rem;
  background: var(--fond-alt);
  aspect-ratio: 3/4;
  cursor: zoom-in;
  box-shadow: 0 3px 12px rgba(13,12,10,.14), 0 1px 3px rgba(13,12,10,.08);
}
.lettre-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lettre-card__foot {
  margin-top: .35rem;
  padding: 0 .3rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.lettre-card__no {
  position: absolute;
  top: .5rem;
  left: .5rem;
  background: var(--brique);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 99px;
  opacity: 0;
  transition: opacity .2s;
}
.lettre-card:hover .lettre-card__no { opacity: 1; }
.lettre-card__mois {
  display: flex;
  flex-direction: column;
  font-size: .68rem;
  color: var(--graphite);
  line-height: 1.3;
}
.lettre-card__mois span:first-child { opacity: .9; font-weight: 500; }
.lettre-card__mois span:last-child  { opacity: .5; }
.lettre-card__dl-link { flex-shrink: 0; }
.lettre-card__no {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
  color: var(--encre);
}
.lettre-card__mois {
  font-size: .68rem;
  color: var(--graphite);
  opacity: .6;
  line-height: 1.3;
}
.lettre-card__dl-link {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brique);
  text-decoration: none;
  border: 1px solid var(--brique);
  padding: .12rem .4rem;
  border-radius: 99px;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.lettre-card__dl-link:hover {
  background: var(--brique);
  color: #fff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 760px) {
  .hero-actions { gap: .6rem; }
  .hero-actions .btn { padding: .65rem 1rem; font-size: .78rem; }
  .lettre-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .lettre-hero { padding: 2.5rem 0; }
  .lettre-hero__cover-wrap { width: 180px; margin: 0 auto; }
  .lettre-hero__cover-wrap img { width: 180px; }
  .lettre-hero__bignum { font-size: 3rem; }
  .lettre-archive-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 1rem; }
}

/* =============================================
   PAGE AVEC ENCART LATÉRAL (ex. historique des repas)
   ============================================= */
.page-aside-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 3rem;
  align-items: start;
  margin-top: 1rem;
}
.page-aside-layout__side { position: sticky; top: 96px; }
.editions-aside {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem 1.5rem;
}
.editions-aside h2, .editions-aside h3 {
  margin: 0 0 .85rem;
  font-size: 1.1rem;
  color: var(--encre);
}
.editions-aside ul { list-style: none; margin: 0; padding: 0; }
.editions-aside li {
  padding: .45rem 0;
  border-bottom: 1px solid var(--bordure);
  font-size: .9rem;
  line-height: 1.35;
  color: var(--gris);
}
.editions-aside li:last-child { border-bottom: 0; padding-bottom: 0; }
.editions-aside li strong { color: var(--encre); margin-right: .15rem; }

@media (max-width: 860px) {
  .page-aside-layout { grid-template-columns: 1fr; gap: 2rem; }
  .page-aside-layout__side { position: static; }
}

/* Crédit photo de bannière */
.cover-credit { margin-top: 2.5rem; font-size: .75rem; color: var(--gris); font-style: italic; }

/* Sélecteur de thème (filtre) sur la page Projets */
.projets-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1rem;
}
.projet-filtre {
  padding: .45rem 1rem;
  border-radius: 99px;
  border: 1.5px solid var(--bordure);
  background: var(--blanc);
  color: var(--encre);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.projet-filtre:hover { border-color: var(--brique); color: var(--brique); }
.projet-filtre.is-active {
  background: var(--brique);
  border-color: var(--brique);
  color: #fff;
}

/* Titres de thème sur la page Projets */
.projets-theme-titre {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--encre);
  margin: 2.75rem 0 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--bordure);
}
.projets-theme-titre:first-of-type { margin-top: 1.5rem; }

/* =============================================
   BANDEAU COOKIES (consentement mesure d'audience)
   ============================================= */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 600px;
  margin: 0 auto;
  background: var(--nuit);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 44px rgba(0,0,0,.32);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text {
  margin: 0;
  font-size: .85rem;
  line-height: 1.45;
  color: rgba(255,255,255,.85);
}
.cookie-banner__actions { display: flex; gap: .6rem; justify-content: flex-end; }
.cookie-btn {
  padding: .5rem 1.15rem;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cookie-btn--refuse { background: transparent; color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.25); }
.cookie-btn--refuse:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.cookie-btn--accept { background: var(--brique); color: #fff; }
.cookie-btn--accept:hover { background: var(--brique-d); }
@media (min-width: 560px) {
  .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie-banner__actions { flex-shrink: 0; }
}
