/* mon-tdah.fr — waiting page (countdown-v8)
   Reconstruction fidèle de references/countdown.svg (1440×927).
   Mesures extraites directement du SVG source (rects, cercles, lignes). */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --countdown-background: #4338e0;
  --countdown-accent: #d2f34c;
  --color-white: #ffffff;
  --color-black: #111111;
  --color-muted: #666666;
  --color-divider: #e5e7eb;

  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--countdown-background);
  color: var(--color-white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ── Focus visibility (WCAG) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--countdown-accent);
  outline-offset: 3px;
}

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

/* ══════════════════════════════════════
   DÉCORATIONS (positions absolues autorisées ici uniquement)
   ══════════════════════════════════════ */

.decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.decor-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 45%, transparent 72%);
  filter: blur(90px);
}

.decor-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  .decor-lines {
    display: none;
  }
  .decor-glow {
    width: 480px;
    height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page * {
    animation: none !important;
    transition: none !important;
  }
}

/* ══════════════════════════════════════
   STRUCTURE PRINCIPALE (flux normal, pas de position absolue)
   ══════════════════════════════════════ */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-16) var(--space-6) var(--space-16);
}

/* ── Logo ── */
.logo {
  display: inline-flex;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-white);
  animation: fadeUp 0.6s ease both;
}

.logo-accent {
  color: var(--countdown-accent);
}

/* ── Titre ── */
.title {
  margin-top: 8px;
  max-width: 14.4em; /* calibré pour reproduire le retour à la ligne de la maquette desktop */
  text-align: center;
  font-size: clamp(38px, 6.4vw, 80px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  animation: fadeUp 0.6s 0.05s ease both;
}

.title-line {
  display: block;
}

/* ── Séparateur sous le titre ── */
.title-divider {
  margin-top: var(--space-4);
  width: 80px;
  height: 6px;
  border-radius: 3px;
  background: var(--countdown-accent);
  animation: fadeUp 0.6s 0.1s ease both;
}

/* ── Sous-titre ── */
.subtitle {
  margin-top: var(--space-6);
  max-width: 640px;
  text-align: center;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  animation: fadeUp 0.6s 0.15s ease both;
}

.subtitle-highlight {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Compte à rebours ── */
.countdown-section {
  margin-top: var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.6s 0.2s ease both;
}

.countdown-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
}

.countdown-card {
  margin-top: var(--space-4);
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: min(471px, 92vw);
  background: var(--color-white);
  border: 3px solid var(--color-black);
  border-radius: 12px;
  padding: 20px var(--space-2);
  box-shadow: 0 8px 16px rgba(17, 17, 17, 0.2);
}

.countdown-unit {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-2);
  min-width: 0;
}

.countdown-unit:not(:last-child) {
  border-right: 1px solid var(--color-divider);
}

.countdown-value {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-black);
  font-variant-numeric: tabular-nums;
}

.countdown-unit-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ── Séparateur entre le compteur et l'inscription ── */
.section-divider {
  margin-top: var(--space-12);
  width: min(480px, 80vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

/* ── Inscription ── */
.signup-section {
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: fadeUp 0.6s 0.25s ease both;
}

.signup-title {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  text-align: center;
  color: var(--color-white);
}

.signup-description {
  margin-top: var(--space-2);
  font-size: 15px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.signup-form {
  margin-top: var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  width: 100%;
  max-width: 599px;
}

.signup-field {
  flex: 1;
  min-width: 0;
}

.signup-field input[type="email"] {
  width: 100%;
  height: 54px;
  padding: 0 var(--space-4);
  font-size: 16px;
  font-family: var(--font);
  color: var(--color-black);
  background: var(--color-white);
  border: 2px solid var(--color-black);
  border-radius: 7px;
}

.signup-field input[type="email"]::placeholder {
  color: var(--color-muted);
}

.signup-field input[aria-invalid="true"] {
  border-color: #b3261e;
}

.signup-error {
  margin-top: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  color: #ffd7d2;
  text-align: left;
}

.signup-button {
  flex-shrink: 0;
  width: 200px;
  height: 56px;
  padding: 0 var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-black);
  background: var(--countdown-accent);
  border: 2px solid var(--color-black);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--color-black);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.signup-button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--color-black);
}

.signup-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--color-black);
}

.signup-message {
  margin-top: var(--space-4);
  max-width: 480px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: var(--color-white);
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
  .page {
    padding: var(--space-10) var(--space-6) var(--space-12);
  }
  .title {
    max-width: 620px;
  }
}

@media (max-width: 767px) {
  .page {
    padding: var(--space-8) var(--space-4) var(--space-10);
  }
  .title {
    margin-top: var(--space-8);
    max-width: 480px;
  }
  .countdown-card {
    width: 100%;
    padding: var(--space-3) 2px;
  }
  .signup-form {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }
  .signup-button {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .title {
    max-width: 340px;
  }
  .countdown-unit {
    padding: 0 4px;
    gap: 4px;
  }
  .countdown-value {
    font-size: clamp(26px, 8.5vw, 36px);
  }
  .countdown-unit-label {
    font-size: 9px;
    letter-spacing: 0.04em;
  }
  .section-divider {
    width: 90vw;
  }
}
