/* ==========================================================================
   Tierspay · site vitrine
   Charte : indigo #4C46C8, vert frais #C7EE78, fond #F7F8FC, encre #23243D, Sora
   ========================================================================== */

@font-face { font-family: Sora; src: url('../fonts/sora-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Sora; src: url('../fonts/sora-semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Sora; src: url('../fonts/sora-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --indigo: #4C46C8;
  --indigo-700: #3C36AE;
  --indigo-100: #DEDCF7;
  --indigo-50: #EFEEFC;
  --vert: #C7EE78;
  --vert-100: #E6F7C4;
  --vert-50: #F3FBE3;
  --fond: #F7F8FC;
  --blanc: #FFFFFF;
  --encre: #23243D;
  --encre-2: #2C2E4C;
  --encre-3: #3A3C5E;
  --muted: #56587A;
  --muted-dark: #B8BAD2;
  --line: #E3E5EF;
  --line-dark: rgba(255, 255, 255, .12);
  --error: #C0264B;

  --font: 'Sora', 'Aptos', Arial, sans-serif;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --gutter: 16px;
  --max: 1200px;
  --nav-h: 68px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --shadow-sm: 0 1px 2px rgba(35, 36, 61, .06), 0 4px 12px -6px rgba(35, 36, 61, .12);
  --shadow: 0 1px 2px rgba(35, 36, 61, .05), 0 18px 40px -18px rgba(35, 36, 61, .28);
  --shadow-lg: 0 2px 4px rgba(35, 36, 61, .04), 0 40px 80px -32px rgba(35, 36, 61, .38);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --nav-h: 76px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.reduced { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
sup { font-size: .6em; line-height: 0; vertical-align: super; }
::selection { background: var(--vert); color: var(--encre); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--vert); }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(88px, 12vw, 160px); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--encre); color: #fff; padding: 12px 18px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Typographie ---------- */
h1, h2 { font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; max-width: 20ch; text-wrap: balance; }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.65; color: var(--muted); max-width: 58ch; }
.dark .lead { color: var(--muted-dark); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo);
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 18px; height: 8px; border-radius: 4px 0 4px 0; background: currentColor; transform: skewX(-18deg); }
.eyebrow--vert { color: var(--vert); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .eyebrow { margin-bottom: 0; }
.section-head--center { justify-items: center; text-align: center; }
.section-head--center h2 { margin-inline: auto; }
.footnote { margin-top: 32px; font-size: .8rem; color: var(--muted); max-width: 80ch; }
.footnote--center { text-align: center; margin-inline: auto; }
.dark .footnote { color: var(--muted-dark); }
.link { color: var(--indigo); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.dark .link { color: var(--vert); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Boutons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  translate: var(--mx) var(--my);
  transition: background-color .25s, color .25s, box-shadow .25s, translate .35s var(--ease-out);
}
.btn .i { transition: transform .35s var(--ease-out); }
.btn:hover .i { transform: translateX(4px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 10px 24px -10px rgba(76, 70, 200, .7); }
.btn-primary:hover { background: var(--indigo-700); }
.btn-ghost { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px rgba(35, 36, 61, .18); }
.btn-ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(35, 36, 61, .3); }
.btn-vert { background: var(--vert); color: var(--encre); box-shadow: 0 10px 30px -12px rgba(199, 238, 120, .6); }
.btn-vert:hover { background: #d6f59a; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-lg { padding: 17px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
/* Les colonnes de grille ne doivent jamais dépasser leur conteneur sur petit écran */
:is(.hero-grid, .constat-grid, .methode-grid, .gain-card, .simu-grid, .simu-results, .res-row, .tabpanel, .profil-grid, .faq-grid, .contact-grid, .form-row) > * { min-width: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-size: .78em; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chip--ok { background: var(--vert); color: var(--encre); }
.chip--indigo { background: var(--indigo-50); color: var(--indigo); }

/* ---------- Intro ---------- */
.intro { display: none; }
.intro-on .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 150;
  background: var(--encre);
  animation: introOut .9s var(--ease-io) 1.05s forwards;
}
.intro-mark { width: clamp(96px, 16vw, 150px); overflow: visible; }
.intro-bar { fill: #fff; animation: introBar .8s var(--ease-out) .1s both; }
.intro-leaf { fill: var(--vert); animation: introLeaf .8s var(--ease-out) .28s both; }
@keyframes introBar { from { transform: translateX(-70px); opacity: 0; } }
@keyframes introLeaf { from { transform: translateY(70px); opacity: 0; } }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ---------- Barre de progression ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--indigo), var(--vert));
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  transition: transform .45s var(--ease-out), background-color .3s, box-shadow .3s;
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(247, 248, 252, .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
  transition: opacity .3s, background-color .3s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav.on-dark::before { background: rgba(35, 36, 61, .72); box-shadow: 0 1px 0 var(--line-dark); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav-logo { display: block; margin-left: -6px; flex: none; }
.logo { height: 38px; width: auto; }
@media (min-width: 768px) { .logo { height: 42px; } }
.logo-bar { fill: var(--indigo); transition: fill .3s; }
.logo-leaf { fill: var(--vert); }
.logo-word { fill: var(--encre); transition: fill .3s; }
.nav.on-dark .logo-bar, .nav.on-dark .logo-word { fill: #fff; }
.nav-links { display: none; margin-left: auto; gap: 4px; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--encre);
  transition: color .3s, background-color .2s;
}
.nav-links a:hover { background: rgba(76, 70, 200, .08); }
.nav-links a.is-current { color: var(--indigo); }
.nav.on-dark .nav-links a { color: #fff; }
.nav.on-dark .nav-links a:hover { background: rgba(255, 255, 255, .1); }
.nav.on-dark .nav-links a.is-current { color: var(--vert); }
.nav-cta { display: none; }
.nav-burger {
  margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--encre); display: grid; place-content: center; gap: 6px;
}
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease-out); }
.nav.on-dark .nav-burger { background: #fff; }
.nav.on-dark .nav-burger span { background: var(--encre); }
.nav.menu-open .nav-burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.menu-open .nav-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-mobile {
  position: fixed; inset: 0; z-index: -2; padding: calc(var(--nav-h) + 32px) var(--gutter) 32px;
  background: var(--fond); display: flex; flex-direction: column; justify-content: space-between;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile nav { display: grid; gap: 4px; }
.menu-mobile nav a {
  font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; text-decoration: none;
  padding: 6px 0; opacity: 0; transform: translateY(16px);
  animation: menuIn .6s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 50ms + 60ms);
}
@keyframes menuIn { to { opacity: 1; transform: none; } }
.nav.menu-open .logo-bar { fill: var(--indigo); }
.nav.menu-open .logo-word { fill: var(--encre); }
.nav.menu-open::before { opacity: 0; }
.nav.menu-open .nav-burger { background: var(--encre); }
.nav.menu-open .nav-burger span { background: #fff; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger, .menu-mobile { display: none !important; }
}

/* ---------- Apparitions ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

[data-split] .w { display: inline-block; vertical-align: top; }
.js [data-split] .w { overflow: hidden; padding: .12em .02em .14em; margin: -.12em -.02em -.14em; }
.js [data-split] .w-i {
  display: inline-block; transform: translateY(115%);
  transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms);
}
.js [data-split].is-in .w-i { transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 0 88px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(35, 36, 61, .13) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(76, 70, 200, .14), transparent 62%);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero-title {
  font-size: clamp(2.6rem, 10.5vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em;
  margin-bottom: 28px;
}
@media (min-width: 1024px) { .hero-title { font-size: clamp(3rem, 5vw, 4.75rem); } }
.hl { position: relative; z-index: 0; background: none; color: inherit; white-space: nowrap; }
.hl::before {
  content: ''; position: absolute; z-index: -1; left: -.04em; right: -.1em; top: .14em; bottom: .02em;
  background: var(--vert); border-radius: .28em 0 .28em 0; transform: skewX(-14deg);
  transform-origin: 0 50%; transition: transform 1s var(--ease-out) .75s;
}
.js .hero-title:not(.is-in) .hl::before { transform: skewX(-14deg) scaleX(0); }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .88rem; color: var(--muted); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 3px var(--vert-100); }

.js .hero-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms + 150ms);
}
.js.hero-ready .hero-in { opacity: 1; transform: none; }

/* Visuel du hero */
.hero-visual {
  position: relative; width: 100%; max-width: 580px; aspect-ratio: 1 / .92; margin-inline: auto;
  container-type: inline-size; font-size: clamp(11px, 2.5cqw, 14.5px);
}
.hv-glow {
  position: absolute; inset: 10% 5% 5% 10%; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(199, 238, 120, .45), transparent 60%);
}
.hv-item { position: absolute; animation: float 7s ease-in-out infinite; animation-delay: calc(var(--f, 0) * -1.7s); will-change: translate; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hv-pos-mark { left: 4%; top: 9%; width: 84%; animation: none; }
.hv-pos-pay { right: -2%; top: 0; width: 50%; }
.hv-pos-file { left: 45%; top: 42%; width: 56%; }
.hv-pos-chart { right: 0; top: 76%; width: 36%; }
.hv-pos-toast { left: -2%; bottom: 1%; }
.hv-mark { width: 100%; overflow: visible; }
/* Symbole 3D : centré sur le logo plat, plus grand pour laisser la place aux formes qui se séparent */
.hv-3d {
  position: absolute; left: 46%; top: 50%; width: 124%; aspect-ratio: 1; transform: translate(-50%, -50%);
  pointer-events: none; opacity: 0; transition: opacity .8s var(--ease-out);
}
.hv-3d canvas, .contact-3d canvas { display: block; width: 100%; height: 100%; }
.hero-visual.has-3d .hv-3d { opacity: 1; }
.hero-visual.has-3d .hv-pos-mark { opacity: 0; transition: opacity .8s var(--ease-out); }
.hv-bar { fill: var(--indigo); }
.hv-leaf { fill: var(--vert); }
.hv-bar, .hv-leaf { transform-box: fill-box; transition: transform 1.3s var(--ease-out), opacity 1.3s var(--ease-out); }
.js .hero:not(.is-live) .hv-bar { transform: translateX(-24%); opacity: 0; }
.js .hero:not(.is-live) .hv-leaf { transform: translateY(40%); opacity: 0; transition-delay: .12s; }

.hv-card, .hv-toast {
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 1.15em; box-shadow: var(--shadow);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms + 250ms);
}
.js .hero:not(.is-live) .hv-card, .js .hero:not(.is-live) .hv-toast { opacity: 0; transform: translateY(24px) scale(.94); }
.hv-card { padding: 1.1em 1.2em; display: grid; gap: .8em; }
.hv-row { display: flex; align-items: center; gap: .85em; }
.hv-ico { width: 2.6em; height: 2.6em; border-radius: .8em; background: var(--indigo); color: #fff; display: grid; place-items: center; flex: none; }
.hv-ico svg { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
.hv-label { font-size: .82em; color: var(--muted); }
.hv-amount { font-size: 1.6em; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.hv-card .chip { justify-self: start; font-size: .82em; }
.hv-file-head { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.hv-file-title { font-weight: 600; font-size: 1em; }
.hv-steps { display: flex; justify-content: space-between; font-size: .76em; color: var(--muted); }
.hv-steps span { display: inline-flex; align-items: center; gap: .45em; transition: color .4s; }
.hv-steps span::before { content: ''; width: .7em; height: .7em; border-radius: 50%; border: 2px solid var(--line); transition: background-color .4s, border-color .4s; }
.hv-steps span.is-done { color: var(--encre); }
.hv-steps span.is-done::before { background: var(--indigo); border-color: var(--indigo); }
.hv-track { height: .5em; border-radius: 1em; background: var(--indigo-50); overflow: hidden; }
.hv-track span { display: block; height: 100%; width: var(--w, 33%); border-radius: inherit; background: var(--indigo); transition: width .9s var(--ease-out), background-color .4s; }
.hv-track span.is-full { background: #8BBF2E; }
.hv-bars { display: flex; align-items: flex-end; gap: .45em; height: 4.6em; }
.hv-bars span {
  flex: 1; height: var(--h); border-radius: .35em .35em .15em .15em; background: var(--indigo-100);
  transform-origin: 50% 100%; transition: transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms);
}
.hv-bars span:last-child { background: var(--indigo); }
.js .hero:not(.is-live) .hv-bars span { transform: scaleY(.1); }
.hv-bars span:nth-child(1) { transition-delay: .6s; } .hv-bars span:nth-child(2) { transition-delay: .66s; }
.hv-bars span:nth-child(3) { transition-delay: .72s; } .hv-bars span:nth-child(4) { transition-delay: .78s; }
.hv-bars span:nth-child(5) { transition-delay: .84s; } .hv-bars span:nth-child(6) { transition-delay: .9s; }
.hv-toast {
  display: inline-flex; align-items: center; gap: .7em; padding: .75em 1.1em .75em .75em; border-radius: 999px;
  font-size: .9em; font-weight: 600; white-space: nowrap;
}
.hv-toast-dot { width: 2em; height: 2em; border-radius: 50%; background: var(--vert); display: grid; place-items: center; flex: none; }
.hv-toast-dot svg { width: 1.1em; height: 1.1em; fill: none; stroke: var(--encre); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
[data-hv-toast] { display: inline-block; transition: opacity .35s, transform .35s var(--ease-out); }
[data-hv-toast].is-out { opacity: 0; transform: translateY(8px); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.scroll-cue i { width: 1.5px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; inset: 0; background: var(--indigo); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .scroll-cue { display: flex; }
}
@media (max-width: 1023px) {
  .hero { min-height: auto; }
  .hero-visual { max-width: 460px; }
}

/* ---------- Bandeau défilant ---------- */
.marquee { overflow: hidden; padding: clamp(18px, 3vw, 30px) 0; border-block: 1px solid var(--line); background: #fff; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding-right: clamp(20px, 3vw, 40px); }
.marquee span { font-size: clamp(1.6rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; white-space: nowrap; }
.marquee .outline { color: transparent; -webkit-text-stroke: 1.5px var(--encre); }
.mq-sep { width: clamp(20px, 2.6vw, 34px); height: auto; aspect-ratio: 73 / 79; fill: var(--vert); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 01 Constat ---------- */
.constat { overflow-x: clip; }
.constat-grid { display: grid; gap: 48px; align-items: center; }
.constat-copy { display: grid; gap: 24px; align-content: start; }
.constat-copy .eyebrow { margin-bottom: -4px; }
.constat-counter {
  justify-self: start; display: inline-flex; align-items: baseline; gap: 2px;
  padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
  font-size: .92rem; font-weight: 600; color: var(--muted);
}
.constat-counter strong { font-size: 1.4rem; color: var(--indigo); min-width: 1ch; text-align: right; }
.constat-closing { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; line-height: 1.45; max-width: 30ch; }
.constat-closing strong { color: var(--indigo); }
.js .constat-closing { opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s var(--ease-out); }
.js .constat-closing.is-on { opacity: 1; transform: none; }

.q-grid { display: grid; gap: 14px; }
.q-card {
  display: grid; grid-template-columns: 36px 1fr; gap: 6px 14px; align-items: start;
  padding: 18px 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: border-color .4s, box-shadow .4s;
  will-change: transform;
}
.q-ico {
  grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--indigo-50); color: var(--indigo); font-weight: 700; transition: background-color .4s;
}
.q-ico > * { grid-area: 1 / 1; transition: opacity .3s, transform .4s var(--ease-out); }
.q-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--encre); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.4); }
.q { font-weight: 600; line-height: 1.4; }
.a { font-size: .92rem; color: var(--muted); line-height: 1.5; }
.js .q-card .a { opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s var(--ease-out); }
.q-card.is-solved { border-color: var(--indigo-100); box-shadow: var(--shadow); }
.q-card.is-solved .q-ico { background: var(--vert); }
.q-card.is-solved .q-ico b { opacity: 0; transform: scale(.4); }
.q-card.is-solved .q-ico svg { opacity: 1; transform: none; }
.js .q-card.is-solved .a { opacity: 1; transform: none; }

@media (min-width: 640px) { .q-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .constat-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; }
  .constat.is-pinnable { min-height: 100vh; display: flex; align-items: center; padding-block: calc(var(--nav-h) + 16px) 32px; }
  .constat.is-pinnable .constat-grid { width: min(100% - 2 * var(--gutter), var(--max)); }
}
@media (min-width: 1024px) and (max-width: 1279px), (min-width: 1024px) and (max-height: 820px) {
  .constat.is-pinnable h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
  .constat.is-pinnable .lead { font-size: 1rem; }
  .constat.is-pinnable .constat-copy { gap: 18px; }
  .constat.is-pinnable .q-card { padding: 14px 16px; font-size: .92rem; }
  .constat.is-pinnable .a { font-size: .86rem; }
}

/* ---------- Sections sombres ---------- */
.dark { color: #fff; isolation: isolate; }
.dark-bg { position: absolute; inset: 0; z-index: -2; background: var(--encre); overflow: hidden; }
.dark-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(640px circle at var(--mx, 80%) var(--my, 10%), rgba(76, 70, 200, .45), transparent 62%),
    radial-gradient(520px circle at 8% 100%, rgba(199, 238, 120, .1), transparent 60%);
  transition: background-position .2s;
}
.dark-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px); background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.deco svg { position: absolute; fill: none; stroke-width: 1.5; }
.deco-bar { stroke: rgba(76, 70, 200, .9); width: clamp(320px, 46vw, 680px); height: auto; aspect-ratio: 160 / 55; }
.deco-leaf { stroke: rgba(199, 238, 120, .35); width: clamp(180px, 24vw, 340px); height: auto; aspect-ratio: 73 / 79; }
.deco-contact .deco-bar { left: -18%; top: 4%; }
.deco-contact .deco-leaf { left: -6%; bottom: 14%; }

/* ---------- 03 Méthode ---------- */
.methode-grid { display: grid; gap: 40px; }
.steps { position: relative; display: grid; }
.steps::before, .steps::after { content: ''; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--line); }
.steps::after { background: var(--indigo); transform-origin: 50% 0; transform: scaleY(var(--sp, 0)); transition: transform .6s var(--ease-out); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 8px 0 56px; transition: opacity .5s; }
.js .step { opacity: .38; }
.js .step.is-active, .js .step.is-past { opacity: 1; }
.step-num {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); font-weight: 700; font-size: .95rem; color: var(--muted);
  transition: background-color .4s, border-color .4s, color .4s, transform .5s var(--ease-out);
}
.step.is-active .step-num, .step.is-past .step-num { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.step.is-active .step-num { transform: scale(1.08); box-shadow: 0 0 0 8px var(--indigo-50); }
.step h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 10px 0 10px; }
.step h3 .i { width: 24px; height: 24px; color: var(--indigo); }
.step p { color: var(--muted); max-width: 44ch; }

.dossier-wrap { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 2; order: -1; }
.dossier {
  position: relative; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: 18px; display: grid; gap: 14px; font-size: .9rem;
}
.dossier-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dossier-ref { font-size: .78rem; color: var(--muted); }
.dossier-title { font-size: 1rem; }
.dossier-badge { position: relative; flex: none; }
.dossier-badge span {
  display: none; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap;
  animation: pop .5s var(--ease-out);
}
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.dossier[data-state="0"] [data-badge="0"] { display: inline-block; background: var(--fond); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.dossier[data-state="1"] [data-badge="1"] { display: inline-block; background: var(--indigo); color: #fff; }
.dossier[data-state="2"] [data-badge="2"] { display: inline-block; background: var(--indigo-50); color: var(--indigo); }
.dossier[data-state="3"] [data-badge="3"] { display: inline-block; background: #fff; color: var(--indigo); box-shadow: inset 0 0 0 1.5px var(--indigo); }
.dossier[data-state="4"] [data-badge="4"] { display: inline-block; background: var(--vert); color: var(--encre); }
.dossier-lines { display: grid; }
.dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.dl-name { font-weight: 600; }
.dl-amount { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.dl-status { grid-column: 1 / -1; display: flex; }
.dl-status em {
  display: none; font-style: normal; font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--fond); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); animation: pop .45s var(--ease-out);
}
.dl-status em.is-current { display: inline-block; }
.dl-status em.ok { background: var(--vert); color: var(--encre); box-shadow: none; }
.dl-status em.ok::before {
  content: ''; display: inline-block; width: .28em; height: .56em; margin: 0 .5em .12em .1em;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.dl-status em.muted { background: var(--indigo-50); color: var(--indigo); box-shadow: none; }
.dp-top { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.dp-top strong { color: var(--encre); font-variant-numeric: tabular-nums; }
.dp-track { height: 10px; border-radius: 10px; background: var(--indigo-50); overflow: hidden; }
.dp-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--indigo); transition: width 1s var(--ease-out), background-color .5s; }
.dossier[data-state="4"] .dp-track span { background: #8BBF2E; }
.dossier-log { display: none; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .82rem; }
.dossier-log li { display: flex; align-items: center; gap: 10px; color: var(--muted); opacity: .38; transition: opacity .4s, color .4s; }
.dossier-log svg { width: 18px; height: 18px; flex: none; padding: 3px; border-radius: 50%; background: var(--line); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: background-color .4s; }
.dossier-log li.is-on { opacity: 1; color: var(--encre); }
.dossier-log li.is-on svg { background: var(--indigo); }
.dossier-burst { position: absolute; top: 24px; right: 40px; pointer-events: none; }
.dossier-burst svg { position: absolute; width: 18px; height: 18px; opacity: 0; }
.dossier-burst .b1 { fill: var(--vert); } .dossier-burst .b2 { fill: var(--indigo); width: 26px; height: 10px; } .dossier-burst .b3 { fill: var(--vert); width: 12px; height: 12px; }
.dossier.is-burst .b1 { animation: burst1 1s var(--ease-out); }
.dossier.is-burst .b2 { animation: burst2 1s var(--ease-out) .05s; }
.dossier.is-burst .b3 { animation: burst3 1s var(--ease-out) .1s; }
@keyframes burst1 { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(-40px, -46px) rotate(-40deg); } }
@keyframes burst2 { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(34px, -40px) rotate(30deg); } }
@keyframes burst3 { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(10px, 40px) rotate(60deg); } }

@media (min-width: 700px) {
  .dossier { padding: 28px; gap: 18px; font-size: 1rem; }
  .dossier-title { font-size: 1.15rem; }
  .dossier-log { display: grid; }
  .dl { grid-template-columns: 1fr auto auto; }
  .dl-status { grid-column: auto; justify-content: flex-end; min-width: 92px; }
}
@media (min-width: 1024px) {
  .methode-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .dossier-wrap { order: 0; top: max(calc(var(--nav-h) + 24px), calc(50vh - 290px)); }
  .step { min-height: 46vh; padding-bottom: 0; }
  .step:last-child { min-height: 30vh; }
  .steps::before, .steps::after { bottom: 30vh; }
}
@media (max-width: 1023px) {
  .step { min-height: 44vh; }
  .steps::before, .steps::after { display: none; }
}

/* ---------- 04 Gains ---------- */
.gain-card {
  display: grid; gap: 32px; align-items: center; margin-top: 24px;
  padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.gain-copy { display: grid; gap: 16px; align-content: start; }
.gain-copy h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -.02em; max-width: 22ch; }
.gain-copy > p:not(.gain-kicker):not(.agenda-counter) { color: var(--muted); }
.gain-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--indigo); text-transform: uppercase; letter-spacing: .1em; }
/* Mobile : texte, planning, puis le compteur sous le planning pour qu'il reste visible pendant la bascule */
.agenda-card { grid-template-areas: "copy" "agenda" "result"; gap: 24px; align-items: start; }
.agenda-card .gain-copy { grid-area: copy; }
.agenda-card .agenda { grid-area: agenda; }
.agenda-result { grid-area: result; display: grid; gap: 16px; }
.agenda-counter { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; }
.agenda-counter > span:first-child, .agenda-counter strong { font-size: clamp(2.6rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--indigo); font-variant-numeric: tabular-nums; }
.agenda-counter-label { flex-basis: 100%; color: var(--muted); font-size: .92rem; margin-top: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .85rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }
.lg-admin { background: repeating-linear-gradient(135deg, var(--indigo-100) 0 3px, var(--indigo-50) 3px 6px); box-shadow: inset 0 0 0 1px #C9C7EF; }
.lg-client { background: var(--vert); }
.lg-before { background: #B3B5CB; height: 4px !important; border-radius: 2px !important; }
.lg-after { background: var(--indigo); height: 4px !important; border-radius: 2px !important; }

.agenda { min-width: 0; }
.ag-state { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.ag-state span {
  display: none; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  animation: pop .5s var(--ease-out);
}
.ag-before { background: var(--indigo-50); color: var(--indigo); box-shadow: inset 0 0 0 1px #C9C7EF; }
.ag-after { background: var(--vert); color: var(--encre); }
.agenda-card:not(.is-after) .ag-before, .agenda-card.is-after .ag-after { display: inline-block; }
.ag-days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 8px; text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ag-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 40px; gap: 6px; perspective: 900px; }
.ag-cell { position: relative; transform-style: preserve-3d; border-radius: 8px; }
.ag-face {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 2px 4px; border-radius: 8px;
  font-size: .68rem; font-weight: 600; line-height: 1.15; text-align: center; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.ag-face span { display: none; }
.f-admin { background: repeating-linear-gradient(135deg, var(--indigo-100) 0 4px, var(--indigo-50) 4px 8px); color: var(--indigo); box-shadow: inset 0 0 0 1px #C9C7EF; }
.f-client { background: var(--vert); color: var(--encre); transform: rotateX(180deg); }
.is-client .ag-face { background: var(--vert-50); color: var(--encre); box-shadow: inset 0 0 0 1px var(--vert-100); transform: none; }
.is-empty { border: 1.5px dashed var(--line); }
.ag-cell.is-flipped { transform: rotateX(180deg); }
.js .ag-cell.is-admin { transition: transform .8s var(--ease-out); }

.chart { display: grid; gap: 8px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.chart-area { fill: rgba(76, 70, 200, .08); }
.chart-before { fill: none; stroke: #B3B5CB; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-after { fill: none; stroke: var(--indigo); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: var(--vert); stroke: var(--indigo); stroke-width: 3; }
.chart-axis { font: 500 13px var(--font); fill: var(--muted); }
.chart figcaption { font-size: .78rem; color: var(--muted); text-align: right; }

@media (min-width: 600px) {
  .ag-grid { grid-auto-rows: 52px; gap: 8px; }
  .ag-face span { display: inline; }
  .ag-face { font-size: .72rem; }
}
@media (min-width: 1024px) {
  .gain-card { grid-template-columns: .8fr 1.2fr; gap: 56px; }
  .chart-card { grid-template-columns: .8fr 1.2fr; }
  .agenda-card { grid-template-areas: "copy agenda" "result agenda"; grid-template-rows: auto 1fr; row-gap: 28px; }
  .agenda-card .agenda { align-self: center; }
}

/* ---------- 05 Simulateur ---------- */
.simu-grid { display: grid; gap: 24px; }
.simu-inputs {
  display: grid; gap: 28px; align-content: start; padding: clamp(22px, 3.5vw, 36px);
  border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark);
}
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seg label { position: relative; z-index: 1; cursor: pointer; }
.seg input, .chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 11px 12px; text-align: center; font-weight: 600; font-size: .95rem; color: rgba(255, 255, 255, .72); border-radius: 999px; transition: color .3s; }
.seg input:checked + span { color: var(--encre); }
.seg input:focus-visible + span { outline: 3px solid var(--vert); outline-offset: 2px; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--vert); transition: transform .45s var(--ease-out); }
.seg:has(input[value="audio"]:checked) .seg-pill { transform: translateX(100%); }
.range { display: grid; gap: 12px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.range label { font-size: .92rem; color: var(--muted-dark); }
.range output { font-weight: 700; font-size: 1.1rem; color: var(--vert); white-space: nowrap; font-variant-numeric: tabular-nums; }
input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--vert) var(--p), rgba(255, 255, 255, .14) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--vert) var(--p), rgba(255, 255, 255, .14) var(--p)); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 0 0 6px rgba(199, 238, 120, .22), 0 4px 10px rgba(0, 0, 0, .3); transition: box-shadow .2s, transform .2s;
}
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(199, 238, 120, .22), 0 4px 10px rgba(0, 0, 0, .3); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(199, 238, 120, .25), 0 4px 10px rgba(0, 0, 0, .3); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--encre), 0 0 0 7px var(--vert); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--encre), 0 0 0 7px var(--vert); }

