/* Drively · site vitrine (v2, refait de zéro)
   Même univers que l'app : ciel bleu très pâle, encre bleu nuit, bleu Drively, cartes blanches arrondies,
   annotations manuscrites. Proportions pensées pour un site web : texte 16 px, titres modérés, cartes compactes. */
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/caveat-latin.woff) format('woff'); }

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

:root {
  --bg: #f4f8ff;
  --card: #ffffff;
  --soft: #eaf2ff;
  --soft-2: #dbe8ff;
  --line: #dde8fb;
  --ink: #09132f;
  --text: #3d4a70;
  --muted: #6c78a0;
  --blue: #1769ff;
  --blue-dark: #0d4fd1;
  --green: #1e8f5a;
  --green-soft: #dcf7ea;
  --gold-soft: #fff3d0;
  --gold-line: #f1dc9a;
  --gold-ink: #7a5600;
  --shadow: 0 1px 2px rgba(10,20,48,.04), 0 12px 28px -18px rgba(23,105,255,.35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --hand: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-wrap: break-word;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(800px 420px at 90% -6%, rgba(130,175,255,.26), transparent 62%), radial-gradient(600px 380px at -6% 10%, rgba(195,218,255,.5), transparent 62%), var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(23,105,255,.4); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--soft-2); }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }

.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

/* apparition douce */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } html { scroll-behavior: auto; } }

