/* =================================================================
   ESPACE LA RISÉE — V3
   ================================================================= */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -----------------------------------------------------------------
   1. JETONS
   ----------------------------------------------------------------- */
:root {
  /* ---- Couleurs ------------------------------------------------
     Un seul noir, chaud. Un seul papier, chaud. Le rouge de marque
     reste un APLAT : le texte prend --rouge-texte. */
  --encre: #141210;              /* 16,33 sur --papier */
  --encre-douce: #4C443C;        /* 8,34 sur --papier · 7,29 sur --papier-f */
  --papier: #F4EFE7;             /* fond dominant */
  --papier-f: #E8E0D3;           /* bande alternée, cadres d'affiche */
  --blanc: #FFFFFF;
  --papier-clair: #EFE8DC;       /* 15,35 sur --encre */
  --papier-sec: #C2B8A8;         /* 9,54 sur --encre */
  --rouge-marque: #C74F44;       /* FILETS ET APLATS — jamais du texte */
  --rouge-action: #A33A30;       /* fond de bouton — blanc dessus = 6,55 */
  --rouge-texte: #93332B;        /* 6,67 sur --papier · 7,64 sur blanc */
  --rouge-clair: #EC8E82;        /* 7,79 sur --encre */
  --bordure: #8A8075;            /* 3,38 sur --papier — seuil 1.4.11 */
  --bordure-sombre: #6E655C;     /* 3,27 sur --encre */

  /* ---- Typographie : deux familles, auto-hébergées --------------- */
  --titre: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --corps: 'Poppins', 'Segoe UI', Arial, sans-serif;

  /* Sauts francs : 88 / 64 / 42 / 24 / 19. Un titre domine. */
  --t-display: clamp(2.75rem, 1.10rem + 7.04vw, 5.5rem);    /* 44 → 88 */
  --t-h1:      clamp(2.25rem, 1.29rem + 4.10vw, 4rem);      /* 36 → 64 */
  --t-h2:      clamp(1.75rem, 1.27rem + 2.05vw, 2.625rem);  /* 28 → 42 */
  --t-h3:      clamp(1.25rem, 1.11rem + 0.59vw, 1.5rem);    /* 20 → 24 */
  --t-h4:      clamp(1.0625rem, 1.01rem + 0.23vw, 1.1875rem);
  --t-corps:   clamp(1.0625rem, 1.01rem + 0.23vw, 1.1875rem); /* 17 → 19 */
  --t-petit:   0.875rem;
  --t-micro:   0.75rem;

  --lh-display: 0.95;
  --lh-titre: 1.06;
  --lh-h3: 1.22;
  --lh-corps: 1.62;

  /* ---- Espacement : échelle 4 px -------------------------------- */
  --e4: 4px;   --e8: 8px;   --e12: 12px; --e16: 16px; --e24: 24px;
  --e32: 32px; --e48: 48px; --e64: 64px; --e96: 96px; --e128: 128px;

  /* ---- Rythme vertical INÉGAL ----------------------------------- */
  --bande-y: clamp(64px, 8vw, 112px);
  --bande-y-serre: clamp(40px, 5vw, 72px);
  --bande-y-ample: clamp(96px, 13vw, 184px);
  --debord: clamp(32px, 6vw, 96px);

  /* ---- Grille ---------------------------------------------------- */
  --conteneur: 1320px;
  --marge: 20px;
  --rail: clamp(180px, 17vw, 260px);
  --gouttiere-rail: clamp(28px, 3.5vw, 64px);
  /* 50ch de Poppins rendent ~65 caracteres de prose francaise reelle :
     l unite ch vaut la largeur du zero, plus etroite que la moyenne.
     Mesure au navigateur, pas au reglage. */
  --mesure: 50ch;
  --entete-h: 68px;

  --rayon: 2px;
  --cible: 48px;
  --duree: 160ms;
  --ombre: 0 1px 2px rgba(20, 18, 16, .07), 0 10px 30px rgba(20, 18, 16, .07);
}

