/* =========================================================
   83 HOOVER — Feuille de style principale (DA Orange / Noir / Blanc)
   Tailwind gère la mise en page ; ici : thème, effets, composants.
   ========================================================= */

/* ---- Charte graphique officielle ---- */
:root {
  --color-primary: #FF6A00;
  --color-primary-hover: #FF8C00;
  --color-bg: #0A0A0A;
  --color-surface: #1A1A1A;
  --color-surface-hover: #262626;
  --color-white: #FFFFFF;
  --color-gray: #BDBDBD;
  --color-border: #333333;
}

/* ---- Dérivés (calculés à partir de la charte) ---- */
:root {
  --color-bg-alt: #111111;                     /* sections alternées */
  --color-gray-muted: #8A8A8A;                 /* gris béton atténué : légendes, icônes */
  --primary-glow: rgba(255, 106, 0, .5);
  --primary-hover-glow: rgba(255, 140, 0, .45);
  --steel-glow: rgba(189, 189, 189, .25);

  /* Courbes d'animation : sortie douce + petit rebond "satisfaisant" */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { background: var(--color-bg); color: var(--color-gray); overflow-x: hidden; }
body.is-locked { overflow: hidden; } /* bloque le scroll pendant l'intro */
section[id] { scroll-margin-top: 64px; } /* compense la barre de navigation */
::selection { background: var(--color-primary); color: #fff; }

/* Grain "pellicule" statique (aucune animation = aucun coût CPU) */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   1. INTRO "HACKING" (terminal)
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem;
  padding: 1.25rem;
  background: radial-gradient(ellipse at center, #140A02 0%, #000 70%);
  cursor: pointer;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), visibility .7s;
}
/* Lignes de balayage d'écran CRT (statiques) */
.preloader::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 1px, transparent 1px 3px);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; transform: scale(1.06); pointer-events: none; }

.terminal {
  position: relative; z-index: 1;
  width: min(640px, 100%);
  background: rgba(10, 10, 10, .94);
  border: 1px solid rgba(255, 140, 0, .4);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 40px rgba(255, 140, 0, .14), 0 30px 80px rgba(0,0,0,.8);
  overflow: hidden;
  font-family: "Share Tech Mono", ui-monospace, monospace;
}
.term-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .9rem; background: #141414; border-bottom: 1px solid rgba(255, 140, 0,.2);
  color: var(--color-gray-muted); font-size: .8rem;
}
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--color-primary-hover); }
.term-dots i:nth-child(2) { background: var(--color-gray-muted); }
.term-dots i:nth-child(3) { background: #3A3A3A; }
.term-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.term-body {
  min-height: 14.5rem; padding: 1.1rem 1.1rem 1.4rem;
  color: var(--color-gray); font-size: clamp(.9rem, 3.6vw, 1.1rem); line-height: 1.75;
  text-shadow: 0 0 6px rgba(255, 140, 0, .25);
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-line.muted { color: var(--color-gray-muted); text-shadow: none; }
.term-line .lbl { color: var(--color-primary-hover); text-shadow: 0 0 8px var(--primary-hover-glow); }
.term-line .val { color: var(--color-white); }
.term-line.ok .val { color: var(--color-primary-hover); }
.term-cursor {
  display: inline-block; width: .6em; height: 1.1em; margin-left: 2px; vertical-align: text-bottom;
  background: var(--color-primary-hover); box-shadow: 0 0 8px var(--color-primary-hover);
  animation: blink 1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.term-enter {
  position: relative; z-index: 1;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: clamp(.95rem, 3.8vw, 1.25rem); letter-spacing: .12em; text-align: center;
  color: var(--color-white);
  padding: 1rem 1.5rem; border: 1px solid var(--color-primary-hover); border-radius: 6px;
  background: rgba(255, 106, 0,.18);
  text-shadow: 0 0 10px var(--color-primary-hover);
  box-shadow: 0 0 24px rgba(255, 140, 0,.3), inset 0 0 18px rgba(255, 140, 0,.12);
  animation: granted-in .5s var(--ease-spring) both, blink-soft 1.1s steps(1, end) .5s infinite;
  transition: transform .25s var(--ease-spring), background-color .25s;
}
.term-enter:hover { transform: scale(1.05); background: rgba(255, 140, 0,.3); }
.term-enter:active { transform: scale(.96); }
@keyframes granted-in { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes blink-soft { 50% { opacity: .35; } }

.term-hint {
  position: relative; z-index: 1;
  font-family: "Share Tech Mono", monospace; font-size: .75rem; letter-spacing: .25em; text-transform: uppercase;
  color: #4A4A4A;
}

/* =========================================================
   BOUTONS — feedback hover/active "satisfaisant"
   ========================================================= */
.btn-hood, .btn-ghost, .btn-discord, .nav-pill {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer; user-select: none;
  transition:
    transform .35s var(--ease-spring),
    box-shadow .35s var(--ease-out),
    background-color .3s var(--ease-out),
    border-color .3s var(--ease-out),
    color .3s var(--ease-out),
    opacity .3s;
}
.btn-hood, .btn-ghost { padding: 1rem 2rem; font-size: .85rem; border-radius: 3px; }

/* Reflet lumineux qui traverse le bouton au survol */
.btn-hood::before, .btn-ghost::before, .btn-discord::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn-hood:hover::before, .btn-ghost:hover::before, .btn-discord:hover::before { transform: translateX(120%); }

.btn-hood {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 20px -6px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-hood:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px var(--primary-hover-glow), 0 0 0 3px rgba(255, 140, 0,.25), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-hood:active { transform: translateY(0) scale(.96); transition-duration: .1s; box-shadow: 0 4px 12px -6px var(--primary-glow); }
.btn-hood:disabled { opacity: .6; cursor: progress; transform: none; background-color: var(--color-primary); }

.btn-ghost { border: 1px solid rgba(255, 255, 255, .35); color: var(--color-white); background: rgba(10, 10, 10, .35); backdrop-filter: blur(4px); }
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary-hover);
  background: rgba(255, 140, 0,.12);
  box-shadow: 0 14px 34px -10px var(--primary-hover-glow), 0 0 0 3px rgba(255, 140, 0,.18);
}
.btn-ghost:active { transform: scale(.96); transition-duration: .1s; }

/* Gros bouton Discord */
.btn-discord {
  width: 100%; justify-content: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem; border-radius: 4px;
  font-size: clamp(.95rem, 3.6vw, 1.15rem); color: #fff; text-transform: none; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--color-primary) 0%, #C24E00 100%);
  border: 1px solid rgba(255, 140, 0,.45);
  box-shadow: 0 12px 34px -10px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-discord small { font-size: .75rem; font-weight: 600; opacity: .75; letter-spacing: .04em; }
.btn-discord .discord-icon { width: 2.4rem; height: 2.4rem; flex-shrink: 0; fill: #fff; transition: transform .45s var(--ease-spring); }
.btn-discord .discord-arrow {
  width: 1.6rem; height: 1.6rem; margin-left: auto; flex-shrink: 0;
  fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease-spring);
}
.btn-discord:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--color-primary-hover);
  box-shadow: 0 22px 44px -12px var(--primary-hover-glow), 0 0 0 3px rgba(255, 140, 0,.3);
}
.btn-discord:hover .discord-icon { transform: rotate(-10deg) scale(1.12); }
.btn-discord:hover .discord-arrow { transform: translateX(6px); }
.btn-discord:active { transform: scale(.97); transition-duration: .1s; }

/* Onde au clic (créée par js/app.js) */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: rgba(255,255,255,.35);
  transform: scale(0); animation: ripple .6s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.btn-hood:focus-visible, .btn-ghost:focus-visible, .btn-discord:focus-visible, .acc-btn:focus-visible,
.burger:focus-visible, .lore-arrow:focus-visible, .lore-tab:focus-visible,
.nav-pill:focus-visible, .term-enter:focus-visible {
  outline: 3px solid var(--color-white); outline-offset: 3px;
}

/* ---------------- Widget volume (bas à droite) ---------------- */
.sound-widget {
  --vol: 35%; /* rempli par js/app.js pour colorer la barre */
  position: fixed; right: 1rem; z-index: 110;
  bottom: 1rem;
  display: flex; align-items: center; gap: .35rem;
  padding: .4rem .55rem .4rem .4rem;
  background: rgba(10, 10, 10, .9);
  border: 1px solid rgba(255, 106, 0, .5); border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.9), 0 0 18px -4px var(--primary-glow);
  backdrop-filter: blur(10px);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.sound-widget:hover { border-color: var(--color-primary-hover); box-shadow: 0 10px 30px -10px rgba(0,0,0,.9), 0 0 26px -2px var(--primary-hover-glow); }
.sound-widget.is-muted { border-color: var(--color-border); box-shadow: 0 10px 30px -10px rgba(0,0,0,.9); }

.sw-btn {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.25rem; font-weight: 800; line-height: 1; color: var(--color-white);
  background: var(--color-surface); border: 1px solid var(--color-border);
  transition: transform .35s var(--ease-spring), background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.sw-btn:hover { transform: scale(1.12); border-color: var(--color-primary-hover); box-shadow: 0 0 14px var(--primary-hover-glow); }
.sw-btn:active { transform: scale(.88); transition-duration: .1s; }
.sw-btn:disabled { opacity: .35; transform: none; box-shadow: none; cursor: default; }
.sw-btn:focus-visible, .sw-range:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; }

.sw-mute { width: 40px; height: 40px; background: var(--color-primary); border-color: var(--color-primary); }
.sw-mute:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.sw-mute svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sw-mute .sw-speaker { fill: #fff; }
.sw-mute .sw-cross { display: none; }
.sw-wave { transition: opacity .25s; }
.sound-widget.is-muted .sw-mute { background: var(--color-surface-hover); border-color: var(--color-border); }
.sound-widget.is-muted .sw-mute svg { stroke: var(--color-gray-muted); }
.sound-widget.is-muted .sw-mute .sw-speaker { fill: var(--color-gray-muted); }
.sound-widget.is-muted .sw-wave { opacity: 0; }
.sound-widget.is-muted .sw-cross { display: inline; }
/* Ondes qui s'éteignent selon le volume */
.sound-widget.vol-low .sw-wave2 { opacity: 0; }

/* Barre de volume (slider) */
.sw-range {
  -webkit-appearance: none; appearance: none;
  width: 90px; height: 6px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover)) 0 / var(--vol) 100% no-repeat, var(--color-border);
}
.sw-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-white); border: 3px solid var(--color-primary); box-shadow: 0 0 10px var(--primary-glow);
  transition: transform .3s var(--ease-spring);
}
.sw-range::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-white); border: 3px solid var(--color-primary); box-shadow: 0 0 10px var(--primary-glow);
}
.sw-range:hover::-webkit-slider-thumb, .sw-range:active::-webkit-slider-thumb { transform: scale(1.3); }
.sound-widget.is-muted .sw-range { background: var(--color-border); }