/* ── navigation ── */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 200; padding: 0 16px; display: flex; justify-content: center; pointer-events: none; }
.nav-pill {
  pointer-events: auto; width: min(860px, 100%); height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(221,232,251,.95); border-radius: 999px; padding: 0 6px 0 20px; box-shadow: 0 8px 24px -14px rgba(23,105,255,.35);
}
.nav-logo { height: 19px; width: auto; }
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a { display: block; padding: 7px 13px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; padding: 9px 16px; font-size: 14px; box-shadow: 0 6px 16px -8px rgba(23,105,255,.85); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-ghost { background: #fff; color: var(--ink); padding: 12px 20px; font-size: 15px; border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: #b9cffd; }
.hamburger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.hamburger span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: fixed; top: 72px; left: 16px; right: 16px; z-index: 199; padding: 10px; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 48px -20px rgba(10,20,48,.3); display: flex; flex-direction: column; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { padding: 13px 16px; border-radius: 14px; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
.mobile-menu a:hover { background: var(--soft); }
.mobile-menu .btn-primary { margin-top: 6px; padding: 14px; color: #fff; }

/* ── accueil ── */
.home { padding: 112px 0 0; }
.home-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--blue-dark); }
.home h1 { margin-top: 16px; font-size: clamp(38px, 4.8vw, 58px); line-height: 1.04; font-weight: 800; letter-spacing: -.04em; }
.underline { position: relative; display: inline-block; z-index: 0; }
.underline svg { position: absolute; left: -2%; bottom: -.14em; width: 104%; height: .3em; z-index: -1; overflow: visible; }
.underline svg path { stroke: var(--blue); stroke-width: 6; fill: none; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { margin-top: 20px; max-width: 470px; font-size: 17.5px; line-height: 1.6; color: var(--text); }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* emplacement d'image (provisoire) */
.ph {
  position: relative; display: grid; place-items: center; text-align: center; padding: 16px; min-height: 120px;
  border: 1.5px dashed #b9cffd; border-radius: 22px; background: linear-gradient(150deg, #eef5ff, #f8fbff);
  color: var(--muted); font-size: 13.5px; font-weight: 600; line-height: 1.4;
}
.ph b { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.ph-hero { aspect-ratio: 5 / 4; border-radius: 28px; }

/* annotations manuscrites */
.note { position: absolute; z-index: 5; font-family: var(--hand); font-weight: 600; font-size: 22px; line-height: 1; color: var(--blue); white-space: nowrap; pointer-events: none; }
.hero-art { position: relative; }
.hero-art .note { left: 14px; bottom: -26px; transform: rotate(-3deg); }

/* chiffres clés */
.facts { margin-top: 52px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.fact { padding: 20px 22px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-size: 24px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.fact span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); font-weight: 500; }

/* ── sections ── */
.section { padding: 76px 0 0; }
.kicker { display: inline-block; font-family: var(--hand); font-size: 22px; font-weight: 600; color: var(--blue); }
.h2 { margin-top: 2px; font-size: clamp(26px, 3vw, 34px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
.sub { margin-top: 10px; max-width: 540px; font-size: 16.5px; color: var(--muted); font-weight: 500; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }

/* parcours : liste compacte */
.chap-card { margin-top: 30px; padding: 22px; position: relative; text-align: left; }
.chap-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.chap { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; transition: background .15s; }
.chap:hover { background: #f5f9ff; }
.chap .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--soft); color: var(--blue-dark); }
.chap.free .n { background: var(--green); color: #fff; }
.chap .t { flex: 1; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.chap .tg { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.chap.free .tg { background: var(--green-soft); color: #0b7a45; }
.chap:not(.free) .tg { background: #eef2fb; color: #7d89ab; }
.chap-foot { margin-top: 16px; padding: 12px 14px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); font-weight: 600; }
.chap-card .note { right: 24px; top: -18px; transform: rotate(3deg); }

/* dans l'app */
.duo { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.feat { display: flex; flex-direction: column; min-height: 320px; }
.pilltag { align-self: flex-start; margin-bottom: 12px; padding: 4px 11px; border-radius: 999px; background: var(--soft); color: var(--blue-dark); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.pilltag.gold { background: var(--gold-soft); color: var(--gold-ink); }
.feat h3 { font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.feat p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 400px; }
.feat .visual { margin-top: auto; padding-top: 18px; position: relative; }
.feat.gold { background: linear-gradient(170deg, #fffaea, #fff 62%); border-color: var(--gold-line); }
.qcard { display: grid; gap: 8px; }
.qcard .q { font-size: 14px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.qa { padding: 10px 14px; border-radius: 13px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 700; color: #26345c; display: flex; justify-content: space-between; gap: 10px; }
.qa.ok { border-color: #37c97d; background: var(--green-soft); color: #0b6b3c; }
.qa.no { border-color: #f4b6b8; background: #fff1f1; color: #b3282d; }
.qexp { padding: 11px 14px; border-radius: 13px; background: var(--soft); font-size: 13.5px; line-height: 1.5; color: #26345c; }
.qexp b { color: var(--blue-dark); }
.exams { display: grid; gap: 8px; }
.exam { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.exam .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--blue); }
.exam b { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.exam small { font-size: 13px; color: var(--muted); font-weight: 500; }
.exam.gold { background: linear-gradient(120deg, #fff3c7, #ffe392); border-color: #efcb62; }
.exam.gold .ic { background: rgba(255,255,255,.7); color: #a06d00; }
.exam.gold small { color: #7a5600; }
.notif { padding: 12px 14px; border-radius: 18px; background: #eef3fc; border: 1px solid var(--line); display: flex; gap: 11px; align-items: flex-start; }
.notif img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.notif b { font-size: 13.5px; font-weight: 800; color: var(--ink); display: flex; justify-content: space-between; gap: 10px; }
.notif b span { font-weight: 600; color: #8892ad; font-size: 12.5px; }
.notif p { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: #26345c; max-width: none; }
.feat .note { position: static; display: block; margin-bottom: 6px; transform: rotate(-2deg); }

/* tarifs */
.plans { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 800px; margin-left: auto; margin-right: auto; text-align: left; }
.plan { position: relative; padding: 26px 28px; }
.plan h3 { font-size: 22px; font-weight: 800; letter-spacing: -.025em; }
.plan .who { margin-top: 2px; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.plan .ck { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--soft); color: var(--blue); display: grid; place-items: center; margin-top: 1px; }
.plan.premium { background: linear-gradient(170deg, #fffaea, #fffdf6 70%); border-color: var(--gold-line); }
.plan.premium .ck { background: #fff; color: #b27a00; }
.plan .note { top: 20px; right: 24px; transform: rotate(3deg); }

/* faq */
.faq-list { max-width: 700px; margin: 28px auto 0; display: grid; gap: 8px; text-align: left; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: #b9cffd; box-shadow: var(--shadow); }
.faq-q { list-style: none; cursor: pointer; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 15.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.faq-q::-webkit-details-marker { display: none; }
.faq-chev { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); color: var(--blue); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; }
.faq-item[open] .faq-chev { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-a { padding: 0 18px 16px; font-size: 15px; line-height: 1.65; color: var(--text); max-width: 620px; }
.faq-a a { color: var(--blue); font-weight: 700; }

/* appel final */
.final { margin-top: 76px; }
.final-card { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; padding: 34px 38px; background: linear-gradient(170deg, #eef5ff, #fff 65%); }
.final-card h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
.final-card p { margin-top: 10px; font-size: 16px; color: var(--muted); max-width: 400px; font-weight: 500; }
.final-card .actions { margin-top: 20px; }
.final-card .legal { margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.final-card .ph { min-height: 170px; }

/* contact */
.contact { padding: 76px 0 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.reasons { margin-top: 18px; display: grid; gap: 9px; }
.reason { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; color: #26345c; line-height: 1.45; }
.reason svg { flex: none; color: var(--green); margin-top: 3px; }
.form-card { padding: 24px; }
.form-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.form-group { margin-bottom: 11px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: #26345c; }
.form-label .optional { color: var(--muted); font-weight: 500; }
.form-input, .form-textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 13px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.form-textarea { min-height: 96px; resize: vertical; }
.form-input:focus, .form-textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(23,105,255,.12); }
.form-submit { width: 100%; margin-top: 4px; padding: 13px; border-radius: 999px; border: 0; background: var(--blue); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(23,105,255,.9); display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s; }
.form-submit:hover { background: var(--blue-dark); }
.form-submit:disabled { opacity: .7; cursor: wait; }
.form-spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 10px; font-size: 14px; font-weight: 600; text-align: center; }
.form-status.success { color: var(--green); }
.form-status.error { color: #d0343a; }
.contact-strip { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.7); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--text); }
.contact-strip a { color: var(--blue); font-weight: 700; text-decoration: none; }

/* pied de page */
footer { margin-top: 76px; padding: 0 0 22px; }
.foot-card { border-radius: 24px; background: #e9f1ff; border: 1px solid #d9e6ff; padding: 30px 32px 18px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot-logo { height: 20px; width: auto; }
.foot-brand p { margin-top: 12px; max-width: 280px; font-size: 14px; line-height: 1.55; color: var(--muted); }
footer h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #7d89ab; margin-bottom: 12px; font-weight: 800; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer a { color: #1d2a52; text-decoration: none; font-weight: 600; font-size: 14px; }
footer a:hover { color: var(--blue); }
.foot-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid #d3e2fb; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; color: #7d89ab; font-size: 13px; font-weight: 500; }
.foot-bottom a { font-size: 13px; color: #4a5883; }

/* pages légales et invitation */
.doc { padding: 100px 0 40px; }
.doc-card { max-width: 720px; margin: 0 auto; padding: 36px 40px 32px; }
.doc-card h1 { font-size: clamp(26px, 3vw, 32px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.doc-card .updated { margin-top: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.doc-card h2 { margin: 26px 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.doc-card h3 { margin: 18px 0 6px; font-size: 16px; font-weight: 800; }
.doc-card p, .doc-card li { font-size: 15px; line-height: 1.7; color: var(--text); }
.doc-card p { margin-top: 10px; }
.doc-card ul, .doc-card ol { margin: 10px 0 0 20px; display: grid; gap: 6px; }
.doc-card a { color: var(--blue); font-weight: 700; }
.doc-card table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.doc-card th, .doc-card td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-card th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.doc-head .kicker { font-size: 22px; }
.doc-head h1 { margin-top: 2px; }
.notice { margin: 18px 0 4px; padding: 13px 16px; border-radius: 14px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-ink); font-size: 14px; line-height: 1.6; }
.notice strong { font-weight: 800; }

/* cookies */
#cookie-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 700px; margin: 0 auto; background: rgba(10,20,48,.96); color: #fff; padding: 14px 16px; border-radius: 20px; box-shadow: 0 24px 48px -18px rgba(10,20,48,.6); transform: translateY(130%); opacity: 0; transition: transform .4s var(--ease), opacity .3s; display: none; }
#cookie-consent.show { display: block; }
#cookie-consent.in { transform: none; opacity: 1; }
#cookie-consent .cc-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; justify-content: space-between; }
#cookie-consent p { margin: 0; font-size: 13px; line-height: 1.5; flex: 1; min-width: 240px; color: rgba(255,255,255,.88); }
#cookie-consent .cc-actions { display: flex; gap: 8px; flex-shrink: 0; }
#cookie-refuse, #cookie-accept { padding: 9px 16px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: transform .15s, background .15s; }
#cookie-refuse { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; }
#cookie-refuse:hover { background: rgba(255,255,255,.1); }
#cookie-accept { background: var(--blue); border: 0; color: #fff; }
#cookie-accept:hover { background: #3b82ff; }

/* ── adaptation ── */
@media (max-width: 900px) {
  .nav-links, .nav .btn-primary { display: none; }
  .hamburger { display: flex; }
  .nav-pill { padding: 0 6px 0 18px; }
  .home { padding-top: 96px; }
  .home-grid { grid-template-columns: 1fr; gap: 34px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .chap-list { grid-template-columns: 1fr; }
  .duo, .plans { grid-template-columns: 1fr; }
  .feat { min-height: 0; }
  .final-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .section, .contact { padding-top: 60px; }
  .home h1 { font-size: 38px; }
  .lead { font-size: 16.5px; }
  .btn-lg, .btn-ghost { width: 100%; }
  .card { padding: 22px 20px; border-radius: 20px; }
  .fact { padding: 16px 16px; }
  .fact b { font-size: 21px; }
  .chap .tg { display: none; }
  .plan .note, .chap-card .note { position: static; display: block; margin-bottom: 6px; }
  .form-row { grid-template-columns: 1fr; }
  .final-card { padding: 26px 22px; }
  .doc-card { padding: 26px 22px; }
  .foot-card { padding: 24px 22px 16px; }
  .foot-top { grid-template-columns: 1fr; gap: 22px; }
}

/* image d'accueil */
.hero-img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 60% 50%; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 24px 50px -28px rgba(23,105,255,.55); }
.chap-card .note { left: 26px; right: auto; top: -15px; transform: rotate(-3deg); }
.chap-list { grid-auto-flow: column; grid-template-rows: repeat(9, auto); }
@media (max-width: 900px) { .chap-list { grid-auto-flow: row; grid-template-rows: none; } }


/* ── accueil : illustration en fond, fondue dans le ciel ── */
.home { position: relative; }
.home-grid { grid-template-columns: 1fr; min-height: 470px; position: relative; align-items: center; }
.home-copy { position: relative; z-index: 2; max-width: 500px; padding: 24px 0 8px; }
.home h1 { margin-top: 0; }
.hero-bg { position: absolute; z-index: 0; top: -34px; right: -13%; width: min(1010px, 78vw); pointer-events: none; }
.hero-bg img { width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 45% 54% at 62% 48%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 45% 54% at 62% 48%, #000 55%, transparent 100%); }
.hero-bg .note { left: 40%; bottom: 12%; transform: rotate(-4deg); }
@media (max-width: 900px) {
  .home-grid { min-height: 0; }
  .home-copy { max-width: none; }
  .hero-bg { position: relative; top: auto; right: auto; width: 128%; margin: -6px -14% 0 -14%; }
  .hero-bg .note { left: 24%; bottom: 8%; }
}

/* ── barre de navigation en verre liquide ── */
.nav-pill {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.38));
  backdrop-filter: blur(16px) saturate(1.9) brightness(1.04); -webkit-backdrop-filter: blur(16px) saturate(1.9) brightness(1.04);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.4), inset 0 0 0 1px rgba(23,105,255,.05), 0 12px 32px -14px rgba(23,105,255,.4), 0 2px 8px rgba(9,19,47,.06);
}
.nav-pill::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 200% at 18% -60%, rgba(255,255,255,.85), rgba(255,255,255,0) 55%); }
.nav-pill::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(23,105,255,.22), transparent); }
.nav-pill > * { position: relative; z-index: 1; }
.mobile-menu { background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.62)); backdrop-filter: blur(20px) saturate(1.9); -webkit-backdrop-filter: blur(20px) saturate(1.9); border-color: rgba(255,255,255,.85); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 24px 48px -20px rgba(9,19,47,.3); }

/* carte "fiches" : mascotte */
.visual-art { display: flex; justify-content: flex-end; align-items: flex-end; padding-top: 6px; }
.visual-art img { width: 250px; margin-bottom: -8px; }

/* examens : même rendu que dans l'app */
.app-exams { display: grid; gap: 10px; }
.app-exam, .app-mystery { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 22px; min-height: 76px; }
.app-exam { background: #FFF7E6; border: 1px solid #F7E7B8; }
.app-mystery { background: linear-gradient(180deg, #FFF8E2, #FBEBBD); border: 1.5px solid #EBCF85; box-shadow: 0 3px 12px rgba(224,165,38,.22); }
.ae-body { flex: 1; min-width: 0; }
.app-exam b { display: block; font-size: 15px; font-weight: 800; color: #09132F; line-height: 1.25; }
.app-mystery b { display: block; font-size: 16px; font-weight: 800; color: #3A2A06; line-height: 1.25; }
.app-exam small, .app-mystery small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; font-weight: 500; }
.app-exam small { color: #6C78A0; }
.app-mystery small { color: rgba(58,42,6,.72); }
.ae-pill { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 9px; border-radius: 999px; background: #FFF3D0; color: #8A6100; font-size: 11.5px; font-weight: 800; letter-spacing: .01em; }
.ae-pill svg { color: #B8860B; }
.ae-pill.gold { background: #F6DE94; color: #6B4A00; }
.ae-chev { flex: none; color: #D9971F; display: grid; place-items: center; }
.ae-chev.gold { color: #B8860B; }
.gem { flex: none; width: 46px; height: 46px; border-radius: 16px; background: #EDC15A; display: grid; place-items: center; }

/* rappels : plusieurs messages */
.notifs { display: grid; gap: 8px; }
.notifs .notif { padding: 10px 13px; }
.notifs .notif p { font-size: 13.5px; }

/* appel final : Drively dans la voiture */
.final-card { overflow: visible; }
.final-art { display: flex; justify-content: center; align-items: center; }
.final-art img { width: min(100%, 330px); filter: drop-shadow(0 18px 18px rgba(9,19,47,.18)); }
.notif > div { flex: 1; min-width: 0; }

/* image d'accueil : fondu sur les quatre côtés (plus aucun bord brut) */
.hero-bg img {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 64%, transparent 100%), radial-gradient(ellipse 39% 62% at 61% 50%, #000 52%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 64%, transparent 100%), radial-gradient(ellipse 39% 62% at 61% 50%, #000 52%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 900px) {
  .hero-bg img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 70%, transparent 100%), linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 70%, transparent 100%), linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-composite: intersect;
  }
}

/* carte fiches : aperçu d'une fiche + mascotte */
.visual-sheet { display: flex; align-items: flex-end; gap: 6px; padding-top: 14px; }
.visual-art { display: none; }
.sheet { flex: 1; min-width: 0; padding: 14px 16px 14px; border-radius: 16px; background: #f7faff; border: 1px solid var(--line); }
.sh-kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.sh-title { margin-top: 2px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.sheet ul { list-style: none; margin-top: 10px; display: grid; gap: 7px; }
.sheet li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; font-weight: 600; color: #26345c; }
.sheet .ck { flex: none; width: 17px; height: 17px; border-radius: 50%; background: var(--soft); color: var(--blue); display: grid; place-items: center; margin-top: 1px; }
.sheet .ck svg { width: 10px; height: 10px; }
.sh-tip { margin-top: 11px; padding: 9px 12px; border-radius: 12px; background: var(--soft); font-size: 12.5px; line-height: 1.4; color: #26345c; }
.sh-tip b { color: var(--blue-dark); }
.visual-sheet > img { flex: none; width: 150px; margin: 0 -4px -8px 0; }

/* rappels : notification en évidence, les suivantes s'estompent */
.notifs { position: relative; display: grid; gap: 0; }
.notifs .notif { position: relative; transform-origin: top center; }
.notifs .notif:nth-child(1) { z-index: 3; padding: 14px 16px; border-radius: 20px; background: linear-gradient(180deg, #ffffff, #f1f6ff); border: 1px solid #cfe0fb; box-shadow: 0 16px 30px -16px rgba(23,105,255,.5), 0 2px 6px rgba(9,19,47,.06); }
.notifs .notif:nth-child(1) p { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.notifs .notif:nth-child(2) { z-index: 2; margin: -6px 12px 0; padding-top: 16px; opacity: .62; transform: scale(.97); }
.notifs .notif:nth-child(3) { z-index: 1; margin: -6px 24px 0; padding-top: 16px; opacity: .3; transform: scale(.94); }
.notifs::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: -6px; height: 46px; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 92%); z-index: 4; }

/* l'illustration déborde volontairement du cadre : on la coupe au bord de l'écran */
.home { overflow: hidden; padding-bottom: 28px; }
html { overflow-x: hidden; }
@media (min-width: 901px) and (max-width: 1250px) { .hero-bg { right: -4%; width: 88vw; } }

/* précision : les <p> de la fiche ne doivent pas hériter du style des paragraphes de carte */
.feat .sheet .sh-kicker { margin: 0; max-width: none; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.feat .sheet .sh-title { margin: 2px 0 0; max-width: none; font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.feat .sheet .sh-tip { margin: 11px 0 0; max-width: none; font-size: 12.5px; line-height: 1.4; color: #26345c; }
.feat .qcard .qexp { margin: 0; max-width: none; font-size: 13.5px; color: #26345c; }
.feat .notif p { margin: 2px 0 0; max-width: none; font-size: 14px; color: #26345c; }
.feat .notifs .notif:nth-child(1) p { font-size: 14.5px; color: var(--ink); }
@media (max-width: 560px) {
  .visual-sheet { flex-direction: column; align-items: stretch; gap: 0; }
  .visual-sheet > img { width: 130px; margin: -34px 0 -8px auto; }
  .sheet { position: relative; z-index: 1; }
}

/* grands chiffres */
.facts { margin-top: 44px; }
.fact { padding: 22px 24px 20px; }
.fact b { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.045em; color: var(--ink); }
.fact b em { font-style: normal; font-size: .5em; letter-spacing: -.02em; margin-left: 3px; color: var(--blue); }
.fact span { margin-top: 8px; font-size: 14px; line-height: 1.4; }
@media (max-width: 560px) { .fact b { font-size: 36px; } }
.plan-note { margin-top: 18px; text-align: center; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.qa svg { flex: none; align-self: center; }

/* bande de contact : plus d'air en haut et en bas */
.contact-strip { padding: 22px 24px; gap: 4px 14px; line-height: 1.5; }
footer { margin-top: 36px; }

/* nav : évite les clignotements et coupures pendant un défilement rapide
   (verre flouté + overflow:hidden + coins arrondis = bug de rendu connu sur Chrome et Safari) */
.nav { transform: translateZ(0); -webkit-transform: translateZ(0); will-change: transform; contain: layout style; }
.nav-pill { overflow: visible; isolation: isolate; transform: translateZ(0); -webkit-transform: translateZ(0); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.nav-pill::before, .nav-pill::after { z-index: 0; }
.nav-pill > * { z-index: 1; }
.nav-links a, .nav .btn-primary, .nav-logo, .hamburger { transform: translateZ(0); }
.nav-links { flex-shrink: 0; }
.mobile-menu { transform: translateZ(0); will-change: opacity, transform; }
.mobile-menu:not(.open) { transform: translate3d(0,-6px,0); }

/* verre plus transparent */
.nav-pill { background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.2)); backdrop-filter: blur(14px) saturate(1.9); -webkit-backdrop-filter: blur(14px) saturate(1.9); border-color: rgba(255,255,255,.65); }
.nav-pill::before { background: radial-gradient(120% 200% at 18% -60%, rgba(255,255,255,.6), rgba(255,255,255,0) 55%); }
.mobile-menu { background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.42)); }

/* fiches : mascotte à côté du titre, aperçu de fiche pleine largeur et plus grand */
.feat-sheet { position: relative; }
.feat-sheet .feat-mascot { position: absolute; top: 14px; right: 18px; width: 170px; z-index: 2; pointer-events: none; filter: drop-shadow(0 10px 12px rgba(9,19,47,.12)); }
.feat-sheet h3, .feat-sheet p { max-width: calc(100% - 190px); }
.feat-sheet .visual-sheet { display: block; padding-top: 22px; }
.feat-sheet .sheet { padding: 20px 22px 20px; border-radius: 20px; }
.feat-sheet .sh-kicker { font-size: 12px !important; }
.feat-sheet .sh-title { font-size: 20px !important; }
.feat-sheet .sheet ul { margin-top: 14px; gap: 10px; }
.feat-sheet .sheet li { font-size: 14.5px; gap: 10px; }
.feat-sheet .sheet .ck { width: 20px; height: 20px; }
.feat-sheet .sheet .ck svg { width: 12px; height: 12px; }
.feat-sheet .sh-tip { margin-top: 16px !important; padding: 12px 14px; font-size: 14px !important; border-radius: 14px; }
@media (max-width: 560px) {
  .feat-sheet .feat-mascot { width: 104px; top: 12px; right: 12px; }
  .feat-sheet h3 { max-width: calc(100% - 96px); }
  .feat-sheet p { max-width: none; }
}

/* ── bandeau cookies compact ── */
#cookie-consent { left: auto; right: 16px; bottom: 16px; max-width: 400px; margin: 0; padding: 10px 12px 10px 16px; border-radius: 999px; background: rgba(10,20,48,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
#cookie-consent .cc-inner { flex-wrap: nowrap; gap: 12px; }
#cookie-consent p { min-width: 0; font-size: 12.5px; line-height: 1.35; }
#cookie-consent p a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
#cookie-refuse, #cookie-accept { padding: 7px 13px; font-size: 12.5px; }
@media (max-width: 560px) {
  #cookie-consent { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: none; border-radius: 22px; padding: 10px 10px 10px 14px; }
  #cookie-consent .cc-inner { flex-wrap: wrap; }
  #cookie-consent p { flex: 1 1 100%; }
  #cookie-consent .cc-actions { width: 100%; }
  #cookie-consent .cc-actions button { flex: 1; }
}

/* ── accueil mobile : titre, accroche, IMAGE, puis boutons (tout visible sans défiler) ── */
@media (max-width: 900px) {
  .home { padding-top: 84px; padding-bottom: 20px; }
  .home-grid { display: flex; flex-direction: column; min-height: 0; }
  .home-copy { display: contents; }
  .home h1 { order: 1; font-size: 38px; }
  .lead { order: 2; margin-top: 12px; font-size: 16.5px; max-width: none; }
  .hero-bg { order: 3; position: relative; top: auto; right: auto; width: 132%; margin: -6px -16% -30px -16%; z-index: 0; }
  .hero-actions { order: 4; position: relative; z-index: 2; margin-top: 0; }
  .hero-note { order: 5; margin-top: 14px; }
  .facts { margin-top: 30px; }
}
@media (max-width: 560px) {
  .home h1 { font-size: 36px; }
  .hero-bg { width: 150%; margin: -2px -25% -34px -25%; }
  .hero-actions .btn-ghost { display: none; }
}

/* corrections accueil mobile */
@media (max-width: 900px) {
  .home-grid { align-items: stretch; }
  .hero-bg { width: 125%; height: 250px; margin: 4px -12.5% -22px -12.5%; overflow: visible; }
  .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 46%; }
}
@media (max-width: 560px) {
  .hero-bg { width: 140%; height: 240px; margin: 2px -20% -20px -20%; }
  #cookie-consent { padding: 8px 8px 8px 14px; border-radius: 999px; }
  #cookie-consent .cc-inner { flex-wrap: nowrap; gap: 8px; }
  #cookie-consent p { flex: 1 1 auto; font-size: 12px; }
  #cookie-consent p a { display: none; }
  #cookie-consent .cc-actions { width: auto; }
  #cookie-consent .cc-actions button { flex: none; padding: 7px 12px; }
}
@media (max-width: 900px) { .home .lead { margin-top: 4px; } .hero-bg { margin-top: -6px; } }

/* Safari : ne pas imposer de couleur de fond à la page, pour que la barre d'URL reste en verre (le fond est peint par body::before) */
html, body { background: var(--bg); }
body::before { background: radial-gradient(800px 420px at 90% -6%, rgba(130,175,255,.26), transparent 62%), radial-gradient(600px 380px at -6% 10%, rgba(195,218,255,.5), transparent 62%), #f4f8ff; }

/* ── accueil mobile : ordre d'origine, photo en arrière-plan sous les boutons ── */
@media (max-width: 900px) {
  .home-grid { display: block; position: relative; padding-bottom: 250px; }
  .home-copy { display: block; position: relative; z-index: 2; }
  .home h1, .lead, .hero-actions, .hero-note { order: 0; }
  .home .lead { margin-top: 12px; }
  .hero-actions { margin-top: 22px; }
  .hero-bg { position: absolute; z-index: 0; left: -14%; right: -14%; bottom: -10px; top: auto; width: auto; height: 400px; margin: 0; }
  .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 45%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 74%, transparent 100%), linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 74%, transparent 100%), linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%); mask-composite: intersect; }
  .hero-bg .note { left: 22%; bottom: 16%; }
  .facts { margin-top: 8px; }
}
@media (max-width: 560px) {
  .hero-actions .btn-ghost { display: none; }
  .hero-note { font-size: 13.5px; }
}

/* bandeau cookies : plus étroit sur les côtés */
@media (max-width: 560px) {
  #cookie-consent { left: 16px; right: 16px; width: fit-content; max-width: min(310px, calc(100% - 32px)); margin: 0 auto; }
}

/* iPhone : bande pleine sous l'heure et la batterie, pour que le contenu ne défile plus derrière la barre d'état */
body::after { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: #f4f8ff; z-index: 150; pointer-events: none; }

/* annotation "direction l'examen !" : plus à gauche et plus bas, loin de la voiture */
.hero-bg .note { left: 33%; bottom: 8%; }
@media (max-width: 900px) { .hero-bg .note { left: 3%; bottom: 7%; } }
@media (max-width: 900px) { .hero-bg .note { left: 15.5%; bottom: 6%; } }

/* ── pages secondaires (parcours, tarifs, faq, partenariats) ── */
.page-head { padding: 112px 0 0; text-align: center; }
.page-head h1 { margin-top: 2px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.page-head .sub { margin-left: auto; margin-right: auto; max-width: 600px; }
.page-body { padding: 34px 0 0; }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.plan-note a, .chap-foot a { color: var(--blue); font-weight: 700; text-decoration: none; }
.plan-note a:hover, .chap-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.chap-foot a svg { vertical-align: -2px; margin-left: 2px; }
.plan-note a svg { vertical-align: -2px; margin-left: 2px; }

.chap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.chap-detail { padding: 24px 26px; }
.cd-top { display: flex; align-items: center; justify-content: space-between; }
.cd-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: var(--soft); color: var(--blue-dark); }
.cd-n.free { background: var(--green); color: #fff; }
.chap-detail h2 { margin-top: 12px; font-size: 19px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.cd-lead { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.chap-detail ul { list-style: none; margin-top: 10px; display: grid; gap: 8px; }
.chap-detail li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; font-weight: 600; color: #26345c; }
.chap-detail .ck { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--soft); color: var(--blue); display: grid; place-items: center; margin-top: 2px; }
.chap-detail .ck svg { width: 10px; height: 10px; }
.tagc { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tagc.free { background: var(--green-soft); color: #0b7a45; }
.tagc.lock { background: #eef2fb; color: #7d89ab; }

.plans-wide { max-width: 800px; margin-top: 0; }
.plan h2 { font-size: 22px; font-weight: 800; letter-spacing: -.025em; }
.steps-3 { margin: 16px auto 0; max-width: 800px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.steps-3 .card { padding: 22px; }
.st-n { width: 28px; height: 28px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.steps-3 h3 { margin-top: 12px; font-size: 16.5px; font-weight: 800; letter-spacing: -.015em; }
.steps-3 p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.faq-q h2 { font-size: 15.5px; font-weight: 700; line-height: 1.35; color: var(--ink); letter-spacing: 0; }
.page-body .faq-list { margin-top: 0; }
.page-body .contact-grid { margin-top: 0; }
.form-card h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.page-body .final { margin-top: 0; }
@media (max-width: 900px) { .chap-grid, .steps-3 { grid-template-columns: 1fr; } .page-head { padding-top: 96px; } }
