/* =========================================================================
   DartyColodin — feuille de style
   Une seule colonne étroite, fond sombre, accent doré. Rien de plus.
   ========================================================================= */

:root {
  color-scheme: dark;
  --fond: #0a0a0b;
  --carte: #121214;
  --carte-haute: #17171a;
  --trait: #232327;
  --trait-clair: #2e2e34;
  --texte: #f2f2f4;
  --texte-doux: #a1a1aa;
  --texte-faible: #6b6b75;
  --rose: #fc0d4c;
  --rose-fonce: #c4004a;
  --or: #e8b64c;
  --rose-clair: #ff5c86;
  --vert: #5fd08a;
  --largeur: 480px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 16px calc(96px + env(safe-area-inset-bottom));
  background: var(--fond);
  color: var(--texte);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* un halo doré très doux en haut, pour ne pas avoir un noir plat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px 320px at 50% -8%, rgba(252, 13, 76, 0.16), transparent 70%),
    radial-gradient(420px 260px at 50% 4%, rgba(252, 13, 76, 0.06), transparent 70%);
}

.page {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding-top: 18px;
}

img {
  display: block;
  max-width: 100%;
}

/* ------------------------------------------------------------------ en-tête */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
}

.marque {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.marque-logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex: none;
}

.marque-texte {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.marque-texte strong {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.marque-texte span {
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--texte-faible);
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.rond {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--trait);
  background: var(--carte);
  color: var(--texte-doux);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.rond svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.rond:hover {
  color: var(--rose-clair);
  border-color: var(--rose);
  background: rgba(252, 13, 76, 0.08);
}

.langue {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 9px;
  border: 1px solid var(--trait);
  background: var(--carte);
}

.langue-btn {
  border: 0;
  background: none;
  color: var(--texte-faible);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.langue-btn[aria-pressed="true"] {
  color: #fff;
  background: var(--rose);
}

/* --------------------------------------------------------------------- héros */

.carte {
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 20px;
  padding: 22px 18px;
}

.hero {
  text-align: center;
  padding-top: 24px;
}

.etiquette {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  border: 1px solid rgba(252, 13, 76, 0.35);
  background: rgba(252, 13, 76, 0.07);
  padding: 4px 10px;
  border-radius: 999px;
}

h1 {
  margin: 14px 0 10px;
  font-family: "Big Shoulders Display", Inter, sans-serif;
  font-size: clamp(30px, 8vw, 38px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.sous {
  margin: 0;
  color: var(--texte-doux);
  font-size: 13.5px;
}

.duo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 16px;
  padding: 12px;
  border: 1px dashed rgba(252, 13, 76, 0.35);
  border-radius: 12px;
  background: rgba(252, 13, 76, 0.05);
}

.duo-val {
  font-family: "Big Shoulders Display", Inter, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--texte);
}

.duo-fleche {
  color: var(--texte-faible);
  font-size: 18px;
}

.duo-val.or {
  color: var(--rose-clair);
}

.bouton-principal {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 15px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--rose-clair), var(--rose));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 26px -12px rgba(252, 13, 76, 0.7);
  transition: transform 0.12s, box-shadow 0.15s;
}

.bouton-principal:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px rgba(252, 13, 76, 0.85);
}

.bouton-principal:active {
  transform: translateY(0);
}

.bouton-second {
  display: block;
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--trait-clair);
  background: var(--carte-haute);
  color: var(--texte);
  font-weight: 600;
  font-size: 13.5px;
  text-align: center;
  text-decoration: none;
}

.sous-bouton {
  margin: 9px 0 0;
  font-size: 11.5px;
  color: var(--texte-faible);
}

/* l'offre 30 € ne s'affiche que si OFFRE_30_EUR_ACTIVE est à true */
html:not([data-offre30="on"]) .gift-block {
  display: none;
}

.gift-block {
  margin-top: 12px;
}

.atouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.atouts li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 11px 6px;
  border: 1px solid var(--trait);
  border-radius: 11px;
  background: var(--carte-haute);
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--texte-doux);
  text-align: center;
}

.atouts svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atouts li:first-child svg {
  fill: var(--rose);
  stroke: none;
}

/* -------------------------------------------------------------------- blocs */

.bloc {
  margin-top: 14px;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 20px;
  padding: 20px 18px;
}

.titre-section {
  margin: 0 0 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

/* ---------------------------------------------------------------- les gains */

.gains {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gains li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--trait);
}

