/* ==========================================================================
   Clavette — démo « produit vivant » — Magrit's Ind Web
   ========================================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --sunk: #f3f1ec;
  --ink: #16181d;
  --ink-2: #2a2d35;
  --muted: #555b66;
  --line: #e4e0d8;
  --line-2: #d6d1c6;
  --accent: #ff5a1f;
  --accent-soft: #ffe7dc;
  --accent-text: #b83a0c;
  --ok: #157a3c;
  --ok-soft: #dcf3e4;
  --warn: #8a5a00;
  --warn-soft: #fff1cc;
  --late: #b42318;
  --late-soft: #fde4e1;
  --info: #1f5fbf;
  --info-soft: #e1ecfb;
  --r-lg: 20px;
  --r: 14px;
  --r-sm: 9px;
  --shadow-1: 0 1px 2px rgba(22, 24, 29, .06), 0 2px 8px rgba(22, 24, 29, .05);
  --shadow-2: 0 2px 4px rgba(22, 24, 29, .05), 0 18px 40px -12px rgba(22, 24, 29, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.45, .64, 1);
  --font-display: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.2rem + 4.6vw, 4.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); letter-spacing: -.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent-text); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--accent);
  border-radius: 6px;
}
.on-dark :focus-visible { outline-color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--sunk { background: var(--sunk); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: .875rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--muted); line-height: 1.55; max-width: 38em; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.note { font-size: .875rem; color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em;
  border-radius: 999px; border: 2px solid var(--b);
  font-family: var(--font-display); font-weight: 650; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, color .2s, box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--accent); --b: var(--accent); color: var(--ink); box-shadow: 0 6px 18px -6px rgba(255, 90, 31, .55); }
.btn--primary:hover { color: var(--ink); background: #ff6d38; box-shadow: 0 10px 24px -8px rgba(255, 90, 31, .7); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); }
.btn--light { background: #fff; --b: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); --b: var(--accent); color: var(--ink); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Bandeau démo ---------- */
.demo-band {
  background: var(--ink); color: #e9e7e2;
  font-size: .8125rem; line-height: 1.35; text-align: center;
  padding: 7px var(--gutter);
}
.demo-band p { margin: 0; }
.demo-band a { color: #ffb08f; font-weight: 600; display: inline-block; padding-block: 4px; }
.demo-band a:hover { color: #fff; }
.demo-band .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(22, 24, 29, .4); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 750; font-size: 1.35rem; letter-spacing: -.03em; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .98rem;
  transition: background-color .2s, color .2s;
}
.nav__links a:hover { background: var(--sunk); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
.nav__cta { margin-left: 8px; }
.nav__cta .btn { min-height: 44px; padding-block: .55em; }
.burger {
  display: none; width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); position: relative;
  transition: transform .3s var(--ease), background-color .2s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
    box-shadow: 0 24px 40px -24px rgba(22, 24, 29, .35);
    display: none;
  }
  .nav__menu.is-open { display: block; animation: menuIn .3s var(--ease); }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__links a { min-height: 52px; font-size: 1.1rem; padding: 0 16px; border-radius: 12px; }
  .nav__cta { margin: 12px 0 0; }
  .nav__cta .btn { width: 100%; min-height: 52px; }
}
.no-js .nav__menu { display: block; position: static; box-shadow: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Héros ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  opacity: .55;
}
.hero__grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; }
@media (min-width: 1040px) { .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.hero h1 .hl {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 90% / 100% .2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.js .hero h1 .hl { background-size: 0% .2em; animation: underline .9s .5s var(--ease) forwards; }
@keyframes underline { to { background-size: 100% .2em; } }
.hero .lead { margin-bottom: 1.75rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 1.5rem; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

/* ---------- Maquette d'application ---------- */
.app {
  position: relative; isolation: isolate;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2), 0 0 0 8px rgba(22, 24, 29, .03);
  font-size: 13px; line-height: 1.35; color: var(--ink);
  overflow: hidden; user-select: none;
  container-type: inline-size;
}
.app__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #faf9f6; }
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
svg.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app__dots i:first-child { background: #f0a58c; }
.app__title { font-size: 12px; color: var(--muted); font-weight: 600; margin: 0 auto; padding-right: 40px; }
.app__body { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 0; }
.app__side { border-right: 1px solid var(--line); padding: 14px 10px; background: #fcfbf9; display: flex; flex-direction: column; gap: 3px; }
.app__side .s-item { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.app__side .s-item svg { width: 16px; height: 16px; flex: none; }
.app__side .s-item.is-active { background: var(--ink); color: #fff; }
.app__side .s-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 750; font-size: 15px; padding: 2px 8px 12px; letter-spacing: -.02em; }
.app__side .s-logo svg { width: 22px; height: 22px; }
.app__main { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.app__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app__hello { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 0; letter-spacing: -.02em; }
.app__date { margin: 0; color: var(--muted); font-size: 12px; }
.app__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  background: var(--accent); color: var(--ink); font-weight: 700; font-size: 12px; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s;
}
.app__btn svg { width: 12px; height: 12px; }
.app__btn.is-pressed { transform: scale(.92); box-shadow: 0 0 0 5px rgba(255, 90, 31, .25); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); min-width: 0; }
.kpi__label { color: var(--muted); font-size: 11.5px; font-weight: 600; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__value { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi__value small { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi__bar { height: 5px; border-radius: 5px; background: var(--sunk); margin-top: 8px; overflow: hidden; }
.kpi__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--ok); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1s var(--ease); }
.kpi--accent .kpi__value { color: var(--accent-text); }
.kpi.is-bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.04); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); } }
.app__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 10px; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; background: var(--surface); }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.panel__title { font-weight: 700; font-size: 12.5px; margin: 0; }
.panel__sub { color: var(--muted); font-size: 11px; margin: 0; white-space: nowrap; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.chart .area { fill: url(#areaFill); opacity: 0; transition: opacity .8s .6s; }
.chart .dot { fill: #fff; stroke: var(--accent); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .3s; }
.chart .dot-halo { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; }
.chart .lbl { fill: var(--muted); font-size: 10px; font-family: var(--font-body); }
.chart.is-drawn .line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease); }
.chart.is-drawn .area { opacity: 1; }
.chart.is-drawn .dot { opacity: 1; transition-delay: 1.4s; }
.chart.is-ping .dot-halo { animation: halo 1.2s var(--ease); }
@keyframes halo { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.rows { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; background: var(--bg); border: 1px solid transparent; transition: background-color .25s, border-color .25s, opacity .45s var(--ease), transform .45s var(--ease); }
.row__time { font-weight: 700; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.row__what { min-width: 0; }
.row__what b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__what span { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.is-hover { background: #fff; border-color: var(--line-2); box-shadow: var(--shadow-1); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--late { background: var(--late-soft); color: var(--late); }
.pill--info { background: var(--info-soft); color: var(--info); }
.pill--muted { background: var(--sunk); color: var(--muted); }

/* Notifications simulées */
.toasts { position: absolute; right: 14px; bottom: 14px; z-index: 5; width: min(270px, calc(100% - 28px)); pointer-events: none; }
.toast {
  position: absolute; right: 0; bottom: 0; width: 100%;
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px;
  box-shadow: 0 16px 30px -12px rgba(22, 24, 29, .55);
  opacity: 0; transform: translateY(16px) scale(.96);
  transition: opacity .35s var(--ease), transform .45s var(--ease-spring);
}
.toast.is-in { opacity: 1; transform: none; }
.toast.is-gone { opacity: 0; transform: translateY(-14px) scale(.97); transition-duration: .3s; }
.toast__ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.toast__ico svg { width: 16px; height: 16px; }
.toast__ico--ok { background: #1f8f4a; }
.toast__ico--accent { background: var(--accent); color: var(--ink); }
.toast b { display: block; font-size: 12px; }
.toast b + span { display: block; font-size: 11px; color: #c9c7c1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Curseur simulé */
.cursor {
  position: absolute; left: 0; top: 0; z-index: 6; width: 22px; height: 22px; pointer-events: none;
  transform: translate(var(--cx, 60%), var(--cy, 120%)); opacity: 0;
  transition: transform .9s cubic-bezier(.45, .05, .25, 1), opacity .3s;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25));
}
.cursor.is-on { opacity: 1; }
.cursor svg { width: 22px; height: 22px; }
.cursor::after {
  content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0; transform: scale(.4);
}
.cursor.is-click::after { animation: clickRing .5s var(--ease); }
.cursor.is-grab svg { transform: scale(.88); }
@keyframes clickRing { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }

/* États de la boucle (apparitions) */
.js [data-tl] .tl-in { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .55s var(--ease); }
.js [data-tl] .tl-in.is-in { opacity: 1; transform: none; }
.js [data-tl].is-out .tl-in, .js [data-tl].is-out .chart, .js [data-tl].is-out .fade-out { opacity: 0; transition: opacity .6s; }
.js [data-tl] .chart { transition: opacity .6s; }

/* Maquette réduite */
@container (max-width: 720px) {
  .app__body { grid-template-columns: 56px minmax(0, 1fr); }
  .app__side { padding: 14px 8px; align-items: center; }
  .app__side span { display: none; }
  .app__side .s-item { padding: 8px; }
  .app__side .s-logo { padding: 2px 0 12px; }
}
@container (max-width: 560px) {
  .app__body { grid-template-columns: 1fr; }
  .app__side { display: none; }
  .app__grid { grid-template-columns: 1fr; }
  .app__main { padding: 12px; }
}
@container (max-width: 400px) {
  .kpis { gap: 6px; }
  .kpi { padding: 8px; }
  .kpi__value { font-size: 15px; }
  .kpi__label { font-size: 10.5px; }
  .app__btn span { display: none; }
  .app__btn { padding: 8px; }
  .row--extra { display: none; }
  .app__title { padding-right: 0; }
}

/* ---------- Métiers (à la place des logos) ---------- */
.trades { padding-block: 36px; border-block: 1px solid var(--line); }
.trades__label { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.trades__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin: 0; padding: 0; list-style: none; }
.trade { display: inline-flex; align-items: center; gap: 8px; color: #4a4f59; font-size: 1.15rem; min-height: 44px; transition: color .2s; }
.trade svg { width: 22px; height: 22px; flex: none; }
.trade:hover { color: var(--ink); }
.t1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em; }
.t2 { font-family: var(--font-body); font-weight: 300; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; }
.t3 { font-family: var(--font-display); font-weight: 500; font-style: italic; }
.t4 { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 1rem; }
.t5 { font-family: var(--font-display); font-weight: 300; letter-spacing: -.01em; font-size: 1.3rem; }

/* ---------- Cartes / grilles ---------- */
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px); position: relative;
  transition: box-shadow .35s var(--ease), border-color .35s;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent-text);
}
.ico svg { width: 24px; height: 24px; }
.ico--dark { background: var(--ink); color: var(--accent); }

[data-tilt] { transform-style: preserve-3d; will-change: transform; transition: transform .5s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
[data-tilt].is-tilting { transition: transform .08s linear, box-shadow .35s var(--ease); box-shadow: var(--shadow-2); border-color: var(--line-2); }
[data-tilt] .tilt-pop { transform: translateZ(28px); }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
[data-tilt].is-tilting::after { opacity: 1; }

/* Bénéfices chiffrés */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.stat { padding: 26px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.stat__num { font-family: var(--font-display); font-weight: 750; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); letter-spacing: -.04em; line-height: 1; margin: 0 0 12px; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat__num .u { color: var(--accent-text); }
.stat p { margin: 0; color: var(--muted); }
.stat .stat__num { color: var(--ink); margin: 0 0 12px; }

/* Fonctionnalités clés (accueil) */
.feature-card { display: flex; flex-direction: column; overflow: hidden; }
.feature-card .mini { height: 128px; display: flex; flex-direction: column; justify-content: center; margin: -4px -4px 22px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); padding: 14px; font-size: 12.5px; }
.feature-card .link { margin-top: auto; padding-top: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.mini-line { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.mini-line:last-child { border-bottom: 0; font-weight: 700; }
.mini-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.mini-week span { height: 34px; border-radius: 6px; background: var(--sunk); }
.mini-week .b1 { background: var(--accent); }
.mini-week .b2 { background: #ffc4ab; }
.mini-week .b3 { background: var(--ink); }
.mini-steps { display: flex; align-items: center; gap: 6px; }
.mini-steps i { flex: 1; height: 6px; border-radius: 6px; background: var(--ok); }
.mini-steps i.off { background: var(--line-2); }

/* Témoignages */
.quotes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.quote { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.quote blockquote p { color: var(--ink-2); }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; color: var(--ink-2); }
.quote blockquote::before { content: "«\00a0"; color: var(--accent-text); font-weight: 700; }
.quote blockquote::after { content: "\00a0»"; color: var(--accent-text); font-weight: 700; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--ink); background: var(--accent-soft); flex: none; }
.avatar--b { background: #dce9f9; }
.avatar--c { background: var(--ok-soft); }
.quote figcaption b { display: block; }
.quote figcaption span { color: var(--muted); font-size: .95rem; }

/* Bandeau CTA */
.cta {
  background: var(--ink); color: #f4f2ee; border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(36px, 6vw, 72px); position: relative; overflow: hidden;
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr auto; } }
.cta h2 { color: #fff; margin-bottom: .35em; }
.cta p { color: #c9c7c1; margin: 0; max-width: 34em; }
.cta::before {
  content: ""; position: absolute; right: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%;
  border: 60px solid var(--accent); opacity: .16; pointer-events: none;
}
.cta > * { position: relative; }

/* ---------- Sections alternées (fonctionnalités) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 56px); }
.page-hero .lead { margin-bottom: 0; }
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .split--rev > :first-child { order: 2; }
}
.split + .split { margin-top: clamp(72px, 10vw, 140px); }
.checks { margin: 1.4rem 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checks svg { width: 24px; height: 24px; color: var(--ok); margin-top: 1px; }
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: 18px; }

.stage { position: relative; padding: clamp(14px, 3vw, 32px); border-radius: 26px; background: var(--sunk); border: 1px solid var(--line); }
.stage::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 18px 18px; opacity: .7;
}
.stage > :not(.cursor) { position: relative; }

/* Devis */
.quote-doc { background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-2); padding: 18px; font-size: 13px; position: relative; overflow: hidden; }
.qd-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.qd-head b { font-family: var(--font-display); font-size: 16px; letter-spacing: -.02em; display: block; }
.qd-head span { color: var(--muted); font-size: 12px; }
.qd-status { position: relative; min-width: 96px; height: 24px; }
.qd-status .pill { position: absolute; right: 0; top: 0; transition: opacity .3s, transform .35s var(--ease-spring); }
.qd-status .pill:not(.is-on) { opacity: 0; transform: scale(.7); }
.qd-lines { margin: 0; padding: 0; list-style: none; }
.qd-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.qd-line span { color: var(--muted); font-size: 11.5px; display: block; }
.qd-line b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-line .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qd-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.qd-total { font-size: 12px; color: var(--muted); }
.qd-total strong { display: block; font-family: var(--font-display); font-size: 22px; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qd-send { padding: 9px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 12px; display: inline-flex; gap: 6px; align-items: center; transition: transform .15s, background-color .2s; }
.qd-send svg { width: 13px; height: 13px; }
.qd-send.is-pressed { transform: scale(.92); background: var(--accent); color: var(--ink); }
.qd-signrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); min-height: 44px; }
.qd-signrow .qd-signed { margin: 0; }
.qd-sign { width: 96px; height: 32px; color: var(--ink); opacity: .85; flex: none; }
.qd-sign path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.qd-sign.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease); }

/* Planning */
.board { background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-2); padding: 14px; font-size: 12px; position: relative; }
.board__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.board__head b { font-family: var(--font-display); font-size: 15px; }
.board__wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.board-pool { position: relative; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px; border: 1.5px dashed var(--line-2); border-radius: 10px; background: var(--bg); min-height: 50px; }
.board-pool__label { color: var(--muted); font-weight: 600; font-size: 11px; width: 100%; }
.week { display: grid; grid-template-columns: 64px repeat(5, minmax(0, 1fr)); gap: 4px; }
.week .h { font-weight: 700; color: var(--muted); font-size: 11px; text-align: center; padding-bottom: 2px; }
.week .who { font-weight: 700; font-size: 11px; display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
.week .who i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); flex: none; }
.week .who:nth-of-type(2n) i { background: #dce9f9; }
.slot { height: 40px; border-radius: 7px; background: var(--sunk); position: relative; transition: background-color .25s, box-shadow .25s; min-width: 0; }
.slot.is-target { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.job { position: absolute; inset: 3px; border-radius: 5px; padding: 3px 6px; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.25; display: flex; align-items: center; }
.job--a { background: #3a3f4a; }
.job--b { background: #ffc4ab; color: var(--ink); }
.job--new { background: var(--accent); color: var(--ink); }
.js [data-tl] .drag-card:not(.is-in) { opacity: 0; }
.qd-signed { margin: 10px 0 0; color: var(--ok); font-weight: 700; font-size: 11.5px; display: flex; align-items: center; gap: 6px; }
.qd-signed svg { width: 14px; height: 14px; }
.drag-card {
  display: inline-flex; flex-direction: column; padding: 6px 10px; border-radius: 8px; background: var(--accent); color: var(--ink);
  font-weight: 700; font-size: 11px; line-height: 1.25; position: relative; z-index: 4;
  transition: transform .9s cubic-bezier(.45, .05, .25, 1), box-shadow .25s, rotate .25s, opacity .35s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
  max-width: 100%;
}
.drag-card span { font-weight: 600; font-size: 10px; opacity: .85; }
.drag-card.is-lifted { box-shadow: 0 14px 26px -8px rgba(22, 24, 29, .45); rotate: -3deg; }
.drag-card.is-dropped { rotate: 0deg; }
.board__note { margin-top: 10px; display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 700; font-size: 11.5px; }
.board__note svg { width: 16px; height: 16px; }

/* Relances */
.dun { background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-2); padding: 18px; font-size: 13px; display: grid; gap: 16px; }
.dun__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dun__head b { font-family: var(--font-display); font-size: 16px; display: block; letter-spacing: -.02em; }
.dun__head span { color: var(--muted); font-size: 12px; }
.dun__day { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--sunk); white-space: nowrap; }
.dun__status { position: relative; min-width: 84px; height: 24px; }
.dun__status .pill { position: absolute; right: 0; top: 0; transition: opacity .3s, transform .35s var(--ease-spring); }
.dun__status .pill:not(.is-on) { opacity: 0; transform: scale(.7); }
.dun__steps { margin: 0; padding: 0; list-style: none; position: relative; display: grid; gap: 14px; }
.dun__steps::before, .dun__progress { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.dun__progress { background: var(--ok); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform .8s var(--ease); }
.dun__step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; position: relative; }
.dun__dot { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: background-color .3s, border-color .3s, color .3s, transform .4s var(--ease-spring); position: relative; z-index: 1; }
.dun__dot svg { width: 14px; height: 14px; }
.dun__step.is-done .dun__dot { background: var(--ok); border-color: var(--ok); color: #fff; transform: scale(1.08); }
.dun__step b { display: block; font-size: 13px; }
.dun__step > div span { color: var(--muted); font-size: 11.5px; display: block; }
.dun__mail { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); font-size: 12px; color: var(--ink-2); }
.dun__mail b { font-size: 11.5px; color: var(--muted); display: block; margin-bottom: 4px; font-weight: 600; }
.dun__mail p { margin: 0; min-height: 3.9em; }
.dun__mail .caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Intégrations */
.hub { position: relative; max-width: 760px; margin-inline: auto; }
.hub svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
.hub .wire { fill: none; stroke: var(--line-2); stroke-width: 2; }
.hub .flow { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 14; animation: flow 1.6s linear infinite; }
.hub .flow--rev { animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -40; } }
.hub__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(56px, 10vw, 120px) clamp(20px, 22vw, 240px); }
.hub__node { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-1); min-width: 0; }
.hub__node .ico { margin: 0; width: 44px; height: 44px; flex: none; }
.hub__node b { display: block; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink); }
.hub__node .txt span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.hub__center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 92px; height: 92px; border-radius: 26px; background: var(--ink); display: grid; place-items: center;
  box-shadow: 0 0 0 10px var(--bg), 0 0 0 11px var(--line), var(--shadow-2);
}
.hub__center svg { width: 48px; height: 48px; }
.hub__center::after { content: ""; position: absolute; inset: -11px; border-radius: 34px; border: 2px solid var(--accent); opacity: 0; animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { opacity: .6; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.25); } }
@media (max-width: 640px) {
  .hub__grid { grid-template-columns: 1fr; gap: 12px; }
  .hub__center { position: relative; left: auto; top: auto; transform: none; margin: 0 auto 22px; width: 76px; height: 76px; }
  .hub { display: flex; flex-direction: column; }
  .hub svg.wires { display: none; }
}