@media (min-width: 768px) { :root { --marge: 32px; --entete-h: 76px; } }
@media (min-width: 1200px) { :root { --marge: 48px; } }

/* -----------------------------------------------------------------
   2. SOCLE
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Une ancre ne doit pas se glisser sous l'en-tête collant. */
[id] { scroll-margin-top: calc(var(--entete-h) + var(--e24)); }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--corps);
  font-size: var(--t-corps);
  line-height: var(--lh-corps);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: var(--lh-titre); letter-spacing: -0.025em; }
h2 { font-size: var(--t-h2); line-height: var(--lh-titre); letter-spacing: -0.02em; }
h3 { font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: -0.01em; }
h4, .h4 { font-family: var(--titre); font-weight: 700; font-size: var(--t-h4); line-height: 1.3; margin: 0; }

p, ul, ol, dl, figure, address { margin: 0; }

/* Les textes du client contiennent des URL de billetterie de 80 caractères,
   reprises verbatim. Sans point de césure, une seule d'entre elles fixe la
   largeur minimale de sa colonne et fait déborder toute la page sur un
   téléphone : mesuré à 375 px sur /d-tails-et-inscription, 44 px de débord.
   On autorise la coupure dans le texte courant — on ne touche pas au texte. */
p, li, dd, dt, figcaption, address { overflow-wrap: break-word; }
.prose a, .carte a, dd a { overflow-wrap: anywhere; }

/* Une piste de grille vaut min-content par défaut : un enfant indéchirable
   l'élargit au-delà de son conteneur. On repose le plancher à zéro. */
.rail > *, .duo > *, .grille > *, .galerie > *, .affiches > *,
.affiche__corps > *, .pied__grille > * { min-width: 0; }

.display {
  font-family: var(--titre);
  font-weight: 700;
  font-size: var(--t-display);
  line-height: var(--lh-display);
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

a { color: var(--rouge-texte); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--rouge-texte);
  outline-offset: 3px;
  border-radius: 1px;
}

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.evitement {
  position: absolute; left: var(--e16); top: -100px; z-index: 100;
  background: var(--encre); color: var(--papier-clair);
  padding: var(--e12) var(--e16); text-decoration: none; font-weight: 600;
}
.evitement:focus { top: var(--e12); }

/* -----------------------------------------------------------------
   3. MOUVEMENT — discret, utile, et désactivable
   ----------------------------------------------------------------- */
/* L'apparition est pilotée par la POSITION dans le défilement, en CSS seul
   (animation-timeline), jamais par un script.
   Pourquoi : une révélation déclenchée par événement laisse du contenu à
   opacité 0 dès qu'un déclenchement est manqué — défilement rapide, onglet
   en arrière-plan, script non exécuté. Mesuré sur /location : huit sections
   sur neuf restées invisibles. Une animation de défilement n'a pas d'état
   bloqué : sa progression est une fonction de la position, pas d'un
   événement. Là où le navigateur ne la connaît pas, @supports échoue et
   tout s'affiche normalement — aucun contenu ne dépend d'elle. */
