/* AAFJAM — feuille de style commune
   Palette tirée de l'emblème de l'association (bleu nuit, pétrole, rouge, crème, or).
   Toutes les couleurs, tailles et espacements passent par :root. */

/* Polices hébergées sur le site (aucun appel à un service tiers) — licence OFL, voir fonts/LICENCE.txt */
@font-face {
  font-family: "Alfa Slab One";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/alfa-slab-one-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-700.woff2") format("woff2");
}

:root {
  /* Couleurs */
  --night:       #07111f;   /* liseré extérieur de l'emblème */
  --night-2:     #0c1d30;   /* bandeaux de contenu */
  --night-3:     #1c3650;   /* filets, bordures */
  --petrol:      #005675;   /* ciel de l'emblème */
  --cream:       #f8edcd;   /* lettrage AAFJAM */
  --cream-soft:  #c9c6b6;   /* texte secondaire */
  --red:         #d3312a;   /* rouge du juke-box */
  --red-deep:    #8d1c23;   /* ombre portée du lettrage */
  --gold:        #e2ae4f;   /* or de l'étoile et des chromes */
  --gold-hi:     #fde496;
  --chrome-hi:   #eef0f3;
  --chrome:      #b5bac2;
  --chrome-lo:   #626a76;
  --strip-ink:   #1f1a14;   /* encre des étiquettes juke-box */
  --band-alpha:  0.94;      /* opacité des bandeaux au-dessus de la salle */

  /* Typographie */
  --font-display: "Alfa Slab One", "Rockwell", Georgia, serif;
  --font-text:    "Atkinson Hyperlegible", system-ui, sans-serif;
  --fs-0: 0.875rem;
  --fs-1: 1.0625rem;
  --fs-2: 1.25rem;
  --fs-3: clamp(1.6rem, 1.25rem + 1.5vw, 2.3rem);
  --fs-4: clamp(2.3rem, 1.4rem + 3.8vw, 4.2rem);

  /* Espacements */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --aisle: clamp(4rem, 14vh, 9rem);  /* passage entre deux bandeaux : on voit la salle */
  --wrap: 72rem;
  --gutter: 1.25rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-text);
  font-size: var(--fs-1);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }

:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 var(--sp-2);
}
h2 { font-size: var(--fs-3); }
h3 { font-size: var(--fs-2); }
p  { margin: 0 0 var(--sp-2); max-width: 62ch; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--night);
  padding: var(--sp-1) var(--sp-2); z-index: 20;
}
.skip:focus { left: var(--sp-2); }

/* Placeholders : toujours visibles comme tels */
.ph {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(248 237 205 / 0.04) 14px 28px),
    var(--night);
  border: 2px dashed var(--night-3);
  color: var(--cream-soft);
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--sp-3);
  font-size: var(--fs-0);
}
.ph strong { display: block; color: var(--cream); font-size: var(--fs-1); }

/* =========================================================
   LA SALLE D'ARCADE (décor 3D fixe, on avance en défilant)
   ========================================================= */
