/* ============================================================
   MayMotion — feuille de style globale
   Extraite de l'inline CSS de index.html (2026-07-04, Phase 2 SEO)
   + composants multi-pages (nav, pages contenu, FAQ).
   Invariants conservés tels quels :
   - #quiz-overlay display:none (visibilité gérée par JS uniquement,
     ouverture au clic seulement — jamais automatique)
   - fix clavier Android : overflow:hidden sur #quiz-overlay,
     max-height:100% + box-sizing:border-box sur #quiz-box
   ============================================================ */

:root {
  /* Palette MayMotion */
  --beige:      #dbcdc6; /* fond principal */
  --beige-soft: #e6dcd6; /* fond légèrement plus clair */
  --beige-deep: #cdbbb1; /* fond légèrement plus profond */
  --terracotta:      #ae8676; /* accent principal / CTA */
  --terracotta-dark: #9a7363; /* hover CTA / liens */
  --taupe:           #807166; /* accent secondaire */
  --ink-hover:       #1c140f; /* hover boutons sombres */
  --ink:        #2a1f1a; /* textes & titres */
  --ink-soft:   #5a4c44; /* texte secondaire */

  /* Messages formulaires — ratios AA vérifiés (WCAG 2.x, calcul 2026-07-12) */
  --msg-error:           #7f2d16; /* sur fond clair (modale quiz #f5ede8) : 7.93:1 */
  --msg-success:         #3c4f3c; /* sur fond clair : 7.64:1 */
  --msg-warn:            #7d5748; /* sur fond clair (409 déjà inscrit) : 5.46:1 */
  --msg-error-onbrand:   #4a1508; /* sur fond terracotta : 4.62:1 */
  --msg-success-onbrand: #142614; /* sur fond terracotta : 4.91:1 */

  /* Stacks typographiques (les premières polices arriveront plus tard) */
  --font-title:    "Dream Avenue", "Cormorant Garamond", Georgia, serif;
  --font-subtitle: "Bryan Write", "Caveat", "Segoe Script", cursive;
  --font-body:     "Poppins", system-ui, -apple-system, sans-serif;
  --font-quote:    "Playlist Script", "Parisienne", "Brush Script MT", cursive;

  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--beige);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--terracotta);
}

.script {
  font-family: var(--font-subtitle);
  font-weight: 600;
  line-height: 1;
}

/* Placeholder photo : bandes diagonales + label monospace */
.photo {
  position: relative;
  background-color: var(--beige-deep);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    rgba(42, 31, 26, 0.045) 14px 28px
  );
  border: 1px solid rgba(42, 31, 26, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo::after {
  content: attr(data-label);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: rgba(219, 205, 198, 0.82);
  padding: 6px 12px;
  border: 1px solid rgba(42, 31, 26, 0.16);
  text-transform: uppercase;
}
/* Photo réelle : recouvre le placeholder rayé et masque le label */
.photo.filled {
  background-image: none;
  background-color: var(--beige-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.photo.filled::after { display: none; }
.photo.contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/* Vraie balise <img> dans un bloc .photo (SEO : alt + Google Images) */
.photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--beige);
  background: var(--terracotta);
  border: none;
  padding: 16px 30px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: var(--terracotta-dark); transform: translateY(-2px); }

/* ---------- Top bar ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: rgba(195, 178, 168, 0.42);
  border-bottom: 1px solid rgba(42, 31, 26, 0.14);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  min-height: 78px;
  padding-top: 10px;
  padding-bottom: 10px;
}
/* ---------- Navigation ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px 24px;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--terracotta); }
.site-nav a[aria-current="page"] {
  color: var(--terracotta);
  border-bottom: 1px solid var(--terracotta);
}

/* ---------- Hero ---------- */
.hero { padding: 80px 0 110px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.hero-eyebrow .line { width: 46px; height: 1px; background: var(--terracotta); }

.hero h1 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
}
.hero h1 .accent { color: var(--terracotta); font-style: italic; }

.slogan {
  font-family: var(--font-quote);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  color: var(--taupe);
  line-height: 1.05;
  margin: 22px 0 30px;
}
/* Tagline SEO intégrée au H1 (garde le rendu visuel du slogan) */
.hero h1 .slogan {
  display: block;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
}
.hero p.lede {
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 38px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero-cta .hero-cta-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--terracotta);
}
.hero-cta .hero-cta-ghost:hover {
  background: rgba(174, 134, 118, 0.14);
}
.hero-meta {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft); /* AA : 5.31:1 sur beige (taupe = 3.03, échec) */
}
.hero-meta span { display: flex; align-items: center; gap: 9px; }
.hero-meta span::before {
  content: ""; width: 5px; height: 5px;
  background: var(--terracotta); transform: rotate(45deg);
}

