/* ==========================================================================
   ICONIC TRAINING — Feuille de style V2 « épurée »
   --------------------------------------------------------------------------
   01. Tokens
   02. Reset & base
   03. Accessibilité (skip-link, sr-only, focus)
   04. Fond animé & couches
   05. Mise en page (container, section, grilles)
   06. Header & logo
   07. Navigation (desktop + mobile)
   08. Typographie & utilitaires texte
   09. Boutons
   10. Heros (accueil + pages internes) & fil d'Ariane
   11. Cartes & tags
   12. Listes
   13. Statistiques
   14. Statut serveur (pastille, carte, jauge)
   15. Copie d'IP
   16. Tableaux, notes, FAQ
   17. Sommaire (layout sidebar)
   18. Bandeau CTA
   19. Modes de jeu
   20. Footer
   21. Toast
   22. Bannière cookies
   23. Modales, consentement, interrupteurs
   24. Reveal au scroll
   25. Keyframes
   26. Responsive
   27. Mouvement réduit
   ========================================================================== */


/* ==========================================================================
   01. Tokens
   ========================================================================== */
:root {
  /* Palette de marque */
  --red: #E10600;
  --red-deep: #9A0000;
  --black: #0A0A0A;
  --graphite: #1E1E1E;
  --white: #FFFFFF;

  /* Surfaces & lignes */
  --bg: var(--black);
  --surface: #141414;
  --surface-2: #1E1E1E;
  --surface-3: #262626;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-red: rgba(225, 6, 0, 0.55);

  /* Texte */
  --text: var(--white);
  --muted: rgba(255, 255, 255, 0.64);
  --dim: rgba(255, 255, 255, 0.42);

  /* Typographie */
  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --track: 0.02em;

  /* Mise en page */
  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 4px;
  --radius-sm: 2px;

  /* Mouvement */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 160ms;
  --t: 200ms;
  --t-slow: 240ms;

  /* Couches */
  --z-canvas: 0;
  --z-content: 1;
  --z-header: 50;
  --z-cookie: 80;
  --z-modal: 100;
  --z-toast: 120;
  --z-skip: 200;

  color-scheme: dark;
}


/* ==========================================================================
   02. Reset & base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--track);
  text-transform: uppercase;
  overflow-wrap: break-word;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

p a:not(.btn),
.faq-body a:not(.btn),
.note a:not(.btn),
.stack li a:not(.btn),
.table a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--line-red);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t) var(--ease), color var(--t) var(--ease);
}

p a:not(.btn):hover,
.faq-body a:not(.btn):hover,
.note a:not(.btn):hover,
.stack li a:not(.btn):hover,
.table a:hover {
  text-decoration-color: var(--red);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

strong, b { font-weight: 600; }

hr {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

[hidden] { display: none !important; }

::selection {
  background: var(--red);
  color: var(--white);
}

/* Scrollbar — Firefox */
html {
  scrollbar-color: #2E2E2E var(--black);
  scrollbar-width: thin;
}

/* Scrollbar — WebKit / Blink */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb {
  background: #2E2E2E;
  border: 2px solid var(--black);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: #444; }


/* ==========================================================================
   03. Accessibilité
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform var(--t) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}


/* ==========================================================================
   04. Fond animé & couches
   ========================================================================== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: var(--z-canvas);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main,
.site-footer {
  position: relative;
  z-index: var(--z-content);
}


/* ==========================================================================
   05. Mise en page
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--container-narrow) + var(--gutter) * 2);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.6);
}

.section--border {
  border-top: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.stack > * + * {
  margin-top: 1.25em;
}

.stack > :is(h2, h3, h4) {
  margin-top: 2em;
}

.stack > :is(h2, h3, h4) + * {
  margin-top: 0.75em;
}

.stack > :first-child { margin-top: 0; }

.stack h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.stack h3 { font-size: clamp(1.1rem, 2vw, 1.25rem); font-weight: 600; }
.stack p,
.stack li { color: var(--muted); }
.stack p strong,
.stack li strong { color: var(--white); }

.stack > ul:not([class]),
.stack > ol:not([class]) {
  padding-left: 1.25em;
}

.stack > ul:not([class]) { list-style: square; }
.stack > ul:not([class]) li::marker { color: var(--red); }
.stack > ul:not([class]) li + li { margin-top: 0.4em; }

/* Listes d'articles numérotés dans le texte (ex. « 1.1 Respect ») :
   la numérotation est déjà écrite, on la remplace par des hairlines. */
.stack > ol:not([class]) {
  padding-left: 0;
  border-top: 1px solid var(--line);
}

.stack > ol:not([class]) > li {
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}


/* ==========================================================================
   06. Header & logo
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
}

/* Fond porté par un pseudo-élément : un backdrop-filter sur le header
   deviendrait le bloc conteneur du panneau mobile en position fixed. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}

.site-header.is-scrolled::before,
body.nav-open .site-header::before {
  opacity: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.header-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: none;
}

/* Logo */
.logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  overflow: visible;
}

