/*
 * COULEURS DE LA ROUE TL DIGITAL
 * -------------------------------
 * C'est ici, et seulement ici, que se règlent les couleurs. Remplacez les
 * codes hexadécimaux ci-dessous par vos propres couleurs si votre charte
 * évolue — tout le reste du site les réutilise automatiquement.
 */
:root {
  --beige: #EDE6D6;
  --noir: #1A1A1A;
  --or: #C9A24B;
  --or-hover: #B08a3c;
  --emeraude: #0B4F3F;
  --emeraude-soft: rgba(11, 79, 63, 0.08);
  --blanc: #FFFFFF;
  --pierre: #6E6656;
  --bordure: #DCD1B4;
  --erreur: #A23B2E;

  --font-titres: "Playfair Display", Georgia, serif;
  --font-texte: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--beige);
  color: var(--noir);
  font-family: var(--font-texte);
  line-height: 1.5;
}

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

a { color: var(--emeraude); }

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

/* ---------- En-tête ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
}
.brandmark {
  font-family: var(--font-titres);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brandmark span { color: var(--or-hover); }
.site-header .lieu {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pierre);
}

/* ---------- Héros ---------- */
.hero {
  max-width: 34rem;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 1.75rem;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emeraude);
  background: var(--emeraude-soft);
  border: 1px solid var(--bordure);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-titres);
  font-weight: 700;
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--or-hover);
}
.hero p {
  margin: 0;
  color: var(--pierre);
  font-size: 0.98rem;
}

/* ---------- Écran teaser (compte à rebours) ---------- */
.teaser-screen { padding-top: 1.5rem; padding-bottom: 2.5rem; }
.countdown {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem auto;
}
.countdown-unit {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 0.9rem;
  padding: 0.9rem 0.4rem;
  min-width: 4.4rem;
  box-shadow: 0 10px 24px -16px rgba(26,26,26,0.35);
}
.countdown-value {
  display: block;
  font-family: var(--font-titres);
  font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  color: var(--noir);
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pierre);
  margin-top: 0.2rem;
}
.teaser-follow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pierre);
  margin: 0 0 0.9rem;
}

/* ---------- Roue ---------- */
.wheel-stage {
  position: relative;
  width: min(80vw, 360px);
  aspect-ratio: 1;
  margin: 0 auto 1.75rem;
}
.pointer {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 0.75rem solid transparent;
  border-right: 0.75rem solid transparent;
  border-top: 1.3rem solid var(--or);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.28));
  z-index: 3;
}
.pointer::after {
  content: "";
  position: absolute;
  top: -1.3rem; left: -0.5rem;
  width: 1rem; height: 1rem;
  border-radius: 50%;
  background: var(--or);
  border: 2px solid var(--beige);
}
.wheel-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--emeraude), var(--or), var(--emeraude));
  padding: 0.5rem;
  box-shadow: 0 16px 34px -14px rgba(26,26,26,0.45);
}
canvas#wheel {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--blanc);
}
.hub {
  position: absolute;
  top: 50%; left: 50%;
  width: 22%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--or);
  border: 3px solid var(--beige);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-titres);
  font-weight: 700;
  font-size: clamp(0.7rem, 2.6vw, 0.95rem);
  color: var(--noir);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 2;
}

/* ---------- Boutons ---------- */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-texte);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.9rem 2.2rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}
.btn-primary {
  background: var(--or);
  color: var(--noir);
  box-shadow: 0 10px 22px -10px rgba(201, 162, 75, 0.6);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); background: var(--or-hover); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-line {
  background: transparent;
  color: var(--noir);
  border: 1px solid var(--bordure);
}
.btn-line:hover { border-color: var(--emeraude); }
.btn:focus-visible { outline: 2px solid var(--emeraude); outline-offset: 3px; }

.cta-wrap { text-align: center; margin-bottom: 0.6rem; }
.cta-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--pierre);
  max-width: 22rem;
  margin: 0.7rem auto 0;
}

/* ---------- Overlays (formulaire / résultat) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.overlay.show { opacity: 1; pointer-events: auto; }
@media (min-width: 560px) {
  .overlay { align-items: center; padding: 1.5rem; }
}

.sheet {
  background: var(--blanc);
  width: 100%;
  max-width: 30rem;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 1.4rem 1.4rem 0 0;
  padding: 1.75rem 1.5rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(16px);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.1);
}
.overlay.show .sheet { transform: translateY(0); }
@media (min-width: 560px) {
  .sheet { border-radius: 1.2rem; max-height: 88vh; }
}

.sheet h2 {
  font-family: var(--font-titres);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}
.sheet .sheet-intro {
  color: var(--pierre);
  font-size: 0.9rem;
  margin: 0 0 1.4rem;
}

/* ---------- Formulaire ---------- */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  font-family: var(--font-texte);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--bordure);
  border-radius: 0.6rem;
  background: var(--beige);
  color: var(--noir);
}
.field input:focus {
  outline: none;
  border-color: var(--emeraude);
  box-shadow: 0 0 0 3px var(--emeraude-soft);
}
.field-hint {
  font-size: 0.76rem;
  color: var(--pierre);
  margin-top: 0.35rem;
}
.field-error {
  font-size: 0.78rem;
  color: var(--erreur);
  margin-top: 0.35rem;
  display: none;
}
.field.invalid input { border-color: var(--erreur); }
.field.invalid .field-error { display: block; }

.form-error-banner {
  display: none;
  background: rgba(162, 59, 46, 0.1);
  border: 1px solid var(--erreur);
  color: var(--erreur);
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
}
.form-error-banner.show { display: block; }

.checkline {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
}
.checkline input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.15rem; height: 1.15rem;
  accent-color: var(--emeraude);
  flex-shrink: 0;
}
.checkline a { text-decoration: underline; }

.privacy-link {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: var(--pierre);
  text-decoration: underline;
  margin-top: 0.4rem;
}

/* ---------- Résultat ---------- */
.result-title {
  font-family: var(--font-titres);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 0.8rem;
  text-wrap: balance;
}
.result-body {
  color: var(--pierre);
  font-size: 0.92rem;
  margin: 0 0 1.3rem;
}
.result-callout {
  background: var(--emeraude-soft);
  border: 1px solid var(--bordure);
  border-radius: 0.7rem;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
}

.social-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.social-row a {
  border: 1px solid var(--bordure);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--noir);
  text-decoration: none;
}
.social-row a:hover { border-color: var(--or); }

.sheet-actions { display: flex; justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--noir);
  color: #C9C2AE;
  padding: 1.75rem 1.5rem 2.25rem;
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8rem;
}
.site-footer .footer-brand {
  font-family: var(--font-titres);
  color: var(--blanc);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.site-footer a {
  color: #C9C2AE;
  text-decoration: underline;
}
.footer-links {
  display: flex;
  gap: 0.4rem 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.6rem;
}

@media (prefers-reduced-motion: reduce) {
  .sheet, .btn { transition: none; }
}