.hall {
  position: fixed; inset: 0;
  z-index: -1;
  overflow: hidden;
  perspective: 620px;
  perspective-origin: 50% 42%;
  background: radial-gradient(ellipse at 50% 42%, #0f2a40 0%, var(--night) 55%);
  pointer-events: none;
}
.room {
  position: absolute; left: 50%; top: 42%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translateZ(var(--walk, 0px));
  will-change: transform;
}
.room > * { position: absolute; transform-style: preserve-3d; }

/* Moquette d'arcade : quadrillage néon */
.floor, .ceiling {
  width: 1400px; height: calc(var(--depth) + 1400px);
  left: -700px; top: 0;
  transform-origin: 50% 0;
}
.floor {
  transform: translate3d(0, var(--floor-y), 1400px) rotateX(-90deg);
  background:
    linear-gradient(90deg, rgb(211 49 42 / .55) 2px, transparent 2px) 0 0 / 140px 140px,
    linear-gradient(0deg,  rgb(0 140 180 / .5) 2px, transparent 2px) 0 0 / 140px 140px,
    #081626;
}
.ceiling {
  transform: translate3d(0, var(--ceil-y), 1400px) rotateX(-90deg);
  background:
    linear-gradient(0deg, rgb(253 228 150 / .9) 0 6px, transparent 6px) 0 0 / 100% 520px,
    #050c16;
}

/* Bornes et juke-box alignés le long des murs */
.cab {
  width: 170px; height: 320px;
  left: -85px; top: calc(var(--floor-y) - 320px);
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #1a2c40, #0d1826);
  box-shadow: inset 0 0 0 3px rgb(0 0 0 / .5);
}
.cab::before {           /* fronton lumineux */
  content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 38px;
  border-radius: 4px;
  background: var(--c, var(--red));
  box-shadow: 0 0 26px var(--c, var(--red));
}
.cab::after {            /* écran */
  content: ""; position: absolute; left: 18px; right: 18px; top: 62px; height: 100px;
  border-radius: 6px;
  background: radial-gradient(circle at 40% 40%, #7fe3ff, #0a5f80 70%);
  box-shadow: 0 0 30px rgb(80 200 255 / .55);
}
.cab.juke {
  border-radius: 75px 75px 6px 6px;
  background: linear-gradient(90deg, var(--red), var(--gold-hi) 25%, var(--gold) 40%, var(--gold-hi) 60%, var(--red) 85%);
  box-shadow: 0 0 34px rgb(226 174 79 / .45);
}
.cab.juke::before {
  left: 24px; right: 24px; top: 26px; height: 120px; border-radius: 52px 52px 4px 4px;
  background: repeating-linear-gradient(90deg, #ffefb8 0 6px, #f0a04a 6px 12px);
  box-shadow: 0 0 22px #ffcf70;
}
.cab.juke::after {
  left: 30px; right: 30px; top: 170px; height: 80px; border-radius: 4px;
  background: repeating-linear-gradient(0deg, #2a1208 0 4px, #6b3418 4px 8px);
  box-shadow: none;
}

/* Flippers, vus de profil depuis l'allée (repère : x = 0 contre le mur) */
.pin { left: 0; top: 0; width: 0; height: 0; }
.pin > * { position: absolute; transform-origin: 0 0; }
.pin-side { left: 0; top: calc(var(--floor-y) - 350px); width: 250px; height: 350px; overflow: visible; }
.pin-side-far { transform: translateZ(-125px); }   /* même largeur que la vitre et le plateau */
.pin-glass {              /* vitre du fronton, allumée */
  left: 58px; top: calc(var(--floor-y) - 320px);
  width: 125px; height: 136px;
  transform: rotateY(90deg);
  border: 5px solid #1a1a1a;
  background:
    radial-gradient(circle at 50% 38%, #fff 0 6%, transparent 7%),
    conic-gradient(from 0deg at 50% 38%, var(--c2) 0 10%, var(--c) 10% 20%, var(--c2) 20% 30%, var(--c) 30% 40%, var(--c2) 40% 50%, var(--c) 50% 60%, var(--c2) 60% 70%, var(--c) 70% 80%, var(--c2) 80% 90%, var(--c) 90%);
  box-shadow: 0 0 40px var(--c2);
}
.pin-glass::after {       /* afficheur des scores */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 10%; height: 14%;
  background: repeating-linear-gradient(90deg, #ff8a1f 0 8px, #3a1600 8px 11px);
  box-shadow: 0 0 12px #ff8a1f;
}
.pin-field {              /* plateau de jeu, légèrement incliné */
  left: 58px; top: calc(var(--floor-y) - 184px);
  width: 192px; height: 125px;
  transform: rotateZ(7.6deg) rotateX(-90deg);
  background:
    radial-gradient(circle at 30% 30%, #fff 0 5%, var(--c2) 6% 10%, transparent 11%),
    radial-gradient(circle at 30% 70%, #fff 0 5%, var(--c2) 6% 10%, transparent 11%),
    radial-gradient(circle at 15% 50%, #fff 0 5%, var(--c) 6% 10%, transparent 11%),
    linear-gradient(90deg, #0c2a45, var(--c) 160%);
  box-shadow: 0 0 30px rgb(255 255 255 / .15);
}
.pin-front {              /* façade, porte du monnayeur */
  left: 250px; top: calc(var(--floor-y) - 156px);
  width: 125px; height: 44px;
  transform: rotateY(90deg);
  background:
    linear-gradient(90deg, transparent 38%, #c9ccd3 38% 62%, transparent 62%) 0 6px / 100% 30px no-repeat,
    var(--c);
}

/* Enseigne néon au fond de la salle */
.backwall {
  width: 1400px; height: 760px;
  left: -700px; top: calc(var(--floor-y) - 760px);
  display: grid; place-items: center; align-content: center;
  background: radial-gradient(ellipse at 50% 45%, #13314a, #060e19 70%);
}
.neon {
  font-family: var(--font-display);
  font-size: 170px; line-height: 1;
  color: #ffd7d3;
  text-shadow: 0 0 6px #fff, 0 0 18px var(--red), 0 0 46px var(--red), 0 0 90px var(--red);
}
.neon-sub {
  font: 700 34px var(--font-text);
  color: var(--gold-hi);
  text-shadow: 0 0 12px var(--gold), 0 0 30px var(--gold);
  margin-top: 18px;
}

/* Téléphones et tablettes : décor figé (image de la salle rendue en 3D, voir site.js) */
.hall.hall-static {
  background: #07111f url("../img/salle-mobile.webp?v=1") center 40% / cover no-repeat;
}

/* Voile : la salle reste une ambiance, pas une distraction */
.hall::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 0 18%, rgb(7 17 31 / .55) 70%),
    linear-gradient(180deg, rgb(7 17 31 / .25), rgb(7 17 31 / .1) 50%, rgb(7 17 31 / .5));
}

/* =========================================================
   Bandeaux de contenu
   ========================================================= */
.band {
  background: rgb(12 29 48 / var(--band-alpha));
  border-block: 1px solid var(--night-3);
  padding-block: var(--sp-5);
  margin-top: var(--aisle);
}
.band-dark { background: rgb(7 17 31 / var(--band-alpha)); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  font: 700 var(--fs-1)/1.2 var(--font-text);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); color: #fff; }
.btn-ghost { border-color: var(--cream-soft); color: var(--cream); background: rgb(7 17 31 / .6); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-small { min-height: 40px; padding: .4em 1em; font-size: var(--fs-0); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(7 17 31 / .96);
  border-bottom: 1px solid var(--night-3);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2);
  min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--cream); text-decoration: none;
}
.brand img { width: 52px; height: 52px; }
.brand-name { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.03em; }
.brand:hover { color: var(--gold-hi); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5em;
  background: none; border: 2px solid var(--night-3); color: var(--cream);
  border-radius: 999px; padding: .5em 1em; min-height: 44px;
  font: 700 var(--fs-0) var(--font-text); cursor: pointer;
}
.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--night-2);
  border-bottom: 1px solid var(--night-3);
}
.site-nav ul { list-style: none; margin: 0; padding: var(--sp-2) var(--gutter); }
.site-nav a {
  display: block; padding: .65rem 0;
  color: var(--cream); text-decoration: none; font-weight: 700;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-hi); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open {
    display: block; position: static; background: none; border: 0;
  }
  .site-nav ul { display: flex; align-items: center; gap: var(--sp-3); padding: 0; }
  .site-nav a { padding: .4rem 0; }
  .site-nav .nav-cta a {
    background: var(--red); color: #fff; padding: .55rem 1.25rem; border-radius: 999px;
  }
  .site-nav .nav-cta a:hover { background: var(--red-deep); color: #fff; }
}

/* ---------- Hero : posé directement dans la salle ---------- */
.hero { padding-block: var(--sp-5) var(--sp-4); }
.hero .wrap { display: grid; gap: var(--sp-4); align-items: center; }
.hero-text {
  background: rgb(7 17 31 / .82);
  border-left: 4px solid var(--red);
  padding: var(--sp-4) var(--sp-3);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.hero h1 {
  font-size: var(--fs-4);
  margin-bottom: var(--sp-3);
  text-shadow: 3px 3px 0 var(--red-deep);
}
.hero-lead { font-size: var(--fs-2); line-height: 1.5; }
.hero-note { color: var(--cream-soft); font-size: var(--fs-0); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-block: var(--sp-3); }
.hero-emblem { justify-self: center; width: min(100%, 26rem); filter: drop-shadow(0 20px 40px rgb(0 0 0 / .6)); }

@media (min-width: 960px) {
  .hero { padding-block: var(--sp-5); }
  .hero .wrap { grid-template-columns: 1.2fr 0.8fr; gap: var(--sp-5); }
}

/* ---------- En-têtes de section ---------- */
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--sp-1) var(--sp-3);
  margin-bottom: var(--sp-4);
}
.section-head h2 { margin: 0; }
.section-note { color: var(--cream-soft); margin: calc(var(--sp-3) * -1) 0 var(--sp-3); font-size: var(--fs-0); }
.organizer-note { color: var(--cream-soft); font-size: var(--fs-0); margin-bottom: var(--sp-3); }

/* ---------- Le sélecteur de juke-box (événements) ---------- */
.selector {
  padding: clamp(12px, 2vw, 22px);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--chrome-hi), var(--chrome) 30%, var(--chrome-lo) 70%, var(--chrome));
  box-shadow: 0 1px 0 rgb(255 255 255 / .4) inset, 0 18px 40px rgb(0 0 0 / .45);
}
.selector-window {
  background: #050a12;
  border-radius: 8px;
  padding: clamp(12px, 2vw, 20px);
  display: grid; gap: clamp(10px, 1.6vw, 16px);
  box-shadow: inset 0 0 0 2px #000, inset 0 10px 30px rgb(0 0 0 / .6);
  perspective: 800px;
}
@media (min-width: 760px) {
  .selector-window { grid-template-columns: 1fr 1fr; }
}

.strip {
  display: grid;
  grid-template-columns: 4.8rem 1fr;
  background: var(--cream);
  color: var(--strip-ink);
  text-decoration: none;
  border-radius: 3px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.strip:hover, .strip:focus-visible {
  color: var(--strip-ink);
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgb(226 174 79 / .5);
}
.strip-key {             /* la touche de sélection : la date */
  background: var(--strip-ink);
  color: var(--cream);
  display: grid; place-content: center; text-align: center;
  padding: .5rem .25rem;
  line-height: 1;
}
.strip-key .d { font-family: var(--font-display); font-size: 2rem; }
.strip-key .m { font-weight: 700; font-size: .8rem; margin-top: .35rem; }

.strip-body { text-align: center; display: grid; align-content: center; }
.strip-title, .strip-place {
  display: block;
  padding: .55rem .9rem;
  line-height: 1.25;
}
.strip-title { font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; }
.strip-place { font-size: .88rem; }
.strip-band {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .25rem .6rem;
  background: var(--red);
  color: #fff;
  padding: .3rem .9rem;
  font-size: .85rem; font-weight: 700;
  border-block: 2px solid var(--red-deep);
}
.strip-band .flag {
  background: var(--cream); color: var(--red-deep);
  padding: 0 .45rem; border-radius: 2px; font-size: .75rem;
}
.strip--expo .strip-band { background: var(--petrol); border-color: #003a50; }
.strip--expo .strip-band .flag { color: #003a50; }
.strip--rencontre .strip-band { background: var(--gold); color: var(--strip-ink); border-color: #a87a2a; }
.strip--rencontre .strip-band .flag { background: var(--strip-ink); color: var(--gold-hi); }

.strip--slot {
  background: transparent;
  border: 2px dashed #3a4a5c;
  color: var(--cream-soft);
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 8rem;
  text-align: center;
  padding: var(--sp-2);
}
.strip--slot:hover, .strip--slot:focus-visible { color: var(--gold-hi); border-color: var(--gold); box-shadow: none; }
.strip--slot b { display: block; color: var(--cream); }

.selector-legend {
  margin-top: var(--sp-2);
  display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3);
  color: var(--cream-soft); font-size: var(--fs-0);
}
.selector-legend span::before {
  content: ""; display: inline-block; width: .8em; height: .8em; border-radius: 2px;
  margin-right: .45em; vertical-align: -.05em; background: var(--red);
}
.selector-legend .l-expo::before { background: var(--petrol); }
.selector-legend .l-rencontre::before { background: var(--gold); }
.selector-legend .l-autre::before { background: var(--chrome-lo); }

/* ---------- L'association ---------- */
.intro-grid { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-5); }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
.intro-grid .big { font-size: var(--fs-2); line-height: 1.5; }
.source { color: var(--cream-soft); font-size: var(--fs-0); white-space: nowrap; }
.intro-grid .ph { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.illustration { margin: 0; }
.illustration img {
  width: 100%; height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--night-3);
  box-shadow: 0 18px 40px rgb(0 0 0 / .45);
}
.illustration figcaption { margin-top: .4rem; font-size: .8rem; color: var(--cream-soft); text-align: right; }

.missions {
  display: grid; gap: var(--sp-4);
  list-style: none; margin: 0 0 var(--sp-4); padding: 0;
}
@media (min-width: 760px) { .missions { grid-template-columns: repeat(3, 1fr); } }
.missions li { border-top: 3px solid var(--gold); padding-top: var(--sp-2); }
.missions h3 { font-size: 1.2rem; }
.missions p { color: var(--cream-soft); margin: 0; }

/* ---------- Communauté ---------- */
.community { display: grid; gap: var(--sp-3); }
@media (min-width: 760px) { .community { grid-template-columns: 1fr 1fr; } }
.community-item {
  border: 1px solid var(--night-3);
  border-top: 4px solid var(--petrol);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-3);
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--night);
}
.community-item.fb { border-top-color: var(--red); }
.community-item p { color: var(--cream-soft); flex: 1; }

/* ---------- Soutenir : la plaque de monnayeur ---------- */
.support { display: grid; gap: var(--sp-4); align-items: center; }
@media (min-width: 900px) { .support { grid-template-columns: 20rem 1fr; gap: var(--sp-5); } }

.coin-plate {
  justify-self: center;
  width: 100%; max-width: 20rem;
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(135deg, var(--chrome-hi), var(--chrome) 35%, var(--chrome-lo) 65%, var(--chrome-hi));
}
.coin-plate-inner {
  background: #050a12;
  border-radius: 6px;
  padding: var(--sp-3) var(--sp-3) var(--sp-4);
  text-align: center;
}
.coin-price {
  background: var(--red);
  color: #fff;
  border-radius: 3px;
  padding: .75rem .5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.1;
  box-shadow: 0 0 18px rgb(211 49 42 / .6);
}
.coin-price small { display: block; font-family: var(--font-text); font-weight: 700; font-size: .85rem; margin-top: .35rem; }
.coin-slot {
  width: 12px; height: 64px; margin: var(--sp-3) auto var(--sp-3);
  border-radius: 6px;
  background: #000;
  box-shadow: 0 0 0 5px var(--chrome-lo), 0 0 0 7px var(--chrome-hi);
}
.coin-motto { color: var(--gold-hi); font-weight: 700; margin: 0 auto; }

.ways { list-style: none; margin: var(--sp-3) 0; padding: 0; display: grid; gap: var(--sp-2); }
.ways li {
  display: grid; grid-template-columns: 7rem 1fr; gap: var(--sp-2);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--night-3);
}
.ways span { color: var(--cream-soft); }
@media (max-width: 480px) { .ways li { grid-template-columns: 1fr; gap: .2rem; } }
.support-note { color: var(--cream-soft); font-size: var(--fs-0); }

/* ---------- Partenaires ---------- */
.partners { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .partners { grid-template-columns: repeat(3, 1fr); } }
.partner {
  border: 1px solid var(--night-3);
  border-radius: var(--radius);
  padding: var(--sp-3);
  background: var(--night);
}
.partner h3 { color: var(--gold); }
.partner p { color: var(--cream-soft); font-size: var(--fs-0); }
.partner.ph { min-height: 10rem; }

/* ---------- Pied de page : on arrive au fond de la salle ---------- */
.site-footer {
  margin-top: 70vh;          /* dernier bout d'allée, l'enseigne se rapproche */
  border-top: 4px solid var(--red);
  background: rgb(5 10 18 / .97);
  padding-block: var(--sp-4) var(--sp-3);
  font-size: var(--fs-0);
  color: var(--cream-soft);
}
.footer-grid { display: grid; gap: var(--sp-3); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.footer-brand { display: flex; gap: var(--sp-2); align-items: flex-start; }
.footer-brand img { width: 64px; height: 64px; flex: none; }
.footer-brand p { margin: 0 0 .3rem; }
.site-footer .brand-name { color: var(--cream); font-size: 1.15rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold-hi); }

/* =========================================================
   Pages intérieures
   ========================================================= */
.page-head { padding-block: var(--sp-5) var(--sp-2); }
.page-head .hero-text { max-width: 52rem; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); text-shadow: 3px 3px 0 var(--red-deep); }
.page-head .hero-lead { margin: 0; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--sp-4); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 var(--sp-2); }
.prose li { margin-bottom: .3em; }
.ph-text { color: var(--cream-soft); font-style: italic; }

.quote {
  margin: 0 0 var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-left: 4px solid var(--gold);
  background: rgb(226 174 79 / .08);
  font-size: var(--fs-2);
  line-height: 1.5;
}
.quote p { margin-bottom: .4rem; }
.quote footer { font-size: var(--fs-0); color: var(--cream-soft); }

.board, .archive { list-style: none; margin: 0; padding: 0; }

/* Frise chronologique (page L'association) */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.timeline li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--sp-3);
  position: relative; padding-bottom: var(--sp-4);
}
.timeline li::before {           /* le fil qui relie les dates */
  content: ""; position: absolute; left: 2.6rem; top: 2.6rem; bottom: 0;
  width: 2px; background: var(--night-3);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.tl-year {
  font-family: var(--font-display); font-size: 1.35rem; color: var(--night);
  background: var(--gold); border-radius: 999px;
  height: 2.6rem; display: grid; place-items: center;
  position: relative; z-index: 1;
}
.timeline li:last-child .tl-year { background: var(--red); color: #fff; }
.timeline h3 { font-size: 1.2rem; margin: .45rem 0 .4rem; }
.timeline p { color: var(--cream-soft); margin: 0; }
@media (max-width: 480px) { .timeline li { grid-template-columns: 4.6rem 1fr; gap: var(--sp-2); } .timeline li::before { left: 2.2rem; } .tl-year { font-size: 1.1rem; } }
.board { display: grid; gap: var(--sp-2); }
@media (min-width: 760px) { .board { grid-template-columns: repeat(2, 1fr); } }
.board li {
  display: flex; flex-direction: column;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--night-3); border-radius: var(--radius);
  background: var(--night);
}
.board span { color: var(--cream-soft); }

.archive-year { color: var(--gold); margin-top: var(--sp-3); }
.archive li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem var(--sp-2);
  padding-block: .75rem;
  border-bottom: 1px solid var(--night-3);
}
.archive a { font-weight: 700; }
.archive span { color: var(--cream-soft); }