.logo-hex {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linejoin: miter;
}

.logo-ring {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
}

.logo-dot { fill: var(--white); }

.logo-slash {
  fill: var(--red);
  transition: fill var(--t) var(--ease);
}

.logo:hover .logo-slash { fill: #FF2A20; }

.logo-text {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.logo-sub {
  margin-top: 4px;
  color: var(--red);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.42em;
}


/* ==========================================================================
   07. Navigation
   ========================================================================== */
.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--t) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"],
.nav-link.is-active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link--shop {
  color: var(--dim);
}

.nav-link--shop::after { background: var(--line-strong); }

/* Bouton hamburger */
.nav-toggle {
  position: relative;
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--t) var(--ease);
}

.nav-toggle:hover { border-color: rgba(255, 255, 255, 0.32); }

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--white);
  transition: transform var(--t-slow) var(--ease), top var(--t-slow) var(--ease);
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 23px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 19px;
  transform: rotate(-45deg);
}


/* ==========================================================================
   08. Typographie & utilitaires texte
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head .eyebrow { margin-bottom: 14px; }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
}

.section-lead,
.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
}

.section-title + .section-lead,
.section-title + .lead {
  margin-top: 16px;
}

.muted { color: var(--muted); }
.text-red { color: var(--red); }

.kbd {
  display: inline-block;
  padding: 1px 7px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.86em;
  line-height: 1.5;
  white-space: nowrap;
}


/* ==========================================================================
   09. Boutons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--t) var(--ease),
    border-color var(--t) var(--ease),
    color var(--t) var(--ease),
    transform var(--t) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn .icon,
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #C40500;
  border-color: #C40500;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.36);
}

.btn--link {
  min-height: 0;
  padding: 4px 0;
  border: 0;
  color: var(--white);
}

.btn--link::after {
  content: "→";
  font-family: var(--font-body);
  transition: transform var(--t) var(--ease);
}

.btn--link:hover { color: var(--white); }
.btn--link:hover::after { transform: translateX(4px); }
.btn--link:active { transform: none; }

.btn--sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 0.78rem;
}

.btn--lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 0.95rem;
}

.btn.is-copied,
.btn--primary.is-copied {
  background: transparent;
  border-color: var(--red);
  color: var(--white);
}


/* ==========================================================================
   10. Heros & fil d'Ariane
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  padding-block: clamp(64px, 10vw, 120px);
}

.hero-title {
  max-width: 14ch;
  font-size: clamp(2.4rem, 7vw, 5.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--track);
}

.hero-title .text-red { display: inline; }

.hero-lead {
  max-width: 560px;
  margin-top: clamp(20px, 3vw, 28px);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 40px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta > * { min-width: 0; }

.page-hero {
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.page-title {
  max-width: 18ch;
  font-size: clamp(2.1rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.02;
}

.page-lead {
  max-width: 620px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
}

.breadcrumb {
  margin-bottom: 28px;
  font-size: 0.82rem;
  color: var(--dim);
}

.breadcrumb ol,
.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline: 10px;
  color: var(--line-strong);
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--t) var(--ease);
}

.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--white); }


/* ==========================================================================
   11. Cartes & tags
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  height: 100%;
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color var(--t) var(--ease),
    transform var(--t) var(--ease),
    background-color var(--t) var(--ease);
}

.card--link { color: inherit; }

.card--link:hover,
.card--link:focus-visible {
  border-color: rgba(225, 6, 0, 0.45);
  transform: translateY(-2px);
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--red);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

.card-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card--link .card-meta {
  color: var(--white);
  transition: transform var(--t) var(--ease), color var(--t) var(--ease);
}

/* La flèche (dans le texte du libellé) glisse au survol */
.card--link:hover .card-meta,
.card--link:focus-visible .card-meta {
  color: var(--red);
  transform: translateX(4px);
}

.tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  width: fit-content;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}


/* ==========================================================================
   12. Listes
   ========================================================================== */
.list-check li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.list-check li + li { margin-top: 10px; }

.list-check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

.list-check li strong { color: var(--white); }

.list-steps {
  counter-reset: step;
}

.list-steps > li {
  position: relative;
  counter-increment: step;
  min-height: 48px;
  padding: 0 0 0 clamp(64px, 8vw, 80px);
  color: var(--muted);
}

.list-steps > li + li {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.list-steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1;
  letter-spacing: var(--track);
}

.list-steps > li + li::before { top: 28px; }

.list-steps strong { color: var(--white); }

.list-steps h3,
.list-steps h4 {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
}

.list-plain li {
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.list-plain li:first-child { padding-top: 0; }
.list-plain li:last-child { border-bottom: 0; padding-bottom: 0; }
.list-plain li strong { color: var(--white); }
.list-plain a { color: var(--white); transition: color var(--t) var(--ease); }
.list-plain a:hover { color: var(--red); }


/* ==========================================================================
   13. Statistiques
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stat {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-value {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1;
  letter-spacing: var(--track);
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}


/* ==========================================================================
   14. Statut serveur
   ========================================================================== */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.3;
  white-space: nowrap;
}

.status strong {
  color: var(--white);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.status-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  animation: status-blink 1.4s ease-in-out infinite;
}

/* Chargement : point atténué clignotant (état par défaut) */
.is-loading .status-dot,
[data-server-status]:not(.is-online):not(.is-offline) .status-dot {
  background: var(--dim);
  animation: status-blink 1.4s ease-in-out infinite;
}

.is-online .status-dot {
  background: var(--red);
  animation: status-breathe 2.4s ease-in-out infinite;
}

.is-offline .status-dot {
  background: #5A5A5A;
  animation: none;
}

.status--compact {
  padding: 5px 12px 5px 10px;
  border-color: var(--line);
  font-size: 0.8rem;
}

/* Carte de statut (serveur.html) */
.status-card {
  min-width: 0;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.status-card-head > :is(h2, h3, p) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-big {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 5rem);
  line-height: 1;
  letter-spacing: var(--track);
  font-variant-numeric: tabular-nums;
}

.status-big {
  margin-top: 28px;
  color: var(--dim);
}

.status-big [data-player-max] {
  color: var(--muted);
  font-size: 0.5em;
}

.status-big small,
.status-big .muted {
  flex-basis: 100%;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.status-big strong,
.status-big [data-player-count] {
  color: var(--white);
  font-weight: 700;
  font-size: 1em;
  letter-spacing: var(--track);
}

.meter {
  position: relative;
  height: 4px;
  margin-top: 20px;
  overflow: hidden;
  background: var(--surface-3);
  border-radius: 999px;
}

.meter > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  border-radius: inherit;
  transition: width 0.6s var(--ease);
}

