/* ─── DESIGN TOKENS — Univers Premium Sandrine Gauthier ──── */
/* Thème sombre forcé — pas de media query prefers-color-scheme */

:root {
  /* Couleurs */
  --color-bg:          #0D0C0A;
  --color-surface:     #1A1815;
  --color-surface-2:   #1E1B17;
  --color-border:      #2A2720;
  --color-border-gold: rgba(201, 168, 76, 0.35);

  /* Texte */
  --color-text:        #F5F0E8;
  --color-text-muted:  #9E9890;
  --color-text-faint:  #5A5650;

  /* Accent doré */
  --color-gold:        #C9A84C;
  --color-gold-light:  #E8D5A3;
  --color-gold-dark:   #A8853A;
  --color-gold-bg:     rgba(201, 168, 76, 0.08);
  --color-gold-bg-2:   rgba(201, 168, 76, 0.14);

  /* Alias fonctionnels */
  --color-primary:     var(--color-gold);
  --color-primary-h:   var(--color-gold-light);
  --color-primary-bg:  var(--color-gold-bg);

  /* Typographie */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  /* Rayons */
  --radius-sm:   0.5rem;
  --radius-md:   0.875rem;
  --radius-lg:   1.25rem;
  --radius-pill: 9999px;

  /* Ombres */
  --shadow-sm:   0 1px 4px  rgb(0 0 0 / 0.35);
  --shadow-md:   0 4px 20px rgb(0 0 0 / 0.45);
  --shadow-lg:   0 16px 48px rgb(0 0 0 / 0.55);
  --shadow-gold: 0 0 24px   rgba(201, 168, 76, 0.15);

  /* Animation */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:  220ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

/* ─── PROGRESS BAR ───────────────────────────────────────── */
.progress-bar-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-border);
  z-index: 100;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.progress-bar-wrap.visible { opacity: 1; }

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-light));
  width: 0%;
  transition: width 400ms var(--ease);
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.5);
}

/* ─── SCREENS ────────────────────────────────────────────── */
.screen {
  display: none;
  min-height: 100dvh;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 5vw, 2rem);
  animation: fadeIn 350ms var(--ease) both;
}
.screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.screen-inner {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.screen-inner.center { text-align: center; }

/* ─── LOGO / MÉDAILLON SANDRINE ──────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

/* Photo de Sandrine en médaillon circulaire */
.sandrine-avatar {
  display: block;
  margin: 0 auto 1.75rem;
  position: relative;
  width: 96px;
  height: 96px;
}

.sandrine-avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15), var(--shadow-md);
  display: block;
}

/* Fallback initiales si image ne charge pas */
.sandrine-avatar .avatar-fallback {
  display: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15), var(--shadow-md);
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}

.sandrine-avatar img.img-error { display: none; }
.sandrine-avatar img.img-error + .avatar-fallback { display: flex; }

/* ─── INTRO ──────────────────────────────────────────────── */
.intro-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: var(--color-gold-bg);
  border: 1px solid var(--color-border-gold);
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 4vw + 1rem, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.display em {
  font-style: italic;
  color: var(--color-gold-light);
}

.intro-sub {
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  color: rgba(245, 240, 232, 0.82);
  max-width: 46ch;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.intro-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 2px solid var(--color-border-gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.intro-card-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  opacity: 0.75;
}

.intro-meta {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-faint);
}
.intro-meta a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
.intro-meta a:hover { color: var(--color-gold-light); }

/* ─── BOUTONS ────────────────────────────────────────────── */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-gold);
  color: #0D0C0A;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: background var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.3);
  letter-spacing: 0.01em;
}

/* Effet sweep lumineux de gauche à droite */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: skewX(-15deg);
  transition: left 0.55s var(--ease);
}
.btn-primary:hover::before { left: 160%; }

.btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-full { width: 100%; }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color var(--dur) var(--ease);
}
.btn-back:hover { color: var(--color-gold-light); }

.btn-ghost {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-faint);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
.btn-ghost:hover { color: var(--color-text-muted); }

/* ─── QUESTION ───────────────────────────────────────────── */
.q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
}

.q-counter {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  opacity: 0.8;
}

