/* ════════════════════════════════════════════════════════════════════════
   Auralys RP — feuille de style unique.

   Palette « or et verre fumé » reprise des menus de mainframe
   (resources/mainframe/web/src/styles/goldGlass.module.css) et des sites
   legal-web / boutique-web : même or, mêmes panneaux translucides, pour que
   le site et le jeu se ressemblent.

   Typographie éditoriale : Barlow Condensed pour les titres (capitales très
   serrées), Barlow pour le texte, JetBrains Mono pour les sur-titres et les
   chiffres. Polices auto-hébergées, voir fonts.css.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --fond: #090909;
  --fond-doux: #0e0e0f;
  --surface: #131313;
  --panneau: rgba(18, 18, 18, 0.72);
  --verre: linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 46%), var(--panneau);

  --ligne: rgba(255, 255, 255, 0.075);
  --ligne-forte: rgba(255, 255, 255, 0.145);

  --encre: #f4f2ed;
  --encre-douce: #d5d1c8;
  --encre-faible: #a39e94;

  --or: #f6da97;
  --or-fort: #d4a74f;
  --or-sombre: #2a1f08;
  --or-rgb: 246, 218, 151;
  --or-voile: rgba(var(--or-rgb), 0.1);

  --ok: #65dfa7;
  --alerte: #fa7d82;

  --police: 'Barlow', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --police-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --police-mono: 'JetBrains Mono', ui-monospace, monospace;

  --rayon: 12px;
  --rayon-petit: 9px;
  --ombre: 0 22px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);

  --largeur: 1340px;
  --marge: clamp(20px, 5vw, 64px);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  /* Les ancres du règlement doivent s'arrêter sous l'en-tête collant. */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 10% -10%, rgba(var(--or-rgb), 0.1), transparent 40rem),
    radial-gradient(ellipse at 90% 18%, rgba(212, 167, 79, 0.055), transparent 44rem),
    var(--fond);
  color: var(--encre);
  font: 400 16px/1.65 var(--police);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }

::selection { background: rgba(var(--or-rgb), 0.26); color: var(--encre); }

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
}

.saut-contenu {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--rayon-petit);
  background: var(--or);
  color: var(--or-sombre);
  font-weight: 600;
  transform: translateY(-200%);
}
.saut-contenu:focus { transform: none; }

/* ── Briques typographiques ───────────────────────────────────────────── */

