/* ══════════════════════════════════════════════════════════════════
   Roue promotionnelle — feuille de style unique

   Direction visuelle : orange d'action, blanc dominant, gris anthracite,
   coins peu arrondis, une seule famille typographique déclinée en
   graisses. Les couleurs sont injectées depuis config.php au démarrage
   (app.js) et retombent sur les valeurs ci-dessous sans JavaScript.

   Typographie : Source Sans 3 (humaniste, chargée depuis Google Fonts)
   est la police par défaut. Pour appliquer votre propre police de marque,
   ajoutez son @font-face en haut de ce fichier et placez son nom en tête
   de la pile --font-sans ci-dessous.
   ══════════════════════════════════════════════════════════════════ */

:root {
  --orange: #ff6200;
  --orange-dark: #cc4e00;
  --orange-soft: #ffefe3;
  --ink: #333333;
  --ink-soft: #767676;
  --line: #d9d9d9;
  --surface: #ffffff;
  --surface-alt: #f7f7f7;

  /* La roue est bornée par la largeur ET par la hauteur du premier écran,
       pour que le bouton reste visible sans défiler. Les 60 px retirés
       laissent la place au cadre et aux marges de la colonne. */
  --wheel: clamp(228px, min(88vw - 60px, 38svh), 600px);
  --ring: 15px;
  --bulbs: 24;
  /* Hauteur du bloc d'en-tête : barre utilitaire + bande orange.
       Sert à calculer ce qui reste pour le premier écran. */
  --header-h: 174px;
  /* Hauteur de l'en-tête une fois resserré et collé en haut. */
  --header-stuck-h: 94px;
  --page: 1160px;
  --radius: 4px;
  --radius-lg: 8px;

  --font-sans:
    "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI",
    sans-serif;

  --ease-out: cubic-bezier(0.2, 0.8, 0.25, 1);
  --shadow-sm: 0 1px 2px rgba(51, 51, 51, 0.08);
  --shadow-md: 0 2px 10px rgba(51, 51, 51, 0.1);
  --shadow-lg: 0 12px 40px rgba(51, 51, 51, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  /* Laisse passer l'en-tête resserré : une ancre ne doit pas
       atterrir dessous. */
  scroll-padding-top: calc(var(--header-stuck-h) + 1rem);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[v-cloak] {
  visibility: hidden;
}

/* Écran de gain ouvert : la page derrière ne défile plus. */
body.is-locked {
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════
   VERSION ÉPURÉE (config.php → page.minimal)
   Pas d'en-tête ni de pied de page : la roue occupe toute la page, et
   récupère la hauteur ainsi libérée.
   ══════════════════════════════════════════════════════════════════ */

/* La roue laisse la place à ce qui la suit : accroche, compte à rebours
   et bouton doivent tenir sous elle sans repousser l'action hors écran. */
body.is-minimal {
  --header-h: 0px;
  /* Mobile portrait : roue quasi pleine largeur. Elle occupe la largeur de
       l'écran moins 48px (≈ 9px de marge de chaque côté + l'anneau de 15px),
       le padding de .stage étant réduit en dessous de 720px (voir plus bas). */
  --wheel: clamp(240px, min(100vw - 48px, 46svh), 620px);
}

/* Écran court : l'accroche s'efface, la roue et le bouton priment. */
@media (max-height: 660px) {
  body.is-minimal .intro {
    display: none;
  }
}

/* Les bornes ci-dessous sont répétées par écran : une valeur posée sur
   body l'emporte sur celles de :root, media queries comprises. */
@media (min-width: 900px) {
  body.is-minimal {
    --wheel: clamp(320px, min(46vw, 74svh), 620px);
  }
}

@media (max-width: 899px) and (max-height: 700px) {
  /* Écrans courts (iPhone SE…) / paysage : la roue grandit en largeur mais
       la hauteur reste bridée (36svh, plancher 180px) pour garder le bouton
       visible sans défiler. */
  body.is-minimal {
    --wheel: clamp(180px, min(100vw - 48px, 36svh), 620px);
  }
}

/* La marque, en petit, à la place de l'en-tête */
.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: center;
  margin-bottom: 0.35rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mini img {
  height: 30px;
  width: auto;
  display: block;
}

.brand-mini__name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

/* Réglage du son : discret, en haut à droite */
.sound-float {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.25rem);
  right: clamp(0.75rem, 2vw, 1.25rem);
  z-index: 5;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--orange);
  font-size: 1rem;
  cursor: pointer;
  transition:
    border-color 0.18s var(--ease-out),
    color 0.18s var(--ease-out);
}

.sound-float:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.sound-float:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* Liens légaux : tout ce qui reste du pied de page */
.legal-line {
  position: relative;
  z-index: 1;
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem clamp(1rem, 3vw, 1.5rem);
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}

.legal-line a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.18s var(--ease-out);
}

.legal-line a:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