.sw-value { min-width: 2.6rem; text-align: right; font-size: .75rem; font-weight: 800; color: var(--color-gray); font-variant-numeric: tabular-nums; }

/* Petite bulle d'info au-dessus du widget (ex. fichier manquant) */
.sw-note {
  position: absolute; right: 0; bottom: calc(100% + .5rem);
  max-width: 240px; padding: .45rem .7rem; border-radius: 8px;
  font-size: .75rem; color: var(--color-white); background: var(--color-surface); border: 1px solid var(--color-border);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.sw-note.is-visible { opacity: 1; transform: none; }

/* Téléphone : widget compact (on garde haut-parleur, −, +) */
@media (max-width: 480px) {
  .sound-widget { right: .75rem; bottom: .75rem; }
  .sw-range { width: 64px; }
  .sw-value { display: none; }
}

/* =========================================================
   NAVIGATION + LOGO
   ========================================================= */
#navbar { transition: background-color .4s var(--ease-out), border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
#navbar.is-scrolled { background: rgba(10, 10, 10, .92); backdrop-filter: blur(10px); border-bottom-color: var(--color-border); }

.brand { display: flex; align-items: center; gap: .6rem; transition: transform .35s var(--ease-spring); }
.brand:hover { transform: scale(1.04); }
.brand-logo { height: 48px; width: auto; filter: drop-shadow(0 0 8px var(--primary-glow)); }

.nav-links { gap: clamp(1.25rem, 2.2vw, 2.25rem); font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.nav-link { position: relative; padding: .4rem 0; color: var(--color-gray); transition: color .3s var(--ease-out); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--color-primary);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: var(--color-white); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link:focus-visible, .mobile-link:focus-visible, .footer-nav a:focus-visible { outline: 2px solid var(--color-white); outline-offset: 4px; }
.nav-pill {
  padding: .6rem 1.15rem; border-radius: 3px; font-size: .74rem;
  color: #fff; background: var(--color-primary);
  box-shadow: 0 4px 16px -6px var(--primary-glow);
}
.nav-pill:hover, .nav-pill.is-active { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 8px 22px -6px var(--primary-hover-glow); }
.nav-pill:active { transform: scale(.96); }

.burger { width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; border-radius: 8px; transition: background-color .3s; }
.burger:active { background: rgba(255,255,255,.08); }
.burger span { display: block; height: 3px; width: 100%; background: var(--color-white); border-radius: 2px; transition: transform .4s var(--ease-spring), opacity .25s, background-color .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--color-primary-hover); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--color-primary-hover); }

.mobile-menu { background: rgba(10, 10, 10, .97); border-bottom: 2px solid var(--color-primary); animation: menu-in .35s var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-list { display: flex; flex-direction: column; padding: 0 1rem 1rem; }
.mobile-link {
  display: flex; align-items: baseline; gap: 1rem; padding: .95rem .25rem;
  border-bottom: 1px solid var(--color-border);
  font-family: "Anton", Impact, sans-serif; font-size: 1.5rem; letter-spacing: .03em; text-transform: uppercase;
  color: var(--color-gray); transition: color .2s, padding-left .3s var(--ease-out);
}
.mobile-link span { font-family: "Share Tech Mono", monospace; font-size: .8rem; color: var(--color-gray-muted); }
.mobile-link:active, .mobile-link:hover, .mobile-link.is-active { color: var(--color-white); padding-left: .75rem; }
.mobile-link.is-active span, .mobile-link--cta, .mobile-link--cta span { color: var(--color-primary); }

/* =========================================================
   HERO
   ========================================================= */
/* Visuel : Hoover1.webp (le quartier au coucher du soleil). Fond sombre de secours si l'image manque. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6rem 1rem 9rem; text-align: center;
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 106, 0, .18), transparent 60%), var(--color-bg);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 40%; filter: saturate(.85) contrast(1.05); }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.55) 35%, rgba(10,10,10,.7) 70%, var(--color-bg) 100%),
    radial-gradient(ellipse at center, transparent 20%, rgba(0,0,0,.65) 100%);
}
.hero-lightning { z-index: -1; }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 64rem; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1rem;
  font-size: clamp(.68rem, 2.2vw, .8rem); font-weight: 800; letter-spacing: .38em; text-transform: uppercase; color: var(--color-gray);
}
.hero-kicker i { font-style: normal; color: var(--color-primary); }
.hero-sub {
  margin-top: 1.25rem;
  font-family: "Anton", Impact, sans-serif; font-size: clamp(1.35rem, 4.2vw, 2.4rem); line-height: 1.15;
  letter-spacing: .02em; text-transform: uppercase; color: var(--color-white);
}
.hero-sub span { color: var(--color-primary); }
.hero-cta { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .85rem; margin-top: 2.25rem; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }

/* Bandeau d'infos en bas de l'ouverture */
.hero-facts {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 80rem; margin: 0 auto; border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-facts > div { padding: 1.1rem 1rem 1.3rem; text-align: left; }
.hero-facts > div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.hero-facts dt { font-size: .64rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--color-primary); }
.hero-facts dd { margin-top: .3rem; font-size: clamp(.78rem, 2.4vw, .95rem); font-weight: 700; color: var(--color-white); }
/* Grand écran : bandeau centré en bas, assez étroit pour ne pas passer sous le widget de volume */
@media (min-width: 1100px) {
  .hero-facts { left: 50%; right: auto; transform: translateX(-50%); width: min(54rem, calc(100% - 40rem)); margin: 0; }
}
/* Tablette : bandeau centré, placé sous les boutons */
@media (min-width: 640px) and (max-width: 1099px) {
  .hero { padding-bottom: 3rem; }
  .hero-facts { position: relative; width: min(54rem, 100%); margin: 2.75rem auto 0; }
}
/* Téléphone : le bandeau passe sous les boutons (sinon le widget de volume le cache) */
@media (max-width: 639px) {
  .hero { padding-bottom: 3rem; }
  .hero-facts { position: relative; width: 100%; margin-top: 2.75rem; grid-template-columns: 1fr; }
  .hero-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem .25rem; border-bottom: 1px solid rgba(255,255,255,.12); }
  .hero-facts > div + div { border-left: 0; }
  .hero-facts dd { margin-top: 0; text-align: right; }
}
/* L'éclair reste en arrière-plan : on l'atténue pour garder le texte lisible */
.hero .hero-lightning.is-on { opacity: .55; }
/* Éclair WebGL : "screen" rend le noir transparent, seul l'éclair lumineux se voit */
.hero-lightning {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  mix-blend-mode: screen; pointer-events: none;
  opacity: 0; transition: opacity 1.2s var(--ease-out); /* apparaît en fondu */
}
.hero-lightning.is-on { opacity: 1; }

.hero-title {
  font-family: "Permanent Marker", cursive; line-height: 1;
  font-size: clamp(3.5rem, 15vw, 10rem);
  text-shadow: 0 0 30px rgba(255, 106, 0, .35);
}

/* Titre en particules : le canvas prend toute la zone, le texte normal sert de secours */
.particle-title {
  position: relative;
  width: min(56rem, calc(100vw - 2rem)); /* toute la largeur dispo (le bloc parent est centré et rétréci) */
  margin-inline: auto;
  height: clamp(120px, 21vw, 230px);
  display: grid; place-items: center;
}
.particle-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  /* Lueur appliquée au canvas entier (bien plus léger qu'une lueur par particule) */
  filter: drop-shadow(0 0 6px rgba(255, 140, 0, .55)) drop-shadow(0 0 18px rgba(255, 106, 0, .35));
}
/* Une fois les particules prêtes, le texte normal n'est plus visible (mais reste lu par les lecteurs d'écran) */
.particle-title.is-ready .particle-fallback {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.scroll-hint {
  position: absolute; left: 50%; bottom: 6.2rem; z-index: 1; transform: translateX(-50%);
  color: var(--color-gray-muted); transition: transform .35s var(--ease-spring);
}
.scroll-hint:hover { transform: translate(-50%, 4px); }
.scroll-hint:focus-visible { outline: 2px solid var(--color-white); outline-offset: 4px; }
.scroll-mouse { display: block; width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.35); border-radius: 12px; }
@media (max-width: 560px), (max-height: 640px) { .scroll-hint { display: none; } }
.scroll-dot {
  display: block; width: 4px; height: 8px; margin: 6px auto 0; border-radius: 2px; background: var(--color-primary-hover);
  animation: scroll-dot 1.8s var(--ease-out) 4; /* quelques passages seulement, pas d'animation permanente */
}
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
/* Les sections s'enchaînent : fonds alternés + fine ligne de séparation */
.section + .section { border-top: 1px solid var(--color-border); }
.identity, .goals, .members-section, .tool-section { background: var(--color-bg); }
.lore, .rules-section, .join { background: var(--color-bg-alt); }

/* Surtitre : « 01 ─ Identité » */
.section-kicker {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .74rem; font-weight: 800; letter-spacing: .35em; text-transform: uppercase; color: var(--color-gray-muted);
}
.kicker-num { font-family: "Share Tech Mono", monospace; letter-spacing: .1em; color: var(--color-primary); }
.kicker-num::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: .75rem; vertical-align: middle; background: var(--color-primary); }