.hero-photo { height: 560px; }
.hero-photo.frame {
  border: 1px solid rgba(42, 31, 26, 0.18);
  position: relative;
}
.hero-photo.frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(219, 205, 198, 0.6);
  pointer-events: none;
  z-index: 2;
}

/* ---------- Section générique ---------- */
section.band { padding: 110px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 64px; }
.section-head .script { font-size: 2.6rem; color: var(--terracotta); display: block; margin-bottom: 8px; }
.section-head h2 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1.05;
}

/* ---------- À propos ---------- */
.about { background: var(--beige-soft); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.about-photo { height: 480px; }
.about-text .eyebrow { margin-bottom: 18px; display: block; }
.about-text h2 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1.06;
  margin-bottom: 24px;
}
.about-text p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 50ch;
  line-height: 1.5;
}
.about-text p strong { color: var(--ink); font-weight: 500; }
.about-sub {
  font-family: var(--font-subtitle);
  font-size: 1.5rem;
  color: var(--terracotta) !important;
  margin: 6px 0 14px !important;
}
.about-list {
  list-style: none;
  max-width: 50ch;
  margin: 0 0 22px;
  display: grid;
  gap: 8px;
}
.about-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.4;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  background: var(--terracotta);
  transform: rotate(45deg);
}
.about-list li strong { color: var(--ink); font-weight: 500; }

.values {
  margin-top: 40px;
  display: grid;
  /* minmax(0, 1fr) : empêche le débordement des cases quand la colonne
     se resserre (min-width:auto des grid items) */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(42, 31, 26, 0.12);
  border: 1px solid rgba(42, 31, 26, 0.12);
}
.value {
  background: var(--beige-soft);
  padding: 22px 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}
.value .num {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--terracotta);
}
.value .name {
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.value .name small {
  display: block;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--taupe);
  letter-spacing: 0;
  margin-top: 3px;
}
.about-cta {
  margin-top: 32px;
  text-decoration: none;
}
.about-cta span { font-size: 1.1em; line-height: 1; }

/* ---------- Marine (portrait) ---------- */
.marine-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: stretch;
}
.marine-photo {
  min-height: 540px;
  position: relative;
  border: 1px solid rgba(42, 31, 26, 0.18);
}
.marine-photo::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(219, 205, 198, 0.6);
  pointer-events: none; z-index: 2;
}
.marine-photo .tag {
  position: absolute;
  left: 0; bottom: 30px;
  z-index: 3;
  background: var(--terracotta);
  color: var(--beige);
  padding: 14px 22px 14px 32px;
}
.marine-photo .tag .name {
  font-family: var(--font-title);
  font-size: 1.5rem;
  line-height: 1;
  display: block;
}
.marine-photo .tag .role {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
  display: block;
}
.marine-text .eyebrow { display: block; margin-bottom: 18px; }
.marine-text .script {
  font-size: 2.4rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: 4px;
}
.marine-text h2 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1.06;
  margin-bottom: 24px;
}
.marine-text > p {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 16px;
}
.marine-text > p strong { color: var(--ink); font-weight: 500; }
.marine-quote {
  font-family: var(--font-quote);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--taupe);
  line-height: 1.1;
  margin: 26px 0 6px;
  max-width: 22ch;
}
.timeline {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(42, 31, 26, 0.12);
  border: 1px solid rgba(42, 31, 26, 0.12);
}
.tl-col {
  background: var(--beige);
  padding: 26px 24px;
}
.tl-col h3 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(42, 31, 26, 0.12);
}
.tl-col ul { list-style: none; display: grid; gap: 14px; }
.tl-col li {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.tl-col li strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}
.tl-col li .when {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--taupe);
}
/* Items compacts de la timeline (ex-font-size inline, rendu identique) */
.tl-col li.tl-compact { font-size: 12px; }
.tl-col li.tl-compact strong { font-size: 14px; }
.tl-tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  padding: 2px 8px;
  margin-top: 6px;
}