.after-list { margin-top: var(--sp-4); }

/* Fiche événement */
.back { margin: 0 0 var(--sp-2); }
.back a::before { content: "‹ "; }
.event-head { max-width: 52rem; grid-template-columns: 6rem 1fr; }
.event-head:hover { transform: none; box-shadow: none; }
.event-head .strip-key .d { font-size: 2.6rem; }
.event-head .strip-title {
  font-family: var(--font-display); font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); margin: 0; padding: var(--sp-2) var(--sp-3);
  text-shadow: none; color: var(--strip-ink);
}
.event-head .strip-place { font-size: 1rem; padding: .7rem var(--sp-2); }

.event-layout { display: grid; gap: var(--sp-4); }
@media (min-width: 900px) { .event-layout { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.event-image { margin: 0; }
.event-image img { border-radius: var(--radius); border: 1px solid var(--night-3); }

.facts { margin: 0 0 var(--sp-3); display: grid; gap: var(--sp-2); }
.facts div { display: grid; grid-template-columns: 7rem 1fr; gap: var(--sp-2); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--night-3); }
.facts dt { font-weight: 700; color: var(--gold); }
.facts dd { margin: 0; }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: .2rem; } }

.notice {
  padding: var(--sp-2) var(--sp-3);
  border-left: 4px solid var(--gold);
  background: rgb(226 174 79 / .1);
}