/* Grands titres : police condensée Anton, en capitales */
.section-title {
  margin-top: .75rem;
  font-family: "Anton", Impact, "Arial Narrow", sans-serif; font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 5.4rem); line-height: .95; letter-spacing: .005em; text-transform: uppercase;
  color: var(--color-white);
}

/* En-tête de section éditorial : titre à gauche, introduction à droite */
.sec-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-intro { max-width: 34rem; color: var(--color-gray); font-size: clamp(1rem, 2.1vw, 1.08rem); line-height: 1.75; }
@media (min-width: 1024px) {
  .sec-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 4rem; }
  .sec-intro { padding-bottom: .5rem; border-left: 1px solid var(--color-border); padding-left: 2rem; }
}

.lede { margin-top: 1.5rem; max-width: 36rem; font-size: clamp(1.1rem, 2.6vw, 1.3rem); line-height: 1.55; font-weight: 600; color: var(--color-white); }
.body-text { margin-top: 1rem; max-width: 36rem; color: var(--color-gray); line-height: 1.8; }

/* Petite étiquette (ex. « Essentiel ») */
.tag {
  display: inline-block; padding: .18rem .5rem; border-radius: 2px; vertical-align: .1em;
  font-size: .62rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; line-height: 1.4;
}
.tag--key { color: #0A0A0A; background: var(--color-primary); }

/* =========================================================
   01. IDENTITÉ
   ========================================================= */
/* ---------- Statut des recrutements (piloté depuis le panel staff) ---------- */
.recruit-status {
  --rs: var(--color-primary);
  --rs-glow: rgba(255, 106, 0, .35);
  position: relative; overflow: hidden; isolation: isolate;
  display: block;
  margin-bottom: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.1rem, 3vw, 1.5rem) clamp(1.1rem, 3vw, 1.75rem);
  background: linear-gradient(100deg, rgba(255, 106, 0, .1), rgba(26, 26, 26, .9) 45%), var(--color-surface);
  border: 1px solid rgba(255, 106, 0, .35); border-left: 4px solid var(--rs); border-radius: 4px;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9), 0 0 40px -22px var(--rs-glow);
  animation: rs-in .8s var(--ease-out) both;
}
.recruit-status[hidden] { display: none; }
/* Reflet qui balaie le bandeau à l'apparition */
.recruit-status::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 140, 0, .16) 50%, transparent 65%);
  transform: translateX(-110%); animation: rs-sweep 1.6s .35s var(--ease-out) forwards;
}
@keyframes rs-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rs-sweep { to { transform: translateX(110%); } }

/* Les deux groupes, côte à côte sur grand écran */
.rs-lanes { display: grid; gap: 1rem; margin-top: .9rem; }
@media (min-width: 900px) {
  .rs-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .rs-lane + .rs-lane { border-left: 1px dashed rgba(255, 255, 255, .1); padding-left: clamp(1rem, 2.5vw, 1.75rem); }
  .rs-lane:first-child { padding-right: clamp(1rem, 2.5vw, 1.75rem); }
}
@media (max-width: 899px) { .rs-lane + .rs-lane { padding-top: 1rem; border-top: 1px dashed rgba(255, 255, 255, .1); } }
.rs-lane {
  --lane: #22C55E; --lane-glow: rgba(34, 197, 94, .35);
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 1rem; row-gap: .9rem;
}
.rs-lane[data-state="closed"] { --lane: #EF4444; --lane-glow: rgba(239, 68, 68, .25); }
.rs-lane .rs-cta { grid-column: 1 / -1; justify-self: start; }
.rs-group { font-size: .74rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--color-white); }
.rs-group-sub { color: var(--color-gray-muted); letter-spacing: .14em; }
/* Le groupe dont le statut vient de changer s'illumine un instant */
.rs-lane.is-flash .rs-title { animation: rs-flash .9s var(--ease-out); }
@keyframes rs-flash { 0% { text-shadow: 0 0 0 transparent; } 35% { text-shadow: 0 0 26px var(--lane-glow); } 100% { text-shadow: 0 0 0 transparent; } }

/* Fermé (les deux groupes) : rouge éteint + bande « zone fermée » discrète */
.recruit-status[data-state="closed"] {
  --rs: #EF4444; --rs-glow: rgba(239, 68, 68, .25);
  background:
    repeating-linear-gradient(-45deg, rgba(239, 68, 68, .05) 0 14px, transparent 14px 28px),
    linear-gradient(100deg, rgba(239, 68, 68, .08), rgba(26, 26, 26, .9) 45%), var(--color-surface);
  border-color: rgba(239, 68, 68, .3);
}
.recruit-status[data-state="closed"]::before { display: none; }

/* Voyant radar */
.rs-signal { position: relative; flex: none; width: 54px; height: 54px; display: grid; place-items: center; }
.rs-dot { width: 16px; height: 16px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18), 0 0 22px rgba(34, 197, 94, .9); }
.rs-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(34, 197, 94, .7); opacity: 0; animation: rs-radar 2.4s var(--ease-out) infinite; }
.rs-ring--2 { animation-delay: 1.2s; }
@keyframes rs-radar { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
.rs-lane[data-state="closed"] .rs-dot { background: #EF4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .15), 0 0 16px rgba(239, 68, 68, .6); }
.rs-lane[data-state="closed"] .rs-ring { display: none; }

.rs-text { flex: 1; min-width: 0; }
.rs-label {
  display: flex; align-items: center; gap: .6rem;
  font-size: .7rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--color-gray-muted);
}
.rs-live {
  padding: .15rem .45rem; border-radius: 2px; letter-spacing: .18em;
  font-family: "Share Tech Mono", monospace; color: #0A0A0A; background: var(--rs);
}
.rs-title {
  margin-top: .35rem;
  font-family: "Anton", Impact, "Arial Narrow", sans-serif; font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  line-height: 1; text-transform: uppercase; color: var(--color-white);
}
.rs-word { color: var(--lane, var(--rs)); text-shadow: 0 0 24px var(--lane-glow, var(--rs-glow)); }
.rs-msg { margin-top: .5rem; max-width: 46rem; color: var(--color-gray); font-size: clamp(.92rem, 2vw, 1rem); line-height: 1.6; }
.rs-msg:empty { display: none; }
.rs-cta { flex: none; padding: .85rem 1.4rem; }
.rs-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.rs-cta:hover svg { transform: translateX(4px); }
.rs-lane[data-state="closed"] .rs-cta { background-color: #5865F2; box-shadow: 0 6px 20px -6px rgba(88, 101, 242, .55); }
.rs-lane[data-state="closed"] .rs-cta:hover { background-color: #6d78f5; box-shadow: 0 14px 34px -8px rgba(88, 101, 242, .55); }
@media (max-width: 640px) {
  .rs-signal { width: 40px; height: 40px; align-self: start; }
  .rs-lane .rs-cta { width: 100%; justify-content: center; }
}

/* Formulaire remplacé par un avis quand les recrutements sont fermés */
.join-closed {
  display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.1rem;
  padding: 1.1rem 1.25rem; border-radius: 4px;
  background: repeating-linear-gradient(-45deg, rgba(239, 68, 68, .05) 0 14px, transparent 14px 28px), var(--color-surface);
  border: 1px solid rgba(239, 68, 68, .35); border-left: 4px solid #EF4444;
}
.join-closed[hidden] { display: none; }
.join-closed-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(239, 68, 68, .12); }
.join-closed-icon svg { width: 20px; height: 20px; fill: none; stroke: #FCA5A5; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.join-closed-title { font-family: "Anton", Impact, sans-serif; font-size: 1.35rem; text-transform: uppercase; color: var(--color-white); }
.join-closed-msg { margin-top: .25rem; color: var(--color-gray); line-height: 1.6; }
/* !important : l'animation d'apparition (GSAP) écrit une opacité directement sur l'élément */
.hood-form.is-closed { opacity: .35 !important; filter: grayscale(.85); pointer-events: none; user-select: none; }

.identity-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1024px) { .identity-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }

.colors { display: grid; gap: 0; margin-top: 2rem; max-width: 36rem; border-top: 1px solid var(--color-border); }
.color { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.color-chip { flex-shrink: 0; width: 34px; height: 34px; margin-top: .1rem; border: 1px solid rgba(255,255,255,.18); }
.color--orange .color-chip { background: var(--color-primary); box-shadow: 0 0 18px -4px var(--primary-glow); }
.color--black .color-chip { background: var(--color-bg); }
.color--white .color-chip { background: var(--color-white); }
.color strong { font-size: .78rem; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; color: var(--color-white); }
.color p { margin-top: .25rem; color: var(--color-gray); font-size: .95rem; line-height: 1.6; }

.identity-media { position: relative; margin: 0; }
.identity-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 42% 50%;
  border: 1px solid var(--color-border); filter: saturate(.9) contrast(1.05);
}
@media (min-width: 640px) and (max-width: 1023px) { .identity-media img { aspect-ratio: 16 / 10; } }
/* Cadre décalé orange (détail graphique) */
.identity-media::before {
  content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; z-index: -1;
  border: 1px solid rgba(255, 106, 0, .55);
}
.identity-media figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 2.5rem 1.25rem 1rem;
  font-size: .8rem; color: var(--color-gray); background: linear-gradient(180deg, transparent, rgba(10,10,10,.9));
}
@media (max-width: 640px) { .identity-media::before { inset: .6rem -.6rem -.6rem .6rem; } }

/* Les principes */
.principles { margin-top: clamp(4rem, 8vw, 6rem); }
.principles-head { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 1024px) { .principles-head { grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 3rem; } }
.principles-title { font-family: "Anton", Impact, sans-serif; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1; text-transform: uppercase; color: var(--color-white); }
.pull-quote {
  margin: 0; padding-left: 1.1rem; border-left: 2px solid var(--color-primary);
  font-size: clamp(1rem, 2.2vw, 1.15rem); font-style: italic; color: var(--color-gray);
}
.principles-list { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--color-border); }
@media (min-width: 640px) { .principles-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .principles-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.principles-list li {
  position: relative; padding: 1.6rem 1.5rem 1.7rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: background-color .3s var(--ease-out);
}
@media (min-width: 640px) { .principles-list li { padding-right: 2rem; } }
.principles-list li::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.principles-list li:hover::after { transform: scaleX(1); }
.p-num { display: block; font-family: "Anton", Impact, sans-serif; font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 106, 0, .6); }
.principles-list strong { display: block; margin-top: .8rem; font-size: .82rem; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; color: var(--color-white); }
.principles-list p { margin-top: .45rem; color: var(--color-gray); line-height: 1.65; font-size: .95rem; }
/* Téléphone : numéro à gauche, texte à droite (liste plus compacte) */
@media (max-width: 639px) {
  .principles-list li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: .5rem; padding: 1.1rem 0; }
  .p-num { grid-row: span 2; font-size: 2rem; }
  .principles-list strong { margin-top: .2rem; }
  .principles-list p { margin-top: .3rem; }
}