.status-card dl {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.status-card dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.status-card dt {
  flex: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-card dd {
  min-width: 0;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}

/* dl sans wrappers <div> */
.status-card dl:not(:has(> div)) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.status-card dl:not(:has(> div)) > :is(dt, dd) {
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.status-card-foot,
.status-card [data-status-updated] {
  color: var(--dim);
  font-size: 0.8rem;
}

.status-card .ip-copy {
  display: flex;
  width: 100%;
}

.status-card .btn { margin-top: 24px; }

.status-card > p.muted:last-child {
  margin-top: 20px;
  font-size: 0.85rem;
}


/* ==========================================================================
   15. Copie d'IP
   ========================================================================== */
.ip-copy {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
  min-height: 48px;
  padding: 8px 8px 8px 18px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  text-align: left;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}

.ip-copy code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.ip-copy-action {
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}

.ip-copy:hover,
.ip-copy:focus-visible {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(20, 20, 20, 0.8);
}

.ip-copy:hover .ip-copy-action {
  color: var(--white);
  border-color: var(--line-strong);
}

.ip-copy.is-copied { border-color: var(--red); }

.ip-copy.is-copied .ip-copy-action {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}


/* ==========================================================================
   16. Tableaux, notes, FAQ
   ========================================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table th,
.table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tbody th {
  color: var(--white);
  font-weight: 600;
}

.table td { color: var(--muted); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr { transition: background-color var(--t-fast) var(--ease); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.table caption {
  padding: 12px 18px;
  caption-side: bottom;
  color: var(--dim);
  font-size: 0.82rem;
  text-align: left;
}

.note {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.note strong { color: var(--white); }
.note > * + * { margin-top: 8px; }

.note--warn {
  border-left-color: var(--red);
}

details.faq {
  border-bottom: 1px solid var(--line);
}

details.faq:first-of-type,
:not(details.faq) + details.faq {
  border-top: 1px solid var(--line);
}

details.faq summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: var(--track);
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
  transition: color var(--t) var(--ease);
}

details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::marker { content: ""; }

details.faq summary:hover { color: var(--red); }

/* Marqueur +/− */
details.faq summary::before,
details.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease);
}

details.faq summary::after {
  transform: rotate(90deg);
}

details.faq[open] summary::after {
  transform: rotate(0deg);
  opacity: 0;
}

.faq-body {
  padding: 0 48px 24px 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-body > * + * { margin-top: 12px; }

details.faq[open] .faq-body {
  animation: faq-in var(--t-slow) var(--ease);
}

/* Ouverture fluide quand le navigateur la supporte */
@supports (interpolate-size: allow-keywords) {
  details.faq { interpolate-size: allow-keywords; }
  details.faq::details-content {
    height: 0;
    overflow: hidden;
    transition: height var(--t-slow) var(--ease), content-visibility var(--t-slow) allow-discrete;
  }
  details.faq[open]::details-content { height: auto; }
}


/* ==========================================================================
   17. Sommaire (layout sidebar)
   ========================================================================== */
.toc {
  min-width: 0;
  font-size: 0.9rem;
}

.toc-title {
  margin-bottom: 14px;
  color: var(--dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toc ol,
.toc ul {
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 1px solid transparent;
  color: var(--muted);
  line-height: 1.4;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.toc a:hover { color: var(--white); }

.toc a.is-active,
.toc a[aria-current] {
  color: var(--white);
  border-left-color: var(--red);
}

.layout-sidebar > :not(.toc) { min-width: 0; }


/* ==========================================================================
   18. Bandeau CTA
   ========================================================================== */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.cta-band > :is(h2, h3, .section-title) {
  max-width: 20ch;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.cta-band > p {
  max-width: 560px;
  color: var(--muted);
}

.cta-band .hero-actions,
.cta-band .cta-actions,
.cta-band > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}


/* ==========================================================================
   19. Modes de jeu
   ========================================================================== */
.mode {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 64px;
  padding-block: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

.mode:last-of-type { border-bottom: 1px solid var(--line); }

.mode-num {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: var(--track);
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.mode-body {
  min-width: 0;
  max-width: 720px;
}

.mode-body > * + * { margin-top: 18px; }
.mode-body > .tag + .section-title { margin-top: 16px; }
.mode-body > .list-check { margin-top: 28px; }

.mode-meta {
  margin-top: 32px !important;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.9;
}

.mode-meta strong { color: var(--white); }

dl.mode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  line-height: 1.5;
}

.mode-meta dt {
  display: block;
  margin-bottom: 2px;
  color: var(--dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mode-meta dd { color: var(--white); }


/* ==========================================================================
   20. Footer
   ========================================================================== */
.site-footer {
  margin-top: 0;
  padding-top: clamp(56px, 8vw, 88px);
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.footer-brand .logo-text { font-size: 1.1rem; }

.footer-brand p {
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-title {
  margin-bottom: 14px;
  color: var(--dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col li + li { margin-top: 10px; }

.footer-col a,
.link-btn {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color var(--t) var(--ease);
}

.footer-col a:hover,
.link-btn:hover { color: var(--white); }

.link-btn {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.footer-bottom [data-server-ip] { font-family: var(--font-mono); }


/* ==========================================================================
   21. Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-toast);
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity var(--t) var(--ease),
    transform var(--t-slow) var(--ease),
    bottom var(--t-slow) var(--ease),
    visibility 0s linear var(--t);
}

.toast:empty { padding: 0; border: 0; }

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition:
    opacity var(--t) var(--ease),
    transform var(--t-slow) var(--ease),
    bottom var(--t-slow) var(--ease),
    visibility 0s;
}

/* Remonte au-dessus de la bannière cookies */
body.has-cookie-banner .toast {
  bottom: calc(180px + env(safe-area-inset-bottom, 0px));
}


/* ==========================================================================
   22. Bannière cookies
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-cookie);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 880px;
  padding: 20px;
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(16px);
  transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-text { flex: 1 1 auto; min-width: 0; }

.cookie-title {
  margin-bottom: 6px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cookie-banner-text p:not(.cookie-title) {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: none;
}


/* ==========================================================================
   23. Modales, consentement, interrupteurs
   ========================================================================== */
body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility 0s linear var(--t);
}

.modal[hidden] { display: none; }

.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t) var(--ease), visibility 0s;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  transform: translateY(12px);
  transition: transform var(--t-slow) var(--ease);
}

.modal.is-open .modal-panel { transform: translateY(0); }

.modal-panel--sm { max-width: 520px; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.modal-close:hover {
  color: var(--white);
  border-color: var(--line-strong);
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

/* Lignes de consentement */
.consent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.consent-row:first-child { padding-top: 0; }
.consent-row:last-child { border-bottom: 0; padding-bottom: 0; }
.consent-row > div { min-width: 0; }

.consent-name {
  margin-bottom: 4px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.consent-desc {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* Interrupteur */
.switch {
  position: relative;
  display: inline-flex;
  flex: none;
  cursor: pointer;
}

.switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.switch-track {
  position: relative;
  display: block;
  width: 44px;
  height: 24px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transition: transform var(--t) var(--ease), background-color var(--t) var(--ease);
}

.switch:hover .switch-track { border-color: rgba(255, 255, 255, 0.32); }

.switch input:checked + .switch-track {
  background: var(--red);
  border-color: var(--red);
}

.switch input:checked + .switch-track::after {
  transform: translateX(20px);
  background: var(--white);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.switch:has(input:disabled),
.switch input:disabled { cursor: not-allowed; }

.switch input:disabled + .switch-track { opacity: 0.5; }


/* ==========================================================================
   24. Reveal au scroll
   ========================================================================== */
.reveal {
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 600ms var(--ease) var(--reveal-delay),
    transform 600ms var(--ease) var(--reveal-delay);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { --reveal-delay: 70ms; }
.reveal[data-delay="2"] { --reveal-delay: 140ms; }
.reveal[data-delay="3"] { --reveal-delay: 210ms; }
.reveal[data-delay="4"] { --reveal-delay: 280ms; }

/* Sans JavaScript, tout reste visible */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}

/* Une carte-lien révélée garde son effet de survol */
.card--link.reveal.is-visible:hover,
.card--link.reveal.is-visible:focus-visible {
  transform: translateY(-2px);
  transition-delay: 0ms;
}


/* ==========================================================================
   25. Keyframes
   ========================================================================== */
@keyframes status-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes status-blink {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.8; }
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}


/* ==========================================================================
   26. Responsive
   ========================================================================== */

/* --- ≥ 640px --- */
@media (min-width: 640px) {
  .grid--2,
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }

  .cookie-banner { padding: 20px 22px; }
}

/* --- ≥ 900px --- */
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* 5 cartes : 3 + 2 sans trou (grille 6 colonnes) */
  .grid--3:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--3:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
  .grid--3:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }

  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats:has(> .stat:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }

  .layout-sidebar { grid-template-columns: 240px minmax(0, 1fr); }

  .toc {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    max-height: calc(100vh - var(--header-h) - 64px);
    overflow-y: auto;
  }

  .mode { grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr); }

  .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }

  /* Bannière cookies : discrète, en bas à gauche */
  .cookie-banner {
    right: auto;
    left: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 48px);
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  body.has-cookie-banner .toast {
    bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }
}

/* --- Navigation mobile (< 900px) --- */
@media (max-width: 899.98px) {
  .nav-toggle { display: inline-block; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    overflow-y: auto;
    background: var(--black);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-slow) var(--ease), visibility 0s linear var(--t-slow);
  }

  body.nav-open { overflow: hidden; }

  body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--t-slow) var(--ease), visibility 0s;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .main-nav li {
    transform: translateY(8px);
    transition: transform var(--t-slow) var(--ease);
  }

  body.nav-open .main-nav li { transform: none; }

  .nav-link {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.25rem;
    letter-spacing: var(--track);
  }

  .nav-link::after {
    bottom: -1px;
    right: auto;
    width: 48px;
  }

  .nav-link--shop { color: var(--muted); }
}

/* --- < 768px --- */
@media (max-width: 767.98px) {
  .status--compact { display: none; }
}

/* --- < 640px --- */
@media (max-width: 639.98px) {
  :root { --header-h: 64px; }

  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .logo { gap: 10px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-text { font-size: 1.02rem; }
  .logo-sub { font-size: 0.52rem; letter-spacing: 0.36em; }

  .hero { min-height: 0; }

  .hero-actions .btn,
  .cta-band .btn { flex: 1 1 auto; }

  .ip-copy { width: 100%; }

  .list-steps > li { padding-left: 56px; }

  .faq-body { padding-right: 0; }

  .cookie-banner-actions .btn { flex: 1 1 auto; }

  .modal { padding: 8px; align-items: flex-end; }
  .modal-panel { max-height: calc(100dvh - 16px); }
  .modal-head,
  .modal-body,
  .modal-foot { padding-inline: 18px; }
  .modal-foot .btn { flex: 1 1 auto; }

  .consent-row { gap: 14px; }

  body.has-cookie-banner .toast {
    bottom: calc(260px + env(safe-area-inset-bottom, 0px));
  }
}

/* --- ≤ 400px --- */
@media (max-width: 400px) {
  .header-actions [data-copy-ip] { display: none; }
  .status-card dl > div { flex-direction: column; gap: 2px; }
  .status-card dd { text-align: left; }
}


/* ==========================================================================
   27. Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .status-dot { animation: none !important; }
  .card--link:hover,
  .card--link:focus-visible { transform: none; }
}

/* ---------- Liste de définitions (rôles) ---------- */
dl.list-plain { display: grid; gap: 0; margin: 0; }
dl.list-plain > div {
  display: grid; grid-template-columns: 160px 1fr; gap: 4px 24px;
  padding: 14px 0; border-top: 1px solid var(--line, rgba(255,255,255,.08));
}
dl.list-plain > div:last-child { border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
dl.list-plain dt { font-family: 'Chakra Petch', sans-serif; text-transform: uppercase; letter-spacing: .02em; }
dl.list-plain dd { margin: 0; color: rgba(255,255,255,.64); }
@media (max-width: 560px) { dl.list-plain > div { grid-template-columns: 1fr; } }