@keyframes apparition {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-apparition] {
      animation: apparition linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* -----------------------------------------------------------------
   4. GRILLE — les trois largeurs
   ----------------------------------------------------------------- */
.conteneur {
  width: 100%;
  max-width: var(--conteneur);
  margin-inline: auto;
  padding-inline: var(--marge);
}

.bande { padding-block: var(--bande-y); }
.bande--serre { padding-block: var(--bande-y-serre); }
.bande--ample { padding-block: var(--bande-y-ample); }
.bande--sous-affiche { padding-top: calc(var(--bande-y) + var(--debord)); }
.bande--papier-f { background: var(--papier-f); }
.bande--blanche { background: var(--blanc); }

.bande--sombre {
  background: var(--encre);
  color: var(--papier-clair);
}
.bande--sombre h1, .bande--sombre h2, .bande--sombre h3, .bande--sombre .h4 { color: var(--papier-clair); }
.bande--sombre a { color: var(--rouge-clair); }
.bande--sombre .secondaire { color: var(--papier-sec); }
.bande--sombre :focus-visible { outline-color: var(--rouge-clair); }

/* Le rail : le titre tient la marge gauche, le corps la colonne. */
.rail { display: grid; gap: var(--e24); }
/* min-width: 0 sur la tête ET sur ses enfants : sans cela, un titre dont le
   mot le plus long dépasse la largeur du rail impose sa largeur minimale à
   la piste et déborde SUR le corps. Mesuré sur « Notre suggestion
   gastronomique... » — 333 px de mot dans un rail de 260. La coupure et la
   césure garantissent qu'aucun titre ne peut plus sortir de sa colonne. */
.rail__tete {
  display: grid; gap: var(--e12); align-content: start;
  min-width: 0;
}
.rail__tete > * { min-width: 0; }
/* Le titre de rail descend d'un cran sous l'échelle générale : le rail fait
   au plus 260 px, et « gastronomique... » mesure 333 px au corps h2. Calé
   pour que le mot le plus long du site tienne sans coupure — la césure
   automatique n'est pas garantie par tous les moteurs, et une coupure sans
   trait d'union au milieu d'un titre se lit mal. La coupure de mot ne reste
   que comme dernier recours, pour un contenu futur plus long encore. */
.rail__tete h2, .rail__tete h3 {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2rem);  /* 24 → 32 */
  overflow-wrap: break-word;
  hyphens: auto;
}
.rail__num {
  font-family: var(--titre);
  font-weight: 700;
  font-size: var(--t-h3);
  letter-spacing: 0.04em;
  color: var(--rouge-texte);
  display: flex; align-items: center; gap: var(--e12);
}
.rail__num::after {
  content: ""; flex: 1 1 auto; height: 3px; background: var(--rouge-marque);
}
.bande--sombre .rail__num { color: var(--rouge-clair); }

@media (min-width: 1024px) {
  .rail {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: var(--gouttiere-rail);
    row-gap: 0;
  }
  /* Le titre tient la marge gauche sur TOUTE la hauteur de la bande, et
     reste visible pendant qu'on lit. La colonne lui est réservée : un
     enfant qui déborderait dedans passerait SOUS le titre collant —
     chevauchement mesuré à 1440 px avant correction. */
  .rail > * { grid-column: 2; }
  .rail__tete {
    grid-column: 1;
    grid-row: 1 / -1;
    position: sticky;
    top: calc(var(--entete-h) + var(--e24));
    align-self: start;
  }
  .rail__num::after { max-width: 64px; }
}

.rail__corps { min-width: 0; }

@media (min-width: 1024px) {
  .rail { row-gap: var(--e48); }
}

/* Deux colonnes inégales : le texte garde sa mesure, l'image prend le reste. */
.duo { display: grid; gap: var(--e32); align-items: start; }
@media (min-width: 900px) {
  .duo { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); column-gap: var(--e48); }
  .duo--inverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); }
}

/* La MESURE : 64 caractères, le texte courant et rien d'autre. */
.mesure { max-width: var(--mesure); }
.prose > * + * { margin-top: var(--e16); }
.prose p { max-width: var(--mesure); }
.prose a { font-weight: 500; }

.chapo {
  font-size: clamp(1.1875rem, 1.05rem + 0.58vw, 1.4375rem);
  line-height: 1.5;
  max-width: 52ch;
}
.secondaire { color: var(--encre-douce); }
.petit { font-size: var(--t-petit); line-height: 1.5; }

.micro {
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-douce);
  margin: 0;
}
.bande--sombre .micro { color: var(--papier-sec); }

.pile { display: grid; gap: var(--e24); align-content: start; }
.pile-s { display: grid; gap: var(--e8); align-content: start; }

