/* ============================================================
   A-T-E Conseil — Landing EN SSC v2 (refonte « façon Michelle »)
   Palette : navy #0F2240 · gold #C9A84C · green #3A8B5C
   cream #FAF7F0 · pale-green #E3F0E8 · text2 #4B5563 · text3 #6B7280
   ============================================================ */

:root {
  --navy: #0F2240;
  --navy-2: #1a3460;
  --gold: #C9A84C;
  --gold-dark: #b08f38;
  --green: #3A8B5C;
  --green-dark: #2f7049;
  --cream: #FAF7F0;
  --pale-green: #E3F0E8;
  --text2: #4B5563;
  --text3: #6B7280;
  --line: rgba(15, 34, 64, 0.12);
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 34, 64, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 34, 64, 0.18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body { max-width: 100%; overflow-x: hidden; font-family: var(--sans); color: var(--navy); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
em { font-style: italic; }
a { color: inherit; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--text3); margin-bottom: 40px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; cursor: pointer; border: none; font-family: var(--sans); font-weight: 700; text-decoration: none; border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s ease; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, #d7b85e, var(--gold)); color: var(--navy); box-shadow: 0 8px 20px rgba(201,168,76,.4); }
.btn-gold:hover { filter: brightness(1.04); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(58,139,92,.35); }
.btn-green:hover { background: var(--green-dark); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,240,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: .95rem; letter-spacing: .5px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.brand-tag { font-size: .62rem; letter-spacing: .12em; color: var(--text3); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav > a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy); }
.nav > a:not(.btn):hover { color: var(--gold-dark); }

/* ---------- 1. Hero (2 colonnes) ---------- */
.hero { background: linear-gradient(180deg, #fbf8f1, #f3ede0); padding: 60px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; min-width: 0; }
.pill-flag { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: .85rem; margin-bottom: 22px; box-shadow: var(--shadow); }
.hero-left h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); color: var(--navy); margin-bottom: 20px; }
.hero-left h1 .accent { color: var(--gold-dark); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text2); margin-bottom: 14px; }
.hero-support { color: var(--text2); margin-bottom: 22px; }
.hero-bullets { list-style: none; margin-bottom: 24px; }
.hero-bullets li { position: relative; padding: 7px 0 7px 36px; color: var(--navy); font-weight: 500; }
.hero-bullets li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.badge-row { display: flex; gap: 12px; flex-wrap: wrap; }
.badge { background: #fff; border: 1px solid var(--line); color: var(--navy); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .82rem; box-shadow: var(--shadow); }
.hero-cta-mobile { display: none; margin-top: 24px; }

/* ---------- Quiz card (façon Michelle) ---------- */
.hero-left, .hero-right { min-width: 0; }
.hero-right { width: 100%; }
.quiz-card { min-width: 0; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(15,34,64,.06); }
.quiz-card-header { background: var(--navy); padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quiz-card-title { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .78rem; }
.quiz-card-count { color: #aebacd; font-size: .78rem; white-space: nowrap; }
.quiz-card-body { padding: 24px 24px 26px; }
.quiz-score-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.quiz-score-title { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.quiz-avg { color: var(--text3); font-size: .82rem; white-space: nowrap; }
.quiz-progress { height: 8px; background: #ece6da; border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.quiz-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #dcc06a); border-radius: 999px; transition: width .35s ease; }
.quiz-meta { display: flex; justify-content: space-between; font-size: .84rem; color: var(--text3); margin-bottom: 6px; }
.quiz-score strong { color: var(--green); }
.quiz-encourage { color: var(--gold-dark); font-size: .84rem; font-weight: 600; margin-bottom: 18px; }
.quiz-q-title { font-size: 1.18rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.25; }
.quiz-q-sub { color: var(--text2); font-size: .9rem; margin-bottom: 16px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: #fff; color: var(--navy); font-weight: 500; font-size: 1rem; text-align: left; font-family: var(--sans); transition: all .15s ease; }
.quiz-option:hover { border-color: var(--gold); background: #fdfbf5; }
.quiz-option .radio { width: 20px; height: 20px; border: 2px solid rgba(15,34,64,.25); border-radius: 50%; flex-shrink: 0; position: relative; transition: all .15s ease; }
.quiz-option.selected { border-color: var(--gold); background: #fbf6e9; }
.quiz-option.selected .radio { border-color: var(--gold); }
.quiz-option.selected .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); }
.quiz-back { display: inline-block; margin-top: 14px; background: none; border: none; color: var(--text3); cursor: pointer; font-family: var(--sans); font-size: .85rem; }
.quiz-back:hover { color: var(--navy); }
.quiz-back[hidden] { display: none; }
/* form final */
.quiz-form-step .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 16px; }
.quiz-form-step label { display: flex; flex-direction: column; font-size: .8rem; font-weight: 600; color: var(--text2); gap: 5px; }
.quiz-form-step input { font-family: var(--sans); font-size: 1rem; padding: 12px 13px; border: 1.5px solid rgba(15,34,64,.15); border-radius: 10px; color: var(--navy); }
.quiz-form-step input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.18); }
.form-note { text-align: center; color: var(--text3); font-size: .8rem; margin-top: 12px; }

/* ---------- 2. How it works ---------- */
.how { padding: 80px 0; background: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; padding: 0 10px; }
.step-num { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border: 2px solid var(--gold); color: var(--gold-dark); border-radius: 50%; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text2); }
.how-foot { text-align: center; margin-top: 44px; color: var(--text3); font-weight: 600; }

/* ---------- 3. Savings (navy) ---------- */
.savings { padding: 80px 0; background: var(--navy); color: var(--cream); }
.savings .section-title { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 40px; }
.stat { text-align: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 32px 18px; }
.stat-num { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.stat-label { color: #c7d0e0; font-size: .95rem; }
.brand-logos { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; opacity: .85; font-weight: 600; letter-spacing: .04em; margin-bottom: 28px; }
.disclaimer { text-align: center; color: #8b97ad; font-size: .8rem; max-width: 740px; margin: 0 auto; }

/* ---------- 4. About (cream) ---------- */
.about { padding: 80px 0; background: var(--cream); }
.about-inner { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center; }
.about-photo { width: 220px; height: 220px; border-radius: 20px; background: linear-gradient(135deg, var(--pale-green), #cfe3d6); display: grid; place-items: center; color: var(--green); font-family: var(--serif); font-size: 2rem; font-weight: 700; border: 1px dashed rgba(58,139,92,.4); }
.about-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 16px; }
.about-text p { color: var(--text2); margin-bottom: 12px; }
.about-person { color: var(--navy) !important; font-size: 1.05rem; }
.avail { color: var(--green); font-size: .85rem; margin-left: 8px; }

/* ---------- 5. Transparency (white) ---------- */
.transparency { padding: 80px 0; background: #fff; }
.guarantees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.guarantee { background: var(--pale-green); border-radius: var(--radius); padding: 26px 22px; }
.guarantee h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--green-dark); }
.guarantee p { color: var(--text2); font-size: .92rem; }

/* ---------- 6. Reviews (cream) ---------- */
.reviews { padding: 80px 0; background: var(--cream); }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 40px; }
.review { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 700; }
.review-head strong { display: block; }
.review-head .loc { color: var(--text3); font-size: .82rem; }
.review-head .src { margin-left: auto; font-size: .75rem; color: var(--text3); background: var(--pale-green); padding: 4px 10px; border-radius: 999px; }
.review blockquote { color: var(--text2); font-size: .98rem; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-tile { aspect-ratio: 4/3; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #e9e3d6, #e9e3d6 10px, #f1ece1 10px, #f1ece1 20px); display: grid; place-items: center; color: var(--text3); font-size: .85rem; border: 1px dashed var(--line); }
.gallery picture { display: block; }
.gallery-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }

/* ---------- 7. Funding (white) ---------- */
.funding { padding: 80px 0; background: #fff; }
.funding-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.funding-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.funding-yes { font-family: var(--serif); font-size: 2rem; color: var(--green); font-weight: 700; margin-bottom: 14px; }
.funding-text p { color: var(--text2); margin-bottom: 14px; }
.funding-free { font-weight: 600; color: var(--navy) !important; }
.funding-steps { background: var(--navy); border-radius: 18px; padding: 32px 32px 32px 30px; counter-reset: fstep; list-style: none; }
.funding-steps li { color: #e7ecf5; padding: 14px 0 14px 44px; position: relative; border-bottom: 1px solid rgba(255,255,255,.08); }
.funding-steps li:last-child { border-bottom: none; }
.funding-steps li::before { counter-increment: fstep; content: counter(fstep); position: absolute; left: 0; top: 12px; width: 28px; height: 28px; background: var(--gold); color: var(--navy); border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

/* ---------- 8. Benefits (cream) ---------- */
.benefits { padding: 80px 0; background: var(--cream); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.benefit { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.benefit h3 { font-size: 1.2rem; margin-bottom: 10px; }
.benefit p { color: var(--text2); }

/* ---------- 9. FAQ (white) — accordéon fluide ---------- */
.faq { padding: 80px 0; background: #fff; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: var(--sans); color: var(--navy); font-weight: 600; font-size: 1.05rem; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-arrow { color: var(--green); font-size: 1.5rem; font-weight: 400; line-height: 1; flex-shrink: 0; transition: transform .3s var(--ease); }
.faq-arrow.rotated { transform: rotate(45deg); }
.faq-answer-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-answer-wrap.open { grid-template-rows: 1fr; }
.faq-answer { overflow: hidden; }
.faq-answer p { color: var(--text2); padding: 0 0 18px; }

/* ---------- 10. Final CTA (navy) ---------- */
.final-cta { padding: 80px 0; text-align: center; background: radial-gradient(900px 400px at 50% 0%, var(--navy-2), var(--navy)); color: var(--cream); }
.final-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.final-cta p { color: #c7d0e0; max-width: 560px; margin: 0 auto 28px; }
.hero-trust { margin-top: 16px; font-size: .9rem; color: #c7d0e0; }

/* ---------- Footer ---------- */
.site-footer { background: #0a182e; color: #97a3b8; padding: 50px 0 80px; font-size: .9rem; text-align: center; }
.site-footer a { color: var(--gold); text-decoration: none; }
.footer-brand { font-family: var(--serif); color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.footer-legal { font-size: .8rem; margin: 16px auto; max-width: 720px; color: #6f7d94; }
.footer-links { margin: 10px 0; }
.footer-disclaimer { font-size: .76rem; color: #5d6a80; max-width: 720px; margin: 14px auto 0; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 64px 0 78px; background: #fff; }
.legal-page .container { max-width: 860px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.legal-updated { color: var(--text3); margin-bottom: 34px; }
.legal-section { padding: 24px 0; border-top: 1px solid var(--line); }
.legal-section h2 { font-size: 1.28rem; margin-bottom: 10px; }
.legal-section p, .legal-section li { color: var(--text2); }
.legal-section ul { padding-left: 20px; }
.legal-section li { margin: 7px 0; }

/* ---------- Sticky bottom CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: linear-gradient(180deg, #d7b85e, var(--gold)); color: var(--navy); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 11px; transform: translateY(110%); transition: transform .25s ease; box-shadow: 0 -6px 24px rgba(15,34,64,.18); }
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-main { font-weight: 700; font-size: 1.05rem; }
.sticky-cta-sub { font-size: .78rem; opacity: .85; }

/* ---------- Exit popup ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,24,46,.6); display: grid; place-items: center; z-index: 100; padding: 20px; animation: fade .2s ease; }
.modal-overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { position: relative; background: #fff; border-radius: 20px; max-width: 460px; width: 100%; padding: 40px 34px; box-shadow: var(--shadow-lg); text-align: center; }
.modal h2 { font-size: 1.6rem; margin-bottom: 12px; }
.modal-lead { color: var(--text2); margin-bottom: 18px; }
.modal-list { list-style: none; text-align: left; margin-bottom: 24px; }
.modal-list li { padding: 7px 0 7px 28px; position: relative; color: var(--navy); }
.modal-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 1.6rem; color: var(--text3); cursor: pointer; line-height: 1; }
.modal-dismiss { display: block; margin: 14px auto 0; background: none; border: none; color: var(--text3); text-decoration: underline; cursor: pointer; font-family: var(--sans); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { display: block; }
  .hero-left { margin-bottom: 34px; }
  .hero-cta-mobile { display: inline-block; }
  .steps, .stats, .benefits-grid { grid-template-columns: 1fr; }
  .guarantees, .reviews-grid, .gallery { grid-template-columns: 1fr 1fr; }
  .about-inner, .funding-inner { grid-template-columns: 1fr; text-align: center; }
  .about-photo { margin: 0 auto; }
  .funding-steps { text-align: left; }
  .nav > a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .header-inner { height: 64px; gap: 10px; }
  .brand { min-width: 0; gap: 10px; flex: 1 1 auto; }
  .brand-logo { width: 38px; height: 38px; flex: 0 0 38px; font-size: .78rem; letter-spacing: 0; }
  .brand-name { min-width: 0; }
  .brand-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.05rem; }
  .nav { display: none; }
  .hero { padding: 46px 0 64px; }
  .hero-left h1 { font-size: 1.95rem; }
  .hero-left h1, .hero-sub, .hero-support, .hero-bullets li { max-width: 100%; overflow-wrap: break-word; }
  .hero-sub { font-size: 1rem; }
  .badge { padding: 7px 12px; font-size: .78rem; }
  .quiz-card { border-radius: 14px; }
  .quiz-card-header { padding: 14px 18px; flex-wrap: wrap; }
  .quiz-card-count { white-space: normal; }
  .quiz-score-row, .quiz-meta { gap: 6px; }
  .quiz-option { padding: 12px 13px; font-size: .95rem; }
  .quiz-form-step .form-grid { grid-template-columns: 1fr; }
  .guarantees, .reviews-grid, .gallery { grid-template-columns: 1fr; }
  .quiz-card-body { padding: 20px 18px 22px; }
  .brand-tag { display: none; }
  .sticky-cta { padding-bottom: calc(11px + env(safe-area-inset-bottom)); }
  .modal { padding: 34px 24px; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero-left h1 { font-size: 1.82rem; }
}

/* ============================================================
   Effets / animations (répliqués de la landing de Michelle)
   ============================================================ */
@keyframes fade-in-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes check-in { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.25); } 100% { transform: scale(1); opacity: 1; } }
@keyframes ring-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,.45); } 50% { box-shadow: 0 0 0 9px rgba(201,168,76,0); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Scroll reveal — gated par .js (pas de flash ; reste visible si JS off) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js [data-stagger] > *.visible { opacity: 1; transform: none; }

/* Hover lift sur les cartes */
.benefit, .review, .guarantee, .gallery-img, .stat { transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.benefit:hover, .review:hover, .guarantee:hover, .gallery-img:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -12px rgba(15,34,64,.18); }

/* Coche du quiz qui "pop" à la sélection */
.quiz-option.selected .radio::after { animation: check-in .3s var(--ease); }

/* Barre de progression : reflet (shimmer) discret */
.quiz-progress-bar { position: relative; overflow: hidden; }
.quiz-progress-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); transform: translateX(-100%); animation: shimmer 2.4s infinite; }

/* Pastille "disponible" avec halo pulsant */
.dot-pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: middle; animation: ring-pulse 2.4s ease-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dot-pulse, .quiz-progress-bar::after, .quiz-option.selected .radio::after { animation: none !important; }
}

/* ============================================================
   Quiz — revenus (question dynamique, exclusion, table de seuils)
   ============================================================ */
.quiz-q-dyn { font-size: 1.02rem; line-height: 1.45; color: var(--navy); margin-bottom: 16px; }
.quiz-q-dyn strong { color: var(--gold-dark); }

/* Tons des options (vert = éligible, rouge = non éligible) */
.quiz-option[data-tone="good"]:hover, .quiz-option[data-tone="good"].selected { border-color: var(--green); background: #eef7f0; }
.quiz-option[data-tone="good"].selected .radio { border-color: var(--green); }
.quiz-option[data-tone="good"].selected .radio::after { background: var(--green); }
.quiz-option[data-tone="bad"]:hover, .quiz-option[data-tone="bad"].selected { border-color: #c0563f; background: #fbeeea; }
.quiz-option[data-tone="bad"].selected .radio { border-color: #c0563f; }
.quiz-option[data-tone="bad"].selected .radio::after { background: #c0563f; }

/* Table de seuils dépliable */
.threshold-details { margin-top: 16px; font-size: .85rem; }
.threshold-details summary { cursor: pointer; color: var(--gold-dark); font-weight: 600; list-style: none; }
.threshold-details summary::-webkit-details-marker { display: none; }
.threshold-details summary::before { content: "▸ "; }
.threshold-details[open] summary::before { content: "▾ "; }
.threshold-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.threshold-table caption { text-align: left; color: var(--navy); font-weight: 600; padding-bottom: 6px; }
.threshold-table th, .threshold-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: center; }
.threshold-table th { background: var(--cream); color: var(--text2); font-weight: 600; }
.threshold-table td:first-child, .threshold-table th:first-child { text-align: left; }
.threshold-table .th-active { background: #fbf6e9; font-weight: 600; }

/* Écran de non-éligibilité */
.quiz-exit { text-align: center; padding: 14px 4px; }
.quiz-exit-icon { width: 52px; height: 52px; border-radius: 50%; background: #fbeeea; color: #c0563f; display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin: 0 auto 16px; }
.quiz-exit-msg { color: var(--text2); margin-bottom: 20px; line-height: 1.5; }

/* ============================================================
   Quiz — séquence de fin (checking → score → form)
   ============================================================ */
@keyframes fb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.quiz-checking { padding: 18px 4px; }
.feedback-list { display: flex; flex-direction: column; gap: 12px; }
.feedback-msg { display: flex; align-items: center; gap: 12px; color: var(--text2); animation: fb-in .4s var(--ease) both; }
.feedback-check { width: 24px; height: 24px; border-radius: 50%; background: var(--pale-green); color: var(--green); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; animation: check-in .35s var(--ease) both; }

.quiz-result { text-align: center; padding: 8px 4px 4px; }
.score-gauge { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; }
.score-ring { width: 150px; height: 150px; transform: rotate(-90deg); }
.score-ring-bg { fill: none; stroke: #ece6da; stroke-width: 10; }
.score-ring-fg { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.score-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; color: var(--navy); }
.score-num #score-number { font-size: 2.6rem; }
.score-pct { font-size: 1.3rem; margin-left: 2px; }
.score-label { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; }
.score-desc { color: var(--text2); font-size: .95rem; margin-bottom: 14px; }
.score-urgency { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--navy); font-size: .85rem; margin-bottom: 18px; }

.quiz-summary { text-align: left; margin: 4px 0 16px; }
.quiz-summary-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text3); font-weight: 600; }
.quiz-summary-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.summary-badge { background: var(--pale-green); color: var(--green-dark); border-radius: 999px; padding: 5px 12px; font-size: .78rem; font-weight: 600; }

.confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

@media (prefers-reduced-motion: reduce) {
  .feedback-msg, .feedback-check { animation: none !important; }
  .score-ring-fg { transition: none !important; }
}

/* ── Soumission : chargement + confirmation ── */
@keyframes spin { to { transform: rotate(360deg); } }
.quiz-processing { text-align: center; padding: 12px 4px; }
.quiz-spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--pale-green); border-top-color: var(--green); margin: 6px auto 18px; animation: spin .8s linear infinite; }
.proc-bar { height: 6px; background: #ece6da; border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.proc-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #dcc06a); border-radius: 999px; transition: width .5s var(--ease); }
.proc-msg { color: var(--text3); padding: 4px 0; animation: fb-in .35s var(--ease) both; transition: color .3s; }
.proc-msg.proc-active { color: var(--navy); font-weight: 600; }

.quiz-confirm { text-align: center; padding: 14px 4px; }
.confirm-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 18px; animation: check-in .4s var(--ease) both; }
.confirm-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.confirm-lead { color: var(--text2); line-height: 1.55; margin-bottom: 16px; }
.confirm-note { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--navy); font-size: .9rem; margin-bottom: 14px; }
.confirm-sub { color: var(--text3); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { .quiz-spinner { animation: none !important; } }