/* ---------- Lead magnet ---------- */
.lead { background: var(--terracotta); color: var(--beige); }
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.lead-photo {
  height: 620px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lead-photo.photo { background-color: transparent; background-image: none; }
.lead-photo img {
  max-height: 100%;
  max-width: 115%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 46px rgba(42, 31, 26, 0.34));
}
.lead-photo.photo::after {
  background: rgba(174, 134, 118, 0.9);
  color: var(--beige);
  border-color: rgba(255,255,255,0.3);
}
.lead .eyebrow { color: rgba(255,255,255,0.75); display: block; margin-bottom: 18px; }
.lead .script { font-size: 2.2rem; color: var(--beige); display: block; margin-bottom: 6px; }
.lead h2 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  margin-bottom: 20px;
}
.lead p {
  color: rgba(255,255,255,0.82);
  max-width: 44ch;
  margin-bottom: 30px;
}
.form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 480px;
}
.form input {
  flex: 1 1 240px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--beige);
  border: none;
  padding: 16px 20px;
  outline: none;
}
.form input::placeholder { color: var(--ink-soft); }
.form .btn {
  background: var(--ink);
  color: var(--beige);
  flex: 0 0 auto;
}
.form .btn:hover { background: var(--ink-hover); }
.form-note {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink); /* AA : 4.94:1 sur terracotta (blanc 60% = ~2:1, échec) */
  margin-top: 16px;
}
.form-note.error {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
/* Messages d'état formulaires (classes posées par JS, couleurs tokenisées) */
#form-msg.msg-error   { color: var(--msg-error-onbrand); }
#form-msg.msg-success { color: var(--msg-success-onbrand); }
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: 10px;
  cursor: pointer;
}
.lead .consent-check { color: var(--ink); } /* AA sur terracotta (beige hérité = 2.10, échec) */
.consent-check input[type=checkbox] {
  margin-top: 3px;
  flex: 0 0 auto;
}
.consent-check a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- Pages contenu ---------- */
.page-hero { padding: 72px 0 24px; }
.page-hero .eyebrow { display: block; margin-bottom: 18px; }
.page-hero h1 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.04;
  max-width: 22ch;
}
.page-hero .lede {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 24px;
}
section.band.compact { padding: 64px 0; }
.prose { max-width: 68ch; }
.prose h2 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  margin: 48px 0 18px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 28px 0 10px;
}
.prose p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.prose p strong, .prose li strong { color: var(--ink); font-weight: 500; }
.prose ul { margin: 0 0 22px; }
.prose .btn { margin-top: 10px; }

/* Grille de valeurs en contexte page contenu */
.prose .values { margin: 28px 0 24px; }

/* Liens en contexte de paragraphe : palette de marque, jamais le bleu
   navigateur. Exclut .btn et .cta-alt qui portent leurs propres couleurs. */
.prose a:not(.btn):not(.cta-alt),
.about-text a:not(.btn),
.marine-text a {
  color: var(--terracotta);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.prose a:not(.btn):not(.cta-alt):hover,
.about-text a:not(.btn):hover,
.marine-text a:hover {
  color: var(--terracotta-dark); /* même ton que .btn:hover */
}

/* FAQ (details/summary) */
.faq { max-width: 68ch; display: grid; gap: 12px; }
.faq details {
  background: var(--beige-soft);
  border: 1px solid rgba(42, 31, 26, 0.12);
  padding: 18px 22px;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  list-style-position: inside;
}
.faq details p {
  color: var(--ink-soft);
  margin-top: 12px;
  font-size: 0.95rem;
}

/* Date de fraîcheur en fin de contenu (GEO) */
.page-updated {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft); /* AA : 5.31:1 sur beige */
  margin-top: 40px;
}

/* Encart CTA en bas de page contenu */
.cta-panel {
  background: var(--terracotta);
  color: var(--beige);
  padding: 44px 40px;
  margin-top: 56px;
}
.cta-panel .cta-title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.06;
  margin-bottom: 12px;
}
.cta-panel p {
  color: rgba(255,255,255,0.85);
  max-width: 54ch;
  margin-bottom: 24px;
}
.cta-panel .btn { background: var(--ink); }
.cta-panel .btn:hover { background: var(--ink-hover); }
.cta-panel .cta-alt {
  display: inline-block;
  margin-left: 18px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink); color: var(--beige); padding: 80px 0 40px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(219, 205, 198, 0.16);
}
.footer-brand .slogan-sm {
  font-family: var(--font-quote);
  font-size: 1.8rem;
  color: var(--terracotta);
  margin-top: 12px;
}
.footer-col h3 {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(219, 205, 198, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--terracotta); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 28px;
  font-size: 0.78rem;
  color: rgba(219, 205, 198, 0.55);
}
.footer-bottom a { color: rgba(219, 205, 198, 0.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--terracotta); }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .lead-grid, .marine-grid { grid-template-columns: 1fr; gap: 44px; }
  .marine-photo { min-height: 400px; order: -1; }
  .timeline { grid-template-columns: 1fr; }
  .hero-photo { height: 300px; order: -1; } /* 300px : CTA hero visibles above the fold mobile */
  .about-photo { height: 340px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  section.band { padding: 80px 0; }
  .hero { padding: 56px 0 80px; }
  .site-nav { gap: 4px 16px; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 22px; }
  .values { grid-template-columns: 1fr; }
  .value:last-child { grid-column: span 1; }
  .form .btn { flex: 1 1 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-panel { padding: 32px 24px; }
  .cta-panel .cta-alt { display: block; margin: 16px 0 0; }
}

/* ---------- Bandeau CTA quiz ---------- */
.quiz-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.quiz-cta-text .eyebrow { display: block; margin-bottom: 12px; }
.quiz-cta h2 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.06;
}

