/* =========================================================================
   Bulletin — feuille de style
   Palette : bleuet, érable, framboise, menthe, givre
   Typo    : Archivo Black (titres, notes) + DM Sans (texte)
   ========================================================================= */
@font-face { font-family: "Archivo Black"; src: url("../fonts/ArchivoBlack.woff") format("woff"); font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans.woff") format("woff"); font-weight: 100 1000; font-display: swap; }

:root {
  --givre: #F4F5FB;
  --blanc: #FFFFFF;
  --nuit: #14123A;
  --bleuet: #2D2A7B;
  --bleuet-2: #3E3AA6;
  --bleuet-pale: #E9E8FA;
  --erable: #F6A623;
  --erable-pale: #FFF1D6;
  --framboise: #EF476F;
  --framboise-pale: #FFE1E8;
  --menthe: #3FBF8A;
  --menthe-pale: #DDF6EA;
  --trait: #E1E2EF;
  --gris: #5B5A7A;

  --f-titre: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --f-texte: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-xl: 32px; --r-l: 22px; --r-m: 16px; --r-s: 12px;
  --ombre: 0 1px 0 rgba(20,18,58,.04), 0 18px 40px -18px rgba(45,42,123,.28);
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-texte); font-size: 1.0625rem; line-height: 1.6; color: var(--nuit); background: var(--givre); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--f-titre); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--erable); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--nuit); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.proto-banner { background: var(--erable-pale); color: #6B4A06; font-size: .82rem; text-align: center; padding: 8px 16px; border-bottom: 1px solid #F1DBA9; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-weight: 700; border-radius: 14px; padding: .8em 1.25em; transition: transform .18s var(--ease), background-color .2s, box-shadow .2s, color .2s; white-space: nowrap; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-small { font-size: .92rem; padding: .6em 1em; border-radius: 12px; }
.btn-big { font-size: 1.06rem; padding: 1em 1.5em; }
.btn-full { width: 100%; }
.btn-ink { background: var(--bleuet); color: #fff; box-shadow: 0 10px 24px -12px rgba(45,42,123,.7); }
.btn-ink:hover { background: var(--bleuet-2); }
.btn-ink:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.btn-line { background: transparent; color: var(--bleuet); box-shadow: inset 0 0 0 2px var(--trait); }
.btn-line:hover { box-shadow: inset 0 0 0 2px var(--bleuet); }
.btn-erable { background: var(--erable); color: var(--nuit); box-shadow: 0 10px 24px -12px rgba(246,166,35,.9); }
.btn-erable:hover { background: #FFB53E; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; color: var(--gris); background: var(--blanc); box-shadow: inset 0 0 0 1.5px var(--trait); transition: color .2s, box-shadow .2s; }
.icon-btn:hover { color: var(--nuit); box-shadow: inset 0 0 0 1.5px var(--nuit); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244,245,251,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--trait); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; }
.brand-word { font-family: var(--f-titre); font-size: 1.35rem; letter-spacing: -.03em; color: var(--bleuet); }
.brand-light .brand-word { color: #fff; }
.main-nav { display: flex; gap: 28px; font-weight: 600; font-size: .97rem; }
.main-nav a { text-decoration: none; color: var(--gris); transition: color .2s; }
.main-nav a:hover { color: var(--nuit); }

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(60px, 8vw, 120px); }
/* Clin d'œil au cahier Canada : lignes bleues et marge rouge */
.cahier { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 581px), rgba(239,71,111,.28) calc(50% - 581px), rgba(239,71,111,.28) calc(50% - 579px), transparent calc(50% - 579px)),
    repeating-linear-gradient(180deg, transparent 0 39px, rgba(45,156,219,.16) 39px 40px);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(2.9rem, 7.2vw, 5.6rem); line-height: .98; letter-spacing: -.035em; color: var(--bleuet); margin-bottom: 26px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .08s; }
