/* ===== Score Circadien — Light Mode Apple Design ===== */

:root {
  --bg: #F5F5F7;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F0F0F5;
  --text: #1D1D1F;
  --text-muted: #6E6E73;
  --text-dim: #9A9AA0;
  /* Brand Ora Life : marine #000324 primary + vert #00C853 action.
     accent = marine (titres, contrastes texte sombre)
     accent-action = vert (CTAs avec texte sombre #03210f sur fond vert) */
  --accent: #000324;
  --accent-light: rgba(0, 3, 36, 0.08);
  --accent-glow: rgba(0, 3, 36, 0.12);
  --accent-action: #00C853;
  --accent-action-deep: #00a046;
  --accent-on-action: #03210f;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --border: #E5E5EA;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 9999px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
button, a, [onclick], .btn-primary, .btn-back, .visual-option, .single-option, .scale-option, .city-suggestion, .affiliate-link {
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  /* WCAG 1.4.12 : line-height ≥ 1.5 sur le body */
}

/* A11y : skip-to-main link, visible uniquement au focus clavier (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #000324;
  color: #ffffff;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  transition: top 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid #00C853;
  outline-offset: 2px;
}

/* A11y : helper visually-hidden pour labels accessibles */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Banner inline error (remplace alert() natifs cassants) */
.inline-error-banner {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-140%);
  background: #FF3B30;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(255, 59, 48, 0.35);
  z-index: 100000;
  max-width: 90vw;
  text-align: center;
  line-height: 1.4;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s;
  opacity: 0;
  pointer-events: none;
}
.inline-error-banner--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Micro-CTA NHB+ (Sultanic "Parce que je...") */
.nhb-plus {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 10px auto 0;
  font-style: italic;
  max-width: 320px;
  line-height: 1.45;
}

/* Trust icons SVG (replaced HTML emoji entities) */
.trust-icon-svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Footer enhanced */
.footer { padding: 32px 20px 40px; text-align: center; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.footer-brand { color: var(--text); font-size: 14px; margin-bottom: 6px; }
.footer-disclaimer { font-size: 11px; color: var(--text-dim); margin: 4px 0 16px; max-width: 480px; margin-left: auto; margin-right: auto; }
.footer-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--accent); text-decoration: underline; }
.footer-links span { color: var(--text-dim); opacity: 0.4; }

/* Reduced motion — WCAG 2.3.3 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .skip-link, .inline-error-banner { transition: opacity 0.18s; }
}

/* ===== SCREENS ===== */

.screen {
  display: none;
  min-height: 100dvh;
  padding: 20px;
}

.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===== LANDING ===== */

.landing-container {
  max-width: 480px;
  text-align: center;
  padding: 40px 20px;
}

/* ===== Circadian Hero Animation (SVG inline) ===== */
.circ-hero {
  margin: 0 auto 18px;
  max-width: 280px;
  position: relative;
  animation: circ-fadein 0.9s cubic-bezier(.16,1,.3,1) both;
}
@keyframes circ-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.circ-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 24px rgba(0, 200, 83, 0.12));
}
/* Subtle slow rotation of the celestial bodies (sun/moon) — gives life without distracting */
.circ-celestial {
  transform-origin: 160px 160px;
  animation: circ-celestial 60s linear infinite;
}
@keyframes circ-celestial {
  to { transform: rotate(360deg); }
}
.circ-caption {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin: 8px 0 0;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.circ-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.circ-dot--cortisol { background: #00C853; }
.circ-dot--melatonine { background: #1F3D8C; }
.circ-spacer { margin: 0 8px; opacity: 0.4; }

@media (max-width: 480px) {
  .circ-hero { max-width: 220px; margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .circ-celestial { animation: none; }
  .circ-svg circle, .circ-svg path { animation: none !important; }
}

.landing-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(0, 3, 36, 0.16);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.landing-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.highlight {
  /* Brand Ora Life — vert action plus foncé pour contraste AA sur fond clair (#F5F5F7) */
  color: var(--accent-action-deep);
  position: relative;
}
.highlight::after {
  content: "";
  position: absolute;
  left: 4%; right: 4%; bottom: -2px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-action), transparent);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  animation: highlight-underline 0.9s cubic-bezier(.16,1,.3,1) 0.8s forwards;
}
@keyframes highlight-underline {
  to { transform: scaleX(1); }
}

.landing-tagline {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 16px;
}

.landing-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.landing-subtitle strong {
  color: var(--text);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.stat-item {
  text-align: center;
  padding: 0 20px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Trust Items */
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.trust-icon {
  font-size: 1rem;
}

/* ===== BUTTONS ===== */

.btn-primary {
  /* Brand Ora Life : CTA vert action #00C853 + texte sombre #03210f (WCAG AAA ~7:1).
     Pattern hérité du hero v6 bilan-ora-life. */
  background: linear-gradient(180deg, #6effb6 0%, var(--accent-action) 55%, var(--accent-action-deep) 100%);
  color: var(--accent-on-action);
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.16,1,.3,1), box-shadow 0.25s ease, opacity 0.15s;
  width: 100%;
  font-family: var(--font);
  box-shadow: 0 8px 24px rgba(0, 200, 83, 0.28), inset 0 1px 0 rgba(255,255,255,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 200, 83, 0.38), inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 200, 83, 0.22), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ===== QUIZ HEADER ===== */

.quiz-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 20px 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.quiz-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  font-family: var(--font);
}

.btn-back:hover {
  background: var(--border);
  color: var(--text);
}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
  border-radius: 2px;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

#quiz.active {
  justify-content: flex-start;
  padding-top: 80px;
}

.quiz-body {
  max-width: 480px;
  width: 100%;
  padding: 20px 0;
}

.section-label {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 8px;
}

.question-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.question-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ===== VISUAL OPTIONS ===== */

.visual-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.visual-option {
  background: var(--bg-card);
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .visual-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
  }
}

.visual-option:active {
  transform: scale(0.97);
}

.visual-option.selected {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.visual-option.selected .visual-label,
.visual-option.selected .visual-desc {
  color: white;
}

.visual-option.selected .visual-icon {
  background: rgba(255, 255, 255, 0.2);
}

.visual-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 14px;
}

.visual-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.visual-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ===== SINGLE OPTIONS ===== */

.single-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.single-option {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: var(--shadow);
}

@media (hover: hover) {
  .single-option:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg);
  }
}

