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

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

body {
  font-family: 'Work Sans', sans-serif;
  background-color: #FFF8F0;
  color: #1F2937;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Lora', serif;
  line-height: 1.25;
}

a {
  color: #0D9488;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* =========================================
   VARIABLES
   ========================================= */
:root {
  --teal:       #0D9488;
  --teal-dark:  #0A7C72;
  --teal-light: #E6F7F6;
  --gold:       #D4A843;
  --gold-dark:  #BF9339;
  --cream:      #FFF8F0;
  --text:       #1F2937;
  --muted:      #6B7280;
  --border:     #E5E7EB;
  --white:      #FFFFFF;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 2px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 4px 24px rgba(0,0,0,.14);
  --transition: .18s ease;
}

/* =========================================
   LAYOUT
   ========================================= */
.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   BOUTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover {
  background: var(--teal-light);
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  text-decoration: none;
}

.btn-large {
  min-height: 60px;
  padding: 18px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  width: 100%;
}

/* =========================================
   PAGE ACCUEIL (index.html)
   ========================================= */
.page-accueil {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  justify-content: center;
}
.site-logo {
  font-family: 'Lora', serif;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: .01em;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 52px 0 72px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.elements-row {
  display: flex;
  gap: 14px;
  font-size: 2.2rem;
  line-height: 1;
}

.hero h1 {
  font-size: 2.1rem;
  color: var(--text);
  max-width: 480px;
}

.tagline {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--teal);
  line-height: 1.6;
}

.description {
  font-size: .97rem;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.7;
}

.hero-cta {
  width: 100%;
  max-width: 340px;
  margin-top: 6px;
}

.hint {
  font-size: .82rem;
  color: var(--muted);
}
.hint span { margin: 0 5px; opacity: .4; }

.site-footer {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
}

/* =========================================
   PAGE QUIZ (quiz.html)
   ========================================= */
.page-quiz {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.screen {
  display: none;
  flex: 1;
  flex-direction: column;
}
.screen.active {
  display: flex;
}

/* ---------- ÉCRAN 1 : QUESTION ---------- */

.quiz-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--border);
}
.quiz-header .inner {
  max-width: 600px;
  margin: 0 auto;
}

.quiz-nav {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.btn-back {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Work Sans', sans-serif;
  font-size: .9rem;
  cursor: pointer;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: var(--radius-sm);
  min-height: 40px;
  transition: color var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.btn-back:hover { color: var(--text); background: var(--border); }
.btn-back:disabled { opacity: .3; cursor: default; }

.progress-text {
  font-size: .82rem;
  color: var(--muted);
  margin-left: auto;
}

.progress-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 4px;
  transition: width .4s ease;
}

/* Corps de question */
.quiz-body {
  flex: 1;
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.question-text {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text);
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 14px 18px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Work Sans', sans-serif;
  font-size: .97rem;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.answer-btn:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}
.answer-btn.selected {
  border-color: var(--teal);
  background: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}

.answer-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.answer-btn.selected .answer-dot {
  border-color: var(--teal);
  background: var(--teal);
}
.answer-btn.selected .answer-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
}

.answer-label { line-height: 1.3; }

/* Pied de page quiz (bouton Suivant) */
.quiz-footer {
  position: sticky;
  bottom: 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.quiz-footer .inner {
  padding: 14px 20px;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- ÉCRAN 2 : EMAIL ---------- */

#screen-email {
  justify-content: center;
}

.email-inner {
  padding: 48px 20px 64px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.email-icon {
  font-size: 3.5rem;
  text-align: center;
  line-height: 1;
}

.email-inner h2 {
  font-size: 1.7rem;
  text-align: center;
  color: var(--text);
}

.email-subtitle {
  text-align: center;
  color: var(--muted);
  margin-top: -12px;
}

.form-email {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}
.form-group input {
  height: 52px;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus { border-color: var(--teal); }
.form-group input::placeholder { color: #9CA3AF; }

.form-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .88rem;
  color: #DC2626;
  display: none;
}

.rgpd {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}
.rgpd a { color: var(--muted); text-decoration: underline; }

/* ---------- ÉCRAN 3 : RÉSULTAT ---------- */

.result-inner {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 60px;
}

/* Bandeau coloré en haut */
.result-hero-band {
  background: var(--teal);
  color: var(--white);
  padding: 40px 24px 36px;
  text-align: center;
}
.result-emoji-big {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 12px;
}
.result-hero-band h2 {
  font-family: 'Lora', serif;
  font-size: 1.85rem;
  color: var(--white);
  margin-bottom: 14px;
}
.result-phrase-cle {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  opacity: .92;
}

/* Section des scores */
.result-section {
  padding: 28px 20px 0;
}
.section-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  margin-bottom: 14px;
}

.score-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.score-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.score-name {
  font-size: .88rem;
  font-weight: 500;
  width: 46px;
  flex-shrink: 0;
}
.score-track {
  flex: 1;
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  border-radius: 5px;
  width: 0;
  transition: width 1s ease;
}
.score-val {
  font-size: .8rem;
  color: var(--muted);
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}

/* Cartes conseil */
.conseil-card {
  margin: 20px 20px 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.conseil-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.conseil-icon { font-size: 1.35rem; flex-shrink: 0; }
.conseil-title {
  font-family: 'Lora', serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}
.conseil-body {
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.6;
}
.acupression-nom {
  font-weight: 700;
  color: var(--teal);
  font-size: 1rem;
  margin-bottom: 3px;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 20px 0;
}

/* CTAs résultat */
.result-ctas {
  margin: 28px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── Bloc ebook CTA ─── */
.result-ebook-cta {
  margin: 24px 20px 0;
}
.ebook-cta-inner {
  background: var(--teal);
  color: var(--white);
  border-radius: 16px;
  padding: 24px 22px 20px;
  position: relative;
  overflow: hidden;
}
.ebook-cta-inner::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.ebook-cta-label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  opacity: .75; margin-bottom: 8px;
}
.ebook-cta-title {
  font-family: 'Lora', serif;
  font-size: 1.25rem; color: var(--white);
  margin-bottom: 8px;
}
.ebook-cta-desc {
  font-size: .88rem; opacity: .9; line-height: 1.55; margin-bottom: 14px;
}
.ebook-cta-benefits {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 18px;
}
.ebook-cta-benefits li {
  font-size: .84rem; opacity: .92;
  display: flex; gap: 8px; align-items: baseline;
}
.ebook-cta-benefits li::before {
  content: '✓'; font-weight: 700; flex-shrink: 0;
  color: var(--gold);
}
.ebook-cta-inner .btn-primary {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
}
.ebook-cta-inner .btn-primary:hover {
  background: #F0FFFE;
  border-color: #F0FFFE;
}
.ebook-cta-price {
  text-align: center;
  font-size: .78rem; opacity: .75;
  margin-top: 10px;
}
.ebook-cta-price strong { color: var(--gold); opacity: 1; }

/* =========================================
   RESPONSIVE ≥ 600px
   ========================================= */
@media (min-width: 600px) {
  .hero h1         { font-size: 2.7rem; }
  .question-text   { font-size: 1.32rem; }
  .result-hero-band h2 { font-size: 2.1rem; }
}