/* Le DÉBORD : l'élément sort de la MESURE et prend toute la colonne.
   Trois largeurs par page : la mesure (64 ch), la colonne, et l'affiche
   de tête, seule à tenir toute la largeur du conteneur. */
.deborde { width: 100%; }

/* -----------------------------------------------------------------
   5. EN-TÊTE
   ----------------------------------------------------------------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--papier);
  border-bottom: 1px solid var(--bordure);
}
.entete__in {
  min-height: var(--entete-h);
  display: flex; align-items: center; gap: var(--e16);
}
.entete__logo { display: flex; align-items: center; padding: var(--e8) 0; margin-right: auto; }
.entete__logo img { height: 44px; width: auto; }

.burger {
  width: var(--cible); height: var(--cible);
  display: grid; place-items: center;
  background: none; border: 1px solid var(--bordure); border-radius: var(--rayon);
  color: var(--encre); cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: currentColor; content: "";
}
.burger span { position: relative; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
@media (min-width: 1024px) { .burger { display: none; } }

.nav__fermer {
  background: none; border: 0; color: inherit; font-size: 1.5rem;
  min-width: var(--cible); min-height: var(--cible); cursor: pointer;
  margin-left: auto; display: block;
}
.nav__liste { list-style: none; margin: 0; padding: 0; }
.nav__lien {
  display: block; padding: var(--e12) 0;
  font-family: var(--corps); font-weight: 600;
  font-size: var(--t-petit); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--encre); text-decoration: none;
}
.nav__lien:hover { color: var(--rouge-texte); }
.nav__lien[aria-current] { color: var(--rouge-texte); }

.nav__bouton {
  background: none; border: 0; color: inherit; cursor: pointer;
  min-width: 44px; min-height: 44px; display: inline-grid; place-items: center;
}
.nav__chevron { transition: transform var(--duree) ease; }
.nav__bouton[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

.nav__sous { list-style: none; margin: 0; padding: 0; }
.nav__sous a {
  display: block; padding: var(--e8) 0;
  font-size: var(--t-petit); color: var(--encre-douce); text-decoration: none;
}
.nav__sous a:hover, .nav__sous a[aria-current] { color: var(--rouge-texte); text-decoration: underline; }

/* Tiroir sous 1024 px */
@media (max-width: 1023px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(380px, 86vw); z-index: 60;
    background: var(--encre); color: var(--papier-clair);
    padding: var(--e16) var(--e24) var(--e48);
    transform: translateX(100%); transition: transform var(--duree) ease;
    overflow-y: auto;
  }
  .nav[data-ouvert="true"] { transform: none; }
  .nav__lien { color: var(--papier-clair); border-bottom: 1px solid var(--bordure-sombre); }
  .nav__lien:hover, .nav__lien[aria-current] { color: var(--rouge-clair); }
  .nav__sous a { color: var(--papier-sec); padding: var(--e12) 0 var(--e12) var(--e16); }
  .nav__sous a:hover, .nav__sous a[aria-current] { color: var(--rouge-clair); }
  .nav__item { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .nav__item .nav__sous { grid-column: 1 / -1; }
  .voile { position: fixed; inset: 0; background: rgba(20, 18, 16, .55); z-index: 55; }
  .nav :focus-visible { outline-color: var(--rouge-clair); }
}

@media (min-width: 1024px) {
  .nav__fermer { display: none; }
  .nav__liste { display: flex; align-items: center; gap: var(--e24); }
  .nav__item { position: relative; display: flex; align-items: center; gap: var(--e4); }
  .nav__sous {
    position: absolute; top: 100%; left: -16px; min-width: 240px; z-index: 60;
    background: var(--encre); padding: var(--e12) var(--e16);
    border-top: 3px solid var(--rouge-marque); box-shadow: var(--ombre);
  }
  .nav__sous a { color: var(--papier-clair); padding: var(--e8) 0; }
  .nav__sous a:hover, .nav__sous a[aria-current] { color: var(--rouge-clair); }
  .nav__sous :focus-visible { outline-color: var(--rouge-clair); }
}