/* En version épurée, le voile part du haut de la page. */
body.is-minimal .ambience {
  background:
    linear-gradient(180deg, var(--orange-soft), transparent 42%),
    linear-gradient(180deg, transparent 60%, var(--surface-alt));
}

/* ── Barre utilitaire ──────────────────────────────────────────── */

.topbar {
  background: var(--dark);
  color: #ffffff;
}

.topbar__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar__links {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.topbar__links a {
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.18s var(--ease-out);
}

.topbar__links a:hover {
  color: #ffffff;
}

.topbar__note {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
}

/* ── En-tête : carte blanche posée sur une bande orange ─────────────
   Il reste visible au défilement. Une fois la barre utilitaire passée,
   la carte se resserre en barre pleine largeur (classe posée par
   header.js) pour ne pas manger l'écran. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--orange);
  padding: 14px clamp(1rem, 4vw, 2rem);
  transition:
    padding 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.site-header__card {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 clamp(1rem, 2.5vw, 1.75rem);
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 6px 24px rgba(31, 31, 31, 0.14);
  transition:
    border-radius 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    padding 0.25s var(--ease-out);
}

.site-header__row {
  height: 60px;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  transition: height 0.25s var(--ease-out);
}

/* État resserré */

.site-header.is-stuck {
  padding: 0 clamp(1rem, 4vw, 2rem);
  background: var(--surface);
  box-shadow: 0 2px 14px rgba(31, 31, 31, 0.14);
}

.site-header.is-stuck .site-header__card {
  padding-inline: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-header.is-stuck .site-header__row {
  height: 52px;
}

.site-header.is-stuck .site-nav {
  height: 42px;
}

.site-header.is-stuck .site-search__input {
  height: 38px;
}

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Champ de recherche : filtre les questions fréquentes */

.site-search {
  position: relative;
  flex: 1;
  max-width: 440px;
}

.site-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-search__input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  font: inherit;
  color: var(--ink);
  appearance: none;
  transition:
    border-color 0.18s var(--ease-out),
    background 0.18s var(--ease-out);
}

.site-search__input::placeholder {
  color: var(--ink-soft);
}

.site-search__input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--orange);
}

.site-search__input::-webkit-search-decoration,
.site-search__input::-webkit-search-cancel-button {
  appearance: none;
}

.site-search__icon {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}

.site-search__icon svg {
  width: 100%;
  height: 100%;
}

/* Bouton d'action de l'en-tête (pages de contenu) */

.header-cta {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  background: var(--orange);
  white-space: nowrap;
  transition: background 0.16s var(--ease-out);
}

.header-cta:hover {
  background: var(--orange-dark);
}

.header-cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  flex: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  background: var(--orange);
}

.brand__mark--sm {
  width: 28px;
  height: 28px;
  font-size: 0.92rem;
}

/* Emplacement du logo fourni (config.php → brand.logo) */
.brand__logo {
  display: block;
  height: 60px; /* agrandi */
  width: auto;
  max-width: 260px;
}

.brand__logo--sm {
  height: 40px;
}

.brand__name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Seconde rangée : la navigation */

.site-nav {
  height: 46px;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  transition: height 0.25s var(--ease-out);
}

.site-nav__link {
  position: relative;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition:
    color 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out);
}

.site-nav__link:hover {
  color: var(--ink);
}

.site-nav__link.is-current {
  font-weight: 700;
  color: var(--ink);
  border-bottom-color: var(--orange);
}

/* ── Premier écran ─────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  min-height: calc(100svh - var(--header-h));
}

/* Prolonge la bande orange de l'en-tête en un voile qui s'éteint. */
.ambience {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--orange-soft), transparent 38%),
    linear-gradient(180deg, transparent 62%, var(--surface-alt));
}

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1.75rem, 6vw, 3.25rem) 1.25rem clamp(2rem, 6vw, 3rem);
  display: grid;
  justify-items: center;
  gap: clamp(1.75rem, 5vw, 2.5rem);
  text-align: center;
}

.masthead {
  display: grid;
  gap: 0.85rem;
}

/* Ordre des blocs du premier écran. Sur mobile, l'accroche et le compte
   à rebours passent SOUS la roue, juste avant le bouton : on voit la
   roue en arrivant, et le temps qui reste au moment de cliquer. */
.masthead {
  order: 1;
}
.wheel-block {
  order: 2;
}
.intro {
  order: 3;
}
.countdown {
  order: 4;
}
.controls {
  order: 5;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.1rem, 7.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}

.title__accent {
  display: block;
  color: var(--orange);
}