.simu-results { display: grid; gap: 14px; align-content: start; }
.res { padding: 22px 24px; border-radius: var(--r-lg); background: var(--encre-2); border: 1px solid var(--line-dark); display: grid; gap: 6px; align-content: start; }
.res-label { font-size: .88rem; color: var(--muted-dark); }
.res-value { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; white-space: nowrap; }
.res-value strong { color: var(--vert); font-variant-numeric: tabular-nums; }
.res-value--sm { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; white-space: normal; }
.res-sub { font-size: .88rem; color: var(--muted-dark); }
.res-sub strong { color: #fff; font-variant-numeric: tabular-nums; }
.res-meter { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 8px; }
.res-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--indigo), var(--vert)); transition: width .6s var(--ease-out); }
.res-row { display: grid; gap: 14px; }
.res--accent { background: var(--vert); border-color: transparent; color: var(--encre); }
.res--accent .res-label { color: var(--encre); opacity: .8; }
.res--accent .res-value strong { color: var(--encre); }
.simu-results .btn { margin-top: 6px; }
.simu-disclaimer { font-size: .78rem; color: var(--muted-dark); line-height: 1.5; }

@media (min-width: 600px) { .res-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .simu-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ---------- 06 Métiers ---------- */
.tabs { display: grid; justify-items: center; gap: 32px; }
.tablist { position: relative; display: inline-flex; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tablist [role="tab"] {
  position: relative; z-index: 1; border: 0; background: none; padding: 12px clamp(16px, 3vw, 28px); border-radius: 999px;
  font-weight: 600; font-size: clamp(.9rem, 1.4vw, 1rem); color: var(--muted); transition: color .35s;
}
.tablist [role="tab"][aria-selected="true"] { color: #fff; }
.tab-pill { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--indigo); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.tabpanel {
  width: 100%; display: grid; gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.tabpanel[hidden] { display: none; }
.tabpanel.is-entering .tp-copy { animation: panelIn .7s var(--ease-out) both; }
.tabpanel.is-entering .tp-visual { animation: panelIn .7s var(--ease-out) .08s both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } }
.tp-copy { display: grid; gap: 24px; }
.tp-intro { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.checks { display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--muted); }
.checks svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--vert); fill: none; stroke: var(--encre); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tp-visual {
  position: relative; overflow: hidden; display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--indigo); color: #fff;
}
.tp-visual::after { content: ''; position: absolute; right: -40px; bottom: -50px; width: 160px; height: 172px; background: var(--vert); opacity: .16; clip-path: path('M0,172 L24,54 C31,17 57,0 92,0 L160,0 L138,104 C129,150 100,172 52,172 Z'); }
.tp-illu { width: min(220px, 70%); margin-bottom: 12px; fill: none; stroke: var(--vert); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.tp-illu > * { stroke-dasharray: 400; stroke-dashoffset: 0; }
.tabpanel.is-entering .tp-illu > * { animation: draw 1.4s var(--ease-out) .15s both; }
@keyframes draw { from { stroke-dashoffset: 400; } }
.tp-stat { font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: rgba(255, 255, 255, .6); }
.tp-stat span { color: #fff; }
.tp-stat-label { max-width: 26ch; color: rgba(255, 255, 255, .85); font-size: .95rem; }
@media (min-width: 900px) { .tabpanel { grid-template-columns: 1.15fr .85fr; gap: 48px; } }

/* ---------- 07 Profils ---------- */
.profil-grid { display: grid; gap: 20px; perspective: 1200px; }
.profil {
  position: relative; overflow: hidden; display: grid; gap: 14px; align-content: start; min-height: 260px;
  padding: 32px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), rotate .5s var(--ease-out), border-color .3s, box-shadow .3s;
  transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s, 0s, 0s;
}
.profil:hover { border-color: var(--indigo-100); box-shadow: var(--shadow); }
.profil-ico { width: 56px; height: 56px; border-radius: var(--r); background: var(--indigo-50); color: var(--indigo); display: grid; place-items: center; margin-bottom: 8px; transition: background-color .3s, color .3s; }
.profil-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.profil:hover .profil-ico { background: var(--indigo); color: #fff; }
.profil h3 { font-size: 1.35rem; }
.profil p { color: var(--muted); }
.profil > :not(.profil-deco) { position: relative; z-index: 1; }
.profil-deco { position: absolute; z-index: 0; right: -26px; bottom: -34px; width: 120px; height: 130px; fill: var(--indigo-50); transition: fill .4s, transform .6s var(--ease-out); }
.profil:hover .profil-deco { fill: var(--vert); transform: translate(-8px, -8px) rotate(-4deg); }
@media (min-width: 1024px) { .profil-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 08 FAQ ---------- */
.faq-grid { display: grid; gap: 40px; }
.faq-head { display: grid; gap: 20px; align-content: start; }
.faq-head .eyebrow { margin-bottom: 0; }
.faq-head p:last-child { color: var(--muted); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:first-child { border-top: 1px solid var(--line); }
.acc-item h3 { font-size: inherit; }
.acc-item button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; border: 0; background: none; text-align: left;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem); font-weight: 600; line-height: 1.4; letter-spacing: -.01em;
}
.acc-item button i { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, transform .5s var(--ease-out); }
.acc-item button i::before, .acc-item button i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--encre); transition: transform .4s var(--ease-out), background-color .3s; }
.acc-item button i::after { transform: rotate(90deg); }
.acc-item button:hover i { background: var(--indigo-50); }
.acc-item button[aria-expanded="true"] i { background: var(--indigo); transform: rotate(180deg); }
.acc-item button[aria-expanded="true"] i::before, .acc-item button[aria-expanded="true"] i::after { background: #fff; }
.acc-item button[aria-expanded="true"] i::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.acc-panel > div { overflow: hidden; }
.acc-panel p { color: var(--muted); padding: 0 56px 24px 0; max-width: 64ch; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
html:not(.js) .acc-panel { grid-template-rows: 1fr; }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .faq-head { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* ---------- 09 Contact ---------- */
.contact { padding-bottom: 0; }
.contact-grid { display: grid; gap: 48px; align-items: start; }
.contact-copy { display: grid; gap: 24px; align-content: start; }
.contact-copy .eyebrow { margin-bottom: -4px; }
.contact-copy h2 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); }
.contact-points { display: grid; gap: 14px; margin-top: 8px; }
.contact-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact-points svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--vert); fill: none; stroke: var(--encre); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact-3d { display: none; }
@media (min-width: 1024px) {
  .contact-3d { display: block; width: min(100%, 380px); aspect-ratio: 1.1; margin: 8px 0 0 -24px; opacity: 0; transition: opacity 1s var(--ease-out); }
  .contact.has-3d .contact-3d { opacity: 1; }
  .contact.has-3d .deco-leaf { display: none; }
}
.form-card { position: relative; padding: clamp(22px, 4vw, 40px); border-radius: var(--r-xl); background: #fff; color: var(--encre); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .6); }
.form { display: grid; gap: 18px; }
.form[hidden] { display: none; }
.form-card .link { color: var(--indigo); }
.form-row { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { font-size: .88rem; font-weight: 600; }
.field legend { padding: 0; margin-bottom: 8px; }
.field label span[aria-hidden], .field legend span[aria-hidden] { color: var(--indigo); }
.opt { color: var(--muted); font-weight: 400; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--fond); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323243D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C9CBDB; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 4px rgba(76, 70, 200, .14); }
.form .field input[aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]), .form .field select[aria-invalid="true"] { border-color: var(--error); }
.form .chips input[aria-invalid="true"] + span { border-color: var(--error); }
.field-err { font-size: .8rem; color: var(--error); font-weight: 500; }
.field-err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; float: left; }
.chips label { position: relative; cursor: pointer; }
.chips label span { display: block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--fond); font-size: .92rem; font-weight: 500; transition: all .2s; }
.chips label:hover span { border-color: #C9CBDB; }
.chips input:checked + span { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--indigo); outline-offset: 2px; }
.chips .field-err { width: 100%; }
.consent label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: .84rem; font-weight: 400; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--indigo); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 4px; }
.btn-spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-loading .btn-label { opacity: .6; }
.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { font-size: .88rem; color: var(--error); text-align: center; }
.form-status:empty { display: none; }
.form-success { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 48px 8px; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 1.6rem; letter-spacing: -.02em; }
.form-success p { color: var(--muted); max-width: 40ch; }
.fs-mark { width: 88px; overflow: visible; margin-bottom: 8px; }
.fs-bar { fill: var(--indigo); animation: introBar .8s var(--ease-out) both; }
.fs-leaf { fill: var(--vert); animation: introLeaf .8s var(--ease-out) .15s both; }
.form-demo { font-size: .8rem; padding: 8px 14px; border-radius: var(--r-sm); background: var(--indigo-50); color: var(--indigo) !important; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; }
  .contact-copy { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* ---------- Pied de page ---------- */
.footer { margin-top: clamp(80px, 10vw, 128px); padding: 40px 0 32px; border-top: 1px solid var(--line-dark); display: grid; gap: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px; }
.footer-logo img { height: 46px; width: auto; margin-left: -8px; }
.footer-top p { color: var(--muted-dark); max-width: 42ch; font-size: .92rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: .86rem; color: var(--muted-dark); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a { text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Mouvement réduit ---------- */
html.reduced *, html.reduced *::before, html.reduced *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
  transition-duration: .001ms !important; transition-delay: 0s !important;
}
html.reduced .marquee-track { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hv-item, .scroll-cue i::after { animation: none !important; }
}