/* Formulaires */
.contact-layout { display: grid; gap: var(--sp-4); }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.4fr .6fr; align-items: start; } }
.contact-aside h2 { font-size: 1.2rem; }
.form { display: grid; gap: var(--sp-3); max-width: 40rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; color: var(--cream);
  background: var(--night);
  border: 2px solid var(--night-3);
  border-radius: var(--radius);
  padding: .7rem .85rem;
  min-height: 48px;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--gold); outline-offset: 1px; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: .75rem; }
.field-check input { width: 1.3rem; height: 1.3rem; min-height: 0; margin-top: .2rem; accent-color: var(--red); }
.field-check label { font-weight: 400; color: var(--cream-soft); }
.form .btn { justify-self: start; }

.is-disabled { opacity: .65; cursor: not-allowed; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: #ff9b94; font-weight: 700; font-size: var(--fs-0); margin: 0; }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-check .field-error { grid-column: 2; }
.notice h2 { font-size: 1.3rem; margin-bottom: .4rem; }
.notice ul { margin: .4rem 0 0; padding-left: 1.2em; }
.notice p:last-child { margin-bottom: 0; }
.notice-ok { border-color: #4caf72; background: rgb(76 175 114 / .14); }
.notice-error { border-color: var(--red); background: rgb(211 49 42 / .16); }
.partner-logo { width: auto; max-width: 100%; height: 64px; object-fit: contain; margin-bottom: var(--sp-2); }
.strip--autre .strip-band { background: var(--chrome-lo); border-color: #454b55; }
.strip--autre .strip-band .flag { color: #33373e; }

/* ---------- Mouvement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .selector-window .strip { animation: strip-in .55s cubic-bezier(.2,.7,.2,1) backwards; }
  .selector-window .strip:nth-child(2) { animation-delay: .08s; }
  .selector-window .strip:nth-child(3) { animation-delay: .16s; }
  .selector-window .strip:nth-child(4) { animation-delay: .24s; }
  @keyframes strip-in { from { opacity: 0; transform: rotateX(-70deg); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