/* =========================================================
   02. LORE — Background officiel (7 chapitres)
   ========================================================= */

.lore-book {
  display: grid; gap: 1.5rem; margin-top: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .lore-book { grid-template-columns: 290px minmax(0, 1fr); gap: 2rem; align-items: start; }
}

/* ---- Sommaire des chapitres (colonne sur PC, bandeau défilant sur mobile) ---- */
.lore-tabs {
  display: flex; gap: .5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: .25rem .1rem .5rem; margin: 0 -1rem; padding-inline: 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
}
.lore-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .lore-tabs {
    flex-direction: column; overflow: visible; margin: 0; padding: 0;
    position: sticky; top: 88px;
    -webkit-mask-image: none; mask-image: none;
  }
}
.lore-tab {
  position: relative; flex: 0 0 auto; scroll-snap-align: start;
  display: flex; align-items: center; gap: .75rem; text-align: left;
  padding: .7rem 1rem; border-radius: 3px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-gray-muted); font-weight: 700; font-size: .85rem;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out), background-color .3s var(--ease-out), transform .35s var(--ease-spring);
}
.lore-tab .num { font-family: "Anton", Impact, sans-serif; font-size: 1.05rem; letter-spacing: .04em; color: var(--color-gray-muted); transition: color .3s; }
.lore-tab .label { white-space: nowrap; }
@media (min-width: 1024px) {
  .lore-tab { width: 100%; padding: .8rem 1rem .8rem 1.1rem; }
  .lore-tab .label { white-space: normal; line-height: 1.3; }
  /* Barre orange qui glisse à gauche de l'onglet actif */
  .lore-tab::before {
    content: ""; position: absolute; left: -1px; top: 18%; bottom: 18%; width: 3px; border-radius: 3px;
    background: var(--color-primary-hover); transform: scaleY(0); transition: transform .4s var(--ease-spring);
  }
  .lore-tab:hover { transform: translateX(4px); }
}
.lore-tab:hover { color: var(--color-gray); border-color: var(--color-gray-muted); }
.lore-tab:active { transform: scale(.97); }
.lore-tab[aria-selected="true"] {
  color: var(--color-white); border-color: rgba(255, 106, 0,.7);
  background: linear-gradient(90deg, rgba(255, 106, 0,.14), var(--color-surface) 70%);
}
.lore-tab[aria-selected="true"] .num { color: var(--color-primary-hover); }
.lore-tab[aria-selected="true"]::before { transform: scaleY(1); }

/* ---- Scène : image + texte du chapitre ---- */
.lore-stage {
  position: relative; overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
  scroll-margin-top: 80px;
}
.lore-chapter[hidden] { display: none; }
.lore-chapter.is-entering { animation: chapter-in .6s var(--ease-out); }
.lore-chapter.is-entering.from-left { animation-name: chapter-in-left; }
@keyframes chapter-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes chapter-in-left { from { opacity: 0; transform: translateX(-28px); } }

/* Image avec zoom intérieur au survol (le cadre ne bouge pas, seule l'image grossit) */
.lore-media {
  position: relative; overflow: hidden;
  aspect-ratio: 21 / 9; max-height: 400px; width: 100%;
  background: #0F0F0F; border-bottom: 1px solid var(--color-border);
}
.lore-media img, .lore-media .lore-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out), filter .6s var(--ease-out);
}
.lore-media img { z-index: 1; filter: saturate(.9) contrast(1.05); }
.lore-media:hover img, .lore-media:hover .lore-fallback { transform: scale(1.03); }
.lore-media:hover img { filter: saturate(1) contrast(1.08); }
/* Dégradé en bas de l'image pour fondre vers le texte */
.lore-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(26, 26, 26,.85));
}
/* Visuel de secours si l'image n'est pas encore là */
.lore-fallback {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px),
    radial-gradient(circle at 25% 30%, rgba(255, 106, 0,.4), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(189, 189, 189,.22), transparent 60%),
    #121212;
}
.lore-fallback span {
  font-family: "Permanent Marker", cursive; font-size: clamp(5rem, 18vw, 9rem); line-height: 1;
  color: rgba(255, 255, 255,.92); text-shadow: 5px 5px 0 var(--color-primary), 0 0 40px var(--primary-glow);
}
.lore-tag {
  position: absolute; left: 1rem; top: 1rem; z-index: 3;
  padding: .35rem .7rem; border-radius: 2px;
  font-size: .68rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: #0A0A0A; background: var(--color-primary);
}

.lore-body { padding: clamp(1.4rem, 4vw, 2.5rem); max-width: 50rem; }
.lore-title { font-family: "Anton", Impact, sans-serif; font-size: clamp(2rem, 5.5vw, 3.2rem); line-height: 1; text-transform: uppercase; color: var(--color-white); }
.lore-body p { margin-top: 1rem; color: var(--color-gray); font-size: clamp(.98rem, 2.2vw, 1.05rem); line-height: 1.8; }
/* Phrase d'accroche du chapitre */
.lore-body .lore-lede {
  margin-top: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--color-border);
  font-size: clamp(1.1rem, 2.8vw, 1.3rem); line-height: 1.5; font-weight: 600; color: var(--color-white);
}
/* Citation courte, tirée du chapitre */
.lore-quote {
  position: relative; margin: 1.75rem 0 0; padding: .9rem 0 .9rem 1.25rem;
  border-left: 2px solid var(--color-primary);
  font-family: "Permanent Marker", cursive; font-size: clamp(1.15rem, 3vw, 1.45rem); line-height: 1.35; color: var(--color-white);
}


/* ---- Navigation bas de scène : précédent / compteur / suivant ---- */
.lore-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.25rem) 1.5rem; border-top: 1px solid var(--color-border);
}
.lore-arrow {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem; border-radius: 3px;
  border: 1px solid var(--color-border); background: var(--color-surface-hover); color: var(--color-white);
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .35s var(--ease-spring), border-color .3s, background-color .3s, box-shadow .3s, opacity .3s;
}
.lore-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; }
.lore-arrow:hover:not(:disabled) { transform: scale(1.06); border-color: var(--color-primary-hover); background: rgba(255, 140, 0,.14); box-shadow: 0 0 22px -4px var(--primary-hover-glow); }
.lore-arrow:active:not(:disabled) { transform: scale(.94); transition-duration: .1s; }
.lore-arrow:disabled { opacity: .35; cursor: default; }
@media (max-width: 420px) { .lore-arrow .txt { display: none; } .lore-arrow { padding: .75rem; } }

.lore-counter { flex: 1; max-width: 260px; text-align: center; }
.lore-counter-text { font-family: "Share Tech Mono", monospace; font-size: .85rem; letter-spacing: .2em; color: var(--color-gray-muted); }
.lore-counter-text b { color: var(--color-white); font-weight: 400; }
.lore-progress { height: 3px; margin-top: .5rem; border-radius: 3px; background: var(--color-border); overflow: hidden; }
.lore-progress span {
  display: block; height: 100%; width: 100%; transform-origin: left;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  transform: scaleX(.143); transition: transform .5s var(--ease-out); /* largeur réglée par js/app.js */
}

/* ---- Conclusion ---- */
.lore-conclusion {
  position: relative; overflow: hidden; margin-top: 2.5rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: 4px; border: 1px solid var(--color-border); border-left: 3px solid var(--color-primary);
  background: var(--color-surface);
}
.lore-conclusion-label { margin-bottom: .9rem; font-size: .72rem; font-weight: 800; letter-spacing: .35em; text-transform: uppercase; color: var(--color-primary); }
.lore-conclusion p { position: relative; color: var(--color-gray); line-height: 1.8; font-size: clamp(1rem, 2.3vw, 1.1rem); max-width: 56rem; }
.lore-motto {
  position: relative; display: inline-block; margin-top: 1.5rem;
  font-family: "Permanent Marker", cursive; font-size: clamp(1.4rem, 4.5vw, 2.2rem); color: var(--color-white);
}
.lore-motto em { font-style: normal; color: var(--color-primary-hover); text-shadow: 0 0 22px var(--primary-hover-glow); }

/* =========================================================
   CULTURE — « Le drip KPS » (orange, casquette H, attitude, fraternité)
   ========================================================= */
.culture {
  background:
    radial-gradient(ellipse 70% 55% at 85% 0%, rgba(255, 106, 0, .09), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(255, 106, 0, .06), transparent 70%),
    var(--color-bg);
  overflow: hidden;
}
.drip-grid { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .drip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .drip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.drip-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 1.4rem 1.35rem 1.3rem;
  background: linear-gradient(180deg, #161616, #0f0f0f);
  border: 1px solid var(--color-border); border-radius: 4px;
  transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s var(--ease-out);
}
/* Fine barre orange qui se remplit au survol */
.drip-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--color-primary); transform: scaleX(.18); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.drip-card:hover { transform: translateY(-4px); border-color: rgba(255, 106, 0, .55); box-shadow: 0 22px 40px -26px var(--primary-glow); }
.drip-card:hover::before { transform: scaleX(1); }