.display {
  font-family: var(--police-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

/* Deuxième ligne de titre, en lettres creuses : le contraste du trait reste
   suffisant pour rester lisible sur fond sombre. */
.display-contour {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 218, 151, 0.62);
}

.kicker {
  margin: 0;
  color: var(--or-fort);
  font-family: var(--police-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.kicker::before { content: '//'; margin-right: 0.65rem; color: var(--encre-faible); }
.kicker--vif { color: var(--or); }

.tabular { font-family: var(--police-mono); font-variant-numeric: tabular-nums; }
.est-or { color: var(--or); }

.filet {
  height: 2px;
  max-width: 440px;
  background: linear-gradient(90deg, var(--or) 0 20%, var(--ligne-forte) 20% 100%);
}

.chapo { color: var(--encre-douce); font-size: 1.125rem; line-height: 1.7; }
.chapo--faible { color: var(--encre-faible); font-size: 1rem; }

.titre-section { margin-top: 1.4rem; font-size: clamp(2.6rem, 5.5vw, 4.6rem); }
.titre-page { margin-top: 1.4rem; font-size: clamp(3rem, 8vw, 6rem); }

.etiquette {
  padding: 4px 9px;
  border: 1px solid var(--ligne-forte);
  border-radius: 999px;
  color: var(--encre-faible);
  font-family: var(--police-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.etiquette--vive { border-color: rgba(var(--or-rgb), 0.35); background: var(--or-voile); color: var(--or); }

.conteneur { width: min(var(--largeur), 100%); margin: 0 auto; padding-inline: var(--marge); }

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--bordee {
  border-block: 1px solid var(--ligne);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 60%), rgba(9, 9, 9, 0.5);
}
.section__entete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section__chapo { max-width: 46ch; }
.section__note { max-width: 70ch; margin-bottom: 28px; }

/* ── Panneaux et boutons ──────────────────────────────────────────────── */

.panneau {
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--verre);
  box-shadow: var(--ombre);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 24px;
  border: 1px solid transparent;
  border-radius: var(--rayon-petit);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.bouton .icone { width: 18px; height: 18px; }

.bouton--or {
  border-color: rgba(var(--or-rgb), 0.5);
  background: linear-gradient(135deg, var(--or), var(--or-fort));
  color: var(--or-sombre);
  box-shadow: 0 12px 34px rgba(var(--or-rgb), 0.14);
}
.bouton--or:hover { transform: translateY(-2px); background: linear-gradient(135deg, #fbe7b6, var(--or)); }

.bouton--fantome {
  border-color: var(--ligne-forte);
  background: rgba(9, 9, 9, 0.45);
  color: var(--encre);
}
.bouton--fantome:hover { transform: translateY(-2px); border-color: rgba(var(--or-rgb), 0.45); color: var(--or); }

.bouton.est-inactif {
  cursor: not-allowed;
  opacity: 0.4;
  filter: grayscale(0.6);
  transform: none;
}

.groupe-boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.groupe-boutons--colonne { flex-direction: column; align-items: stretch; }
.groupe-boutons--serre { margin-top: 16px; }

.icone { width: 20px; height: 20px; flex: none; }

/* ── En-tête ──────────────────────────────────────────────────────────── */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--ligne);
  background: rgba(9, 9, 9, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: inset 0 2px 0 rgba(var(--or-rgb), 0.26);
}
.entete__barre {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  width: min(var(--largeur), 100%);
  height: 76px;
  margin: 0 auto;
  padding-inline: var(--marge);
}

.marque { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.marque__sigle { width: 40px; height: 40px; }
.marque__texte { display: flex; flex-direction: column; line-height: 1; }
.marque__nom { font-size: 1.45rem; letter-spacing: 0.02em; }
.marque__sous {
  margin-top: 4px;
  color: var(--or-fort);
  font-family: var(--police-mono);
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.nav-principale { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.lien-nav {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding-inline: 14px;
  border: 1px solid transparent;
  border-radius: var(--rayon-petit);
  color: var(--encre-faible);
  font-family: var(--police-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: 160ms ease;
}
.lien-nav:hover { background: rgba(255, 255, 255, 0.04); color: var(--encre-douce); }
.lien-nav.est-actif { border-color: rgba(var(--or-rgb), 0.24); background: var(--or-voile); color: var(--or); }
.lien-nav.est-surligne:not(.est-actif) { color: var(--or-fort); }
.lien-nav .icone { width: 17px; height: 17px; color: var(--or); }

.entete__actions { display: flex; align-items: center; gap: 12px; }
.entete__actions .bouton { min-height: 42px; padding-inline: 18px; font-size: 0.7rem; }

/* Pastille de statut : le point passe au vert et bat quand le serveur répond. */
.statut {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding-inline: 14px;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-petit);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--police-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.statut__point {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--encre-faible);
}
.statut[data-etat='en-ligne'] .statut__point { background: var(--ok); box-shadow: 0 0 10px rgba(101, 223, 167, 0.5); }
.statut[data-etat='en-ligne'] .statut__point::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok);
  animation: pulsation 2s ease-out infinite;
  content: '';
}
.statut[data-etat='hors-ligne'] .statut__point { background: var(--alerte); }
.statut__joueurs { padding-left: 10px; border-left: 1px solid var(--ligne-forte); color: var(--or); }

.statut--large { width: 100%; margin-top: 14px; min-height: 48px; font-size: 0.74rem; }

@keyframes pulsation {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 0; transform: scale(3); }
}

/* Menu mobile : un <details>, donc fonctionnel sans JavaScript. */
.menu-mobile { display: none; margin-left: auto; }
.menu-mobile__bouton {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-petit);
  background: rgba(255, 255, 255, 0.03);
  color: var(--encre);
  cursor: pointer;
  list-style: none;
}
.menu-mobile__bouton::-webkit-details-marker { display: none; }
.menu-mobile .icone--ferme { display: none; }
.menu-mobile[open] .icone--ouvert { display: none; }
.menu-mobile[open] .icone--ferme { display: block; }
.menu-mobile__panneau {
  position: absolute;
  inset-inline: 0;
  top: 76px;
  padding: 14px var(--marge) 24px;
  border-bottom: 1px solid var(--ligne);
  /* Fond opaque, et non translucide : par-dessus le hero, le titre géant
     restait lisible au travers du panneau. */
  background: linear-gradient(180deg, #0c0c0c, #080808);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
.menu-mobile__panneau .lien-nav {
  display: flex;
  min-height: 54px;
  border-bottom: 1px solid var(--ligne);
  border-radius: 0;
  font-size: 0.78rem;
}
/* Pages d'aide : séparées des pages principales par un filet. */
.menu-mobile__annexes { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ligne); }
.lien-nav--annexe { color: var(--encre-faible); }
.lien-nav--annexe .icone { color: var(--or-fort); }

.menu-mobile__actions { display: grid; gap: 10px; margin-top: 18px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(880px, 100vh);
  overflow: hidden;
  isolation: isolate;
}
.hero--page { min-height: min(680px, 86vh); }

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url('/assets/ville.jpg') center / cover no-repeat;
  transform: scale(1.03);
}
.hero__image--school { background-position: 62% 72%; }

.hero__voile {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(9, 9, 9, 0.94) 0%, rgba(9, 9, 9, 0.72) 46%, rgba(9, 9, 9, 0.24) 78%, rgba(9, 9, 9, 0.56) 100%);
}
.hero__voile-bas {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.5) 0%, transparent 38%, var(--fond) 100%);
}
.hero__filet { position: absolute; inset-inline: 0; top: 0; height: 1px; background: rgba(var(--or-rgb), 0.5); }

.hero__contenu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  align-items: end;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(80px, 10vw, 120px) clamp(48px, 6vw, 80px);
}

