:root {
  --bg: #0f0e13;
  --text: #f1ece2;
  --muted: #a49f97;
  --red: #d54c56;
  --violet: #8b6cf0;
  --line: rgba(241, 236, 226, 0.14);
}

* {
  box-sizing: border-box;
}

/* Sans ça, un display: flex ou grid du CSS l'emporte sur l'attribut hidden */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Figtree", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  /* Remplace la place qu'occupait le bouton de langue en haut */
  padding: 64px 16px 64px;
}

.brand {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 640px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

/* Le logo a un halo transparent tout autour : on remonte le sous-titre dessous. */
.brand-sub {
  margin-top: -9%;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: clamp(14px, 3.4vw, 22px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding-left: 0.32em;
  color: var(--red);
}

.hero-intro {
  max-width: 520px;
  margin: -8px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
}

.player {
  position: relative;
  width: min(100%, 380px);
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 0 80px rgba(213, 76, 86, 0.25), 0 0 160px rgba(139, 108, 240, 0.15);
}

.player video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  aspect-ratio: 9 / 16;
  background: #000;
}

/* La vidéo démarre en muet (les navigateurs bloquent la lecture auto avec le son) */
.unmute {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  background: var(--red);
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.unmute svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.unmute:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.section {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 48px 0;
}

.section-title {
  margin: 0 0 24px;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.15;
}

.section-intro {
  margin: -8px 0 24px;
  color: var(--muted);
  font-size: 17px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

/* flow-root garde le dessin flottant à l'intérieur de son étape */
.step {
  position: relative;
  display: flow-root;
  counter-increment: step;
  padding: 0 0 32px 64px;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--red);
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--red);
  background: var(--bg);
}

/* Le trait vertical qui relie les étapes */
.step::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--red), var(--line));
}

.step:last-child::after {
  display: none;
}

.step-art {
  width: 170px;
  height: auto;
  color: var(--text);
  overflow: visible;
}

/* Ordinateur : le texte entoure le dessin, une fois à droite, une fois à gauche */
@media (min-width: 600px) {
  .step-art {
    float: right;
    margin: 0 0 8px 24px;
  }

  .step:nth-child(even) .step-art {
    float: left;
    margin: 4px 24px 8px 0;
  }
}

/* Téléphone : le dessin passe en grand entre le titre et le texte */
@media (max-width: 599px) {
  .step {
    display: flex;
    flex-direction: column;
  }

  .step h3 {
    order: -1;
  }

  .step-art {
    align-self: center;
    width: min(240px, 100%);
    margin: 4px 0 12px;
  }
}

.step-art .accent {
  stroke: var(--red);
}

.step-art .green {
  stroke: #3ddc84;
}

.art-small {
  font-family: "Gochi Hand", cursive;
  font-size: 13px;
  fill: var(--text);
}

.art-note {
  font-family: "Gochi Hand", cursive;
  font-size: 22px;
  fill: var(--red);
}

.art-label {
  font-family: "Gochi Hand", cursive;
  font-size: 15px;
  fill: var(--red);
}

.art-coin {
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: 18px;
  fill: var(--red);
}

.step h3 {
  margin: 8px 0 6px;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.modes {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.modes li {
  padding-left: 12px;
  border-left: 2px solid var(--red);
  color: var(--muted);
  font-size: 15px;
}

.modes strong {
  display: block;
  color: var(--text);
  font-weight: 700;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 720px) {
  .tiers {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tier {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(213, 76, 86, 0.12), rgba(139, 108, 240, 0.06));
}

/* L'œil grandit avec le palier */
/* Même hauteur totale (42px) pour tous les yeux, afin que les textes restent alignés */
.tier-eye {
  height: 22px;
  margin: 20px 0 8px;
  align-self: flex-start;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linejoin: round;
}

.tier--2 .tier-eye { height: 28px; margin-top: 14px; }
.tier--3 .tier-eye { height: 34px; margin-top: 8px; }
.tier--4 .tier-eye { height: 42px; margin-top: 0; }

.tier-views {
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: clamp(17px, 5vw, 26px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tier-label {
  color: var(--muted);
  font-size: 14px;
}

.tier-bonus {
  margin-top: 12px;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--red);
}

.tiers-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.conditions {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.conditions li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}

.cond-icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Laisse la place à la bulle d'inscription, pour qu'elle ne cache pas la fin de la page */
body {
  padding-bottom: 160px;
}

/* Couleurs de la bulle de disclose.game */
.signup-bubble {
  --cta-surface: #16141a;
  --cta-line: rgba(241, 236, 226, 0.16);
  --cta-accent: #7a2bff;
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 40px 16px calc(20px + env(safe-area-inset-bottom));
  /* Fondu vers le fond pour que le titre reste lisible au-dessus du contenu */
  background: linear-gradient(to top, var(--bg) 35%, rgba(15, 14, 19, 0));
  pointer-events: none;
}

.bubble-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(440px, 100%);
  text-align: center;
  pointer-events: auto;
}

.bubble-title {
  margin: 0 0 10px;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 13px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}

.countdown div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 4px;
  border: 1px solid var(--line);
}

.countdown span {
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 9vw, 56px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.started {
  margin: 0 0 32px;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--red);
}

.signup-form {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px 6px 6px 20px;
  border: 1px solid var(--cta-line);
  border-radius: 999px;
  background: var(--cta-surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s;
}

.signup-form:focus-within {
  border-color: var(--cta-accent);
  outline: 1px solid var(--cta-accent);
}

.signup-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 12px 8px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
}

.signup-form input[type="email"]::placeholder {
  color: rgba(241, 236, 226, 0.35);
}

.signup-form input[type="email"]:focus {
  outline: none;
}

.signup-form button {
  flex: none;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cta-accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(122, 43, 255, 0.7);
  transition: background-color 0.2s;
}

@media (max-width: 380px) {
  .signup-form button {
    padding: 10px 14px;
    font-size: 14px;
  }
}

.signup-form button:hover {
  background: #8a45ff;
}

.signup-form button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.signup-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  margin: 8px 0 0;
  font-weight: 500;
  font-size: 14px;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: #ff8a92;
}

.signup-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}