.intro {
  margin: 0 auto;
  max-width: 36ch;
  font-size: 1.02rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ── La roue ───────────────────────────────────────────────────── */

.wheel-block {
  position: relative;
  width: calc(var(--wheel) + var(--ring) * 2);
  height: calc(var(--wheel) + var(--ring) * 2);
  display: grid;
  place-items: center;
}

.wheel-frame {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  box-shadow: 0 10px 30px rgba(51, 51, 51, 0.22);
}

.wheel-canvas {
  width: var(--wheel);
  height: var(--wheel);
  border-radius: 50%;
  display: block;
  will-change: transform;
}

.wheel-hub {
  position: absolute;
  width: 21%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  box-shadow:
    0 0 0 5px var(--surface),
    0 0 0 7px var(--ink);
}

.wheel-hub span {
  font-weight: 700;
  font-size: clamp(1.15rem, 4.2vw, 1.7rem);
  color: #ffffff;
  line-height: 1;
}

/* Moyeu portant un logo : fond blanc, pour un visuel en couleurs. */
.wheel-hub--logo {
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--ink);
}

.wheel-hub--logo img {
  width: 66%;
  height: auto;
  display: block;
}

/* Ampoules du cadre */
.bulb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(calc(var(--i) * (360deg / var(--bulbs))))
    translateY(calc(var(--wheel) / -2 - var(--ring) / 2));
}

.wheel-frame.is-spinning .bulb {
  animation: bulb-chase 0.48s steps(1, end) infinite;
  animation-delay: calc(var(--i) * 0.02s);
}

@keyframes bulb-chase {
  0%,
  40% {
    background: var(--orange);
    box-shadow: 0 0 10px 2px rgba(255, 98, 0, 0.8);
  }
  41%,
  100% {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: none;
  }
}

/* Cliquet : fléchit à chaque case franchie (angle piloté par le JS) */
.wheel-pawl {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 24px;
  height: 42px;
  z-index: 3;
  transform-origin: 50% 5px;
  transform: translateX(-50%) rotate(var(--pawl-rot, 0deg));
  clip-path: polygon(50% 100%, 0 30%, 12% 0, 88% 0, 100% 30%);
  background: var(--ink);
  filter: drop-shadow(0 3px 5px rgba(51, 51, 51, 0.35));
}

/* ── Commandes ─────────────────────────────────────────────────── */

.controls {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  width: 100%;
}

.spin-btn {
  border: 0;
  padding: 0 2rem;
  min-width: min(300px, 84%);
  height: 56px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.06rem;
  color: #ffffff;
  background: var(--orange);
  box-shadow: var(--shadow-sm);
  transition:
    background 0.16s var(--ease-out),
    box-shadow 0.16s var(--ease-out),
    transform 0.16s var(--ease-out);
}

.spin-btn:hover:not(:disabled) {
  background: var(--orange-dark);
  box-shadow: var(--shadow-md);
}

.spin-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.spin-btn:disabled {
  cursor: default;
  background: var(--line);
  color: var(--ink-soft);
  box-shadow: none;
}

.spin-btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.tokens {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.tokens__chips {
  display: inline-flex;
  gap: 5px;
}

.chip {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange);
}

.chip--used {
  background: transparent;
  border: 1px solid var(--line);
}

.tokens__count {
  font-weight: 700;
  color: var(--ink);
}

.feedback {
  margin: 0;
  max-width: 44ch;
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1.1rem;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}

.feedback strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.feedback span {
  color: var(--ink-soft);
}

.feedback--lose {
  border-left-color: var(--ink);
}
.feedback--cash {
  border-left-color: var(--orange);
}

.dev-reset {
  margin-top: 0.25rem;
  background: none;
  border: 1px dashed var(--line);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.dev-reset:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}

/* ── Bouton son ────────────────────────────────────────────────── */

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.18s var(--ease-out),
    color 0.18s var(--ease-out);
}

.sound-toggle:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.sound-toggle__icon {
  width: 0.7em;
  text-align: center;
  color: var(--orange);
}

/* ── Lien vers la FAQ, en bas du premier écran ─────────────────── */

.hero__more {
  position: relative;
  z-index: 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: clamp(1.25rem, 4vw, 2.25rem);
  padding: 0.5rem 0.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease-out);
}

.hero__more:hover {
  color: var(--orange-dark);
}

.hero__more-arrow {
  color: var(--orange);
}

/* ── Questions fréquentes ──────────────────────────────────────── */

.faq {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 9vw, 5rem) clamp(1rem, 4vw, 2rem);
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}

.faq__inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq__head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: clamp(1.75rem, 5vw, 2.25rem);
  text-align: center;
}

.section-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.65rem, 5.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.faq__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition:
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.faq__item.is-open {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
}

.faq__heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.faq__q:hover {
  color: var(--orange-dark);
}

.faq__q:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
  border-radius: var(--radius-lg);
}

/* Chevron orange, pivote à l'ouverture */
.faq__sign {
  position: relative;
  width: 12px;
  height: 12px;
  flex: none;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}

.faq__item.is-open .faq__sign {
  transform: translateY(2px) rotate(225deg);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition:
    max-height 0.38s var(--ease-out),
    opacity 0.28s linear,
    visibility 0.38s;
}

.faq__item.is-open .faq__a {
  max-height: 340px;
  visibility: visible;
  opacity: 1;
}