.hero__surtitre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--encre-douce);
  font-family: var(--police-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__surtitre .tiret { width: 34px; height: 1px; background: var(--ligne-forte); }

.hero__titre { margin-top: 28px; font-size: clamp(4.5rem, 15vw, 11rem); line-height: 0.76; }
.hero__titre .display-contour { margin-left: 0.5em; font-size: 0.54em; letter-spacing: 0.06em; }
.hero__regle { margin-top: 32px; }

.hero__aside { padding: 22px; }
.hero__aside-texte { margin-top: 16px; color: var(--encre-faible); font-size: 0.95rem; }
.hero__dates { margin-top: 14px; font-family: var(--police-display); font-size: 1.6rem; text-transform: uppercase; letter-spacing: -0.01em; }
.hero__compte { margin-top: 6px; color: var(--or); font-family: var(--police-mono); font-size: 0.78rem; letter-spacing: 0.08em; }

.hero__bas {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 28px;
  border-top: 1px solid var(--ligne);
}
.hero__phrase { max-width: 60ch; color: var(--encre-douce); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero__bas .groupe-boutons { margin-top: 0; justify-content: flex-end; }

.hero__explorer {
  position: absolute;
  right: var(--marge);
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--encre-faible);
  font-family: var(--police-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__explorer:hover { color: var(--or); }
.hero__explorer .icone { animation: flottement 2.2s ease-in-out infinite; }

@keyframes flottement {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ── Bandeau de chiffres ──────────────────────────────────────────────── */

.chiffres {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  /* Chevauche le hero : le bandeau sert de couture entre l'image et la page. */
  margin-top: -44px;
  padding: 0;
  border: 1px solid var(--ligne-forte);
  border-radius: var(--rayon);
  background: rgba(13, 13, 14, 0.94);
  box-shadow: var(--ombre);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.chiffres--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chiffres__case { position: relative; padding: 30px 24px 26px; text-align: center; }
.chiffres__case + .chiffres__case { border-left: 1px solid var(--ligne); }
.chiffres__index {
  position: absolute;
  top: 12px;
  left: 14px;
  color: var(--encre-faible);
  font-family: var(--police-mono);
  font-size: 0.56rem;
  opacity: 0.7;
}
.chiffres__valeur { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; }
.chiffres__valeur--texte { font-family: var(--police-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); text-transform: uppercase; }
.chiffres__label {
  margin-top: 8px;
  color: var(--encre-faible);
  font-family: var(--police-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.chiffres__trait { display: block; width: 28px; height: 2px; margin: 14px auto 0; background: var(--or); }

/* ── Mise en avant de l'événement ─────────────────────────────────────── */

.evenement {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  padding-block: clamp(56px, 7vw, 96px);
  border-block: 1px solid rgba(var(--or-rgb), 0.18);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(var(--or-rgb), 0.11), transparent 32rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 55%),
    rgba(12, 11, 9, 0.7);
}
.evenement__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.evenement__titre { margin-top: 1.2rem; font-size: clamp(2.8rem, 6vw, 5.2rem); }
.evenement__accroche { max-width: 58ch; margin-top: 24px; color: var(--encre-douce); font-size: 1.1rem; }

.evenement__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.evenement__chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--encre-douce);
  font-size: 0.82rem;
}
.evenement__chips .icone { width: 16px; height: 16px; color: var(--or); }

.evenement__fiche { padding: 8px 22px; }
.evenement__fiche > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-block: 16px;
}
.evenement__fiche > div + div { border-top: 1px solid var(--ligne); }
.evenement__fiche dt {
  color: var(--encre-faible);
  font-family: var(--police-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.evenement__fiche dd {
  margin: 0;
  font-family: var(--police-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-align: right;
}

/* ── Piliers et activités ─────────────────────────────────────────────── */

.piliers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.piliers--deux { margin-top: 32px; }

.pilier {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  padding: 28px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.pilier:hover { border-color: rgba(var(--or-rgb), 0.3); transform: translateY(-2px); }
.pilier__haut { display: flex; align-items: flex-start; justify-content: space-between; }
.pilier__icone {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(var(--or-rgb), 0.28);
  border-radius: var(--rayon-petit);
  background: linear-gradient(150deg, rgba(var(--or-rgb), 0.15), rgba(212, 167, 79, 0.03));
  color: var(--or);
  transition: 200ms ease;
}
.pilier:hover .pilier__icone, .activite:hover .pilier__icone {
  background: linear-gradient(135deg, var(--or), var(--or-fort));
  color: var(--or-sombre);
}
.pilier__index { color: var(--encre-faible); font-family: var(--police-mono); font-size: 0.72rem; letter-spacing: 0.16em; }
.pilier__titre { margin-top: 34px; font-size: 1.9rem; }
.pilier p { margin-top: 12px; color: var(--encre-douce); }
.pilier__soulignement {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--or), var(--or-fort));
  transition: width 420ms ease;
}
.pilier:hover .pilier__soulignement { width: 100%; }

.activites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.activite { padding: 26px; transition: border-color 200ms ease, transform 200ms ease; }
.activite:hover { border-color: rgba(var(--or-rgb), 0.3); transform: translateY(-2px); }
.activite__haut { display: flex; align-items: flex-start; justify-content: space-between; }
.activite__titre { margin-top: 26px; font-size: 1.7rem; }
.activite__resume { margin-top: 10px; color: var(--encre-douce); }
.activite__details { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ligne); }
.activite__details li {
  position: relative;
  padding-left: 18px;
  color: var(--encre-faible);
  font-size: 0.92rem;
}
.activite__details li + li { margin-top: 9px; }
.activite__details li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--or);
  content: '';
}

/* ── Repères ──────────────────────────────────────────────────────────── */

.reperes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--ligne);
  overflow: hidden;
}
.reperes li {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 22px;
  background: rgba(13, 13, 14, 0.92);
}
.reperes__cle {
  color: var(--encre-faible);
  font-family: var(--police-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.reperes__valeur { font-family: var(--police-display); font-size: 1.35rem; text-transform: uppercase; }

/* ── Étapes ───────────────────────────────────────────────────────────── */

.acces { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); }
.acces__texte p { margin-top: 20px; color: var(--encre-douce); }
.acces__texte strong { color: var(--encre); font-weight: 600; }
.acces .etapes { border-left: 1px solid var(--ligne); padding-left: clamp(24px, 3vw, 48px); }

.etapes li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding-block: 26px;
  border-top: 1px solid var(--ligne);
}
.etapes li:first-child { border-top: 0; padding-top: 0; }
.etapes__numero { color: rgba(var(--or-rgb), 0.75); font-size: 1.9rem; }
.etapes h2, .etapes h3 { font-size: 1.6rem; }
.etapes p { margin-top: 8px; color: var(--encre-douce); }
.etapes--larges li { grid-template-columns: 90px minmax(0, 1fr); padding-block: 34px; }
.etapes--larges h2 { font-size: 2.1rem; }