/* -----------------------------------------------------------------
   6. L'AFFICHE — la tête de page
   ----------------------------------------------------------------- */
.affiche {
  position: relative; z-index: 1;
  background: var(--encre);
  color: var(--papier-clair);
  padding-top: clamp(48px, 7vw, 96px);
}
.affiche h1, .affiche .display { color: var(--papier-clair); }
.affiche .micro { color: var(--rouge-clair); }
.affiche a:not(.btn) { color: var(--rouge-clair); }
.affiche :focus-visible { outline-color: var(--rouge-clair); }

.affiche__titre { max-width: 16ch; }
.affiche__filet { width: 72px; height: 6px; background: var(--rouge-marque); border: 0; margin: var(--e24) 0 0; }
.affiche__corps { display: grid; gap: var(--e24); margin-top: var(--e32); }
.affiche__corps .chapo { color: var(--papier-clair); }

@media (min-width: 900px) {
  .affiche__corps {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    column-gap: var(--gouttiere-rail);
    align-items: end;
  }
}

.affiche__actions { display: flex; flex-wrap: wrap; gap: var(--e12); }

/* L'image monte dans la bande sombre et déborde sur la section suivante. */
.affiche__media {
  margin-top: clamp(40px, 6vw, 72px);
  margin-bottom: calc(-1 * var(--debord));
}
.affiche__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 768px) { .affiche__media img { aspect-ratio: 16 / 7; } }

/* Tête de page sans photo : même grammaire, sans la bande sombre. */
.entree { padding-block: clamp(48px, 7vw, 104px) var(--bande-y-serre); }
.entree__filet { width: 72px; height: 6px; background: var(--rouge-marque); border: 0; margin: var(--e24) 0 0; }

/* -----------------------------------------------------------------
   7. FIL D'ARIANE
   ----------------------------------------------------------------- */
.fil { padding-top: var(--e16); }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--e8); margin: 0; padding: 0; font-size: var(--t-petit); }
.fil li + li::before { content: "›"; margin-right: var(--e8); color: var(--encre-douce); }
.fil [aria-current] { color: var(--encre-douce); }

/* -----------------------------------------------------------------
   8. BOUTONS
   ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--cible); padding: var(--e12) var(--e24);
  font-family: var(--corps); font-weight: 600; font-size: var(--t-petit);
  letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
  text-decoration: none; border-radius: var(--rayon); border: 2px solid transparent;
  cursor: pointer; transition: background-color var(--duree) ease, color var(--duree) ease, border-color var(--duree) ease;
}
.btn--plein { background: var(--rouge-action); color: var(--blanc); border-color: var(--rouge-action); }
.btn--plein:hover { background: var(--encre); border-color: var(--encre); color: var(--blanc); }

.btn--ligne { background: transparent; color: var(--encre); border-color: var(--encre); }
.btn--ligne:hover { background: var(--encre); color: var(--papier-clair); }

.btn--sombre { background: transparent; color: var(--papier-clair); border-color: var(--papier-sec); }
.btn--sombre:hover { background: var(--papier-clair); color: var(--encre); border-color: var(--papier-clair); }

/* -----------------------------------------------------------------
   9. GRILLES ET CARTES
   ----------------------------------------------------------------- */
.grille { display: grid; gap: var(--e24); list-style: none; margin: 0; padding: 0; }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

.carte {
  position: relative;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  padding: var(--e24);
  display: grid; gap: var(--e8); align-content: start;
}
.carte::before {
  content: ""; position: absolute; left: -1px; top: -1px; height: 4px; width: 56px;
  background: var(--rouge-marque); transition: width var(--duree) ease;
}
.carte:hover::before, .carte:focus-within::before { width: calc(100% + 2px); }
.carte h3 a { color: var(--encre); text-decoration: none; }
.carte h3 a:hover { color: var(--rouge-texte); text-decoration: underline; }