.drip-visual { display: grid; place-items: center; height: 120px; margin-bottom: 1rem; border-radius: 3px; background: radial-gradient(circle at 50% 60%, rgba(255, 106, 0, .12), transparent 70%); }
.drip-swatch {
  display: grid; place-items: end start; width: 112px; height: 84px; padding: .45rem .55rem; border-radius: 3px;
  background: var(--color-primary); box-shadow: 0 14px 30px -12px var(--primary-glow), inset 0 -18px 0 rgba(0, 0, 0, .12);
}
.drip-swatch span { font-family: "Share Tech Mono", monospace; font-size: .78rem; color: #0A0A0A; letter-spacing: .06em; }
.drip-cap { width: 120px; height: 80px; overflow: visible; }
.drip-cap .cap-crown { fill: #1d1d1d; stroke: var(--color-primary); stroke-width: 2.5; }
.drip-cap .cap-brim { fill: var(--color-primary); }
.drip-cap .cap-seam { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; }
.drip-cap .cap-h { font-family: "Anton", Impact, sans-serif; font-size: 30px; fill: var(--color-primary); }
.drip-big { font-family: "Anton", Impact, sans-serif; font-size: 5rem; line-height: 1; color: var(--color-primary); text-shadow: 0 0 30px var(--primary-glow); transform: rotate(8deg); }
.drip-bond { width: 120px; height: 80px; }
.drip-bond circle { fill: none; stroke: var(--color-primary); stroke-width: 4; }
.drip-bond circle + circle { stroke: var(--color-white); }

.drip-num { font-family: "Anton", Impact, sans-serif; font-size: 1rem; letter-spacing: .1em; color: transparent; -webkit-text-stroke: 1px rgba(255, 106, 0, .7); }
.drip-title { margin-top: .2rem; font-family: "Anton", Impact, sans-serif; font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1; text-transform: uppercase; color: var(--color-white); }
.drip-text { margin-top: .7rem; flex: 1; color: var(--color-gray); font-size: .95rem; line-height: 1.6; }
.drip-tag {
  align-self: flex-start; margin-top: 1rem; padding: .3rem .6rem; border: 1px solid rgba(255, 106, 0, .4); border-radius: 2px;
  font-family: "Share Tech Mono", monospace; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--color-primary-hover);
}
/* Carte « orange » mise en avant */
.drip-card--orange { border-color: rgba(255, 106, 0, .45); background: linear-gradient(180deg, rgba(255, 106, 0, .1), #0f0f0f 60%); }

/* Le code en bref */
.drip-code {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem); padding: 1rem 1.25rem;
  border: 1px dashed rgba(255, 106, 0, .35); border-radius: 4px; background: rgba(255, 106, 0, .03);
}
.drip-code-label { font-size: .72rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--color-primary); }
.drip-code-list { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.drip-code-list li { display: inline-flex; align-items: center; gap: .55rem; color: var(--color-white); font-weight: 600; font-size: .92rem; }
.drip-dot { width: 7px; height: 7px; background: var(--color-primary); transform: rotate(45deg); }

.drip-outro {
  margin-top: clamp(2.5rem, 6vw, 4rem); text-align: center;
  font-family: "Permanent Marker", cursive; font-size: clamp(1.35rem, 4vw, 2rem); color: var(--color-white);
}
.drip-outro span { color: var(--color-primary); }

/* =========================================================
   HKPS — Habitants KPS : grille sous les membres + section lore
   ========================================================= */
.habitants-block { margin-top: clamp(3.5rem, 8vw, 5.5rem); padding-top: clamp(2.5rem, 6vw, 3.5rem); border-top: 1px dashed rgba(255, 106, 0, .3); }
.habitants-head { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; }
.habitants-title { font-family: "Anton", Impact, sans-serif; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1; text-transform: uppercase; color: var(--color-white); }
.habitants-sub { font-family: "Share Tech Mono", monospace; font-size: clamp(.78rem, 2.2vw, .92rem); letter-spacing: .12em; color: var(--color-gray-muted); }
.habitants-sub strong { color: var(--color-primary-hover); font-weight: 400; }
.habitants-empty { margin-top: 2rem; text-align: center; color: var(--color-gray-muted); font-style: italic; }
.habitants-link { margin-top: 2rem; text-align: center; }
.habitants-link a { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; color: var(--color-primary-hover); border-bottom: 1px solid rgba(255, 106, 0, .35); padding-bottom: .2rem; transition: color .2s, border-color .2s; }
.habitants-link a:hover { color: var(--color-white); border-color: var(--color-white); }

.hkps {
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(255, 106, 0, .08), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 64px),
    var(--color-bg);
  overflow: hidden;
}
.hkps-story { display: grid; gap: 1rem; margin: 0 0 clamp(2rem, 5vw, 3rem); padding: 0; list-style: none; }
@media (min-width: 900px) { .hkps-story { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hkps-chapter {
  position: relative; padding: 1.5rem 1.4rem 1.4rem;
  border: 1px solid var(--color-border); border-left: 3px solid var(--color-primary); border-radius: 4px;
  background: var(--color-surface);
}
.hkps-chapter p { color: var(--color-gray); line-height: 1.7; font-size: .97rem; }
.hkps-chapter p + p { margin-top: .7rem; }
.hkps-era { font-family: "Share Tech Mono", monospace; font-size: .75rem !important; letter-spacing: .2em; text-transform: uppercase; color: var(--color-primary) !important; }
.hkps-chapter-title { margin: .35rem 0 .9rem; font-family: "Anton", Impact, sans-serif; font-size: clamp(1.45rem, 3.6vw, 1.8rem); line-height: 1.05; text-transform: uppercase; color: var(--color-white); }
.hkps-quote { margin-top: 1.1rem; padding-left: .9rem; border-left: 2px solid rgba(255, 106, 0, .5); font-family: "Permanent Marker", cursive; font-size: 1.05rem; color: var(--color-white); }

@media (min-width: 1100px) { .hkps-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hkps-icon { font-size: 3.6rem; line-height: 1; color: var(--color-primary); text-shadow: 0 0 28px var(--primary-glow); }

.hkps-rule {
  margin-top: clamp(2rem, 5vw, 3rem); padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid rgba(255, 106, 0, .55); border-radius: 4px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 106, 0, .12), rgba(255, 106, 0, .02));
  box-shadow: 0 24px 50px -32px var(--primary-glow);
}
.hkps-rule-label { font-size: .72rem; font-weight: 800; letter-spacing: .35em; text-transform: uppercase; color: var(--color-primary); }
.hkps-rule-text { margin-top: .7rem; font-family: "Anton", Impact, sans-serif; font-size: clamp(1.35rem, 4vw, 2.1rem); line-height: 1.15; text-transform: uppercase; color: var(--color-white); }
.hkps-rule-text strong { color: var(--color-primary-hover); font-weight: 400; }
.hkps-rule-sub { margin: .8rem auto 0; max-width: 42rem; color: var(--color-gray); line-height: 1.7; }

@media (max-width: 767px) {
  .drip-card:hover { transform: none; box-shadow: none; }
  .drip-visual { height: 96px; }
  .drip-code { flex-direction: column; align-items: flex-start; }
  .drip-code-list { flex-direction: column; gap: .55rem; }
}

/* =========================================================
   OBJECTIFS — « Nos objectifs à Los Santos »
   Trois paliers reliés par une ligne de progression :
   horizontale sur grand écran, verticale sur mobile.
   L'accent orange s'intensifie de 01 à 03 (fondations → héritage).
   ========================================================= */
.goals {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 14px),
    var(--color-bg);
}

/* Piste + ligne de progression (remplie au défilement par js/app.js via --goals-progress) */
.goals-track { --goals-progress: 1; position: relative; margin-top: clamp(2.75rem, 6vw, 4.5rem); padding-left: 2.25rem; }
.goals-rail { position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px; background: var(--color-border); }
.goals-rail-fill {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 106, 0, .55), var(--color-primary) 55%, var(--color-primary-hover));
  transform: scaleY(var(--goals-progress)); transform-origin: top;
}
.goals-list { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }

/* Intensité de l'accent par palier */
.goal--1 { --tier: rgba(255, 106, 0, .45); --tier-num: rgba(255, 106, 0, .3); }
.goal--2 { --tier: rgba(255, 106, 0, .75); --tier-num: rgba(255, 106, 0, .45); }
.goal--3 { --tier: var(--color-primary);    --tier-num: rgba(255, 140, 0, .65); }

.goal article {
  position: relative; height: 100%;
  padding: 1.75rem clamp(1.25rem, 4vw, 1.75rem) 1.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border); border-top: 2px solid var(--tier);
  border-radius: 3px;
  transition: transform .4s var(--ease-out), border-color .3s var(--ease-out), box-shadow .4s var(--ease-out);
}
.goal article:hover {
  transform: translateY(-4px);
  border-color: #474747; border-top-color: var(--color-primary-hover);
  box-shadow: 0 22px 44px -28px var(--primary-glow);
}

/* Repère losange posé sur la ligne de progression */
.goal-marker {
  position: absolute; left: calc(-2.25rem - 1px); top: calc(1.75rem + 1.5rem - 10px); /* en face du numéro */
  width: 16px; height: 16px; transform: rotate(45deg);
  background: var(--color-bg); border: 2px solid var(--tier);
  display: grid; place-items: center;
  transition: border-color .3s, box-shadow .3s;
}
.goal-marker span { width: 6px; height: 6px; background: var(--tier); }
.goal--3 .goal-marker { box-shadow: 0 0 14px var(--primary-glow); }
.goal article:hover .goal-marker { border-color: var(--color-primary-hover); }

/* Grand numéro en contour */
.goal-num {
  display: block; margin-bottom: .6rem;
  font-family: "Anton", Impact, sans-serif; font-size: clamp(3.2rem, 6vw, 4.5rem); line-height: 1;
  color: rgba(255, 106, 0, .06); -webkit-text-stroke: 1px var(--tier-num);
  pointer-events: none; user-select: none;
  transition: -webkit-text-stroke-color .3s, color .3s;
}
.goal article:hover .goal-num { color: rgba(255, 106, 0, .1); -webkit-text-stroke-color: var(--color-primary-hover); }