/* ── Rappels ──────────────────────────────────────────────────────────── */

.rappels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rappels li {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--ligne);
  border-left: 2px solid rgba(var(--or-rgb), 0.5);
  border-radius: var(--rayon);
  background: var(--verre);
}
.rappels__index { color: var(--or); font-size: 0.9rem; }
.rappels p { color: var(--encre-douce); }
.rappels strong { color: var(--encre); font-weight: 600; }
.rappels--serres { margin-top: 36px; }

/* ── Appel final ──────────────────────────────────────────────────────── */

.appel { position: relative; overflow: hidden; isolation: isolate; }
.appel__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/assets/ville.jpg') center / cover no-repeat;
}
.appel__voile {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--fond) 0%, rgba(9, 9, 9, 0.88) 46%, rgba(9, 9, 9, 0.55) 100%);
}
.appel__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  min-height: 520px;
  padding-block: clamp(56px, 8vw, 96px);
}
.appel__titre { margin-top: 1.2rem; font-size: clamp(3rem, 7vw, 6rem); }
.appel__carte { padding: 30px; }
.appel__carte p { color: var(--encre-douce); font-size: 1.05rem; }
.appel__carte .bouton { width: 100%; margin-top: 14px; }
.appel__bouton { margin-top: 26px !important; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 10px; }
.faq__item { padding: 0; }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-family: var(--police-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chevron { color: var(--or); transition: transform 200ms ease; }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__item p { padding: 0 24px 22px; color: var(--encre-douce); }

/* ── En-tête de page interne ──────────────────────────────────────────── */

.entete-page { padding-block: clamp(56px, 8vw, 104px) clamp(24px, 3vw, 40px); }
.entete-page .filet { margin-top: 28px; }
.entete-page__chapo { max-width: 70ch; margin-top: 28px; }

/* ── Guide technique (page Rejoindre) ─────────────────────────────────── */

.methodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.methode {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--verre);
}
.methode__numero { color: rgba(var(--or-rgb), 0.75); font-size: 1.4rem; }
.methode__corps > * + * { margin-top: 12px; }
.methode__titre { font-size: 1.5rem; }