.bande--sombre .carte { background: transparent; border-color: var(--bordure-sombre); }
.bande--sombre .carte h3 a { color: var(--papier-clair); }
.bande--sombre .carte h3 a:hover { color: var(--rouge-clair); }

.carte__icone { width: 28px; height: 28px; fill: var(--rouge-marque); }
.bande--sombre .carte__icone { fill: var(--rouge-clair); }

/* Le chiffre d'ancrage — grand, en marge, muet pour le lecteur d'écran. */
.chiffre {
  font-family: var(--titre); font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  line-height: 1; letter-spacing: -0.04em;
  color: var(--rouge-texte);
}
.bande--sombre .chiffre { color: var(--rouge-clair); }

/* -----------------------------------------------------------------
   10. IMAGES
   ----------------------------------------------------------------- */
picture { display: block; }
.cadre { width: 100%; }
.cadre img, img.cadre { width: 100%; }

/* Cadres à recadrage ASSUMÉ (object-fit: cover ne déforme jamais). */
.coupe-16-9 img, img.coupe-16-9 { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.coupe-3-2 img, img.coupe-3-2 { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.coupe-4-5 img, img.coupe-4-5 { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; }

/* Cadres à image ENTIÈRE : une affiche, un plan, un logo ne se recadrent pas. */
.entiere {
  background: var(--papier-f);
  display: grid; place-items: center;
}
.entiere picture, .even__affiche picture { width: 100%; height: 100%; }
.entiere img { width: 100%; height: 100%; object-fit: contain; }
.entiere--2-3 { aspect-ratio: 2 / 3; }

figcaption { font-size: var(--t-petit); line-height: 1.5; color: var(--encre-douce); margin-top: var(--e8); }
.bande--sombre figcaption { color: var(--papier-sec); }

/* Galerie — rythme inégal : trois tuiles sur deux colonnes. */
.galerie { display: grid; gap: var(--e16); grid-template-columns: 1fr; }
@media (min-width: 640px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .galerie { grid-template-columns: repeat(3, 1fr); gap: var(--e24); }
  .galerie .gal--large { grid-column: span 2; }
}
.gal { margin: 0; }
.gal img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Affiches d'archive — ratio propre à chaque affiche, zéro perte. */
.affiches { display: grid; gap: var(--e24); grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.affiche-item { margin: 0; }

/* Logos de partenaires — jamais agrandis, jamais déformés. */
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--e24); align-items: center; }
.logos li { background: var(--blanc); border: 1px solid var(--bordure); padding: var(--e16); display: grid; gap: var(--e8); }
.logos a { display: block; }
.logos img { max-height: 84px; width: auto; object-fit: contain; }

.partenaire-logo { max-width: 240px; }

/* -----------------------------------------------------------------
   11. LISTES ÉDITORIALES
   ----------------------------------------------------------------- */
.fiche { border-top: 2px solid var(--encre); padding-top: var(--e16); }
.fiche ul { list-style: none; margin: var(--e12) 0 0; padding: 0; display: grid; gap: var(--e8); }
.fiche li { font-size: var(--t-petit); line-height: 1.55; padding-left: var(--e16); position: relative; }
.fiche li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 1px; background: var(--rouge-marque); }

.donateurs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e8); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.donateurs li { padding-bottom: var(--e8); border-bottom: 1px solid var(--bordure); }

dl { display: grid; gap: var(--e8); }
dt { font-family: var(--corps); font-weight: 600; font-size: var(--t-petit); letter-spacing: 0.1em; text-transform: uppercase; color: var(--encre-douce); }
dd { margin: 0 0 var(--e16); }
.bande--sombre dt { color: var(--papier-sec); }

.etiquette {
  display: inline-block; padding: var(--e4) var(--e12);
  font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--bordure); color: var(--encre-douce); border-radius: var(--rayon);
}
.etiquette--passe { border-color: var(--bordure); }
.etiquette--complet { border-color: var(--rouge-texte); color: var(--rouge-texte); }
.etiquette--annule { background: var(--rouge-action); border-color: var(--rouge-action); color: var(--blanc); }
.bande--sombre .etiquette { border-color: var(--bordure-sombre); color: var(--papier-sec); }