/* FAQ accordéon */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { margin: 0; font-size: 1.12rem; letter-spacing: -.01em; }
.faq__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  background: none; border: 0; padding: 20px 4px; min-height: 64px; cursor: pointer;
  font-family: var(--font-display); font-weight: 650; font-size: inherit; line-height: 1.3; color: var(--ink);
}
.faq__btn:hover { color: var(--accent-text); }
.faq__sign { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; transition: background-color .25s, border-color .25s, transform .35s var(--ease); }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; border-radius: 2px; translate: -50% -50%; transition: transform .35s var(--ease); }
.faq__sign::after { transform: rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__sign { background: var(--accent); border-color: var(--accent); transform: rotate(180deg); color: var(--ink); }
.faq__btn[aria-expanded="true"] .faq__sign::after { transform: rotate(0deg); }
.faq__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease); }
.js .faq__panel { grid-template-rows: 0fr; }
.js .faq__panel.is-open { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__panel p { color: var(--muted); padding: 0 52px 22px 4px; margin: 0; }
.js .faq__panel:not(.is-open) > div { visibility: hidden; transition: visibility 0s .4s; }

/* ---------- Tarifs ---------- */
.billing { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 auto clamp(32px, 4vw, 48px); border: 0; padding: 0; }
.billing legend { font-weight: 600; color: var(--muted); margin-bottom: 12px; text-align: center; width: 100%; padding: 0; }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 clamp(14px, 3vw, 24px); border-radius: 999px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: color .3s; color: var(--muted); }
.seg input:checked + label { color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg__thumb { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease-spring); }
.seg[data-value="annuel"] .seg__thumb { transform: translateX(100%); }
.save { font-size: .78rem; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 800; }