.goal-term { font-size: .72rem; font-weight: 800; letter-spacing: .35em; text-transform: uppercase; color: var(--color-primary); }
.goal-title { margin-top: .4rem; font-family: "Anton", Impact, sans-serif; font-size: clamp(1.8rem, 4.5vw, 2.3rem); line-height: 1; text-transform: uppercase; color: var(--color-white); }
.goal-desc {
  margin-top: .75rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--color-border);
  color: var(--color-gray); font-size: .95rem; line-height: 1.6; font-style: italic;
}
.goal-items { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.goal-items li { position: relative; padding-left: 1.35rem; color: var(--color-gray); font-size: .95rem; line-height: 1.65; }
.goal-items li + li { margin-top: .7rem; }
.goal-items li::before {
  content: ""; position: absolute; left: .15rem; top: .62em;
  width: 6px; height: 6px; background: var(--tier); transform: rotate(45deg);
}

.goals-outro {
  margin-top: clamp(2.5rem, 6vw, 4rem); text-align: center;
  font-family: "Permanent Marker", cursive; font-size: clamp(1.35rem, 4vw, 2rem); color: var(--color-white);
}
.goals-outro span { color: var(--color-primary); }

/* Grand écran : trois colonnes, ligne de progression horizontale au-dessus */
@media (min-width: 1024px) {
  .goals-track { padding-left: 0; padding-top: 2.75rem; }
  .goals-rail { left: 0; right: 0; top: .5rem; bottom: auto; width: auto; height: 2px; }
  .goals-rail-fill {
    background: linear-gradient(90deg, rgba(255, 106, 0, .55), var(--color-primary) 55%, var(--color-primary-hover));
    transform: scaleX(var(--goals-progress)); transform-origin: left;
  }
  .goals-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
  .goal-marker { left: 1.6rem; top: calc(-2.25rem - 9px); } /* centré sur la ligne */
}
/* Repère mobile : en face du grand numéro */
@media (max-width: 1023px) {
  .goal-marker { top: calc(1.75rem + 1.6rem - 10px); }
}

/* =========================================================
   RÈGLEMENT — accordéon
   ========================================================= */
.rules { display: grid; gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); }
@media (min-width: 768px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rule { padding: clamp(1.5rem, 3.5vw, 2.25rem); background: var(--color-surface); transition: background-color .3s var(--ease-out); }
.rule:hover { background: #1E1E1E; }
.rule--sanctions { background: linear-gradient(135deg, rgba(255, 106, 0, .07), transparent 55%), var(--color-surface); }
@media (min-width: 768px) { .rule--sanctions { grid-column: 1 / -1; } }
.rule-head { display: flex; align-items: center; gap: .9rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.rule-num { font-family: "Anton", Impact, sans-serif; font-size: 2.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 106, 0, .7); }
.rule-icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--color-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rule-title { font-family: "Anton", Impact, sans-serif; font-size: clamp(1.4rem, 3.5vw, 1.75rem); line-height: 1; text-transform: uppercase; letter-spacing: .01em; color: var(--color-white); }
.rule-list { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .75rem; }
.rule-list li { position: relative; padding-left: 1.2rem; color: var(--color-gray); line-height: 1.6; }
.rule-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--color-gray-muted); transform: rotate(45deg); }
.rule-list li.is-key { color: var(--color-white); font-weight: 600; }
.rule-list li.is-key::before { background: var(--color-primary); }
.rule-list .tag { margin-right: .55rem; }

/* Échelle des sanctions */
.sanction-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: 1.25rem; counter-reset: none; }
/* 4 côte à côte seulement sur grand écran (entre 768 et 1023 px, « Rétrogradation » était coupé) */
@media (min-width: 1024px) { .sanction-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sanction-steps li {
  position: relative; display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem;
  background: var(--color-bg); border: 1px solid var(--color-border);
  font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-white);
}
.sanction-steps li span { font-family: "Share Tech Mono", monospace; color: var(--color-primary); }
.sanction-steps li:nth-child(1) { border-bottom: 2px solid rgba(255, 106, 0, .3); }
.sanction-steps li:nth-child(2) { border-bottom: 2px solid rgba(255, 106, 0, .55); }
.sanction-steps li:nth-child(3) { border-bottom: 2px solid rgba(255, 106, 0, .8); }
.sanction-steps li:nth-child(4) { border-bottom: 2px solid var(--color-primary); }

/* =========================================================
   MEMBRES
   ========================================================= */
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
/* Compteur « X en ligne / Y membres » */
.live-count {
  display: inline-flex; align-items: center; gap: .75rem; margin-top: 1rem; padding: .55rem 1rem;
  border: 1px solid var(--color-border); background: var(--color-surface);
  font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--color-gray);
}
.live-total { color: var(--color-gray-muted); }

/* Cartes centrées : une ligne incomplète reste au milieu, pas collée à gauche */
.members-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.members-grid > li { flex: 0 1 170px; }
@media (max-width: 420px) {
  .members-grid { gap: .75rem; }
  .members-grid > li { flex-basis: calc(50% - .375rem); }
}
.member-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center;
  padding: 1.35rem .85rem 1.15rem; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 4px;
  transition: transform .4s var(--ease-spring), border-color .3s, box-shadow .3s;
}
/* Liseré orange en haut de la carte */
.member-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  transform: scaleX(.25); transition: transform .5s var(--ease-out);
}
.member-card:hover { transform: translateY(-4px); border-color: rgba(255, 106, 0, .7); box-shadow: 0 14px 30px -16px var(--primary-glow); }
.member-card:hover::before { transform: scaleX(1); }

/* Apparition en cascade (fill "backwards" pour ne pas bloquer l'effet de survol ensuite) */
.members-grid:not(.is-in) .member-card { opacity: 0; }
.members-grid.is-in .member-card { animation: member-in .6s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes member-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }

.member-avatar { position: relative; width: 68px; height: 68px; transition: transform .45s var(--ease-spring); }
.member-card:hover .member-avatar { transform: scale(1.08) rotate(-3deg); }
.member-avatar img, .member-avatar .avatar-fallback {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--color-gray-muted); box-shadow: 0 0 14px var(--steel-glow);
}
/* Pastille avec initiale : couleur calculée depuis le pseudo (--c) */
.avatar-fallback {
  --c: var(--color-primary);
  display: grid; place-items: center;
  background-color: var(--c); /* secours pour les vieux navigateurs */
  background-image: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 75%, #fff), color-mix(in srgb, var(--c) 45%, #000) 80%);
  border-color: var(--c) !important; box-shadow: 0 0 16px color-mix(in srgb, var(--c) 55%, transparent) !important;
  font-family: "Permanent Marker", cursive; font-size: 1.75rem; color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.45);
}
.member-status { position: absolute; right: 0; bottom: 2px; width: 17px; height: 17px; border-radius: 50%; border: 3px solid var(--color-surface); background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.member-status.idle { background: #facc15; box-shadow: 0 0 8px #facc15; }
.member-status.dnd { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.member-status.offline { background: var(--color-gray-muted); box-shadow: none; }

/* Membres hors ligne : carte atténuée, avatar en noir et blanc (redevient net au survol) */
.member-card.is-offline { opacity: .45; filter: grayscale(.85); transition: transform .4s var(--ease-spring), border-color .3s, box-shadow .3s, opacity .3s, filter .3s; }
.member-card.is-offline:hover { opacity: .85; filter: none; }
/* Mises à jour suivantes (toutes les minutes) : pas d'animation d'entrée rejouée */
.members-grid.is-static .member-card { animation: none; }
.member-name {
  font-size: .9rem; font-weight: 800; color: var(--color-white); line-height: 1.25; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Grade sous le pseudo : orange pour les gradés, gris pour les autres */
.member-role {
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-gray-muted); padding: .25rem .6rem; border-radius: 2px;
  background: rgba(255,255,255,.03); border: 1px solid var(--color-border);
}
.member-role.is-high { color: var(--color-primary-hover); border-color: rgba(255, 106, 0,.55); background: rgba(255, 106, 0,.1); }

/* =========================================================
   TÉLÉCHARGEMENT — FiveM Cleaner
   ========================================================= */
.download-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(2rem, 6vw, 3.25rem) clamp(1.25rem, 5vw, 3rem);
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 106, 0,.25), transparent 60%),
    var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
  transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.download-card:hover { border-color: rgba(255, 106, 0,.55); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 40px -16px var(--primary-glow); }
/* Liseré orange en haut du bloc */
.download-card::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 40%; height: 3px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--color-primary-hover), transparent);
}

.download-icon {
  width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 4px;
  display: grid; place-items: center;
  background: var(--color-bg); border: 1px solid rgba(255, 106, 0,.5);
  box-shadow: 0 0 24px -6px var(--primary-glow);
  transition: transform .45s var(--ease-spring);
}
.download-card:hover .download-icon { transform: translateY(-4px) rotate(-4deg); }
.download-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--color-primary-hover); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.download-title { font-family: "Anton", Impact, sans-serif; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1; text-transform: uppercase; color: var(--color-white); margin-top: .75rem; }
.download-text { max-width: 34rem; margin: 1rem auto 0; color: var(--color-gray); line-height: 1.7; }

.download-actions { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin-top: 2rem; }

/* Badge de sécurité vert (seule touche de vert du bloc) */
.safe-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #4ade80; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.45);
  box-shadow: 0 0 18px -6px rgba(34,197,94,.6);
}