/* Carte question */
.q-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.q-visual {
  background: linear-gradient(135deg, #1A1815 0%, #1E1B17 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.q-emoji {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 2px 12px rgba(201, 168, 76, 0.2));
}

.q-body {
  padding: 1.75rem 1.75rem 1.5rem;
}

.q-num {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.625rem;
  opacity: 0.9;
}

.q-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

/* Réponses */
.answers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.answer-btn {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 0.8125rem 1rem;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.answer-btn:hover {
  border-color: var(--color-border-gold);
  background: var(--color-gold-bg);
  color: var(--color-text);
  transform: translateX(3px);
}

.answer-btn.selected {
  border-color: var(--color-gold);
  background: var(--color-gold-bg-2);
  color: var(--color-text);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.2);
}

.answer-letter {
  flex-shrink: 0;
  width: 27px; height: 27px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-faint);
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
  letter-spacing: 0;
}
.answer-btn.selected .answer-letter,
.answer-btn:hover   .answer-letter {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #0D0C0A;
}

.answer-text { flex: 1; line-height: 1.4; }

.answer-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
}

/* Labels de résultat — tous en doré */
.result-label.label-light    { color: var(--color-gold-light); }
.result-label.label-moderate { color: var(--color-gold); }
.result-label.label-strong   { color: var(--color-gold); }

/* Pied de carte question */
.q-footer {
  padding: 0 1.75rem 1.75rem;
}

/* ─── ÉCRAN EMAIL ─────────────────────────────────────────── */
.email-icon {
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  background: var(--color-gold-bg);
  border: 1px solid var(--color-border-gold);
  border-radius: 50%;
}

/* L'icône enveloppe SVG utilise var(--color-primary) */

.email-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.email-sub {
  color: var(--color-text-muted);
  max-width: 45ch;
  margin: 0 auto 2rem;
}

.email-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-group input {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  font-family: var(--font-body);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.form-group input::placeholder { color: var(--color-text-faint); }

.email-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-text-faint);
}

/* ─── ÉCRAN RÉSULTAT ─────────────────────────────────────── */
.result-badge {
  margin: 0 auto 1.25rem;
  font-size: 3.5rem;
  line-height: 1;
}

.result-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-border-gold);
  background: var(--color-gold-bg);
  padding: 0.275rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.875rem;
}

.result-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.result-text {
  color: var(--color-text-muted);
  max-width: 52ch;
  margin: 0 auto 1.75rem;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
}

.result-signs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  margin-bottom: 2rem;
}

.result-sign-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  animation: slideIn 300ms var(--ease) both;
}

.result-sign-item:nth-child(2) { animation-delay: 80ms;  }
.result-sign-item:nth-child(3) { animation-delay: 160ms; }
.result-sign-item:nth-child(4) { animation-delay: 240ms; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.sign-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1em;
  color: var(--color-gold);
  opacity: 0.85;
}

.result-cta-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-gold);
}

.result-cta-pre {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1.125rem;
}

.result-cta-note {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--color-gold);
  opacity: 0.7;
}

.result-footer {
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--color-text-faint);
}
.result-footer a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
.result-footer a:hover { color: var(--color-gold-light); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .q-visual  { padding: 1.5rem 1.5rem 1.25rem; }
  .q-body    { padding: 1.25rem 1.25rem 1rem; }
  .q-footer  { padding: 0 1.25rem 1.25rem; }
  .intro-card { padding: 1rem 1.25rem; }
  .sandrine-avatar,
  .sandrine-avatar img { width: 80px; height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── FOND DÉSERT — DESKTOP UNIQUEMENT ───────────────────── */
@media (min-width: 1024px) {
  body {
    background:
      linear-gradient(
        145deg,
        rgba(13, 12, 10, 0.18),
        rgba(13, 12, 10, 0.30)
      ),
      url("https://www.sandrine-gauthier-hypnose.com/wp-content/uploads/2025/11/fond-decran-desert-optimized.webp")
        center center / cover no-repeat fixed;
    color: var(--color-text);
  }
  .screen {
    background: transparent;
  }

  .screen-inner {
    max-width: 760px;
  }

  /* léger flou sur les grandes cartes uniquement */
  .q-card,
  .result-cta-box {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* Optionnel : grands écrans */
@media (min-width: 1440px) {
  .screen-inner { max-width: 820px; }
}