/* ===== GoSortir — Charte graphique ===== */
:root {
  /* Couleurs de marque */
  --orange: #FF6B35;
  --orange-dark: #E8551F;
  --orange-light: #FF8C5F;
  --violet: #7B2CBF;
  --violet-dark: #5A1E8F;
  --violet-light: #9D4EDD;
  --yellow: #FFC857;

  /* Surfaces */
  --bg-cream: #FFF8F0;
  --surface-white: #FFFFFF;
  --surface-neutral: #F5EEE4;
  --border-color: #ECE3D6;

  /* Texte */
  --text-primary: #191A1F;
  --text-secondary: #6B7280;
  --text-tertiary: #9AA0A6;

  /* Signaux */
  --success: #1FA971;
  --warning: #F59E0B;
  --error: #FF3B30;
  --info: #3B82F6;

  /* Dégradés */
  --gradient-sunset: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
  --gradient-go: linear-gradient(135deg, var(--orange) 0%, var(--violet) 100%);
  --gradient-night: linear-gradient(135deg, var(--violet) 0%, #3F1566 100%);

  /* Rayons */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 30px;
  --radius-pill: 999px;

  /* Espacement (échelle 4px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  /* Ombres */
  --shadow-card: 0 8px 24px rgba(58, 42, 26, 0.08);
  --shadow-elevated: 0 16px 40px rgba(58, 42, 26, 0.14);
  --shadow-glow: 0 0 48px rgba(255, 107, 53, 0.35);

  /* Typographie */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-cream);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

.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écor de fond ===== */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.blob-1 {
  width: 480px;
  height: 480px;
  background: var(--gradient-sunset);
  top: -160px;
  right: -120px;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: var(--gradient-go);
  bottom: -140px;
  left: -140px;
  opacity: 0.25;
}

/* ===== Layout ===== */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: center;
  padding: var(--space-6) var(--space-4) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.brand-logo {
  width: 40px;
  height: 40px;
  display: block;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.wordmark span {
  background: var(--gradient-go);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6) var(--space-4) 48px;
  max-width: 640px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: rgba(255, 107, 53, 0.1);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  margin: 40px 0 var(--space-5);
}

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-5);
  background: var(--gradient-go);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 0 40px;
}

/* ===== Countdown ===== */
.countdown {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.countdown-unit {
  background: var(--surface-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-4) var(--space-3);
  min-width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.countdown-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.countdown-date {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 40px;
}

/* ===== Formulaire ===== */
.waitlist-form {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-row {
  display: flex;
  gap: var(--space-2);
}

.email-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--surface-white);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.email-input::placeholder {
  color: var(--text-tertiary);
}

.email-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.submit-btn {
  position: relative;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--surface-white);
  background: var(--gradient-go);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.submit-btn:hover {
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
  transform: none;
}

.btn-spinner {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--surface-white);
  border-radius: 50%;
}

.submit-btn.is-loading .btn-text {
  visibility: hidden;
}

.submit-btn.is-loading .btn-spinner {
  display: block;
  animation: spin 0.7s linear infinite;
}

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

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--orange);
  width: 16px;
  height: 16px;
}

.form-message {
  min-height: 20px;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.form-message.success { color: var(--success); }
.form-message.error { color: var(--error); }

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .headline {
    font-size: 32px;
  }

  .countdown {
    gap: var(--space-2);
  }

  .countdown-unit {
    min-width: 62px;
    padding: var(--space-3) var(--space-2);
  }

  .countdown-value {
    font-size: 22px;
  }

  .form-row {
    flex-direction: column;
  }

  .submit-btn {
    width: 100%;
  }
}

/* ===== Accessibilité ===== */
@media (prefers-reduced-motion: reduce) {
  .submit-btn,
  .btn-spinner {
    transition: none;
    animation: none;
  }
}