/* Bouton + compteur côte à côte (l'un sous l'autre sur téléphone) */
.download-row { display: flex; align-items: stretch; justify-content: center; gap: .9rem; flex-wrap: wrap; }
.download-stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 128px; padding: .55rem 1.1rem; border-radius: 8px;
  background: var(--color-bg); border: 1px solid var(--color-border);
}
.download-stat-num {
  font-family: "Permanent Marker", cursive; font-size: 1.7rem; line-height: 1; color: var(--color-white);
  font-variant-numeric: tabular-nums; display: inline-block;
}
.download-stat-num.is-bump { animation: count-bump .6s var(--ease-spring); color: var(--color-primary-hover); }
@keyframes count-bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.download-stat-label { margin-top: .3rem; font-size: .65rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--color-gray-muted); }
@media (max-width: 480px) { .download-row { flex-direction: column; } .download-stat { flex-direction: row; gap: .6rem; } .download-stat-label { margin-top: 0; } }

.btn-download { padding: 1.15rem 2.2rem; font-size: 1rem; }
.btn-download svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-spring); }
.btn-download:hover svg { transform: translateY(3px); }
@media (max-width: 480px) { .btn-download { width: 100%; letter-spacing: .08em; } }

.download-meta { margin-top: 1rem; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--color-gray-muted); }
.download-hash { margin-top: .6rem; font-size: .75rem; color: var(--color-gray-muted); }
.download-hash summary { cursor: pointer; display: inline-block; transition: color .2s; }
.download-hash summary:hover { color: var(--color-gray); }
.download-hash code {
  display: block; margin: .6rem auto 0; max-width: 100%; padding: .6rem .8rem; border-radius: 8px;
  font-family: "Share Tech Mono", monospace; font-size: .72rem; color: var(--color-gray);
  background: var(--color-bg); border: 1px solid var(--color-border); word-break: break-all; user-select: all;
}

/* =========================================================
   4. REJOINDRE — étapes + formulaire
   ========================================================= */
/* Mise en page : présentation à gauche (reste visible), action à droite */
.join-layout { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 1024px) {
  .join-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
  .join-intro { position: sticky; top: 96px; }
}
.join-subtitle { margin-top: 2.25rem; font-size: .74rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--color-primary); }
.expect-list { margin-top: .9rem; border-top: 1px solid var(--color-border); }
.expect-list li { position: relative; padding: .8rem 0 .8rem 1.4rem; border-bottom: 1px solid var(--color-border); color: var(--color-gray); line-height: 1.55; }
.expect-list li::before { content: ""; position: absolute; left: .15rem; top: 1.35em; width: 7px; height: 7px; background: var(--color-primary); transform: rotate(45deg); }
.join-note { padding-left: 2.75rem; color: var(--color-gray); line-height: 1.65; }

/* Le parcours en images (3 tutos) */
.tuto { margin-top: clamp(3.5rem, 7vw, 5.5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--color-border); }
.tuto-head { display: grid; gap: .75rem; margin-bottom: 2rem; }
@media (min-width: 1024px) { .tuto-head { grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 3rem; } }
.tuto-title { font-family: "Anton", Impact, sans-serif; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1; text-transform: uppercase; color: var(--color-white); }
.tuto-title span { color: var(--color-primary); }
.tuto-intro { color: var(--color-gray); line-height: 1.6; }
.tuto-list { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .tuto-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tuto-card {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--color-border); border-top: 2px solid var(--color-primary); border-radius: 3px; background: var(--color-surface);
  transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s var(--ease-out);
}
.tuto-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease-out); }
.tuto-card:hover { transform: translateY(-4px); border-color: rgba(255, 106, 0, .7); box-shadow: 0 22px 44px -26px var(--primary-glow); }
.tuto-card:hover img { transform: scale(1.03); }
.tuto-card:focus-visible { outline: 2px solid var(--color-white); outline-offset: 3px; }
.tuto-label { display: block; padding: .95rem 1.1rem; font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--color-white); border-top: 1px solid var(--color-border); }
.tuto-card { cursor: zoom-in; }

/* ---------- Visionneuse (image agrandie sur la page, animée depuis sa vignette) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: clamp(3.5rem, 6vw, 5rem) clamp(.75rem, 5vw, 6rem); }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(5, 5, 5, .92); opacity: 0; transition: opacity .35s var(--ease-out); cursor: zoom-out; }
.lightbox.is-open .lb-backdrop { opacity: 1; }
.lb-figure { position: relative; z-index: 1; margin: 0; display: flex; flex-direction: column; align-items: center; max-width: min(1600px, 100%); }
/* Taille fixe en 16:9 (comme les tutos) : rien ne saute quand la version HD remplace la vignette */
.lb-img {
  display: block; aspect-ratio: 16 / 9; height: auto; object-fit: contain; background: #111;
  width: min(1600px, calc(100vw - 2 * clamp(.75rem, 5vw, 6rem)), calc((100vh - 9rem) * 16 / 9));
  border: 1px solid var(--color-border); border-top: 2px solid var(--color-primary);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95), 0 0 80px -40px var(--primary-glow);
  transform-origin: top left; will-change: transform;
}
.lb-caption {
  display: flex; align-items: baseline; gap: .9rem; margin-top: 1rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--color-white);
  opacity: 0; transition: opacity .3s .15s var(--ease-out);
}
.lightbox.is-open .lb-caption { opacity: 1; }
.lb-count { font-family: "Share Tech Mono", monospace; letter-spacing: .08em; color: var(--color-primary); }
.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px;
  color: var(--color-white); background: rgba(26, 26, 26, .85); border: 1px solid var(--color-border); border-radius: 3px;
  opacity: 0; transition: opacity .3s .1s var(--ease-out), background-color .2s, border-color .2s, transform .25s var(--ease-spring);
}
.lightbox.is-open .lb-btn { opacity: 1; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:hover { background: var(--color-primary); border-color: var(--color-primary); }
.lb-btn:active { transform: scale(.94); }
.lb-btn:focus-visible { outline: 2px solid var(--color-white); outline-offset: 3px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: clamp(.5rem, 2vw, 1.5rem); top: 50%; margin-top: -24px; }
.lb-next { right: clamp(.5rem, 2vw, 1.5rem); top: 50%; margin-top: -24px; }
/* Téléphone : flèches en bas, de part et d'autre de la légende */
@media (max-width: 767px) {
  .lightbox { padding: 4rem .5rem 5.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; margin-top: 0; }
  .lb-prev { left: 1rem; } .lb-next { right: 1rem; }
  .lb-caption { font-size: .68rem; letter-spacing: .14em; }
}
body.lb-open { overflow: hidden; }

.step-label { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; color: var(--color-gray); }
.step-label span {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 2px;
  font-family: "Anton", Impact, sans-serif; font-size: 1rem; color: #0A0A0A; background: var(--color-primary);
}

.hood-form {
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
}

/* Champ à label flottant : le label glisse vers le haut au focus / quand c'est rempli */
.float-field { position: relative; }
.float-field input, .float-field textarea {
  width: 100%; padding: 1.55rem 1rem .6rem;
  background: var(--color-bg); color: var(--color-white);
  border: 1px solid var(--color-border); border-radius: 3px;
  font-size: 16px; /* 16px évite le zoom automatique sur iPhone */
  outline: none;
  transition: border-color .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .35s var(--ease-out);
}
.float-field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.float-field input::placeholder, .float-field textarea::placeholder { color: transparent; transition: color .3s; }
.float-field input:focus::placeholder, .float-field textarea:focus::placeholder { color: #4F4F4F; }
.float-field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.float-field input::-webkit-outer-spin-button, .float-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.float-field label {
  position: absolute; left: 1rem; top: 1.05rem;
  color: var(--color-gray-muted); font-weight: 600; font-size: 1rem;
  pointer-events: none; transform-origin: left top;
  transition: transform .4s var(--ease-spring), color .3s var(--ease-out), letter-spacing .3s;
}
.float-field input:focus + label, .float-field input:not(:placeholder-shown) + label,
.float-field textarea:focus + label, .float-field textarea:not(:placeholder-shown) + label {
  transform: translateY(-.62rem) scale(.72);
  letter-spacing: .12em; text-transform: uppercase; font-weight: 800;
}
.float-field input:focus + label, .float-field textarea:focus + label { color: var(--color-primary-hover); }

/* Barre lumineuse orange qui s'allume depuis le centre */
.float-field .bar {
  position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover), var(--color-primary));
  box-shadow: 0 0 10px var(--primary-hover-glow);
  transform: scaleX(0); transition: transform .5s var(--ease-out);
}
.float-field input:hover, .float-field textarea:hover { border-color: #3A3A3A; }
.float-field input:focus, .float-field textarea:focus {
  background: #101010;
  border-color: rgba(255, 140, 0,.7);
  box-shadow: 0 0 0 4px rgba(255, 140, 0,.12), 0 10px 30px -14px var(--primary-glow);
}
.float-field input:focus ~ .bar, .float-field textarea:focus ~ .bar { transform: scaleX(1); }

/* Erreurs */
.field.has-error .float-field input, .field.has-error .float-field textarea { border-color: rgba(239,68,68,.75); animation: shake .4s var(--ease-out); }
.field.has-error .float-field label { color: #f87171; }
.field-error { min-height: 1.1em; margin-top: .4rem; font-size: .8rem; color: #f87171; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
/* Aide dépliable sous un champ (ex. où trouver son ID Discord) */
.field-help { margin-top: .35rem; font-size: .82rem; color: var(--color-gray-muted); }
.field-help summary { cursor: pointer; display: inline-block; color: var(--color-gray); transition: color .2s; }
.field-help summary:hover { color: var(--color-primary-hover); }
.field-help ol { margin: .6rem 0 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; line-height: 1.5; list-style: decimal; }
.field-help strong { color: var(--color-white); }

/* Choix du groupe : KPS ou Habitants KPS (2 boutons radio, un seul sélectionnable) */
.faction-choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.faction-legend { margin-bottom: .6rem; padding: 0; font-size: .72rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--color-primary); }
.faction-options { display: grid; gap: .75rem; }
@media (min-width: 560px) { .faction-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faction-option { position: relative; display: block; cursor: pointer; }
.faction-option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.faction-card {
  position: relative; display: flex; flex-direction: column; gap: .3rem; height: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 3px;
  transition: border-color .25s, background .25s, box-shadow .3s var(--ease-out), transform .2s;
}
.faction-check {
  position: absolute; left: 1rem; top: 1.1rem; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #4A4A4A; transition: border-color .2s, box-shadow .2s;
}
.faction-check::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--color-primary); transform: scale(0); transition: transform .25s var(--ease-out);
}
.faction-name { font-family: "Anton", Impact, sans-serif; font-size: 1.25rem; line-height: 1.1; text-transform: uppercase; color: var(--color-white); }
.faction-desc { font-size: .85rem; color: var(--color-gray-muted); }
.faction-option:hover .faction-card { border-color: #3A3A3A; }
.faction-option input:checked + .faction-card {
  border-color: rgba(255, 106, 0, .8);
  background: linear-gradient(180deg, rgba(255, 106, 0, .12), var(--color-bg) 75%);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .12), 0 14px 30px -18px var(--primary-glow);
}
.faction-option input:checked + .faction-card .faction-check { border-color: var(--color-primary); box-shadow: 0 0 10px var(--primary-glow); }
.faction-option input:checked + .faction-card .faction-check::after { transform: scale(1); }
.faction-option input:focus-visible + .faction-card { outline: 2px solid var(--color-primary-hover); outline-offset: 2px; }
.faction-option:active .faction-card { transform: scale(.99); }
.field.has-error .faction-card { border-color: rgba(239,68,68,.75); animation: shake .4s var(--ease-out); }
/* Groupe dont les recrutements sont fermés : choix grisé, non sélectionnable */
.faction-closed {
  align-self: flex-start; margin-top: .35rem; padding: .18rem .5rem; border-radius: 2px;
  font-family: "Share Tech Mono", monospace; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: #FCA5A5; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .45);
}
.faction-closed[hidden] { display: none; }
.faction-option.is-closed { cursor: not-allowed; }
.faction-option.is-closed .faction-card {
  background: repeating-linear-gradient(-45deg, rgba(239, 68, 68, .05) 0 12px, transparent 12px 24px), var(--color-bg);
  border-style: dashed; border-color: rgba(239, 68, 68, .35); transform: none;
}
.faction-option.is-closed .faction-name, .faction-option.is-closed .faction-desc { opacity: .45; }
.faction-option.is-closed .faction-check { border-color: #3A3A3A; }
/* Choix mis en avant quand on arrive depuis le bouton « Postuler » du bandeau */
.faction-option.is-pulse .faction-card { animation: faction-pulse 1.1s var(--ease-out); }
@keyframes faction-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 0, .55); } 100% { box-shadow: 0 0 0 14px rgba(255, 106, 0, 0); } }