.hero-title .line:nth-child(3) > span { animation-delay: .16s; color: var(--nuit); }
@keyframes rise { to { transform: none; } }
@keyframes pop { to { transform: scale(1); } }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--gris); max-width: 34em; margin-bottom: 30px; opacity: 0; animation: fadeUp .7s var(--ease) .35s forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; opacity: 0; animation: fadeUp .7s var(--ease) .45s forwards; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; font-weight: 600; color: var(--gris); opacity: 0; animation: fadeUp .7s var(--ease) .55s forwards; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust-ico { width: 28px; height: 28px; border-radius: 9px; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait); display: grid; place-items: center; font-size: .85rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Paquet de cartes jouable */
.hero-deck { position: relative; padding-top: 112px; perspective: 1400px; }
.deck-card { position: absolute; inset: 0 0 auto 0; margin-inline: auto; width: min(430px, 100%); background: var(--blanc); border-radius: var(--r-xl); box-shadow: var(--ombre); }
.deck-front { position: relative; padding: 26px; z-index: 3; opacity: 0; transform: translateY(40px) rotate(2deg); animation: deal .9s var(--ease) .25s forwards; }
.deck-back { height: 220px; padding: 10px 22px; display: flex; align-items: flex-start; gap: 12px; opacity: 0; }
.deck-back-1 { z-index: 2; background: var(--menthe-pale); animation: deal1 1s var(--ease) .12s forwards; }
.deck-back-2 { z-index: 1; background: var(--bleuet-pale); animation: deal2 1s var(--ease) 0s forwards; }
@keyframes deal  { to { opacity: 1; transform: none; } }
@keyframes deal1 { from { transform: translate(0, 90px) rotate(0); } to { opacity: 1; transform: translate(16px, 54px) rotate(2.5deg); } }
@keyframes deal2 { from { transform: translate(0, 90px) rotate(0); } to { opacity: 1; transform: translate(-14px, 0) rotate(-3deg); } }
.mini-illu { width: 44px; flex: none; }
.mini-score { order: 3; font-family: var(--f-titre); font-size: .95rem; color: var(--gris); line-height: 44px; }
.mini-score b { font-weight: 400; font-size: 1.9rem; color: var(--nuit); letter-spacing: -.03em; }
.mini-label { order: 2; flex: 1; font-weight: 700; color: var(--nuit); line-height: 44px; }
.deck-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.tag-urgence { background: var(--erable-pale); color: #8A5A05; }
.deck-count { font-size: .82rem; font-weight: 600; color: var(--gris); }
.deck-q { font-family: var(--f-titre); font-size: 1.42rem; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 18px; }
.deck-opts { display: grid; gap: 9px; }
.deck-hint { font-size: .82rem; color: var(--gris); margin-top: 14px; text-align: center; }

/* ---------- Options (partagées héros + quiz) ---------- */
.opt { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: var(--r-m); background: var(--blanc); box-shadow: inset 0 0 0 2px var(--trait); font-weight: 600; font-size: 1rem; line-height: 1.3; transition: box-shadow .18s, background-color .18s, transform .18s var(--ease); }
.opt:hover { box-shadow: inset 0 0 0 2px #C9C8E6; transform: translateY(-1px); }
.opt .emo { font-size: 1.3rem; min-width: 1.6em; text-align: center; flex: none; line-height: 1; }
.opt .key { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--gris); box-shadow: inset 0 0 0 1.5px var(--trait); transition: all .18s; }
.opt .txt { flex: 1; }
.opt.on { background: var(--bleuet-pale); box-shadow: inset 0 0 0 2px var(--bleuet); }
.opt.on .key { background: var(--bleuet); color: #fff; box-shadow: none; }
.opt.pulse-on { animation: tap .35s var(--ease-spring); }
@keyframes tap { 40% { transform: scale(.97); } 100% { transform: none; } }
.deck-opts .opt { padding: 12px 14px; font-size: .96rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { margin-bottom: 14px; color: var(--bleuet); }
.section-head p { color: var(--gris); font-size: 1.1rem; }
.section-soft { background: var(--blanc); }
.section-ink { background: var(--bleuet); color: #fff; position: relative; overflow: hidden; }
.section-ink h2 { color: #fff; margin-bottom: 16px; }

/* Matières */
.matieres { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.matiere { background: var(--blanc); border-radius: var(--r-l); padding: 22px 20px 24px; box-shadow: inset 0 0 0 1px var(--trait); }
.matiere .illu { width: 92px; margin-bottom: 16px; }
.matiere h3 { margin-bottom: 8px; }
.matiere p { font-size: .94rem; color: var(--gris); line-height: 1.5; }

/* Exemple de bulletin */
.exemple-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.exemple-text p { color: rgba(255,255,255,.78); font-size: 1.1rem; margin-bottom: 26px; max-width: 32em; }
.checks { display: grid; gap: 12px; margin-bottom: 34px; }
.checks li { position: relative; padding-left: 34px; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 7px; background: var(--erable) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2314123A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.exemple-card { background: var(--blanc); color: var(--nuit); border-radius: var(--r-xl); padding: 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); transform: rotate(-1.5deg); }
.ex-head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 2px dashed var(--trait); }
.ex-kicker { font-size: .8rem; font-weight: 700; color: var(--framboise); }
.ex-name { font-weight: 700; font-size: 1.05rem; }
.ex-global { font-family: var(--f-titre); color: var(--bleuet); line-height: 1; }
.ex-global span { font-size: 3.2rem; letter-spacing: -.04em; }
.ex-global small { font-size: 1.1rem; color: var(--gris); }
.ex-rows li { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.ex-rows li:last-child { border-bottom: 0; }
.ex-rows .illu { width: 40px; }
.ex-rows .nm { font-weight: 700; font-size: .98rem; }
.ex-rows .bar { height: 6px; background: var(--givre); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.ex-rows .bar i { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1.2s var(--ease); }
.ex-rows .nt { font-family: var(--f-titre); font-size: 1.7rem; letter-spacing: -.03em; min-width: 2.6em; text-align: right; }
.ex-rows .nt small { font-size: .85rem; color: var(--gris); }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 28px 26px 30px; border-radius: var(--r-l); background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait); }
.step-n { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--bleuet); color: #fff; font-family: var(--f-titre); font-size: 1.5rem; margin-bottom: 20px; }
.steps li:nth-child(2) .step-n { background: var(--erable); color: var(--nuit); }
.steps li:nth-child(3) .step-n { background: var(--menthe); color: var(--nuit); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--gris); font-size: .98rem; }

/* Promesses */
.promesses { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.promesse h3 { font-size: 1.45rem; color: var(--bleuet); margin-bottom: 12px; }
.promesse p { color: var(--gris); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 700; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; font-weight: 500; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait); transition: transform .3s var(--ease), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--erable); box-shadow: none; }
.faq details p { color: var(--gris); padding: 0 48px 22px 0; animation: fadeUp .35s var(--ease); }

/* Appel final */
.final { background: var(--erable); padding: clamp(56px, 8vw, 100px) 0; }
.final-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.final h2 { color: var(--nuit); max-width: 14em; }
.final .btn-erable { background: var(--bleuet); color: #fff; box-shadow: none; }
.final .btn-erable:hover { background: var(--bleuet-2); }

/* Pied de page */
.site-footer { background: var(--nuit); color: rgba(255,255,255,.7); padding: 48px 0; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-note { max-width: 30em; margin-top: 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* =========================================================================
   QUIZ
   ========================================================================= */
.quiz { position: fixed; inset: 0; z-index: 50; background: var(--givre); display: grid; grid-template-rows: auto 1fr auto; animation: quizIn .45s var(--ease); }
@keyframes quizIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.quiz-top { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 16px clamp(16px, 4vw, 40px); }
.segments { display: grid; grid-template-columns: .6fr repeat(5, 1fr); gap: 6px; max-width: 620px; width: 100%; margin-inline: auto; }
.seg { height: 8px; border-radius: 99px; background: var(--trait); overflow: hidden; position: relative; }
.seg i { position: absolute; inset: 0; width: 0; border-radius: 99px; background: var(--c, var(--bleuet)); transition: width .45s var(--ease); }
.quiz-count { font-size: .85rem; font-weight: 700; color: var(--gris); min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.quiz-stage { position: relative; overflow-y: auto; overflow-x: hidden; padding: clamp(12px, 3vw, 32px) clamp(18px, 4vw, 40px) 24px; }
.q { max-width: 640px; margin: 0 auto; }
.q.enter { animation: qIn .5s var(--ease) both; }
.q.enter.back { animation-name: qInBack; }
.q.leave { animation: qOut .22s ease-in both; }
.q.leave.back { animation-name: qOutBack; }
@keyframes qIn { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes qInBack { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes qOut { to { opacity: 0; transform: translateX(-36px); } }
@keyframes qOutBack { to { opacity: 0; transform: translateX(36px); } }
.q-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.q-head .illu { width: 54px; flex: none; }
.q-cat { font-weight: 700; font-size: .9rem; color: var(--gris); }
.q-title { font-size: clamp(1.6rem, 4.4vw, 2.35rem); line-height: 1.08; color: var(--nuit); margin-bottom: 12px; }
.q-help { color: var(--gris); margin-bottom: 26px; max-width: 34em; }
.q-opts { display: grid; gap: 10px; }
.q-opts.multi { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.opt .box { flex: none; width: 24px; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 2px #C9C8E6; display: grid; place-items: center; transition: all .18s; }
.opt.on .box { background: var(--bleuet); box-shadow: none; }
.opt.on .box::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg); }

/* Encadré explicatif */
.info { margin: -8px 0 22px; border-radius: var(--r-m); background: var(--blanc); box-shadow: inset 0 0 0 1.5px var(--trait); }
.info-toggle { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 700; font-size: .95rem; color: var(--bleuet); text-align: left; }
.info-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bleuet-pale); display: grid; place-items: center; font-size: .82rem; font-weight: 800; }
.info-chev { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.info.open .info-chev { transform: translateY(2px) rotate(-135deg); }
.info-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.info.open .info-body { grid-template-rows: 1fr; }
.info-body > div { overflow: hidden; }
.info-inner { padding: 4px 14px 16px; display: grid; gap: 14px; }

/* ---- Briques visuelles ---- */
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.tuile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 8px 12px; border-radius: 14px; background: var(--menthe-pale); animation: popIn .45s var(--ease-spring) var(--d) both; }
.tuile.non { background: #F6F1F3; }
.tuile.non .tuile-e { filter: grayscale(1); opacity: .55; }
.tuile-e { font-size: 1.7rem; line-height: 1; }
.tuile-t { font-weight: 700; font-size: .82rem; line-height: 1.2; }
.tuile-s { font-size: .72rem; color: var(--gris); line-height: 1.2; }
.tuile-badge { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 900; color: #fff; background: var(--menthe); }
.tuile.non .tuile-badge { background: var(--framboise); }
.tuile.non .tuile-t { text-decoration: line-through; text-decoration-color: rgba(239,71,111,.6); text-decoration-thickness: 2px; }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.carte { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; animation: popIn .5s var(--ease-spring) var(--d) both; }
.carte-e { font-size: 1.8rem; line-height: 1; margin-bottom: 6px; }
.carte b { font-family: var(--f-titre); font-weight: 400; font-size: 1.05rem; letter-spacing: -.01em; }
.carte span:last-child { font-size: .85rem; line-height: 1.3; color: #3D3B60; }
.c-menthe { background: var(--menthe-pale); } .c-bleuet { background: var(--bleuet-pale); }
.c-erable { background: var(--erable-pale); } .c-framboise { background: var(--framboise-pale); }

.calcul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; border-radius: 16px; background: var(--givre); }
.jeton { display: flex; flex-direction: column; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--blanc); box-shadow: inset 0 0 0 1.5px var(--trait); animation: popIn .45s var(--ease-spring) var(--d) both; }
.jeton b { font-family: var(--f-titre); font-weight: 400; font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; }
.jeton small { font-size: .72rem; color: var(--gris); font-weight: 600; max-width: 9em; text-align: center; line-height: 1.2; }
.jeton.hl { background: var(--bleuet); box-shadow: none; color: #fff; transform-origin: center; }
.jeton.hl small { color: rgba(255,255,255,.75); }
.op { font-family: var(--f-titre); font-size: 1.3rem; color: var(--gris); animation: popIn .35s var(--ease) var(--d) both; }

.barres { display: flex; justify-content: center; align-items: flex-end; gap: 28px; height: 240px; padding-top: 6px; }
.barre { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; width: 128px; }
.barre-txt { font-family: var(--f-titre); font-size: 1.05rem; white-space: nowrap; }
.barre.hl .barre-txt { color: #16794F; font-size: 1.3rem; }
.barre-col { flex: 1; width: 76px; display: flex; align-items: flex-end; }
.barre-col i { display: block; width: 100%; height: var(--h); border-radius: 12px 12px 4px 4px; background: var(--bleuet-pale); transform-origin: bottom; animation: grow .9s var(--ease) var(--d) both; }
.barre.hl .barre-col i { background: linear-gradient(180deg, var(--menthe), #2E9E70); }
.barre-l { font-size: .78rem; font-weight: 700; color: var(--gris); text-align: center; line-height: 1.2; min-height: 2.4em; }
@keyframes grow { from { transform: scaleY(0); } }

.etapes { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; }
.etape { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 110px; padding: 14px 8px; border-radius: 16px; background: var(--givre); animation: popIn .5s var(--ease-spring) var(--d) both; }
.etape span { font-size: 2rem; line-height: 1; }
.etape small { font-size: .8rem; font-weight: 700; text-align: center; line-height: 1.25; }
.etape:last-child { background: var(--menthe-pale); }
.fleche { font-size: 1.2rem; color: var(--gris); font-weight: 800; animation: popIn .35s var(--ease) var(--d) both; }

/* Curseur */
.slider-wrap { background: var(--blanc); border-radius: var(--r-l); padding: 28px clamp(20px, 4vw, 34px) 30px; box-shadow: inset 0 0 0 1px var(--trait); }
.slider-read { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 26px; min-height: 76px; }
.slider-emo { font-size: 3rem; line-height: 1; display: inline-block; transition: transform .25s var(--ease-spring); }
.slider-emo.bump { transform: scale(1.25) rotate(-6deg); }
.slider-val { font-family: var(--f-titre); font-size: clamp(2.2rem, 7vw, 3.4rem); letter-spacing: -.035em; color: var(--bleuet); line-height: 1; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--bleuet) var(--p, 0%), var(--trait) var(--p, 0%)); outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: var(--erable); border: 5px solid #fff; box-shadow: 0 4px 14px rgba(20,18,58,.3); transition: transform .15s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--erable); border: 5px solid #fff; box-shadow: 0 4px 14px rgba(20,18,58,.3); }
input[type=range]:focus-visible { outline: 3px solid var(--erable); outline-offset: 6px; }
.slider-ends { display: flex; justify-content: space-between; margin-top: 12px; font-size: .85rem; color: var(--gris); font-weight: 600; }

.quiz-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 4vw, 40px) max(18px, env(safe-area-inset-bottom)); max-width: 720px; width: 100%; margin-inline: auto; }
.quiz-bottom .btn { min-width: 130px; }

/* Intermède entre les matières */
.inter { max-width: 520px; margin: 0 auto; text-align: center; padding-top: clamp(4px, 3vh, 28px); }
.inter-top { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; }
.inter-top .illu { width: 56px; animation: popIn .6s var(--ease-spring) both; }
.inter-top h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); color: var(--bleuet); }
.fact { position: relative; background: var(--blanc); border-radius: 28px; padding: 30px clamp(16px, 4vw, 30px) 24px; box-shadow: var(--ombre); display: grid; gap: 16px; }
.fact-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%) rotate(-2deg); background: var(--erable); color: var(--nuit); font-weight: 800; font-size: .82rem; padding: 5px 14px; border-radius: 99px; white-space: nowrap; }
.fact-gros { font-family: var(--f-titre); font-size: clamp(2.6rem, 9vw, 3.6rem); line-height: 1; letter-spacing: -.04em; color: var(--bleuet); animation: popIn .6s var(--ease-spring) .1s both; margin-top: 4px; }
.fact-sous { color: var(--gris); font-weight: 600; margin-top: -8px; }
.fact-petit { font-size: .75rem; color: var(--gris); margin-top: -6px; }
.inter-left { margin-top: 18px; color: var(--gris); font-size: .92rem; font-weight: 600; }

/* =========================================================================
   BULLETIN (résultats)
   ========================================================================= */
.results { position: fixed; inset: 0; z-index: 40; background: var(--givre); overflow-y: auto; }
.results-bar { position: sticky; top: 0; z-index: 5; background: rgba(244,245,251,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--trait); }
.results-actions { display: flex; gap: 8px; }
.results-body { padding: clamp(28px, 5vw, 56px) 0 80px; }

.r-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-bottom: 20px; }
.r-card { background: var(--blanc); border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--trait); padding: clamp(22px, 3.5vw, 36px); }
.r-profile { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 32px); align-items: center; background: var(--bleuet); color: #fff; box-shadow: none; position: relative; overflow: hidden; }
.r-profile .badge { width: clamp(120px, 16vw, 170px); animation: popIn .9s var(--ease-spring) .2s both; }
.r-kicker { font-size: .9rem; font-weight: 700; color: var(--erable); margin-bottom: 6px; }
.r-profile h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1; margin-bottom: 12px; }
.r-profile p { color: rgba(255,255,255,.8); max-width: 30em; }
.r-date { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: 14px; }

.r-global { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.r-global-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.r-global-label { font-weight: 700; color: var(--gris); }
.r-global-n { font-family: var(--f-titre); line-height: .85; letter-spacing: -.05em; color: var(--nuit); font-size: clamp(4.6rem, 10vw, 7rem); font-variant-numeric: tabular-nums; }
.r-global-n small { font-size: .3em; letter-spacing: -.02em; color: var(--gris); }
.radar { width: 100%; max-width: 300px; margin: 0 auto; }
.radar .poly { transform-origin: 150px 150px; transform: scale(0); transition: transform 1.1s var(--ease-spring) .4s; }
.radar.go .poly { transform: scale(1); }
.radar text { font-family: var(--f-texte); font-size: 11px; font-weight: 700; fill: var(--gris); }

.r-section-title { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--bleuet); margin: 44px 0 18px; }
.r-matieres { display: grid; gap: 12px; }
.r-m { background: var(--blanc); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--trait); overflow: hidden; opacity: 0; transform: translateY(18px); }
.r-m.in { animation: fadeUp .6s var(--ease) forwards; }
.r-m-head { width: 100%; display: grid; grid-template-columns: 56px 1fr auto 32px; gap: 16px; align-items: center; padding: 18px 20px; text-align: left; }
.r-m-head .illu { width: 56px; }
.r-m-name { font-weight: 800; font-size: 1.08rem; }
.r-m-verdict { color: var(--gris); font-size: .95rem; line-height: 1.4; margin-top: 2px; }
.r-m-bar { height: 7px; border-radius: 99px; background: var(--givre); margin-top: 10px; overflow: hidden; max-width: 380px; }
.r-m-bar i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 1.1s var(--ease); }
.r-m-note { font-family: var(--f-titre); font-size: clamp(2.2rem, 5vw, 2.9rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.r-m-note small { font-size: .38em; color: var(--gris); letter-spacing: 0; }
.n-bas { color: var(--framboise); } .n-moyen { color: #D28A0C; } .n-haut { color: #1F9A69; }
.r-m-chev { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--trait); transition: transform .3s var(--ease); }
.r-m-chev::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--nuit); border-bottom: 2px solid var(--nuit); transform: translateY(-2px) rotate(45deg); }
.r-m.open .r-m-chev { transform: rotate(180deg); }
.r-m-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.r-m.open .r-m-body { grid-template-rows: 1fr; }
.r-m-body > div { overflow: hidden; }
.r-m-tips { padding: 0 20px 22px 92px; display: grid; gap: 8px; }
.r-m-tips li { position: relative; padding-left: 22px; color: var(--nuit); font-size: .98rem; }
.r-m-tips li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 3px; background: var(--erable); }