.attente { border-left: 4px solid var(--rouge-marque); background: var(--papier-f); padding: var(--e16) var(--e24); display: grid; gap: var(--e4); }

/* Événement en vignette */
.even { margin: 0; display: grid; gap: var(--e12); align-content: start; }
/* Une affiche ne se recadre pas et ne se loge pas de force dans un cadre :
   les affiches du client vont du bandeau 851x315 au portrait 1365x2048.
   Un cadre unique laisserait des bandes vides sur les unes et rognerait
   les autres. Chacune garde son ratio ; les hauteurs de vignette diffèrent,
   et cette irrégularité est voulue. */
.even__affiche { background: var(--papier-f); }
.even__affiche img { width: 100%; height: auto; }
.even a { color: inherit; text-decoration: none; }
.even a:hover { color: var(--rouge-texte); text-decoration: underline; }
.bande--sombre .even a:hover { color: var(--rouge-clair); }

/* -----------------------------------------------------------------
   12. FORMULAIRES
   ----------------------------------------------------------------- */
.form { display: grid; gap: var(--e16); max-width: 620px; }
.champ { display: grid; gap: var(--e4); }
.champ label { font-size: var(--t-petit); font-weight: 600; }
.champ input, .champ textarea, .champ select {
  font: inherit; font-size: var(--t-corps);
  padding: var(--e12); min-height: var(--cible);
  background: var(--blanc); color: var(--encre);
  border: 1px solid var(--bordure); border-radius: var(--rayon);
  width: 100%;
}
.champ textarea { min-height: 112px; resize: vertical; }
.champ select { appearance: none; padding-right: calc(var(--e12) * 3); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--e12) center; background-size: 18px; }
.form__duo { display: grid; gap: var(--e16); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.champ input:focus-visible, .champ textarea:focus-visible, .champ select:focus-visible { outline: 3px solid var(--rouge-texte); outline-offset: 1px; border-color: var(--encre); }
.champ[data-erreur] input, .champ[data-erreur] textarea { border-color: var(--rouge-action); border-width: 2px; }
.bande--sombre .champ input, .bande--sombre .champ textarea, .bande--sombre .champ select { background-color: var(--blanc); }
.requis { color: var(--rouge-texte); }
.bande--sombre .requis { color: var(--rouge-clair); }
.aide { font-size: var(--t-petit); color: var(--encre-douce); }
.bande--sombre .aide { color: var(--papier-sec); }

.form-etat:empty { display: none; }
.form-etat { font-size: var(--t-petit); padding: var(--e12); border-left: 4px solid var(--bordure); background: var(--papier-f); color: var(--encre); }
.form-etat[data-etat="erreur"] { border-left-color: var(--rouge-action); }
.form-etat[data-etat="demo"] { border-left-color: var(--rouge-marque); }

.mention-demo {
  font-size: var(--t-petit);
  border: 1px dashed var(--bordure);
  padding: var(--e12) var(--e16);
  color: var(--encre-douce);
  max-width: 620px;
}
.bande--sombre .mention-demo { border-color: var(--bordure-sombre); color: var(--papier-sec); }

.infolettre { display: grid; gap: var(--e8); max-width: 340px; }
.infolettre input { font: inherit; padding: var(--e12); min-height: var(--cible); border: 1px solid var(--bordure-sombre); border-radius: var(--rayon); background: var(--blanc); color: var(--encre); }

/* -----------------------------------------------------------------
   13. CARROUSEL
   ----------------------------------------------------------------- */
.carrousel { position: relative; }
.carrousel__piste {
  display: flex; gap: var(--e16); overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: var(--e8);
}
.carrousel__piste > * { flex: 0 0 min(100%, 720px); scroll-snap-align: start; }
.carrousel__btns { display: flex; gap: var(--e8); margin-top: var(--e12); }
.carrousel__btns button {
  min-width: var(--cible); min-height: var(--cible);
  background: transparent; border: 2px solid var(--encre); color: var(--encre);
  border-radius: var(--rayon); cursor: pointer; font-size: 1.25rem; line-height: 1;
}
.carrousel__btns button:hover { background: var(--encre); color: var(--papier); }

/* -----------------------------------------------------------------
   14. PIED DE PAGE
   ----------------------------------------------------------------- */
.pied { background: var(--encre); color: var(--papier-clair); border-top: 6px solid var(--rouge-marque); padding-block: var(--bande-y) var(--e32); }
.pied a { color: var(--rouge-clair); }
.pied :focus-visible { outline-color: var(--rouge-clair); }
.pied h2 { font-size: var(--t-h4); font-family: var(--corps); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--papier-sec); }
.pied__grille { display: grid; gap: var(--e48); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.pied__grille > * { display: grid; gap: var(--e12); align-content: start; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; }
/* Cible tactile : un lien seul dans son élément n'est pas « un lien dans une
   phrase », l'exception de WCAG 2.5.8 ne s'y applique donc pas. On lui donne
   ses 44 px de haut. Les liens EN COURS DE PHRASE gardent leur hauteur de
   ligne : les élargir casserait l'interligne du texte du client. */
.pied ul a,
.pied .petit a,
.pied__bas a,
.carte p > a:only-child,
.pile-s > p > a:only-child,
address p > a:only-child {
  display: inline-block; min-height: 44px; padding-block: 10px;
}
.pied .secondaire { color: var(--papier-sec); }
.pied__bas {
  margin-top: var(--e48); padding-top: var(--e24);
  border-top: 1px solid var(--bordure-sombre);
  display: flex; flex-wrap: wrap; gap: var(--e12) var(--e24); justify-content: space-between;
  font-size: var(--t-petit); color: var(--papier-sec);
}

/* Verrou de défilement du tiroir — posé par une CLASSE, jamais par un
   attribut style, pour ne pas dépendre de 'unsafe-inline'. */
html.nav-ouverte, html.nav-ouverte body { overflow: hidden; }

/* -----------------------------------------------------------------
   15. UTILITAIRES — ils remplacent tout attribut « style »,
   ce qui permet de servir le site sous style-src 'self'.
   ----------------------------------------------------------------- */
.mt-8 { margin-top: var(--e8); }
.actions { display: flex; flex-wrap: wrap; gap: var(--e12); }
.mt-12 { margin-top: var(--e12); }
.mt-16 { margin-top: var(--e16); }
.mt-24 { margin-top: var(--e24); }
.mt-32 { margin-top: var(--e32); }
.mt-48 { margin-top: var(--e48); }
.mt-64 { margin-top: var(--e64); }
.normal { font-style: normal; }
.rouge { color: var(--rouge-texte); }
.bande--sombre .rouge { color: var(--rouge-clair); }
.nowrap { white-space: nowrap; }

/* Équipe : portraits individuels (photo de groupe remplacée le 2026-11-21) */
.equipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e48) var(--e24); }
.equipe__membre img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--rayon); margin-bottom: var(--e16); }
.equipe .h4, .equipe__autres .h4 { margin: 0 0 var(--e4); }
.equipe__autres { list-style: none; padding: var(--e24) 0 0; margin: var(--e48) 0 0; border-top: 1px solid var(--bordure); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e24); }
@media (max-width: 900px) { .equipe, .equipe__autres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .equipe { gap: var(--e32) var(--e16); } }

/* Formulaires : champ piège pour les robots, états d'envoi */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-etat[data-etat="ok"] { border-left-color: var(--encre); }
.form-etat[data-etat="envoi"] { border-left-color: var(--bordure); }
button[aria-busy="true"] { opacity: .6; cursor: progress; }