/* Champ piège anti-bot, caché hors écran */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { padding: 3rem 0 6rem; background: var(--color-bg); border-top: 1px solid var(--color-border); }
/* Le bas du pied de page reste dégagé du widget de volume (fixé en bas à droite) sur tous les écrans */
.footer-top { display: flex; flex-direction: column; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--color-border); }
@media (min-width: 768px) { .footer-top { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand span { font-family: "Permanent Marker", cursive; font-size: 1.2rem; color: var(--color-white); }
.footer-brand em { font-style: normal; color: var(--color-primary); }
.footer-logo { height: 52px; width: auto; opacity: .9; transition: transform .4s var(--ease-spring), opacity .3s; }
.footer-brand:hover .footer-logo { transform: rotate(-2deg); opacity: 1; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.footer-nav a { color: var(--color-gray); transition: color .2s; }
.footer-nav a:hover { color: var(--color-primary); }
.footer-bottom { display: flex; flex-direction: column; gap: .5rem; padding-top: 1.5rem; font-size: .78rem; color: var(--color-gray-muted); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* =========================================================
   TOASTS
   ========================================================= */
.toast-zone { position: fixed; right: 1rem; bottom: 4.75rem; /* au-dessus du widget volume */ z-index: 120; display: flex; flex-direction: column; gap: .75rem; max-width: min(380px, calc(100vw - 2rem)); }
@media (max-width: 640px) { .toast-zone { left: 1rem; right: 1rem; bottom: 4.5rem; max-width: none; } }
.toast {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 1.1rem; background: var(--color-surface); color: var(--color-white); border-radius: 12px;
  border: 1px solid var(--color-border); border-left: 5px solid var(--color-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 22px var(--primary-glow);
  animation: toast-in .5s var(--ease-spring) both;
}
.toast.is-error { border-left-color: #ef4444; box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 22px rgba(239,68,68,.4); }
.toast.is-leaving { animation: toast-out .35s var(--ease-out) both; }
.toast-title { font-family: "Permanent Marker", cursive; font-size: 1.15rem; line-height: 1.2; }
.toast-msg { font-size: .85rem; color: var(--color-gray); margin-top: .15rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }

/* =========================================================
   POPUP COOKIES (fenêtre centrale)
   ========================================================= */
/* Overlay plein écran sombre et opaque : isole le popup sans flou
   (backdrop-filter coûtait trop cher au processeur / à la carte graphique) */
.cookie-overlay {
  position: fixed; inset: 0; z-index: 130; /* au-dessus du widget de volume et des notifications */
  display: grid; place-items: center; padding: 1.25rem;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity .45s var(--ease-out);
}
.cookie-overlay[hidden] { display: none; }
.cookie-overlay.is-visible { opacity: 1; }
.cookie-overlay.is-leaving { opacity: 0; pointer-events: none; } /* fondu de sortie */

/* La boîte */
.cookie-box {
  width: min(420px, 100%);
  padding: 2rem clamp(1.25rem, 5vw, 2rem) 1.75rem;
  text-align: center;
  background: var(--color-surface);
  color: var(--color-gray);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.85), 0 0 0 1px rgba(255, 106, 0,.15), 0 0 40px -18px var(--primary-glow);
  transform: translateY(16px) scale(.96);
  transition: transform .5s var(--ease-spring);
}
.cookie-overlay.is-visible .cookie-box { transform: none; }
.cookie-overlay.is-leaving .cookie-box { transform: translateY(10px) scale(.97); }

/* Image qui flotte doucement de haut en bas.
   Uniquement transform: translateY dans les keyframes (aucun top / margin) :
   le navigateur déplace l'image sur la carte graphique sans recalculer la mise en page. */
.cookie-img-wrap { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.cookie-img {
  width: auto; height: 110px; max-width: 70%; object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)) drop-shadow(0 0 22px var(--primary-glow));
  animation: cookie-float 3.2s ease-in-out infinite;
  will-change: transform; /* image sur son propre calque : l'ombre n'est pas redessinée à chaque image */
}
.cookie-emoji { height: auto; font-size: 4.5rem; line-height: 1; }
@keyframes cookie-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.cookie-title {
  font-size: clamp(1.05rem, 4vw, 1.25rem); font-weight: 800; line-height: 1.4;
  color: var(--color-gray);
}

/* Boutons arrondis côte à côte */
.cookie-actions { display: flex; gap: .75rem; margin-top: 1.5rem; }
.cookie-btn {
  position: relative; overflow: hidden; flex: 1;
  padding: .85rem 1rem; border-radius: 999px;
  font-size: .85rem; font-weight: 800; letter-spacing: .02em;
  transition: transform .35s var(--ease-spring), background-color .3s var(--ease-out), border-color .3s var(--ease-out), color .3s, box-shadow .3s;
}
.cookie-btn:active { transform: scale(.95); transition-duration: .1s; }
.cookie-btn:focus-visible { outline: 3px solid var(--color-white); outline-offset: 3px; }

/* « J'accepte de manger » : orange Hoover → orange lumineux au survol */
.cookie-accept { background: var(--color-primary); color: #fff; border: 1px solid var(--color-primary); box-shadow: 0 8px 20px -10px var(--primary-glow); }
.cookie-accept:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 26px -10px var(--primary-hover-glow); }

/* « Je refuse de manger » : noir charbon, bordure gris acier */
.cookie-refuse { background: #141414; color: var(--color-gray); border: 1px solid var(--color-gray-muted); }
.cookie-refuse:hover { border-color: var(--color-gray); color: var(--color-white); background: #1F1F1F; transform: translateY(-2px); }

/* Très petits écrans : boutons l'un sous l'autre pour rester lisibles */
@media (max-width: 360px) { .cookie-actions { flex-direction: column; } }

/* =========================================================
   MOBILE (téléphone / tablette) — confort au doigt et effets allégés
   html.is-mobile est posé par js/app.js (écran < 768 px ou tactile sans souris)
   ========================================================= */
/* Pas de son sur mobile : le bouton de volume disparaît (et ne cache plus le texte en bas d'écran) */
.sound-widget[hidden] { display: none !important; }
html.is-mobile .toast-zone { bottom: 1rem; }
/* Tablettes tactiles (iPad…) : un .exe Windows ne s'y installe pas non plus */
html.is-mobile #telechargement { display: none; }

@media (max-width: 767px) {
  /* Flous d'arrière-plan (très coûteux pendant le défilement) remplacés par des fonds opaques */
  #navbar.is-scrolled { backdrop-filter: none; background: rgba(10, 10, 10, .97); }
  .btn-ghost { backdrop-filter: none; background: rgba(10, 10, 10, .6); }
  /* Ombres larges allégées */
  .recruit-status { box-shadow: 0 16px 30px -24px rgba(0, 0, 0, .9); }
  .hood-form { box-shadow: none; }

  /* « 05 Sanctions » : les 4 encadrés s'empilent (en 2 colonnes, « AVERTISSEMENT » était coupé) */
  .sanction-steps { grid-template-columns: 1fr; }

  /* Application .exe (Windows uniquement) : inutile sur téléphone, section masquée */
  #telechargement { display: none; }

  /* Zones tactiles d'au moins 44 px (recommandation Apple / Google) */
  .footer-nav { gap: 0 1.25rem; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .field-help summary, .download-hash summary { display: inline-flex; align-items: center; min-height: 44px; }
}

/* =========================================================
   ACCESSIBILITÉ : mouvement réduit
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
