/* Facture Tranquille — style « cabinet de conseil » : contrastes forts, sections découpées, mouvement. */
:root {
  --ink: #0A1024;
  --ink-2: #111a38;
  --ink-3: #1b2550;
  --paper: #F3F5F9;
  --white: #fff;
  --text: #0A1024;
  --muted: #5B6478;
  --line: #E2E6EF;
  --blue: #2D5BFF;
  --cyan: #19C3F5;
  --signal: #FFB547;
  --green: #12A874;
  --red: #F0525A;
  --grad: linear-gradient(100deg, var(--blue), var(--cyan));
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10,16,36,.06), 0 18px 50px -20px rgba(10,16,36,.25);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.2vw, 56px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0; }
em.serif, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.stack > * + * { margin-top: 18px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 60ch; }

/* --- Boutons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 999px; border: 0; background: var(--blue); color: #fff; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; box-shadow: 0 10px 30px -10px rgba(45,91,255,.7); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(45,91,255,.85); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.on-dark .btn.ghost, .btn.ghost.light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.on-dark .btn.ghost:hover, .btn.ghost.light:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn.small-btn { padding: 11px 18px; font-size: 14px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }

/* --- En-tête --- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,16,36,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 800 19px/1 var(--display); letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; display: block; flex: none; filter: drop-shadow(0 6px 14px rgba(45,91,255,.45)); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: rgba(255,255,255,.75); text-decoration: none; font: 500 15px/1 var(--body); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav .btn { color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 999px; padding: 9px 16px; font: 600 14px/1 var(--body); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 22px; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.1); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 16px; border: 0; padding: 16px; }
}

/* --- Sections --- */
section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.on-dark { background: var(--ink); color: #fff; }
.on-dark .lead, .on-dark .muted { color: rgba(255,255,255,.68); }
.on-dark a:not(.btn) { color: #8fb0ff; }
.on-paper { background: var(--paper); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 56px; }
.section-head.split { max-width: none; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 40px; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

/* --- Hero --- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 70% at 85% 10%, rgba(45,91,255,.45), transparent 60%),
  radial-gradient(40% 50% at 10% 100%, rgba(25,195,245,.18), transparent 60%),
  linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 56px 56px,
  linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.hero .container { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero .lead { color: rgba(255,255,255,.72); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.55); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--cyan); font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font: 500 14px/1 var(--body); color: rgba(255,255,255,.85); }
.pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(255,181,71,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255,181,71,0); } 100% { box-shadow: 0 0 0 0 rgba(255,181,71,0); } }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; } }

/* Visuel animé du circuit d'une facture */
.flow { position: relative; padding: 26px; border-radius: 24px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); backdrop-filter: blur(8px); }
.flow-head { display: flex; justify-content: space-between; align-items: center; font: 500 13px/1.3 var(--body); color: rgba(255,255,255,.6); letter-spacing: .04em; text-transform: uppercase; }
.flow-steps { position: relative; margin: 22px 0; display: grid; gap: 14px; }
.flow-steps::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(var(--blue), var(--cyan)); opacity: .5; }
.packet { position: absolute; left: 22px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(45,91,255,.5), 0 0 24px 6px rgba(25,195,245,.8); animation: travel 4.2s var(--ease) infinite; }
@keyframes travel { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 45% { transform: translateY(var(--mid, 82px)); } 55% { transform: translateY(var(--mid, 82px)); } 92% { opacity: 1; } 100% { transform: translateY(var(--end, 164px)); opacity: 0; } }
.node { position: relative; display: flex; gap: 16px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 14px; background: rgba(10,16,36,.55); border: 1px solid rgba(255,255,255,.08); }
.node .ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-3); font-size: 15px; }
.node b { display: block; font: 600 16px/1.2 var(--display); }
.node span { font-size: 13.5px; color: rgba(255,255,255,.6); }
.node.accent { background: linear-gradient(100deg, rgba(45,91,255,.35), rgba(25,195,245,.15)); border-color: rgba(45,91,255,.6); }
.node.accent .ico { background: var(--grad); }
.flow-count { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.flow-count .num { font: 800 clamp(48px, 6vw, 64px)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.flow-count small { font-size: 14px; color: rgba(255,255,255,.65); max-width: 20ch; text-align: right; line-height: 1.35; }

/* --- Bandeau défilant (métiers) --- */
.marquee { padding: 22px 0; background: var(--ink-2); color: rgba(255,255,255,.8); border-block: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee-track span { font: 600 clamp(18px, 2vw, 24px)/1 var(--display); letter-spacing: -.01em; padding-inline: 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; color: var(--cyan); font-size: .7em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* --- Offre en 3 piliers --- */
.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.offer-item { padding: 34px 32px 38px 0; display: grid; gap: 14px; align-content: start; border-right: 1px solid var(--line); }
.offer-item + .offer-item { padding-left: 32px; }
.offer-item:last-child { border-right: 0; }
.offer-item .idx { font: 500 14px/1 var(--body); color: var(--muted); letter-spacing: .1em; }
.offer-item h3 { font-size: 26px; }
.offer-item .tag { justify-self: start; font: 600 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: #E8EEFF; color: var(--blue); }
.offer-item .tag.soon { background: #FFF2DD; color: #9A5B00; }
@media (max-width: 860px) {
  .offer { grid-template-columns: 1fr; }
  .offer-item, .offer-item + .offer-item { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* --- Chiffres clés --- */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.figure { background: var(--ink); padding: 36px 30px; display: grid; gap: 12px; align-content: start; }
.figure .big { font: 800 clamp(48px, 6vw, 80px)/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.figure .big small { font-size: .45em; letter-spacing: -.02em; margin-left: 4px; }
.figure p { color: rgba(255,255,255,.7); }
.figure.hl .big { color: var(--signal); }
.relief { margin-top: 28px; display: flex; gap: 16px; align-items: flex-start; padding: 22px 26px; border-radius: var(--radius); background: rgba(18,168,116,.12); border: 1px solid rgba(18,168,116,.35); }
.relief b { color: #5be0b0; }
@media (max-width: 860px) { .figures { grid-template-columns: 1fr; } }

/* --- Carrousel --- */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(400px, 82%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(20px, (100vw - 1200px) / 2); padding: 6px max(20px, (100vw - 1200px) / 2) 30px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; position: relative; min-height: 380px; padding: 30px; border-radius: 24px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.slide:hover { transform: translateY(-6px); }
.slide .num { font: 800 88px/0.8 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--blue); opacity: .9; }
.slide .date { align-self: flex-start; font: 600 13px/1 var(--body); padding: 8px 12px; border-radius: 999px; background: var(--paper); color: var(--text); }
.slide .date.done { background: #E3F6EE; color: #0B7A53; }
.slide .date.next { background: #FFF2DD; color: #8C5200; }
.slide h3 { font-size: 26px; margin-top: auto; }
.slide p { color: var(--muted); }
.slide.dark { background: var(--ink); color: #fff; border-color: transparent; }
.slide.dark p { color: rgba(255,255,255,.7); }
.slide.dark .num { -webkit-text-stroke-color: var(--cyan); }
.slide.blue { background: var(--grad); color: #fff; border-color: transparent; }
.slide.blue p { color: rgba(255,255,255,.88); }
.slide.blue .num { -webkit-text-stroke-color: #fff; }
.slide.blue .date { background: rgba(255,255,255,.2); color: #fff; }
.carousel-ui { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 8px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 28px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: background .3s, width .3s; }
.dots button[aria-current="true"] { background: var(--blue); width: 48px; }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); font-size: 20px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; color: var(--text); }
.arrows button:hover { border-color: var(--text); background: var(--text); color: #fff; }

/* --- Diagnostic (test) --- */
.diag { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.diag-aside { position: sticky; top: 110px; display: grid; gap: 22px; }
.checks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.checks li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; margin-top: 1px; }
@media (max-width: 960px) { .diag { grid-template-columns: 1fr; gap: 36px; } .diag-aside { position: static; } }

.quiz { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: clamp(22px, 4vw, 40px); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.quiz-progress { height: 6px; border-radius: 6px; background: var(--paper); overflow: hidden; margin-bottom: 28px; }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 6px; transition: width .5s var(--ease); }
.quiz fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; animation: fadeUp .45s var(--ease); }
.quiz legend { font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 14px; padding: 0; }
.quiz .hint { color: var(--muted); font-size: 15px; margin-top: -6px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 17px 18px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 500; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.opt:hover { border-color: #b9c5ea; transform: translateX(3px); }
.opt input { accent-color: var(--blue); width: 20px; height: 20px; margin: 0; flex: none; }
.opt:has(input:checked) { border-color: var(--blue); background: #F2F5FF; box-shadow: 0 0 0 3px rgba(45,91,255,.12); }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.quiz-nav #next { margin-left: auto; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.result { display: grid; gap: 14px; animation: fadeUp .5s var(--ease); }
.result > h3 { font-size: 28px; margin-bottom: 4px; }
.result-item { padding: 18px 20px 18px 22px; border-radius: 14px; background: var(--paper); border-left: 4px solid var(--blue); }
.result-item.ok { border-left-color: var(--green); }
.result-item.urgent { border-left-color: var(--red); background: #FFF4F4; }
.result-item .when { display: block; font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.result-item h3 { font-size: 19px; margin-bottom: 6px; }
.result-item p { color: #3b4357; font-size: 16px; }
.result .callout { padding: 24px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; gap: 12px; }
.result .callout p { color: rgba(255,255,255,.75); }

/* --- Méthode --- */
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: m; }
.method-step { position: relative; padding: 34px 30px; border-radius: 24px; background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); display: grid; gap: 14px; align-content: start; overflow: hidden; transition: transform .4s var(--ease), border-color .4s; }
.method-step:hover { transform: translateY(-6px); border-color: rgba(45,91,255,.6); }
.method-step::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(rgba(45,91,255,.4), transparent 70%); }
.method-step .k { font: 500 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.method-step h3 { font-size: 28px; }
.method-step p { color: rgba(255,255,255,.7); }
.method-step .link-arrow { color: #fff; margin-top: 8px; }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; } }

/* --- Produit (kit) --- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.book { position: relative; aspect-ratio: 4 / 4.6; max-width: 440px; margin-inline: auto; width: 100%; perspective: 1400px; }
.book-cover { position: absolute; inset: 0; border-radius: 10px 22px 22px 10px; padding: 40px 36px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background:
  radial-gradient(80% 60% at 100% 0%, rgba(25,195,245,.55), transparent 60%),
  linear-gradient(160deg, var(--blue), #1a2f9e 60%, var(--ink)); box-shadow: -14px 0 0 -6px #0f1a55, 0 50px 80px -30px rgba(10,16,36,.55); transform: rotateY(-14deg) rotateX(4deg); transition: transform .8s var(--ease); }
.book:hover .book-cover { transform: rotateY(-4deg) rotateX(0); }
.book-cover .kicker { font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.book-cover .title { font: 800 clamp(38px, 4.6vw, 56px)/.95 var(--display); letter-spacing: -.04em; }
.book-cover .title em { font-family: var(--serif); font-weight: 400; }
.book-cover ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; opacity: .9; }
.book-cover ul li::before { content: "— "; opacity: .6; }
.price { display: flex; align-items: baseline; gap: 14px; }
.price b { font: 800 64px/1 var(--display); letter-spacing: -.04em; }
.price s { color: var(--muted); font-size: 22px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 40px; } }

/* --- FAQ --- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative; font: 600 19px/1.35 var(--display); letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font: 400 22px/1 var(--body); transition: transform .3s var(--ease), background .3s, color .3s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--text); color: #fff; border-color: var(--text); }
details p { padding: 0 48px 26px 0; color: var(--muted); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 28px; } }

/* --- Appel final + formulaire --- */
.cta-final { overflow: hidden; isolation: isolate; }
.cta-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 50% 120%, rgba(45,91,255,.55), transparent 70%); }
.cta-box { max-width: 820px; margin-inline: auto; text-align: center; display: grid; gap: 22px; justify-items: center; }
.cta-box .lead { margin-inline: auto; }
.form-row { display: flex; gap: 10px; width: 100%; max-width: 560px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.form-row input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 12px 18px; font: 400 17px var(--body); outline: none; }
.form-row input::placeholder { color: rgba(255,255,255,.5); }
.form-row:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(25,195,245,.15); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; text-align: left; max-width: 560px; }
.consent input { margin-top: 3px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
#nl-msg { min-height: 1.4em; font-weight: 500; }
.on-dark #nl-msg { color: #9fe3c9; }
@media (max-width: 560px) { .form-row { flex-direction: column; border-radius: 22px; } .form-row .btn { width: 100%; } }

/* Formulaire sur fond clair (page kit) */
.field { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 18px; font: 400 17px var(--body); color: var(--text); background: #fff; }
.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(45,91,255,.12); }

/* --- Pages intérieures --- */
.page-hero { padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 7vw, 88px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 90% 0%, rgba(45,91,255,.4), transparent 60%), linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 56px 56px; -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
.page-hero .container { display: grid; gap: 22px; max-width: 900px; margin-left: max(20px, (100% - 1200px) / 2); }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 68px); }
.notice { display: flex; gap: 14px; padding: 18px 22px; border-radius: 14px; background: #FFF6E6; border: 1px solid #FFD999; color: #5c3a00; font-size: 15px; }
.on-dark .notice { background: rgba(255,181,71,.1); border-color: rgba(255,181,71,.35); color: #ffd99a; }

.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tool { padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); display: grid; gap: 16px; align-content: start; transition: transform .4s var(--ease); }
.tool:hover { transform: translateY(-4px); }
.tool-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tool-head h3 { font-size: 30px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { font: 600 13px/1 var(--body); padding: 8px 11px; border-radius: 999px; background: #E3F6EE; color: #0B7A53; }
.badge.warn { background: #FFF2DD; color: #8C5200; }
.badge.aff { background: var(--paper); color: var(--muted); font-weight: 500; }
.tool p { color: var(--muted); }
.tool .btn { justify-self: start; }
@media (max-width: 860px) { .tools { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { padding: 30px; border-radius: 24px; background: #fff; border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.card p { color: var(--muted); }
.on-paper .card { border-color: transparent; box-shadow: var(--shadow); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 44px; margin-bottom: 12px; }
.prose p { color: #3b4357; }
.prose p + p { margin-top: 12px; }

/* --- Pied de page --- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 64px 0 40px; font-size: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid p { max-width: 52ch; margin-top: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-content: start; justify-content: flex-end; }
.footer-links a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer-bottom a { color: rgba(255,255,255,.75); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .footer-links { justify-content: flex-start; } }

/* --- Apparition au défilement --- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- Images --- */
.media { margin: 0; border-radius: 24px; overflow: hidden; background: var(--ink-2); box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.media:hover img { transform: scale(1.04); }
.media.wide { aspect-ratio: 21 / 8; margin-bottom: 28px; }
.diag-img { aspect-ratio: 16 / 10; }
@media (max-width: 760px) { .media.wide { aspect-ratio: 4 / 3; } }

.slide.photo { padding: 0; min-height: 520px; border: 0; background: var(--ink); color: #fff; justify-content: flex-end; }
.slide.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.slide.photo:hover img { transform: scale(1.06); }
.slide.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,36,0) 35%, rgba(10,16,36,.55) 60%, rgba(10,16,36,.95)); }
.slide.photo .cap { position: relative; z-index: 1; padding: 28px; display: grid; gap: 10px; }
.slide.photo .date { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); justify-self: start; }
.slide.photo h3 { font-size: 24px; margin-top: 4px; }
.slide.photo p { color: rgba(255,255,255,.82); }

.page-hero .hero-img { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); }
@media (max-width: 860px) { .page-hero .hero-img { width: 100%; opacity: .25; -webkit-mask-image: none; mask-image: none; } }

/* --- Secrétariat en ligne --- */
.promo { background: var(--grad); color: #fff; overflow: hidden; isolation: isolate; }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 100% 0%, rgba(255,255,255,.22), transparent 60%), linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 56px 56px; }
.promo .lead { color: rgba(255,255,255,.88); }
.promo .eyebrow::before { background: #fff; }
.promo-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.promo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.promo-list li { display: grid; gap: 2px; padding: 18px 22px; border-radius: 16px; background: rgba(10,16,36,.28); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.promo-list b { font: 700 18px/1.3 var(--display); }
.promo-list span { color: rgba(255,255,255,.8); font-size: 15px; }
.btn.light-btn { background: #fff; color: var(--ink); box-shadow: 0 12px 30px -12px rgba(10,16,36,.6); }
@media (max-width: 860px) { .promo-grid { grid-template-columns: 1fr; gap: 32px; } }

.method.method-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .method.method-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .method.method-4 { grid-template-columns: 1fr; } }
.cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .cards.cards-3 { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; padding: 32px 30px; border-radius: 24px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.plan h3 { font-size: 28px; }
.plan .price b { font-size: 52px; }
.plan .checks { margin: 4px 0 8px; flex: 1; }
.plan .checks li { font-weight: 400; color: #3b4357; }
.plan .btn { align-self: stretch; }
.plan.featured { background: var(--ink); color: #fff; border-color: transparent; transform: translateY(-8px); box-shadow: 0 40px 80px -30px rgba(45,91,255,.55); }
.plan.featured .checks li, .plan.featured .muted { color: rgba(255,255,255,.75); }
.plan.featured .eyebrow { color: var(--cyan); }
.badge-top { position: absolute; top: -13px; right: 24px; font: 600 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: var(--grad); color: #fff; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } .plan.featured { transform: none; } }
#secretariat .form-row input + input { border-left: 1px solid rgba(255,255,255,.18); }
@media (max-width: 560px) { #secretariat .form-row input { max-width: none !important; } #secretariat .form-row input + input { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); } }