.single-option:active {
  transform: scale(0.97);
}

.single-option.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

/* Remove browser focus ring on all interactive quiz elements */
.visual-option:focus-visible,
.single-option:focus-visible,
.scale-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.visual-option:focus:not(:focus-visible),
.single-option:focus:not(:focus-visible),
.scale-option:focus:not(:focus-visible) {
  outline: none;
}

/* ===== PHONE INPUT WITH COUNTRY SELECTOR ===== */

.phone-input-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: all 0.2s ease;
  overflow: visible;
  margin-bottom: 4px;
}

.phone-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.country-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 10px 14px 14px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

@media (hover: hover) {
  .country-selector:hover {
    background: rgba(99, 102, 241, 0.04);
  }
}

.country-flag { font-size: 20px; line-height: 1; }
.country-code { font-size: 14px; font-weight: 500; color: var(--text); min-width: 36px; }

.dropdown-arrow {
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.country-selector[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.phone-number-input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--text);
  min-width: 0;
  font-family: inherit;
}

.phone-number-input::placeholder { color: var(--text-dim); }
.phone-number-input:focus { outline: none; }

.country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--border);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.country-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.country-search-wrapper {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.country-search {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

.country-search:focus {
  outline: none;
  border-color: var(--accent);
}

.country-search::placeholder { color: var(--text-dim); }

.country-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  padding: 6px;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .country-option:hover { background: rgba(99, 102, 241, 0.06); }
}

.country-option.selected { background: rgba(99, 102, 241, 0.08); }
.country-option-flag { font-size: 20px; line-height: 1; }
.country-option-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-option-code { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }

.country-divider { height: 1px; background: var(--border); margin: 6px 12px; }
.country-section-label { font-size: 10px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 12px 2px; }

@media (max-width: 480px) {
  .country-dropdown { max-height: 260px; }
  .country-selector { padding: 12px 8px 12px 12px; gap: 4px; }
  .country-code { font-size: 13px; min-width: 34px; }
  .phone-number-input { padding: 12px 14px; }
}

/* ===== SLIDER ===== */

.slider-container {
  margin: 32px 0 24px;
}

.slider-value {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--slider-progress, 50%), var(--border) var(--slider-progress, 50%), var(--border) 100%);
  border-radius: 3px;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg-white);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg-white);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===== SCALE ===== */