.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 32px); }
.plan--featured { background: var(--ink); color: #f4f2ee; border-color: var(--ink); }
.plan--featured p, .plan--featured .plan__list li { color: #c9c7c1; }
.plan--featured h3 { color: #fff; }
.plan--featured::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .1), transparent 45%); }
.plan__badge { position: absolute; top: 20px; right: 20px; font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); }
.plan__for { min-height: 3.2em; }
.card .price, .price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; font-family: var(--font-display); color: var(--ink); }
.plan--featured .price { color: #fff; }
.price__num { font-size: clamp(2.6rem, 2.2rem + 1.5vw, 3.3rem); font-weight: 750; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; transition: transform .35s var(--ease), opacity .25s; }
.price__num.is-flip { transform: translateY(-6px); opacity: .55; }
.price__per { color: var(--muted); font-weight: 600; font-family: var(--font-body); }
.plan--featured .price__per { color: #b9b6af; }
.price__note { font-size: .9rem; color: var(--muted); min-height: 1.5em; margin-bottom: 20px; }
.plan--featured .price__note { color: #b9b6af; }
.plan__list { list-style: none; margin: 22px 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.plan--featured .plan__list { border-top-color: #33363e; }
.plan__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); font-size: .98rem; }
.plan__list svg { width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
.plan--featured .plan__list svg { color: var(--accent); }
.plan .btn { margin-top: auto; }
.disclaimer { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; margin: 28px auto 0; padding: 14px 18px; border-radius: var(--r); background: var(--warn-soft); color: #5c3d00; font-size: .95rem; }
.disclaimer svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.disclaimer p { margin: 0; }

/* Tableau comparatif */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.table-wrap:focus-visible { outline-offset: 2px; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .98rem; }
.compare caption { text-align: left; padding: 18px 20px 0; color: var(--muted); font-size: .9rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { font-family: var(--font-display); font-size: 1.1rem; position: sticky; top: 0; background: var(--surface); }
.compare tbody th { text-align: left; font-weight: 600; color: var(--ink-2); }
.compare th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 190px; box-shadow: 1px 0 0 var(--line); }
.compare tr:last-child > * { border-bottom: 0; }
.compare tbody tr:hover > * { background: #fdfcfa; }
.compare .col-feat { background: #fff6f1; }
.compare tbody tr:hover > .col-feat { background: #fff0e8; }
.compare svg { width: 22px; height: 22px; margin: 0 auto; }
.compare .yes { color: var(--ok); }
.compare .no { color: #a19b90; }
.scroll-hint { display: none; font-size: .88rem; color: var(--muted); margin: 10px 0 0; align-items: center; gap: 6px; }
.scroll-hint svg { width: 16px; height: 16px; }
@media (max-width: 700px) { .scroll-hint { display: flex; } }

/* Simulateur */
.sim { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 900px) { .sim { grid-template-columns: 1.1fr 1fr; } }
.sim__controls { display: grid; gap: 22px; align-content: start; }
.field-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.range { flex: 1 1 200px; -webkit-appearance: none; appearance: none; height: 44px; background: transparent; cursor: pointer; min-width: 0; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--accent) var(--fill, 0%), var(--line) var(--fill, 0%)); }
.range::-moz-range-track { height: 8px; border-radius: 8px; background: var(--line); }
.range::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: none; }
.field .range { width: auto; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.field .range:focus { box-shadow: none; }
.field .num-input { width: 92px; flex: none; }
.num-input { width: 92px; min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; font-size: 1.1rem; text-align: center; font-variant-numeric: tabular-nums; }
.sim__result { background: var(--ink); color: #f4f2ee; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 6px; }
.sim__result .k { color: #b9b6af; font-size: .95rem; margin: 0; }
.sim__plan { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #fff; margin: 0 0 10px; }
.sim__price { font-family: var(--font-display); font-weight: 750; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); letter-spacing: -.04em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; margin: 0; }
.sim__price small { font-size: 1rem; color: #b9b6af; letter-spacing: 0; font-family: var(--font-body); font-weight: 600; }
.sim__detail { color: #c9c7c1; font-size: .95rem; margin: 10px 0 0; }
.sim__bars { display: grid; gap: 8px; margin-top: 18px; }
.sim__bar { display: grid; grid-template-columns: 64px minmax(0, 1fr) 92px; gap: 10px; align-items: center; font-size: .92rem; color: var(--muted); }
.sim__bar i { display: block; height: 10px; border-radius: 10px; background: var(--sunk); position: relative; overflow: hidden; }
.sim__bar i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--line-2); transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform .5s var(--ease); }
.sim__bar.is-best i::after { background: var(--accent); }
.sim__bar.is-best { color: var(--ink); font-weight: 700; }
.sim__bar output { text-align: right; font-variant-numeric: tabular-nums; }

/* Formulaire */
.form-card { max-width: 820px; margin-inline: auto; }
.form { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-weight: 700; font-size: .98rem; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: #fff; transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-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='%2316181d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 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: #b8b1a3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--late); background: #fffafa; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--late-soft); }
.field .hint { font-size: .88rem; color: var(--muted); margin: 0; }
.err { font-size: .9rem; color: var(--late); font-weight: 600; margin: 0; display: flex; gap: 6px; align-items: center; }
.err:empty { display: none; }
.err::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--late); color: #fff; font-size: .75rem; font-weight: 800; flex: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-weight: 500; cursor: pointer; }
.check input { width: 24px; height: 24px; min-height: 0; margin: 0; accent-color: var(--ink); cursor: pointer; }
.form-status { grid-column: 1 / -1; }
.form-status:empty { display: none; }
.form-status > div { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--ink); color: #fff; animation: statusIn .5s var(--ease-spring); }
.form-status svg { width: 24px; height: 24px; color: var(--accent); flex: none; }
.form-status p { margin: 0; }
.form-status.is-error > div { background: var(--late-soft); color: var(--late); }
.form-status.is-error svg { color: var(--late); }
@keyframes statusIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* Sécurité */
.sec-card { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.sec-card .ico { margin: 0; }
.sec-card h3 { font-size: 1.15rem; margin-bottom: .35em; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #c9c7c1; padding-top: clamp(56px, 7vw, 88px); margin-top: clamp(48px, 6vw, 80px); font-size: .98rem; }
.site-footer a { color: #f4f2ee; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand .brand { color: #fff; }
.footer__brand p { max-width: 30em; margin-top: 12px; }
.footer__title { font-family: var(--font-display); color: #fff; font-weight: 650; font-size: 1rem; margin-bottom: 8px; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__demo { border-top: 1px solid #2f323a; padding-block: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; font-size: .9rem; }
.footer__demo p { margin: 0; }
.footer__demo a { color: #ffb08f; font-weight: 700; display: inline; min-height: 0; padding-block: 12px; }
.footer__demo .made { display: inline-flex; align-items: center; gap: 10px; }
.footer__demo .made svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- Apparitions au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal][data-tilt].is-visible { transition: opacity .7s var(--ease), transform .5s var(--ease), box-shadow .35s var(--ease); transition-delay: var(--d, 0s), 0s, 0s; }
.js [data-reveal][data-tilt].is-visible.is-tilting { transition: transform .08s linear, box-shadow .35s var(--ease); }

.tl-reset, .tl-reset * { transition: none !important; animation: none !important; }

/* Pause des boucles hors écran / onglet caché */
.is-paused, .is-paused *, .page-hidden * { animation-play-state: paused !important; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero h1 .hl { background-size: 100% .2em; animation: none; }
  .cursor { display: none; }
  .hub .flow { animation: none; stroke-dasharray: none; opacity: .5; }
  .hub__center::after, .dun__mail .caret { display: none; }
}

/* Écrans très étroits */
@media (max-width: 380px) {
  body { font-size: 1rem; }
  .btn { padding-inline: 1.1em; white-space: normal; text-align: center; }
  .brand { font-size: 1.2rem; }
  .week { grid-template-columns: 46px repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .btn-row .btn { flex: 1 1 100%; }
  .demo-band { font-size: .75rem; }
}
.pool-empty { position: absolute; left: 0; right: 0; top: 50%; margin-top: 2px; text-align: center; color: var(--ok); font-weight: 700; font-size: 11.5px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pool-empty svg { width: 14px; height: 14px; }
.week .who i { display: grid; place-items: center; font-style: normal; font-size: 9px; font-weight: 800; color: var(--ink); }
@media (max-width: 520px) {
  .week { grid-template-columns: 22px repeat(5, minmax(0, 1fr)); gap: 3px; }
  .week .who > span { display: none; }
  .job { font-size: 9px; padding: 2px 4px; text-overflow: clip; }
  .slot { height: 36px; }
}
.site-footer .brand svg rect:first-child { fill: #2a2d35; }
@container (min-width: 561px) {
  .toasts { left: 72px; right: auto; }
  .toast { left: 0; right: auto; }
}
/* Grilles à 3 colonnes : pas de carte orpheline sur tablette */
.grid-3, .quotes, .plans { grid-template-columns: minmax(0, 1fr); }
.plans { max-width: 580px; margin-inline: auto; }
@media (min-width: 640px) and (max-width: 899px) { ol.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } ol.grid-3 .card { padding: 20px; } }
@media (min-width: 900px) {
  .grid-3, .quotes, .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { max-width: none; }
}
.stats, .grid-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .stats, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .stats, .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (min-width: 721px) { .toasts { left: 164px; } }
@container (min-width: 561px) { .toasts { width: min(250px, 40%); } }