/* ---------- Modale quiz niveau ---------- */
/* INVARIANT : display:none par défaut — la visibilité est gérée UNIQUEMENT
   par JS (ouverture display:flex au clic sur #quiz-open, fermeture display:none).
   AUCUNE ouverture automatique — ni au chargement, ni après délai. */
#quiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 1000;
}
/* INVARIANT fix clavier Android (2026-06-07, reporté de l'ancienne popup ebook) :
   max-height:100% + box-sizing:border-box + overflow — ne pas supprimer. */
#quiz-box {
  background: #f5ede8;
  border-radius: 16px;
  padding: 44px 40px 36px;
  position: relative;
  width: 100%;
  max-width: 540px;
  box-sizing: border-box;
  overflow-y: auto;
  max-height: 100%;
}
#quiz-close {
  position: absolute; top: 16px; right: 18px;
  background: transparent; border: none;
  font-size: 20px; cursor: pointer;
  color: var(--taupe); line-height: 1;
  font-family: inherit;
}
#quiz-close:hover { color: var(--ink); }
.qz-step { display: none; }
.qz-step.active { display: block; }
#quiz-box h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 1rem;
  color: var(--ink);
}
.qz-home { text-align: center; padding: 0.75rem 0 1.25rem; }
.qz-home .qz-ico { font-size: 30px; margin-bottom: 0.6rem; }
.qz-home h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.qz-home p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.qz-prog { background: var(--beige); border-radius: 99px; height: 5px; margin-bottom: 1.25rem; }
.qz-prog-fill { height: 5px; border-radius: 99px; background: var(--terracotta); transition: width 0.35s; }
.qz-lbl {
  font-size: 0.7rem;
  color: var(--terracotta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
}
.qz-figs { display: flex; flex-direction: column; gap: 7px; margin-bottom: 1.25rem; }
label.qz-fig {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid var(--beige);
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--ink);
  transition: border-color 0.18s, background 0.18s;
}
label.qz-fig:hover { border-color: var(--terracotta); background: var(--beige-soft); }
label.qz-fig input { accent-color: var(--terracotta); width: 15px; height: 15px; flex-shrink: 0; }
.qz-btn {
  display: block;
  width: 100%;
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: opacity 0.18s;
}
.qz-btn:hover { opacity: 0.86; }
.qz-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.qz-btn-auto { display: inline-block; width: auto; padding: 11px 28px; }
.qz-sub { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1rem; line-height: 1.5; }
.qz-notice {
  background: var(--beige-soft);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 8px 8px 0;
  padding: 10px 13px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 1.1rem;
}
.qz-notice-error { color: var(--msg-error); border-left-color: var(--msg-error); }
.qz-field {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--beige);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 8px;
  background: #fff;
  outline: none;
  box-sizing: border-box;
}
.qz-field:focus { border-color: var(--terracotta); }
.qz-field::placeholder { color: var(--ink-soft); }
.qz-rgpd { margin-bottom: 1rem; }
#qz-msg { font-size: 0.88rem; margin-bottom: 8px; min-height: 1.2em; color: var(--msg-error); }
.qz-res-box {
  background: var(--beige-soft);
  border-radius: 10px;
  padding: 1.1rem;
  border-left: 4px solid var(--terracotta);
  margin-bottom: 1rem;
}
.qz-res-eyebrow {
  font-size: 0.7rem;
  color: var(--terracotta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.qz-res-lev {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 0.3rem;
}
.qz-res-desc { font-size: 0.82rem; line-height: 1.6; color: var(--ink); }
.qz-figs-recap { margin-top: 0.75rem; border-top: 1px solid var(--beige); padding-top: 0.75rem; }
.qz-figs-recap p { font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 0.4rem; font-weight: 500; }
.qz-figs-recap ul { font-size: 0.75rem; color: var(--ink); padding-left: 1rem; line-height: 1.7; }
@media (max-width: 540px) {
  #quiz-box { padding: 36px 24px 28px; }
}