.faq__empty {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.faq__a p {
  margin: 0;
  padding: 0 1.25rem 1.3rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ── Compte à rebours de l'offre ───────────────────────────────── */

.countdown {
  margin: 0;
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  /* Centré comme le texte ; repasse à gauche en deux colonnes. */
  justify-self: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--orange-soft);
  border: 1px solid var(--orange);
  text-align: center;
}

.countdown__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

/* Point qui bat : le temps court. */
.countdown__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(0.8);
  }
}

.countdown__value {
  font-weight: 700;
  font-size: clamp(1.65rem, 6.5vw, 2.15rem);
  line-height: 1.05;
  color: var(--orange-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* ── Bande de réassurance ──────────────────────────────────────── */

.reassurance {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 4vw, 2rem);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.reassurance__list {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.reassurance__item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.reassurance__item strong {
  display: block;
  font-weight: 700;
}

.reassurance__icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.reassurance__icon svg {
  width: 19px;
  height: 19px;
}

.reassurance__text {
  color: var(--ink-soft);
}

/* ── Titres de section ─────────────────────────────────────────── */

.section-head {
  display: grid;
  gap: 0.6rem;
  max-width: 46ch;
  margin: 0 auto clamp(2rem, 5vw, 2.75rem);
  text-align: center;
}

.section-intro {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ── Comment ça marche ─────────────────────────────────────────── */

.steps {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 4.5rem) clamp(1rem, 4vw, 2rem);
  background: var(--surface-alt);
}

.steps__inner {
  max-width: var(--page);
  margin: 0 auto;
}

.steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: none;
}

.steps__item {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

/* La numérotation est une vraie séquence : elle porte l'ordre. */
.steps__num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  background: var(--orange);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
}

.steps__h {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.3;
}

.steps__p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  text-wrap: pretty;
}

/* ── Les remises en jeu ────────────────────────────────────────── */

.lots {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 4.5rem) clamp(1rem, 4vw, 2rem);
  background: var(--surface);
}

.lots__inner {
  max-width: 900px;
  margin: 0 auto;
}

.lots__grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
}

