/* Docteur Rayon — feuille de style */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/source-serif-4-latin-700-normal.woff2') format('woff2'); }

:root {
  --navy: #12233D;
  --navy-2: #1C3557;
  --navy-3: #0C192D;
  --sun: #FFC21A;
  --sun-2: #F0B000;
  --sun-soft: #FFE08A;
  --paper: #FFFFFF;
  --mist: #F2F5F9;
  --line: #D9E0EA;
  --text-2: #4A5568;
  --on-navy: #DCE4EE;
  --on-navy-2: #C7D2E0;
  --green: #1D7A4C;
  --alert: #B4520A;
  --alert-ink: #8A3D05;
  --alert-bg: #FFF4E8;
  --link: #1C4E8A;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--navy); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--sun); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); font-weight: 700; }
.section { padding: 80px 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #fff; }
.section-title { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
.center { text-align: center; }
.muted { color: var(--text-2); }

/* Boutons */
.dr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 14px 26px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; border: 2px solid transparent; text-align: center; line-height: 1.3; }
.dr-btn-primary { background: var(--sun); color: var(--navy); }
.dr-btn-primary:hover { background: var(--sun-2); color: var(--navy); }
.dr-btn-primary[disabled] { opacity: 0.7; cursor: wait; }
.dr-btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.dr-btn-navy { background: var(--navy); color: #fff; }
.dr-btn-navy:hover { background: var(--navy-2); color: #fff; }
.dr-btn-block { width: 100%; margin-top: 16px; }
.dr-link { background: none; border: none; padding: 8px 0; min-height: 44px; font: inherit; font-size: 16px; color: var(--link); text-decoration: underline; cursor: pointer; }

/* En-tête */
.topbar { background: var(--navy-3); color: var(--on-navy-2); font-size: 15px; text-align: center; padding: 8px 24px; }
.header { background: var(--navy); border-bottom: 1px solid #22385A; }
.header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 26px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 16px; }
.nav a { color: #fff; text-decoration: none; }
.nav a:hover { text-decoration: underline; color: #fff; }
.nav .dr-btn { min-height: 44px; padding: 10px 20px; font-size: 16px; }
@media (max-width: 720px) { .nav a:not(.dr-btn) { display: none; } }

/* Héros + diagnostic */
.hero { background: var(--navy); color: #fff; padding: 56px 0 72px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding-top: 28px; }
@media (max-width: 960px) { .hero-text { padding-top: 0; } }
.pill { align-self: flex-start; background: var(--navy-2); color: var(--sun-soft); font-weight: 700; font-size: 15px; padding: 6px 14px; border-radius: 999px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1; letter-spacing: -0.01em; }
.hero-lead { font-size: 20px; color: var(--on-navy); max-width: 560px; }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 3px; }
.hero-tagline { font-size: 18px; color: var(--sun-soft); font-weight: 700; }

.diag { flex: 1 1 420px; min-width: 0; background: #fff; color: var(--navy); border-radius: 20px; padding: 28px; scroll-margin-top: 12px; }
.dr-option.is-picked { border-color: var(--navy); background: var(--sun-soft); }
.dr-cta-note { font-size: 14px; color: var(--text-2); text-align: center; margin-top: 8px; }
.diag-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.diag-head img { width: 76px; height: auto; flex: none; }
.diag-bubble { background: var(--mist); border-radius: 14px; padding: 12px 16px; font-size: 16px; line-height: 1.4; }
.dr-progress-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--text-2); }
.dr-progress { height: 8px; background: #E6EBF2; border-radius: 999px; margin-top: 8px; overflow: hidden; }
.dr-progress div { height: 8px; background: var(--sun); border-radius: 999px; transition: width .3s ease; }
.dr-q-title { font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.25; margin-top: 20px; outline: none; }
.dr-q-hint { font-size: 16px; color: var(--text-2); margin-top: 6px; }
.dr-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 20px; }
.dr-option { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 12px 16px; border: 2px solid var(--line); background: #fff; border-radius: 14px; font: inherit; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--navy); cursor: pointer; transition: border-color .15s, background .15s; }
.dr-option:hover { border-color: var(--navy); }
.dr-option.is-selected { border-color: var(--navy); background: var(--mist); }
.dr-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 16px; margin-top: 16px; }
.dr-field input { font: inherit; font-weight: 400; font-size: 18px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; min-height: 54px; width: 100%; color: var(--navy); }
.dr-field input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(28, 78, 138, .25); }
#dr-cp { font-size: 22px; letter-spacing: .12em; }
.dr-error { color: var(--alert-ink); font-weight: 700; font-size: 15px; margin-top: 12px; }
.dr-quiz-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-top: 16px; }
.dr-reassure { font-size: 15px; color: var(--green); font-weight: 700; }
.dr-reassure-center { font-size: 14px; color: var(--text-2); text-align: center; margin-top: 10px; }
.dr-summary { font-size: 15px; color: var(--text-2); }
.dr-verdict { display: flex; gap: 14px; align-items: center; margin-top: 4px; }
.dr-verdict .dr-q-title { margin-top: 0; font-size: 24px; }
.dr-verdict-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.dr-verdict-icon.is-good { background: var(--green); }
.dr-verdict-icon.is-warn { background: var(--alert); }
.dr-verdict-icon.is-poor { background: var(--text-2); }
.dr-verdict-text { color: var(--text-2); margin-top: 12px; font-size: 17px; }
.dr-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.dr-metrics div { background: var(--mist); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.dr-metrics span { font-size: 14px; color: var(--text-2); }
.dr-metrics strong { font-family: var(--serif); font-size: 21px; line-height: 1.3; }
@media (max-width: 420px) { .dr-metrics strong { font-size: 18px; } }
.dr-metrics .is-locked strong { filter: blur(7px); user-select: none; }
.dr-metrics em { font-style: normal; font-size: 13px; color: var(--text-2); }
.dr-points { background: var(--alert-bg); border-radius: 12px; padding: 14px 16px; margin-top: 16px; }
.dr-points p { font-weight: 700; color: var(--alert-ink); font-size: 16px; }
.dr-points ul { padding-left: 20px; margin-top: 6px; color: #4A3A2A; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.dr-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); margin-top: 16px; cursor: pointer; }
.dr-consent input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--navy); }
.dr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dr-success { color: var(--green); font-weight: 700; margin-top: 4px; }
.dr-demo { background: var(--alert-bg); color: var(--alert-ink); border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.dr-ordonnance { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; margin-top: 14px; }
.dr-ord-head { font-size: 14px; color: var(--text-2); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.dr-ordonnance .dr-q-title { margin-top: 6px; font-size: 22px; }
.dr-small { font-size: 15px; color: var(--text-2); margin-top: 14px; }
.dr-sources { font-size: 13px; color: var(--text-2); margin-top: 14px; }
.dr-extra { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.dr-extra h3 { font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.dr-extra fieldset { border: none; padding: 0; margin: 16px 0 0; }
.dr-extra legend { font-weight: 700; font-size: 16px; padding: 0; margin-bottom: 8px; }
.dr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-chips .dr-option { min-height: 44px; padding: 8px 14px; font-size: 15px; border-radius: 999px; }
.dr-tip { background: var(--mist); border-radius: 12px; padding: 14px 16px; font-size: 15px; color: var(--text-2); margin-top: 18px; }

/* Bandeau de confiance */
.trust { background: var(--mist); border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.trust-item { flex: 1 1 220px; display: flex; gap: 14px; align-items: flex-start; }
.trust-item svg { flex: none; }
.trust-item strong { display: block; }
.trust-item span { font-size: 15px; color: var(--text-2); }

/* Vidéo */
.video-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.video-box { flex: 1 1 520px; min-width: 0; aspect-ratio: 16 / 9; background: var(--navy-2); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; padding: 24px; text-decoration: none; }
.video-box:hover { color: #fff; }
.video-box iframe { width: 100%; height: 100%; border: 0; border-radius: 16px; }
.video-play { width: 80px; height: 80px; border-radius: 50%; background: var(--sun); display: flex; align-items: center; justify-content: center; }
.video-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

/* Étapes */
.steps { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.step { flex: 1 1 300px; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 22px; }

/* Anti-arnaque */
.scam-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.eyebrow { color: var(--sun-soft); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.scam-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-top: 40px; }
.promises { flex: 1 1 560px; min-width: 0; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.promises strong { display: block; font-size: 20px; color: var(--sun-soft); }
.promises span { color: var(--on-navy); font-size: 17px; }
.alert-card { flex: 1 1 380px; min-width: 0; background: var(--alert-bg); color: var(--navy); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.alert-card-head { display: flex; gap: 12px; align-items: center; }
.alert-card-head img { width: 80px; flex: none; }
.alert-card h3 { font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.alert-card ol { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.alert-card-foot { border-top: 1px solid #F0D2B4; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* Guides */
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.guide { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.guide h3 { font-size: 20px; }
.guide p { color: var(--text-2); font-size: 16px; }
.guide .soon { font-size: 14px; font-weight: 700; color: var(--text-2); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.faq summary { font-weight: 700; font-size: 19px; cursor: pointer; }
.faq details p { color: var(--text-2); margin-top: 10px; }

/* Appel final */
.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.final-badge { width: 150px; height: 150px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.final-badge img { width: 112px; }
.final h2 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; }
.final p { color: var(--on-navy); font-size: 20px; }

/* Pied de page */
.footer { background: var(--navy-3); color: var(--on-navy-2); font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 40px; padding-bottom: 24px; }
.footer a { color: var(--on-navy-2); }
.footer a:hover { color: #fff; }
.footer-brand { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.footer-brand strong { color: #fff; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer-copy { text-align: center; padding: 0 24px 28px; font-size: 14px; }

/* Bouton collant mobile */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: none; }
.sticky-cta .dr-btn { width: 100%; box-shadow: 0 6px 20px rgba(12, 25, 45, .25); }
@media (max-width: 720px) {
  .sticky-cta.is-visible { display: block; }
  .section { padding: 56px 0; }
  .topbar { font-size: 13px; padding: 6px 16px; }
  .header .wrap { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 21px; }
  .nav { display: none; }
  .wrap, .wrap-narrow { padding: 0 16px; }
  /* Sur mobile, le diagnostic passe juste sous le titre : on le voit dès l'arrivée */
  .hero { padding: 20px 0 40px; }
  .hero .wrap { flex-direction: column; flex-wrap: nowrap; gap: 18px; }
  .hero-text { display: contents; }
  .hero .pill { order: 1; font-size: 14px; }
  .hero h1 { order: 2; font-size: 30px; }
  .diag { order: 3; padding: 18px; flex-basis: auto; }
  .hero-lead { order: 4; font-size: 18px; }
  .checks { order: 5; }
  .hero-tagline { order: 6; }
  .diag-head { margin-bottom: 14px; gap: 10px; }
  .diag-head img { width: 54px; }
  .diag-bubble { font-size: 15px; padding: 10px 12px; }
  .dr-q-title { font-size: 23px; margin-top: 14px; }
  .dr-options { margin-top: 14px; gap: 10px; }
  .dr-option { min-height: 56px; }
}

/* Pages de texte (mentions, confidentialité) */
.doc { padding: 56px 0 80px; }
.doc h1 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; margin-bottom: 24px; }
.doc h2 { font-family: var(--serif); font-size: 24px; margin: 32px 0 10px; }
.doc p, .doc li { color: #2D3748; margin-bottom: 10px; }
.doc ul { padding-left: 22px; }
.todo { background: var(--alert-bg); color: var(--alert-ink); padding: 0 4px; border-radius: 4px; }

/* Impression : seule l'ordonnance */
@media print {
  body * { visibility: hidden; }
  #dr-ordonnance, #dr-ordonnance * { visibility: visible; }
  #dr-ordonnance { position: absolute; left: 0; top: 0; width: 100%; border: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .dr-progress div { transition: none; } }