.commande { overflow-x: auto; }
.commande .code-enligne {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.aide__corps { max-width: 80ch; }
.aide__corps > * + * { margin-top: 14px; }

/* Les quinze cas de non-remboursement : une colonne lisible, pas la largeur
   de l'écran — on y lit un cas, pas un tableau. */
.aide__cas { display: grid; gap: 8px; max-width: 80ch; margin-top: 32px; }
.aide__compte {
  color: var(--encre-faible);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fiches { display: grid; gap: 10px; margin-top: 32px; }
.fiche {
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--verre);
  scroll-margin-top: 96px;
}
.fiche[open] { border-color: rgba(var(--or-rgb), 0.3); }
.fiche > summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
.fiche > summary::-webkit-details-marker { display: none; }
.fiche__icone {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(var(--or-rgb), 0.24);
  border-radius: var(--rayon-petit);
  background: var(--or-voile);
  color: var(--or);
}
.fiche__intitule { display: grid; gap: 4px; min-width: 0; }
.fiche__titre {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.012em;
}
.fiche__resume { color: var(--encre-faible); font-size: 0.94rem; }
.fiche__chevron { flex: none; margin-left: auto; color: var(--or); transition: transform 180ms ease; }
.fiche[open] .fiche__chevron { transform: rotate(180deg); }
.fiche__corps { padding: 0 24px 24px; }
.fiche__corps > * + * { margin-top: 14px; }

/* ── Articles numérotés (annexe de l'événement, page School RP) ───────── */

.articles { display: grid; gap: 10px; }
.article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--verre);
}
.article__ref { color: var(--or); font-size: 0.85rem; letter-spacing: 0.06em; }
.article__titre {
  font-family: var(--police-display);
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.article p { margin-top: 8px; color: var(--encre-douce); }
.articles--compacts .article { background: rgba(255, 255, 255, 0.015); }

/* ── Règlement ────────────────────────────────────────────────────────── */

.reglement {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

/* Sommaire : 60 chapitres n'entrent pas dans un écran, la liste défile donc
   dans le panneau plutôt que d'allonger la page. */
.sommaire {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 128px);
  padding: 20px 10px 16px 20px;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--verre);
}
.sommaire__corps {
  flex: 1;
  min-height: 0;
  margin-top: 14px;
  padding-right: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--or-rgb), 0.3) transparent;
}
.sommaire__corps::-webkit-scrollbar { width: 6px; }
.sommaire__corps::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(var(--or-rgb), 0.28);
}

.sommaire__pole + .sommaire__pole { margin-top: 4px; }
.sommaire__pole[hidden] { display: none; }
.sommaire__pole > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 0;
  border-radius: var(--rayon-petit);
  cursor: pointer;
  list-style: none;
}
.sommaire__pole > summary::-webkit-details-marker { display: none; }
.sommaire__pole > summary:hover { background: rgba(255, 255, 255, 0.04); }
.sommaire__nom {
  flex: 1;
  font-family: var(--police-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.sommaire__compte { color: var(--encre-faible); font-size: 0.62rem; }
.sommaire__chevron { width: 15px; height: 15px; color: var(--or-fort); transition: transform 180ms ease; }
.sommaire__pole[open] > summary .sommaire__chevron { transform: rotate(180deg); }

.sommaire ul { margin: 2px 0 10px; border-left: 1px solid var(--ligne); }
.sommaire li[hidden] { display: none; }
.sommaire a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 8px 6px 12px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  color: var(--encre-faible);
  font-size: 0.86rem;
  line-height: 1.4;
  transition: 150ms ease;
}
.sommaire a:hover { background: rgba(255, 255, 255, 0.04); color: var(--encre); }
.sommaire a.est-actif {
  border-left-color: var(--or);
  background: var(--or-voile);
  color: var(--or);
}
.sommaire__code {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1px solid rgba(var(--or-rgb), 0.22);
  border-radius: 7px;
  background: var(--or-voile);
  color: var(--or);
  font-size: 0.68rem;
}
.sommaire__ref { flex: none; color: var(--or-fort); font-size: 0.6rem; letter-spacing: 0.04em; }
/* Renvois vers les pages d'aide : dans le panneau collant, donc atteignables
   sans redescendre les soixante-huit chapitres jusqu'au pied de page. */
.sommaire__renvois { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ligne); }
.sommaire__renvois ul { margin-top: 8px; border-left: 0; display: grid; gap: 2px; }
.sommaire__renvois a {
  gap: 9px;
  padding: 7px 8px;
  border-left: 0;
  margin-left: 0;
  border-radius: var(--rayon-petit);
  align-items: center;
  color: var(--encre-douce);
}
.sommaire__renvois a:hover { color: var(--or); }
.sommaire__renvois .icone { width: 16px; height: 16px; flex: none; color: var(--or-fort); }
.sommaire__renvois span:last-child { margin-left: auto; color: var(--encre-faible); }

.sommaire__maj {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ligne);
  color: var(--encre-faible);
  font-family: var(--police-mono);
  font-size: 0.6rem;
  line-height: 1.7;
  letter-spacing: 0.06em;
}

/* Filtre */