.lots__cell {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.3rem;
  padding: 1.1rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.lots__cell--top {
  grid-column: span 2;
  border-color: var(--orange);
  background: var(--orange);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.lots__amount {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.lots__cell--top .lots__amount {
  font-size: clamp(2rem, 6vw, 2.6rem);
}

.lots__unit {
  font-size: 0.6em;
  margin-left: 0.12em;
}

.lots__badge {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lots__footnote {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ── Appel à l'action final ────────────────────────────────────── */

.closing {
  position: relative;
  z-index: 1;
  padding: clamp(2.75rem, 7vw, 4rem) clamp(1rem, 4vw, 2rem);
  background: var(--orange);
  color: #ffffff;
  text-align: center;
}

.closing__inner {
  max-width: 46ch;
  margin: 0 auto;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}

.closing__title {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.closing__text {
  margin: 0;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.9);
}

.closing__cta {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  transition: transform 0.16s var(--ease-out);
}

.closing__cta:hover {
  transform: translateY(-2px);
}

.closing__cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* ── Pages de contenu (mentions, règlement, contact) ───────────── */

.page {
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2rem)
    clamp(2.5rem, 7vw, 4rem);
  background: var(--surface);
}

.page__inner {
  max-width: 760px;
  margin: 0 auto;
}

.page__head {
  display: grid;
  gap: 0.7rem;
  padding-bottom: clamp(1.5rem, 4vw, 2rem);
  border-bottom: 2px solid var(--orange);
}

.page__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page__intro {
  margin: 0;
  max-width: 58ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Bandeau affiché tant que le document contient des [MARQUEURS]. */
.page__draft {
  margin: clamp(1.5rem, 4vw, 2rem) 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--orange);
  border-left-width: 4px;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--orange-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.page__draft strong {
  display: block;
}

.page__draft code {
  padding: 0.1em 0.35em;
  background: var(--surface);
  border-radius: 3px;
  font-size: 0.95em;
}

.page__body {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
}

.page__section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.page__section p {
  margin: 0 0 0.8rem;
  max-width: 72ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.page__section p:last-child {
  margin-bottom: 0;
}

.page__section ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
  max-width: 72ch;
  color: var(--ink-soft);
}

.page__section li::marker {
  color: var(--orange);
}

.page__foot {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.page__updated {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.back-link {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--orange-dark);
}

.back-link::before {
  content: "← ";
}

.back-link:hover {
  text-decoration: underline;
}

/* ── Formulaire de réclamation ─────────────────────────────────── */

.claim-form {
  display: grid;
  gap: clamp(1.1rem, 3vw, 1.5rem);
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
  max-width: 34rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field__label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.field__req {
  color: var(--orange-dark);
}

.field__control {
  width: 100%;
  height: 48px;
  padding: 0 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition:
    border-color 0.15s var(--ease-out),
    box-shadow 0.15s var(--ease-out);
}

.field__control::placeholder {
  color: var(--ink-soft);
}

.field__control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.field__control--invalid {
  border-color: #c0392b;
}

.field__hint {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.field__error {
  font-size: 0.86rem;
  font-weight: 600;
  color: #c0392b;
}

.form-alert {
  margin: clamp(1.5rem, 4vw, 2rem) 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid #c0392b;
  border-left-width: 4px;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fdecea;
  color: #7d241a;
  font-size: 0.92rem;
}

.claim-submit {
  justify-self: start;
  margin-top: 0.25rem;
  min-width: 200px;
  height: 50px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  background: var(--orange);
  cursor: pointer;
  transition:
    background 0.15s var(--ease-out),
    transform 0.05s var(--ease-out);
}

.claim-submit:hover {
  background: var(--orange-dark);
}

.claim-submit:active {
  transform: translateY(1px);
}

.claim-submit:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.claim-success {
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
  padding: clamp(1.5rem, 4vw, 2rem);
  display: grid;
  gap: 0.6rem;
  border: 1px solid var(--orange);
  border-radius: var(--radius-lg);
  background: var(--orange-soft);
}

.claim-success h2 {
  margin: 0;
  font-size: 1.3rem;
}

.claim-success p {
  margin: 0;
  color: var(--ink-soft);
}

/* Case à cocher de consentement */
.field--consent {
  margin-top: 0.25rem;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}

.consent input {
  margin-top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--orange);
}

.consent a {
  color: var(--orange-dark);
  font-weight: 600;
}

/* États « erreur » et « offre terminée » */
.claim-alert {
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.claim-alert p {
  margin: 0;
  color: var(--ink);
}

.claim-alert--error {
  border-color: #c0392b;
  background: #fdecea;
}
.claim-alert--error p {
  color: #7d241a;
}

.claim-alert--muted {
  border-color: var(--line);
  background: var(--surface-alt);
}
.claim-alert--muted p {
  color: var(--ink-soft);
}

.claim-code {
  margin-top: 0.4rem;
  font-size: 1.05rem;
}
.claim-code strong {
  color: var(--orange-dark);
  letter-spacing: 0.04em;
}

/* Page « en attente » = loader centré plein écran, rien d'autre. */
.loader-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--surface);
}

.loader-screen__box {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
}

.loader-screen__spinner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 5px solid var(--orange-soft);
  border-top-color: var(--orange);
  animation: claim-spin 0.8s linear infinite;
}

.loader-screen__label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@keyframes claim-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-screen__spinner {
    animation: none;
  }
}

body.is-loading {
  background: var(--surface);
}

/* Vue « code » : chargement en haut, le code, puis la saisie. */
.loader-screen--code {
  align-items: start;
  padding-top: clamp(2rem, 10vh, 6rem);
}

.code-panel {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 26rem;
  text-align: center;
}

.code-panel__intro {
  margin: 0;
  color: var(--ink-soft);
}

.code-panel__code {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px dashed var(--orange);
  border-radius: var(--radius-lg);
  background: var(--orange-soft);
}

.code-panel__code-label {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.code-panel__code-value {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange-dark);
  word-break: break-all;
}

.code-panel__form {
  display: grid;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
}
.code-panel__form .claim-submit {
  justify-self: stretch;
  margin-top: 0.25rem;
}

/* Modal admin (élément <dialog> natif) */
.modal {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 26rem;
  width: calc(100% - 2rem);
  box-shadow: 0 20px 60px rgba(51, 51, 51, 0.28);
}

.modal::backdrop {
  background: rgba(31, 31, 31, 0.5);
}

.modal__form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  margin: 0;
}
.modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.modal__intro {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.preview-flag {
  margin: 0;
  align-self: start;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
}

/* ── Panneau d'administration ──────────────────────────────────── */

/*  Le back-office porte sa propre palette : bleu indigo et ardoise,
    volontairement à l'opposé de l'orange du site public. On ne confond
    jamais la page que voit le joueur et celle qui la pilote.

    Les jetons du site sont remappés ici, sur cette page uniquement :
    les briques partagées avec reclamer.php (champs, bouton d'envoi,
    lien de retour, modale) suivent donc le panneau sans duplication.
    Les couleurs de config.php sont posées par app.js sur <html>, que
    le panneau ne charge pas — et une déclaration sur <body> l'emporte
    de toute façon pour tout ce qu'il contient. */
body.is-admin {
  --adm-accent: #3b5bdb;
  --adm-accent-dark: #2b44ae;
  --adm-accent-soft: #edf1ff;
  --adm-ok: #0e7a55;
  --adm-ok-soft: #dcf5ea;
  --adm-danger: #c62839;
  --adm-danger-soft: #fde7ea;
  --adm-wait: #6d3fbf;
  --adm-wait-soft: #f1e9fe;

  --orange: var(--adm-accent);
  --orange-dark: var(--adm-accent-dark);
  --orange-soft: var(--adm-accent-soft);
  --ink: #151b2d;
  --ink-soft: #5d6b84;
  --line: #dde3ed;
  --surface: #ffffff;
  --surface-alt: #f2f5fa;

  background: var(--surface-alt);
}

.admin {
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
  min-height: 100vh;
}

.admin__inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
}

.admin__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin__title {
  margin: 0.1rem 0 0;
  font-size: clamp(1.6rem, 4.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin__logout {
  margin: 0;
}

.admin-flash {
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-flash--ok {
  background: var(--adm-ok-soft);
  color: var(--adm-ok);
}
.admin-flash--error {
  background: var(--adm-danger-soft);
  color: var(--adm-danger);
}

.admin-card {
  padding: clamp(1.25rem, 3.5vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.admin-card--narrow {
  max-width: 26rem;
  margin: 0 auto;
  width: 100%;
}

.admin-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.admin-card__intro {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.admin-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-card__row .admin-card__intro {
  margin-bottom: 0;
}

.admin-form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.admin-current {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.admin-current code,
.admin-card__intro code,
.field__hint code {
  padding: 0.05em 0.35em;
  background: var(--surface-alt);
  border-radius: 3px;
  font-size: 0.92em;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  transition:
    background 0.15s var(--ease-out),
    border-color 0.15s var(--ease-out),
    color 0.15s var(--ease-out);
}

.admin-btn:focus-visible {
  outline: 3px solid var(--adm-accent);
  outline-offset: 2px;
}

.admin-btn--ghost:hover {
  border-color: var(--adm-accent);
  color: var(--adm-accent-dark);
  background: var(--adm-accent-soft);
}
.admin-btn--primary {
  background: var(--adm-accent);
  border-color: var(--adm-accent);
  color: #fff;
}
.admin-btn--primary:hover {
  background: var(--adm-accent-dark);
  border-color: var(--adm-accent-dark);
}
.admin-btn--danger {
  background: var(--surface);
  border-color: var(--adm-danger);
  color: var(--adm-danger);
}
.admin-btn--danger:hover {
  background: var(--adm-danger);
  color: #fff;
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge--on {
  background: var(--adm-ok-soft);
  color: var(--adm-ok);
}
.badge--off {
  background: var(--adm-danger-soft);
  color: var(--adm-danger);
}
.badge--wait {
  background: var(--adm-wait-soft);
  color: var(--adm-wait);
}

.admin-btn--sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

/* Boutons de la fiche détail : cible large, on les vise au doigt. */
.admin-btn--lg {
  padding: 0.75rem 1.4rem;
  font-size: 1rem;
  min-height: 48px;
}

.admin-decide {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.admin-decide form {
  margin: 0;
}

.admin-table tr.is-pending {
  background: var(--adm-wait-soft);
}
.admin-table tr.is-pending:hover {
  background: #e9ddfc;
}

.admin-count {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 0.85rem;
  vertical-align: middle;
}

.admin-count--wait {
  background: var(--adm-wait);
  color: #fff;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 0.6rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table th {
  font-weight: 700;
  color: var(--ink-soft);
  border-bottom-width: 2px;
}

.admin-table tbody tr:hover {
  background: var(--surface-alt);
}

/* Présence « en ligne » */
.presence {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.presence__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: var(--line);
  flex: none;
}

.presence__dot.is-online {
  background: var(--adm-ok);
  box-shadow: 0 0 0 3px rgba(14, 122, 85, 0.18);
}
.presence__dot.is-offline {
  background: #b6c0d0;
}

.lead-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.lead-link:hover {
  color: var(--adm-accent-dark);
  text-decoration: underline;
}

/* Téléphone et e-mail de la liste : cliquables sans crier. */
.cell-link {
  color: inherit;
  text-decoration: none;
}
.cell-link:hover {
  color: var(--adm-accent-dark);
  text-decoration: underline;
}

.cell-empty {
  color: var(--ink-soft);
}

/* Fiche détail d'un participant */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem 1.5rem;
  margin: 1.25rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-grid dt {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}
.detail-grid dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}
.detail-grid a {
  color: var(--orange-dark);
}

/* Barre d'actions, juste sous le statut de connexion : c'est pour elle
   qu'on ouvre une fiche, les coordonnées se lisent après. */
.detail-actions {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.1rem;
  padding: 1.1rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.detail-actions__group {
  display: grid;
  gap: 0.6rem;
}

.detail-actions__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.detail-actions .admin-decide {
  gap: 0.5rem;
}

/* ── Panneau sur petits écrans ─────────────────────────────────── */

@media (max-width: 860px) {
  /* Huit colonnes ne tiennent pas : chaque participation devient une
       carte, chaque cellule une ligne « intitulé / valeur ». Les
       intitulés viennent des data-label posés dans admin.php, si bien
       que l'en-tête du tableau peut disparaître. */
  .admin-table-wrap {
    overflow-x: visible;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .admin-table tr {
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }

  .admin-table tr.is-pending,
  .admin-table tr.is-pending:hover {
    border-left-color: var(--adm-wait);
  }

  .admin-table tbody tr:hover {
    background: var(--surface);
  }

  .admin-table td {
    display: grid;
    grid-template-columns: minmax(6rem, 34%) 1fr;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0;
    white-space: normal;
    overflow-wrap: anywhere;
    border-bottom: 1px solid var(--line);
  }

  .admin-table tr td:last-child {
    border-bottom: 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  /* Le nom fait office de titre de carte. */
  .admin-table td.cell-name {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding-top: 0.75rem;
    font-size: 1.05rem;
  }

  .admin-table td.cell-name::before {
    content: none;
  }

  /* Décision et fiche : les boutons prennent toute la largeur. */
  .admin-table td.cell-decide,
  .admin-table td.cell-view {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-bottom: 0.8rem;
  }

  /* En attente : pas de décision à annuler, la ligne ne sert à rien ici. */
  .admin-table td.cell-decide.is-empty {
    display: none;
  }

  .admin-table td.cell-decide .admin-decide {
    display: grid;
    gap: 0.5rem;
  }
  .admin-table td.cell-decide .admin-decide form {
    display: grid;
  }

  .admin-table td.cell-decide .admin-btn,
  .admin-table td.cell-view .admin-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    min-height: 44px;
  }

  /* Fiche détail : une action par ligne, pleine largeur. */
  .detail-actions .admin-decide {
    display: grid;
    gap: 0.5rem;
  }
  .detail-actions .admin-decide form {
    display: grid;
  }
  .detail-actions .admin-btn {
    width: 100%;
  }

  .modal__actions .admin-btn {
    flex: 1;
  }
}

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

.site-footer {
  position: relative;
  z-index: 1;
  padding: clamp(2.25rem, 6vw, 3rem) clamp(1rem, 4vw, 2rem) 2rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: var(--page);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.site-footer__top {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding-bottom: 0.5rem;
}

.site-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
}

.site-footer__col-title {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.site-footer__col a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.18s var(--ease-out);
}

.site-footer__col a:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer__brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.site-footer__tagline {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

.site-footer__links a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.18s var(--ease-out);
}

.site-footer__links a:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

.site-footer__legal {
  margin: 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 78ch;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ── Écran de gain ─────────────────────────────────────────────── */

/* Fond commun aux deux fenêtres : seconde chance et gain. */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(51, 51, 51, 0.55);
}

/* ── Fenêtre de seconde chance ─────────────────────────────────── */

.sc__card {
  position: relative;
  width: min(430px, 100%);
  padding: clamp(1.75rem, 6vw, 2.4rem) clamp(1.25rem, 5vw, 2rem);
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border-top: 5px solid var(--ink);
  box-shadow: var(--shadow-lg);
}

.sc__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.sc__close:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.sc__close:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
}

.sc__kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.sc__title {
  margin: 0.3rem 0 0;
  font-size: clamp(1.5rem, 5.5vw, 1.95rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* La case atteinte, puis celle qui était juste à côté. */
.sc__near {
  margin: 1.35rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.sc__cell {
  display: grid;
  place-items: center;
  min-width: 92px;
  padding: 0.7rem 0.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.02rem;
}

.sc__cell--lost {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: line-through;
}

.sc__cell--target {
  background: var(--orange);
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
}

.sc__arrow {
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.sc__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.sc__cta {
  margin-top: 1.4rem;
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: var(--radius);
  background: var(--orange);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.04rem;
  cursor: pointer;
  transition: background 0.16s var(--ease-out);
}

.sc__cta:hover {
  background: var(--orange-dark);
}

.sc__cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.sc__note {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.win__card {
  position: relative;
  width: min(440px, 100%);
  padding: clamp(1.75rem, 6vw, 2.5rem) clamp(1.25rem, 5vw, 2.2rem);
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border-top: 5px solid var(--orange);
  box-shadow: var(--shadow-lg);
}

.win__kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.win__amount {
  margin: 0.3rem 0 0;
  font-weight: 700;
  font-size: clamp(3.6rem, 17vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.win__currency {
  font-size: 0.5em;
  margin-left: 0.06em;
  vertical-align: 0.3em;
  letter-spacing: 0;
}

.win__caption {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

.win__code {
  margin: 1.5rem 0 1.25rem;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.2rem;
  border-radius: var(--radius);
  border: 1px dashed var(--orange);
  background: var(--orange-soft);
}

.win__code-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.win__code-value {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.win__cta {
  display: block;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.06rem;
  color: #ffffff;
  background: var(--orange);
  transition: background 0.16s var(--ease-out);
}

.win__cta:hover {
  background: var(--orange-dark);
}

.win__cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.win__legal {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.reveal-enter-active,
.reveal-leave-active {
  transition: opacity 0.25s var(--ease-out);
}

.reveal-enter-from,
.reveal-leave-to {
  opacity: 0;
}

.reveal-enter-active .win__card,
.reveal-enter-active .sc__card {
  animation: card-in 0.5s var(--ease-out) both;
}

@keyframes card-in {
  from {
    transform: translateY(20px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* ── Confettis ─────────────────────────────────────────────────── */

.confetti {
  position: fixed;
  inset: 0;
  z-index: 31;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ── Erreur de configuration ───────────────────────────────────── */

.boot-error {
  max-width: 32rem;
  margin: 18vh auto;
  padding: 2rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  background: var(--surface-alt);
  font-size: 0.95rem;
  line-height: 1.7;
}

.boot-error h1 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--orange-dark);
}

.boot-error code {
  padding: 0.1em 0.35em;
  background: var(--orange-soft);
  border-radius: 3px;
}

.boot-error__hint {
  color: var(--ink-soft);
}

/* ── Sobriété de mouvement ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .wheel-frame.is-spinning .bulb {
    animation: none;
  }

  .reveal-enter-active .win__card {
    animation-duration: 0.01ms;
  }

  .faq__a,
  .faq__sign {
    transition-duration: 0.01ms;
  }

  .site-header,
  .site-header__card,
  .site-header__row,
  .site-nav {
    transition-duration: 0.01ms;
  }

  .countdown::before {
    animation: none;
  }
}

/* ── Écrans larges : le texte à gauche, la roue à droite ────────────
   Deux colonnes laissent la roue grandir jusqu'à 560 px sans repousser
   le bouton sous la ligne de flottaison. */

@media (min-width: 900px) {
  :root {
    --wheel: clamp(320px, min(46vw, 70svh), 600px);
  }

  .stage {
    max-width: var(--page);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
    text-align: left;
    gap: clamp(0.9rem, 2vw, 1.4rem) clamp(1.5rem, 4vw, 3.5rem);
    padding-inline: clamp(1.25rem, 4vw, 2rem);
  }

  /* Deux colonnes : le texte reprend son ordre de lecture normal, la
       roue occupe la colonne de droite sur toute la hauteur. */
  .masthead {
    order: 1;
  }
  .intro {
    order: 2;
  }
  .countdown {
    order: 3;
  }
  .controls {
    order: 4;
  }
  .wheel-block {
    order: 5;
    grid-column: 2;
    grid-row: 1 / span 4;
  }

  .masthead,
  .intro,
  .countdown,
  .controls {
    grid-column: 1;
  }

  .masthead {
    gap: 1rem;
  }

  .title {
    font-size: clamp(2.2rem, 3.2vw, 2.9rem);
  }

  .intro {
    margin-inline: 0;
  }

  .countdown {
    justify-self: start;
  }

  .controls {
    justify-items: start;
  }

  .spin-btn {
    min-width: 300px;
  }
}

/* ── Une colonne sur écran peu haut : on resserre le premier écran ── */

@media (max-width: 899px) and (max-height: 1080px) {
  .stage {
    gap: 1.25rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .masthead {
    gap: 0.6rem;
  }

  .title {
    font-size: clamp(1.7rem, 4.6vw, 2.2rem);
  }

  .intro {
    font-size: 0.95rem;
  }

  .hero__more {
    margin-bottom: 1rem;
  }
}

/* Écrans très courts : le bouton doit rester visible sans défiler. */
@media (max-width: 899px) and (max-height: 700px) {
  :root {
    --wheel: clamp(200px, min(88vw - 60px, 38svh), 600px);
  }

  .stage {
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .title {
    font-size: 1.5rem;
  }

  .intro {
    font-size: 0.9rem;
  }
}

/* ── Petits écrans ─────────────────────────────────────────────── */

@media (max-width: 720px) {
  :root {
    --header-h: 152px;
    --header-stuck-h: 92px;
  }

  /* Mode épuré : on rend le padding latéral de la colonne au minimum pour
       laisser la roue occuper presque toute la largeur de l'écran. */
  body.is-minimal .stage {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .topbar__links {
    display: none;
  }

  .topbar__inner {
    height: 34px;
    justify-content: center;
  }

  .site-header {
    padding: 10px clamp(0.75rem, 3vw, 1rem);
  }

  .site-header__card {
    border-radius: 16px;
    padding: 0 1rem;
  }

  .site-header__row {
    height: 56px;
  }

  /* Le champ de recherche passe sous la marque plutôt que de l'écraser. */
  .site-search {
    display: none;
  }

  /* La navigation défile latéralement si elle ne tient pas. */
  .site-nav {
    height: 44px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand__name {
    font-size: 0.95rem;
  }
  .site-nav__link {
    font-size: 0.9rem;
  }
  .sound-toggle__label {
    display: none;
  }
  .topbar__note {
    font-size: 0.78rem;
  }
  .site-footer__links {
    gap: 0.5rem 1rem;
  }
}