.r-obs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.obs { background: var(--erable-pale); border-radius: var(--r-l); padding: 22px; }
.obs:nth-child(2) { background: var(--framboise-pale); }
.obs:nth-child(3) { background: var(--menthe-pale); }
.obs h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--nuit); }
.obs p { font-size: .95rem; color: #3D3B60; }

.r-cta { margin-top: 44px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: stretch; }
.r-cta-main { background: var(--nuit); color: #fff; border-radius: var(--r-xl); padding: clamp(26px, 4vw, 44px); position: relative; overflow: hidden; }
.r-cta-main::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--erable); opacity: .95; }
.r-cta-main > * { position: relative; z-index: 1; }
.r-cta-main .free { display: inline-block; background: var(--menthe); color: var(--nuit); font-weight: 800; font-size: .82rem; padding: 5px 12px; border-radius: 99px; margin-bottom: 16px; }
.r-cta-main h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 12px; max-width: 13em; }
.r-cta-main p { color: rgba(255,255,255,.78); max-width: 32em; margin-bottom: 24px; }
.r-share { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.r-share h3 { font-size: 1.25rem; color: var(--bleuet); }
.r-share p { color: var(--gris); font-size: .95rem; }
.share-preview { display: flex; align-items: center; gap: 14px; background: var(--bleuet); color: #fff; border-radius: var(--r-l); padding: 14px 16px; }
.share-preview .mini-badge { width: 56px; flex: none; }
.share-preview b { display: block; font-family: var(--f-titre); font-weight: 400; font-size: 1.1rem; line-height: 1.1; }
.share-preview span { font-size: .88rem; color: rgba(255,255,255,.75); }
.r-share .btn { width: 100%; }
.r-disclaimer { margin-top: 28px; font-size: .85rem; color: var(--gris); max-width: 60em; }

/* =========================================================================
   FEUILLE DE RAPPEL
   ========================================================================= */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20,18,58,.55); backdrop-filter: blur(4px); animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet-panel { position: relative; width: min(580px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--blanc); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 38px); animation: sheetIn .5s var(--ease) both; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.sheet-close { position: absolute; top: 16px; right: 16px; }
.sheet h2, .privacy h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--bleuet); margin: 0 40px 10px 0; }
.sheet-lead { color: var(--gris); margin-bottom: 24px; }
form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; border: 0; }
.field label, .field legend { font-weight: 700; font-size: .93rem; }
.field legend { margin-bottom: 7px; }
.field .opt-label { font-weight: 500; color: var(--gris); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=text], input[type=tel], input[type=email], select { font: inherit; font-size: 1rem; width: 100%; padding: 13px 14px; border-radius: var(--r-s); border: 0; box-shadow: inset 0 0 0 2px var(--trait); background: var(--givre); color: var(--nuit); transition: box-shadow .2s, background-color .2s; }
input:focus, select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--bleuet); background: #fff; }
input.bad { box-shadow: inset 0 0 0 2px var(--framboise); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 99px; font-weight: 600; font-size: .93rem; box-shadow: inset 0 0 0 2px var(--trait); transition: all .18s; }
.chips input:checked + span { background: var(--bleuet); color: #fff; box-shadow: none; }
.chips input:focus-visible + span { outline: 3px solid var(--erable); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9rem; line-height: 1.5; padding: 14px; border-radius: var(--r-m); background: var(--givre); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--bleuet); }
.consent a { color: var(--bleuet); font-weight: 700; }
.legal-todo { font-size: .82rem; color: #8A5A05; background: var(--erable-pale); padding: 10px 12px; border-radius: 10px; }
.form-error { color: #B42345; font-weight: 600; font-size: .92rem; min-height: 0; }
.form-error:empty { display: none; }
.sheet-hello { font-size: 2.4rem; margin-bottom: 8px; display: inline-block; animation: wave 1.6s ease-in-out .3s 2; transform-origin: 70% 70%; }
@keyframes wave { 15%,45% { transform: rotate(16deg); } 30% { transform: rotate(-8deg); } 60% { transform: none; } }
.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.moments label { cursor: pointer; }
.moments input { position: absolute; opacity: 0; pointer-events: none; }
.moments span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: var(--r-m); font-weight: 700; font-size: .88rem; box-shadow: inset 0 0 0 2px var(--trait); transition: all .18s; text-align: center; }
.moments i { font-style: normal; font-size: 1.4rem; line-height: 1; }
.moments input:checked + span { background: var(--bleuet-pale); box-shadow: inset 0 0 0 2px var(--bleuet); color: var(--bleuet); }
.moments input:focus-visible + span { outline: 3px solid var(--erable); outline-offset: 2px; }
.privacy { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 20px; }
.privacy-list { display: grid; gap: 12px; margin-bottom: 24px; }
.privacy-list li { font-size: .95rem; padding-left: 16px; border-left: 3px solid var(--erable); }
.privacy-list b { display: block; }
.done-badge { width: 72px; height: 72px; border-radius: 50%; background: var(--menthe); color: var(--nuit); display: grid; place-items: center; font-size: 2rem; font-weight: 800; margin-bottom: 18px; animation: popIn .6s var(--ease-spring) both; }

/* Confettis et toast */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 30px); opacity: 0; background: var(--nuit); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: .95rem; transition: all .3s var(--ease); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1020px) {
  .matieres { grid-template-columns: repeat(3, 1fr); }
  .r-obs { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .hero-grid, .exemple-grid, .faq-grid, .r-hero, .r-cta { grid-template-columns: 1fr; }
  .hero-deck { margin-top: 10px; }
  .steps, .promesses { grid-template-columns: 1fr; }
  .exemple-card { transform: none; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .container { width: min(1160px, 100% - 32px); }
  .matieres { grid-template-columns: 1fr 1fr; }
  .matiere:last-child { grid-column: span 2; }
  .hero-actions .btn { flex: 1 1 100%; }
  .deck-back { display: none; }
  .hero-deck { padding-top: 0; margin-top: 0; }
  .hero { padding-top: 32px; }
  .hero-title { margin-bottom: 18px; }
  .hero-lead { margin-bottom: 22px; }
  .deck-front { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .moments { grid-template-columns: 1fr 1fr; }
  .tuiles { grid-template-columns: repeat(3, 1fr); }
  .etapes { gap: 4px; }
  .etape { width: auto; flex: 1; padding: 12px 4px; }
  .etape span { font-size: 1.6rem; }
  .fleche { font-size: 1rem; }
  .barres { gap: 14px; }
  .barre { width: 116px; }
  .r-profile { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .r-m-head { grid-template-columns: 44px 1fr auto; gap: 12px; padding: 16px; }
  .r-m-head .illu { width: 44px; }
  .r-m-chev { display: none; }
  .r-m-tips { padding: 0 16px 18px 16px; }
  .results-actions #btnPrint { display: none; }
  .quiz-top { gap: 12px; }
  .q-head .illu { width: 44px; }
  .quiz-bottom .btn { min-width: 0; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-title .line > span, .hero-lead, .hero-actions, .trust, .deck-card, .r-m { opacity: 1 !important; transform: none !important; }
  .deck-back-1 { transform: translate(16px, 54px) rotate(2.5deg) !important; }
  .deck-back-2 { transform: translate(-14px, 0) rotate(-3deg) !important; }
}

/* Animations décoratives des illustrations (discrètes) */
.bob { animation: bob 4s ease-in-out infinite; }
.sway { animation: sway 5s ease-in-out infinite; }
.pulse { animation: pulseSun 4s ease-in-out infinite; transform-origin: 82px 36px; }
.teeter { animation: teeter 3.6s ease-in-out infinite; }
.needle { animation: needle 5s ease-in-out infinite; }
.drop { animation: drop 3s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes sway { 50% { transform: rotate(4deg); } }
@keyframes pulseSun { 50% { transform: scale(1.08); } }
@keyframes teeter { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes needle { 0%,100% { transform: rotate(-18deg); } 50% { transform: rotate(24deg); } }
@keyframes drop { 0% { transform: translateY(-18px); opacity: 0; } 30%,80% { transform: none; opacity: 1; } 100% { transform: none; opacity: 1; } }

/* =========================================================================
   IMPRESSION DU BULLETIN
   ========================================================================= */
@media print {
  body > *:not(.results) { display: none !important; }
  .results { position: static; overflow: visible; }
  .results-bar, .r-cta, .r-m-chev { display: none !important; }
  .r-m { opacity: 1 !important; transform: none !important; break-inside: avoid; }
  .r-m-body { grid-template-rows: 1fr !important; }
  .r-profile { background: #fff !important; color: var(--nuit) !important; box-shadow: inset 0 0 0 1px var(--trait) !important; }
  .r-profile p, .r-date { color: var(--gris) !important; }
  * { animation: none !important; }
}

/* ---------- Pourquoi un conseiller (accueil + résultats) ---------- */
.conseil-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.conseil-grid .section-head { margin-bottom: 28px; }
.raisons { display: grid; gap: 20px; margin-bottom: 32px; }
.raison { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.raison-e { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; background: var(--bleuet-pale); }
.raison:nth-child(2) .raison-e { background: var(--framboise-pale); }
.raison:nth-child(3) .raison-e { background: var(--menthe-pale); }
.raison:nth-child(4) .raison-e { background: var(--erable-pale); }
.raison h3 { font-size: 1.12rem; color: var(--nuit); margin-bottom: 4px; }
.raison p { color: var(--gris); font-size: .98rem; }
.raison p b { color: var(--nuit); }

.course { background: var(--givre); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 34px); box-shadow: inset 0 0 0 1px var(--trait); margin: 0; }
.section-soft .course { background: var(--givre); }
.course-t { font-family: var(--f-titre); color: var(--bleuet); font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -.02em; }
.course-s { color: var(--gris); font-size: .95rem; margin: 4px 0 24px; }
.course-l { display: grid; gap: 14px; }
.course-r { display: grid; grid-template-columns: 96px 1fr 92px; gap: 12px; align-items: center; }
.course-age { font-weight: 800; color: var(--nuit); font-size: .93rem; line-height: 1.15; }
.course-bar { position: relative; height: 38px; background: var(--blanc); border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--trait); }
.course-bar i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 10px; transform-origin: left; }
.course-bar .tot { width: var(--w); background: linear-gradient(90deg, #2E9E70, var(--menthe)); transform: scaleX(0); transition: transform 1.1s var(--ease) var(--d, 0s); }
.course-bar .verse { width: var(--v); background: var(--bleuet); border-radius: 10px 0 0 10px; opacity: 0; transition: opacity .5s ease calc(var(--d, 0s) + .6s); }
.course.go .tot { transform: none; }
.course.go .verse { opacity: 1; }
.course-v { font-family: var(--f-titre); font-weight: 400; color: var(--nuit); text-align: right; white-space: nowrap; font-size: 1.02rem; }
.course-r.hl .course-v { color: #16794F; }
.course-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; font-weight: 600; color: var(--gris); margin: 16px 0 18px; }
.course-leg span { display: inline-flex; align-items: center; gap: 7px; }
.course-leg i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.course-leg .lv { background: var(--bleuet); }
.course-leg .lt { background: var(--menthe); }
.course-hl { background: var(--menthe-pale); border-radius: var(--r-m); padding: 14px 16px; font-weight: 600; color: var(--nuit); }
.course-hl b { color: #16794F; }
.course-note { font-size: .75rem; color: var(--gris); margin-top: 12px; }

.r-conseil { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
.r-conseil .raisons { background: var(--blanc); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 32px); box-shadow: var(--ombre); margin: 0; }
.r-conseil .course { background: var(--blanc); box-shadow: var(--ombre); }

@media (max-width: 860px) {
  .conseil-grid, .r-conseil { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .course-r { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .course-bar { grid-column: 1 / -1; grid-row: 2; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .course-bar .tot, .course-bar .verse { transition: none; }
}
@media print {
  .course .tot { transform: none !important; }
  .course .verse { opacity: 1 !important; }
}

/* ---------- Invitations au rappel (page de résultats) ---------- */
.r-rappel { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--erable-pale); border-radius: var(--r-l); padding: 18px 22px; box-shadow: inset 0 0 0 1.5px #F6D69A; animation: fadeUp .6s var(--ease) .5s both; }
.r-rappel-e { width: 52px; height: 52px; border-radius: 16px; background: var(--erable); display: grid; place-items: center; font-size: 1.5rem; }
.r-rappel-txt b { display: block; color: var(--nuit); font-size: 1.05rem; line-height: 1.3; }
.r-rappel-txt span { color: #6B4A06; font-size: .95rem; }
.r-rappel .btn { white-space: nowrap; }
.r-rappel .btn:disabled, .r-sticky .btn:disabled, .results-bar .btn:disabled { background: var(--menthe); box-shadow: none; cursor: default; opacity: 1; }

.r-sticky { position: sticky; bottom: 0; z-index: 6; padding: 0 16px max(14px, env(safe-area-inset-bottom)); pointer-events: none; animation: stickyIn .4s var(--ease) both; }
.r-sticky-in { pointer-events: auto; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 14px; background: var(--nuit); color: #fff; border-radius: 18px; padding: 10px 10px 10px 20px; box-shadow: 0 18px 40px -14px rgba(20,18,58,.55); }
.r-sticky-txt { flex: 1; font-size: .95rem; line-height: 1.35; }
.r-sticky-txt span { color: rgba(255,255,255,.7); }
.r-sticky-x { flex: none; width: 34px; height: 34px; border-radius: 50%; color: rgba(255,255,255,.7); display: grid; place-items: center; }
.r-sticky-x:hover { color: #fff; background: rgba(255,255,255,.1); }
@keyframes stickyIn { from { opacity: 0; transform: translateY(20px); } }

@media (max-width: 760px) {
  .r-rappel { grid-template-columns: auto 1fr; }
  .r-rappel .btn { grid-column: 1 / -1; width: 100%; }
  .r-sticky-txt span { display: none; }
  .results-bar [data-rappel] { padding-inline: .8em; }
}
@media print { .r-rappel, .r-sticky, .results-bar { display: none !important; } }
@media (max-width: 480px) {
  .results-bar .brand-word { display: none; }
  .results-bar .btn { font-size: .86rem; padding: .55em .8em; }
}
.r-sticky-txt .court { display: none; }
@media (max-width: 760px) { .r-sticky-txt .long { display: none; } .r-sticky-txt .court { display: inline; } }
/* Carte de partage seule, en largeur (l'ancien gros appel du bas a été retiré) */
.r-cta-solo { grid-template-columns: 1fr; }
.r-cta-solo .r-share { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; }
.r-cta-solo .r-share .btn { width: auto; }
@media (max-width: 760px) {
  .r-cta-solo .r-share { grid-template-columns: 1fr; }
  .r-cta-solo .r-share .btn { width: 100%; }
}