.filtre { margin-bottom: 36px; }
.filtre__label {
  display: block;
  margin-bottom: 10px;
  color: var(--or-fort);
  font-family: var(--police-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.filtre__champ {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--ligne-forte);
  border-radius: var(--rayon-petit);
  background: rgba(9, 9, 9, 0.6);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.filtre__champ:focus-within { border-color: rgba(var(--or-rgb), 0.5); box-shadow: 0 0 0 3px rgba(var(--or-rgb), 0.1); }
.filtre__champ .icone { color: var(--or-fort); }
.filtre__champ input {
  flex: 1;
  min-height: 52px;
  border: 0;
  outline: none;
  background: none;
  color: var(--encre);
  font: inherit;
}
.filtre__champ input::placeholder { color: var(--encre-faible); }
.filtre__resultat { margin-top: 10px; color: var(--encre-faible); font-family: var(--police-mono); font-size: 0.68rem; }

/* Compteurs de l'en-tête */

.compteurs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.compteurs li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--ligne);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.02);
}
.compteurs__valeur { color: var(--or); font-size: 1.3rem; }
.compteurs__label {
  color: var(--encre-faible);
  font-family: var(--police-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Préambule */

.preambule {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(var(--or-rgb), 0.2);
  border-radius: var(--rayon);
  background: linear-gradient(150deg, rgba(var(--or-rgb), 0.06), transparent 55%), var(--panneau);
}
.preambule__titre { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 14px; }

/* Pôles */

.pole { padding-top: clamp(44px, 6vw, 72px); scroll-margin-top: 96px; }
.pole[hidden] { display: none; }
.pole--evenement { border-left: 2px solid rgba(var(--or-rgb), 0.45); padding-left: clamp(16px, 2vw, 24px); }

.pole__entete {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ligne);
}
.pole__code {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border: 1px solid rgba(var(--or-rgb), 0.3);
  border-radius: var(--rayon-petit);
  background: linear-gradient(150deg, rgba(var(--or-rgb), 0.16), transparent);
  color: var(--or);
  font-size: 1.8rem;
}
.pole__intitule { min-width: 0; }
.pole__titre { margin-top: 6px; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.pole__resume { margin-top: 8px; max-width: 64ch; color: var(--encre-faible); }
.pole__entete .etiquette { margin-left: auto; align-self: center; }

.pole__chapitres { display: grid; gap: 12px; }

/* Chapitres */

.chapitre {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--verre);
  scroll-margin-top: 96px;
}
.chapitre[hidden] { display: none; }
.chapitre:target { border-color: rgba(var(--or-rgb), 0.4); }

.chapitre__entete { display: flex; align-items: baseline; gap: 14px; }
.chapitre__ref {
  flex: none;
  padding: 4px 9px;
  border: 1px solid rgba(var(--or-rgb), 0.24);
  border-radius: 6px;
  background: var(--or-voile);
  color: var(--or);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.chapitre__titre {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.012em;
}
.chapitre__emoji { font-size: 0.9em; }
.chapitre__titre a { color: inherit; }
.chapitre__titre a:hover { color: var(--or); }

.chapitre__corps { margin-top: 16px; }
.chapitre__corps > * + * { margin-top: 14px; }

/* Contenu d'un chapitre */

.regle__intertitre {
  margin-top: 22px !important;
  color: var(--encre);
  font-family: var(--police-display);
  font-size: 1.12rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.regle__intertitre:first-child { margin-top: 0 !important; }
.regle__texte { color: var(--encre-douce); }
.regle__texte strong, .regle__liste strong { color: var(--encre); font-weight: 600; }

.regle__note {
  padding: 12px 16px;
  border-left: 2px solid var(--ligne-forte);
  color: var(--encre-faible);
  font-size: 0.94rem;
  font-style: italic;
}

.regle__liste { display: grid; gap: 9px; }
.regle__liste li {
  position: relative;
  padding-left: 20px;
  color: var(--encre-douce);
  font-size: 0.97rem;
  line-height: 1.65;
}
.regle__liste li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 9px;
  height: 1px;
  background: var(--or-fort);
  content: '';
}
.regle__liste li[hidden] { display: none; }

/* Marche à suivre : l'ordre compte, le numéro est donc dans le texte. */
.regle__etapes { display: grid; gap: 10px; counter-reset: etape; }
.regle__etapes li {
  position: relative;
  padding-left: 34px;
  color: var(--encre-douce);
  font-size: 0.97rem;
  line-height: 1.65;
  counter-increment: etape;
}
.regle__etapes li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(var(--or-rgb), 0.24);
  border-radius: 6px;
  background: var(--or-voile);
  color: var(--or);
  font-family: var(--police-mono);
  font-size: 0.66rem;
  content: counter(etape);
}
.regle__etapes li[hidden] { display: none; }

/* Encadrés repris des `:::callout` de la base. */

.encadre {
  --teinte-encadre: var(--or);
  --bordure-encadre: var(--ligne-forte);
  --fond-encadre: rgba(255, 255, 255, 0.02);
  padding: 16px 18px;
  border: 1px solid var(--bordure-encadre);
  border-left: 3px solid var(--teinte-encadre);
  border-radius: var(--rayon-petit);
  background: var(--fond-encadre);
}
.encadre > * + * { margin-top: 12px; }
.encadre__titre {
  color: var(--teinte-encadre);
  font-family: var(--police-display);
  font-size: 1.08rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.encadre .regle__liste li::before { background: var(--teinte-encadre); }

.encadre--danger {
  --teinte-encadre: #ff9ca0;
  --bordure-encadre: rgba(250, 125, 130, 0.28);
  --fond-encadre: rgba(250, 125, 130, 0.07);
}
.encadre--attention {
  --teinte-encadre: var(--or);
  --bordure-encadre: rgba(var(--or-rgb), 0.28);
  --fond-encadre: rgba(var(--or-rgb), 0.07);
}
.encadre--info {
  --teinte-encadre: #9cc4ff;
  --bordure-encadre: rgba(156, 196, 255, 0.26);
  --fond-encadre: rgba(156, 196, 255, 0.06);
}
.encadre--succes {
  --teinte-encadre: var(--ok);
  --bordure-encadre: rgba(101, 223, 167, 0.26);
  --fond-encadre: rgba(101, 223, 167, 0.06);
}

/* Volets repliés (`:::details`). */

.volet {
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-petit);
  background: rgba(255, 255, 255, 0.015);
}
.volet > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  color: var(--encre-douce);
  font-family: var(--police-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.volet > summary::-webkit-details-marker { display: none; }
.volet__chevron { width: 16px; height: 16px; flex: none; color: var(--or); transition: transform 180ms ease; }
.volet[open] .volet__chevron { transform: rotate(180deg); }
.volet__corps { padding: 0 16px 16px; }
.volet__corps > * + * { margin-top: 12px; }

/* Résultats du filtre : le texte trouvé est teinté, pas déplacé. */

[data-point].est-trouve {
  border-radius: 4px;
  background: rgba(var(--or-rgb), 0.12);
  box-shadow: 0 0 0 4px rgba(var(--or-rgb), 0.12);
  color: var(--encre);
}

/* Liens et code dans le texte éditorial. */

.lien-texte {
  color: var(--or);
  text-decoration: underline;
  text-decoration-color: rgba(var(--or-rgb), 0.4);
  text-underline-offset: 3px;
}
.lien-texte:hover { text-decoration-color: var(--or); }
.code-enligne {
  padding: 2px 6px;
  border: 1px solid var(--ligne-forte);
  border-radius: 5px;
  background: rgba(9, 9, 9, 0.6);
  color: var(--or);
  font-family: var(--police-mono);
  font-size: 0.86em;
}

.reglement__pied {
  margin-top: 44px;
  padding: 22px 24px;
  border: 1px dashed var(--ligne-forte);
  border-radius: var(--rayon);
  color: var(--encre-faible);
}
.reglement__pied .groupe-boutons { margin-top: 18px; }

.reglement__haut { margin-top: 20px; text-align: center; }
.reglement__haut a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--encre-faible);
  font-family: var(--police-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.reglement__haut a:hover { color: var(--or); }
.reglement__haut .icone { width: 15px; height: 15px; transform: rotate(180deg); }

/* ── Candidature ──────────────────────────────────────────────────────── */

.candidature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.formulaire { display: grid; gap: 26px; padding: clamp(24px, 3vw, 36px); }

.formulaire__alerte {
  padding: 14px 16px;
  border: 1px solid rgba(250, 125, 130, 0.4);
  border-radius: var(--rayon-petit);
  background: rgba(250, 125, 130, 0.08);
  color: #ffc9cb;
  font-size: 0.95rem;
}

.champ { display: grid; gap: 8px; }
/* `display: grid` l'emporterait sur l'attribut `hidden` du masquage par rôle. */
.champ[hidden] { display: none; }
.champ__label {
  font-family: var(--police-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.champ__option { color: var(--encre-faible); font-size: 0.8rem; letter-spacing: 0.04em; }
.champ__aide { color: var(--encre-faible); font-size: 0.9rem; }

.champ__controle, .champ__zone {
  width: 100%;
  border: 1px solid var(--ligne-forte);
  border-radius: var(--rayon-petit);
  background: rgba(9, 9, 9, 0.6);
  color: var(--encre);
  font: inherit;
  padding: 13px 15px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.champ__controle { min-height: 50px; }
.champ__zone { min-height: 128px; resize: vertical; line-height: 1.6; }
.champ__controle:focus, .champ__zone:focus {
  outline: none;
  border-color: rgba(var(--or-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--or-rgb), 0.1);
}
.champ__controle[aria-invalid='true'], .champ__zone[aria-invalid='true'] {
  border-color: rgba(250, 125, 130, 0.65);
}
/* Les listes déroulantes du système sont claires : la couleur se force sur
   les options, sinon elles sortent en noir sur blanc dans Firefox. */
.champ__controle option { background: #121212; color: var(--encre); }
.champ__erreur { color: #ffb0b3; font-size: 0.88rem; }

.engagements { display: grid; gap: 12px; margin: 0; padding: 20px; border: 1px solid var(--ligne); border-radius: var(--rayon); background: rgba(255, 255, 255, 0.02); }
.engagements legend {
  padding-inline: 10px;
  color: var(--or-fort);
  font-family: var(--police-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.case { display: flex; align-items: flex-start; gap: 12px; color: var(--encre-douce); cursor: pointer; }
.case input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--or);
  cursor: pointer;
}
.case.est-en-erreur span { color: #ffb0b3; }

/* Champ piège : hors écran plutôt que display:none, que certains robots
   savent détecter. Retiré du parcours clavier et des lecteurs d'écran par
   tabindex et aria-hidden côté gabarit. */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formulaire__envoi { width: 100%; }
.formulaire__envoi[disabled] { cursor: not-allowed; opacity: 0.45; filter: grayscale(0.6); transform: none; }

.candidature__aside { display: grid; gap: 14px; align-content: start; }
.candidature__info { padding: 22px; }
.candidature__info p { margin-top: 12px; color: var(--encre-douce); font-size: 0.95rem; }
.candidature__info .bouton { width: 100%; margin-top: 18px; }
.candidature__points { margin-top: 14px; display: grid; gap: 10px; }
.candidature__points li {
  position: relative;
  padding-left: 18px;
  color: var(--encre-douce);
  font-size: 0.95rem;
}
.candidature__points li::before {
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 7px;
  height: 1px;
  background: var(--or);
  content: '';
}

/* ── 404 ──────────────────────────────────────────────────────────────── */

.introuvable { padding-block: clamp(80px, 14vw, 180px); }
.introuvable .chapo { max-width: 56ch; margin-top: 28px; }
.introuvable .filet { margin-top: 28px; }

/* ── Pied de page ─────────────────────────────────────────────────────── */

.pied { border-top: 1px solid var(--ligne); background: rgba(6, 6, 6, 0.9); }
.pied__haut {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  width: min(var(--largeur), 100%);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) var(--marge) 36px;
}
.pied__identite { display: flex; align-items: center; gap: 16px; }
.pied__nom { display: block; font-size: 2.1rem; }
.pied__identite .kicker { margin-top: 6px; display: block; }
.pied__phrase { color: var(--encre-faible); max-width: 40ch; align-self: center; }
.pied__nav ul { margin-top: 16px; display: grid; gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); border-radius: var(--rayon-petit); overflow: hidden; }
.pied__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding-inline: 16px;
  background: rgba(9, 9, 9, 0.9);
  color: var(--encre-douce);
  font-size: 0.92rem;
  transition: 150ms ease;
}
.pied__nav a:hover { background: var(--surface); color: var(--or); }
.pied__bas {
  width: min(var(--largeur), 100%);
  margin: 0 auto;
  padding: 20px var(--marge) 30px;
  border-top: 1px solid var(--ligne);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--encre-faible);
  font-family: var(--police-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Adaptations ──────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .nav-principale, .entete__actions { display: none; }
  .menu-mobile { display: block; }
  .hero__contenu { grid-template-columns: minmax(0, 1fr); }
  .hero__aside { max-width: 420px; }
  .hero__bas { grid-template-columns: minmax(0, 1fr); }
  .hero__bas .groupe-boutons { justify-content: flex-start; }
  .evenement__grille, .acces { grid-template-columns: minmax(0, 1fr); }
  .acces .etapes { border-left: 0; padding-left: 0; }
  .activites, .methodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appel__grille { grid-template-columns: minmax(0, 1fr); }
  .reglement, .candidature { grid-template-columns: minmax(0, 1fr); }
  .sommaire { position: static; max-height: none; padding: 20px; }
  .sommaire__corps { max-height: 52vh; padding-right: 6px; }
  .pied__haut { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -28px; }
  .chiffres__case:nth-child(2n) { border-left: 1px solid var(--ligne); }
  .chiffres__case:nth-child(n + 3) { border-top: 1px solid var(--ligne); }
  .chiffres__case:nth-child(3) { border-left: 0; }
  .piliers, .activites, .rappels, .reperes, .methodes { grid-template-columns: minmax(0, 1fr); }
  .fiche > summary { gap: 14px; padding: 16px 18px; }
  .fiche__corps { padding: 0 18px 18px; }
  .hero__titre .display-contour { margin-left: 0; }
  .etapes li, .etapes--larges li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .article { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pole--evenement { padding-left: 14px; }
  .pole__entete { flex-wrap: wrap; gap: 14px; }
  .pole__code { width: 46px; height: 46px; font-size: 1.4rem; }
  .pole__entete .etiquette { margin-left: 0; }
  .chapitre__entete { flex-wrap: wrap; gap: 8px 12px; }
  .compteurs li { flex: 1 1 100%; }
  .groupe-boutons .bouton { width: 100%; }
}

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