.scale-container {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.scale-option {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  flex: 1;
  min-width: 54px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

@media (hover: hover) {
  .scale-option:hover {
    border-color: rgba(99, 102, 241, 0.3);
  }
}

.scale-option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.scale-number {
  font-size: 1.3rem;
  font-weight: 700;
}

.scale-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.2;
}

/* ===== CITY INPUT ===== */

.city-input-container {
  position: relative;
  margin: 20px 0;
}

.input-field {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.input-field.error {
  border-color: var(--red);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.input-field::placeholder {
  color: var(--text-dim);
}

.city-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: hidden;
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

.city-suggestion {
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.95rem;
}

.city-suggestion:hover,
.city-suggestion.highlighted {
  background: var(--bg-card-hover);
}

.city-suggestion-name {
  font-weight: 600;
}

.city-suggestion-context {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ===== WOW BREAK ===== */

#wowBreak.active {
  background: linear-gradient(180deg, var(--bg) 0%, #EDE9FE 40%, #E0E7FF 100%);
}

.wow-container {
  max-width: 420px;
  text-align: center;
  padding: 60px 24px;
}

.wow-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.wow-stat {
  font-size: 5rem;
  font-weight: 800;
  /* Brand Ora Life — marine vers vert action (réveil du soleil) */
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-action-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.wow-text {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--text);
}

.wow-source {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 32px;
}

/* ===== EMAIL CAPTURE ===== */

.email-container {
  max-width: 420px;
  text-align: center;
  padding: 40px 20px;
}

.email-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.score-preview {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EDE9FE 0%, #E0E7FF 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
}

.score-blur {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  filter: blur(8px);
}

.email-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.phone-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: -4px;
  text-align: left;
  padding-left: 4px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  margin-top: 4px;
}

.consent-checkbox {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.consent-text {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.micro-cta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 20px;
}

.social-proof-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.social-proof-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.email-privacy {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ===== LOADING SCREEN ===== */

.loading-container {
  text-align: center;
  padding: 40px 20px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

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

.loading-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.loading-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: opacity 0.3s;
}

/* ===== RESULTS ===== */

.results-container {
  max-width: 520px;
  width: 100%;
  padding: 20px 0;
}

#results.active {
  justify-content: flex-start;
  padding-top: 40px;
}

.results-header {
  text-align: center;
  margin-bottom: 32px;
}

.results-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 20px;
}

.score-ring {
  width: 160px;
  height: 160px;
  position: relative;
  margin: 0 auto 20px;
}

.score-svg {
  width: 100%;
  height: 100%;
}

.score-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.score-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 60%);
  font-size: 1rem;
  color: var(--text-dim);
}

.profil-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.profil-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Geo Insight */
.geo-insight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.geo-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.geo-insight p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Radar Bars */
.radar-section {
  margin-bottom: 32px;
}

.radar-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.radar-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.radar-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radar-bar-label {
  width: 130px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
  text-align: right;
}

.radar-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.radar-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

.radar-bar-value {
  width: 36px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: right;
}

/* Zero state: track turns red-tinted, pulsing dot at start */
.radar-bar-track--zero {
  background: #ef444420;
  border: 1px solid #ef444430;
  position: relative;
}

.radar-bar-zero-indicator {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse-zero 2s ease-in-out infinite;
}

@keyframes pulse-zero {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.5; transform: translateY(-50%) scale(0.7); }
}

.radar-bar--zero .radar-bar-label {
  color: #ef4444;
  font-weight: 600;
}

.radar-bar--zero .radar-bar-value {
  color: #ef4444;
  font-weight: 700;
}

/* Recommendations */
.recommendations {
  margin-bottom: 32px;
}

.recommendations h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.rec-number {
  width: 32px;
  height: 32px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.rec-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.rec-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.rec-severity {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rec-severity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.rec-source {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 8px;
}

/* Sources Section */
.sources-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.sources-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sources-intro {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sources-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.sources-list li {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.sources-list li:last-child {
  border-bottom: none;
}

.sources-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.sources-list a:hover {
  text-decoration: underline;
}

.sources-more {
  font-size: 0.75rem;
  text-align: center;
}

.sources-more a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  margin-bottom: 32px;
}

.cta-primary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.cta-primary h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-primary p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.cta-primary .btn-primary {
  display: inline-block;
  width: auto;
  text-align: center;
}

.cta-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-secondary-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.affiliate-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.affiliate-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.affiliate-link:hover {
  background: var(--accent-light);
}

.affiliate-disclaimer {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Results Footer */
.results-footer {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  line-height: 1.4;
}

.powered-by {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== SEO CONTENT (hidden visually) ===== */

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

/* ===== FOOTER ===== */

.footer {
  text-align: center;
  padding: 20px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-disclaimer {
  margin-top: 4px;
  font-size: 0.7rem;
}

/* ===== MICRO-VALIDATION OVERLAY ===== */

.micro-validation-overlay {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  max-width: 400px;
  width: calc(100% - 40px);
  cursor: pointer;
}

.micro-validation-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15), var(--shadow-lg);
}

.micro-validation-icon {
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.micro-validation-message {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

/* ===== DARK MODE (auto via prefers-color-scheme) ===== */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000324;
    --bg-white: #0a0e2a;
    --bg-card: #0f1335;
    --bg-card-hover: #161a40;
    --text: #e8e8f0;
    --text-muted: #8888a0;
    --text-dim: #555570;
    --border: #1e2248;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .quiz-header {
    background: rgba(0, 3, 36, 0.92);
  }

  #wowBreak.active {
    background: linear-gradient(180deg, var(--bg) 0%, #1a1040 40%, #0f1335 100%);
  }

  .slider::-webkit-slider-thumb {
    border-color: var(--bg);
  }

  .slider::-moz-range-thumb {
    border-color: var(--bg);
  }
}

/* ===== RESPONSIVE ===== */

@media (min-width: 768px) {
  .landing-title {
    font-size: 3.2rem;
  }

  .visual-options {
    grid-template-columns: 1fr 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .scale-option {
    min-width: 80px;
    padding: 16px 12px;
  }
}