.gains li:first-child {
  padding-top: 0;
}

.gains li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gains-qui {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gains-qui strong {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--texte);
}

.gains-qui span {
  font-size: 11.5px;
  color: var(--texte-faible);
}

.gains-somme {
  flex: none;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--vert);
}

/* --------------------------------------------------------------- les offres */

.liste-offres {
  display: grid;
  gap: 9px;
}

.offre {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--trait);
  border-radius: 13px;
  background: var(--carte-haute);
}

.offre-valeur {
  flex: none;
  min-width: 62px;
  font-family: "Big Shoulders Display", Inter, sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--rose-clair);
}

.offre p {
  margin: 0;
  font-size: 12.5px;
  color: var(--texte-doux);
}

.muted {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--texte-faible);
}

/* ------------------------------------------------------------- wager race */

.race {
  border-color: rgba(252, 13, 76, 0.28);
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(252, 13, 76, 0.09), transparent 62%),
    var(--carte);
}

.race-haut {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.race h2 {
  margin: 10px 0 6px;
  font-family: "Big Shoulders Display", Inter, sans-serif;
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
}

.race-prix {
  flex: none;
  text-align: right;
  padding: 10px 12px;
  border: 1px solid rgba(252, 13, 76, 0.3);
  border-radius: 12px;
  background: rgba(10, 10, 11, 0.6);
}

.race-prix span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.race-prix strong {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 17px;
  color: var(--or);
  white-space: nowrap;
}

.classement {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.classement li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--trait);
  font-size: 13px;
}

.classement .place {
  width: 26px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  color: var(--texte-faible);
}

.classement .qui {
  flex: 1;
  color: var(--texte-doux);
}

.classement strong {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  color: var(--rose-clair);
}

/* --------------------------------------------------------------------- faq */

details {
  border-top: 1px solid var(--trait);
}

details:first-of-type {
  border-top: 0;
}

summary {
  position: relative;
  padding: 13px 26px 13px 0;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 11px;
  font-size: 17px;
  font-weight: 400;
  color: var(--rose);
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0 0 14px;
  padding-right: 8px;
  font-size: 12.5px;
  color: var(--texte-doux);
}

/* --------------------------------------------------------------- cta final */

.final {
  margin-top: 14px;
  text-align: center;
}

.final-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 13px;
}

.final h2 {
  margin: 0 0 6px;
  font-family: "Big Shoulders Display", Inter, sans-serif;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------- pied */

footer {
  margin-top: 22px;
  text-align: center;
}

footer p {
  margin: 6px auto;
  max-width: 400px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--texte-faible);
}

footer .ad {
  color: var(--texte-doux);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer .copyright {
  opacity: 0.7;
}

/* -------------------------------------------------------- bandeau collant */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 11, 0.92);
  border-top: 1px solid var(--trait);
  backdrop-filter: blur(10px);
  opacity: 0;
}

.sticky-cta span {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--texte-doux);
}

.sticky-cta a {
  flex: none;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--rose-clair), var(--rose));
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* --------------------------------------------------------------- réglages */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (max-width: 380px) {
  body {
    padding-left: 12px;
    padding-right: 12px;
  }
  .marque-texte strong {
    font-size: 12.5px;
  }
  .atouts {
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------- visuel du héros */
.hero-visuel {
  display: block;
  margin: -8px -18px 16px;
  border-radius: 16px;
  overflow: hidden;
}

.hero-visuel img {
  display: block;
  width: 100%;
  height: auto;
}

/* le titre reste utile au référencement, mais l'image porte l'accroche */
.hero-titre {
  margin: 0 0 8px;
  font-family: "Big Shoulders Display", Inter, sans-serif;
  font-size: clamp(22px, 6vw, 27px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero .sous {
  margin-bottom: 16px;
}

/* ------------------------------------------------- apparition au défilement */
/* La classe .revele est posée par le script : sans JavaScript, tout reste
   visible. L'élément monte de 16 px en fondu quand il entre à l'écran. */
.revele {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.62s cubic-bezier(0.22, 0.72, 0.3, 1),
    transform 0.62s cubic-bezier(0.22, 0.72, 0.3, 1);
  transition-delay: var(--decalage, 0s);
}

.revele.visible {
  opacity: 1;
  transform: none;
}

/* sur les écrans tactiles, on évite le coût du will-change permanent */
@media (hover: hover) {
  .revele {
    will-change: opacity, transform;
  }
  .revele.visible {
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .revele {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
