/* Uvey — site v2 « Le fil » : deux métiers, une seule conversation. */
:root {
  /* Thème sombre par défaut ; data-theme="light" force le clair (bouton soleil/lune). */
  --night: #0a2b3a; --night-2: #113b4d; --night-3: #17475c;
  --porcelain: #0b1d27; --paper: #112835;
  --ink: #e7eef2; --mist: #a3b6c0; --soft: #7b909b;
  --hair: rgba(255, 255, 255, .09); --line: rgba(255, 255, 255, .18);
  --teal: #2f8fb3; --teal-ink: #4ba7c9; --teal-soft: rgba(79, 170, 204, .18);
  --sky: #163a4c; --sky-2: #132f3f;
  --valid: #35c38d; --valid-soft: rgba(53, 195, 141, .16);
  --gold: #d6b86d; --gold-soft: rgba(214, 184, 109, .16); --gold-ink: #e8cf8a;
  --alert: #f08a7e; --alert-soft: rgba(240, 138, 126, .16);
  --accent-ink: #8fd0e6; --mark-bg: #e9f3f7; --mark-fg: #0a2b3a; --mark-hover: #ffffff;
  --ghost-bg: rgba(255, 255, 255, .04); --hdr-bg: rgba(11, 29, 39, .84); --band: #07161f; --rule: rgba(255, 255, 255, .45);
  --frame-edge: rgba(255, 255, 255, .12); --logo: #ffffff;
  --shadow-frame: 0 30px 60px -24px rgba(0, 0, 0, .7), 0 8px 18px -10px rgba(0, 0, 0, .5);
  color-scheme: dark;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px; --gutter: 24px;
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
:root[data-theme="light"] {
  --ink: #17313c; --mist: #5e7480; --soft: #8da0aa;
  --hair: #e3eaee; --line: #cfdbe1;
  --porcelain: #f3f6f8; --paper: #ffffff;
  --teal: #1d6a85; --teal-ink: #134d62; --teal-soft: #e4f0f4;
  --sky: #dcecf2; --sky-2: #ecf4f7;
  --valid: #1f9d6a; --valid-soft: #e1f4ea;
  --gold: #c7a35c; --gold-soft: #f7f0dc; --gold-ink: #7a5d22;
  --alert: #c0392b; --alert-soft: #fbe7e4;
  --accent-ink: var(--teal); --mark-bg: var(--night); --mark-fg: #ffffff; --mark-hover: var(--night-2);
  --ghost-bg: rgba(255, 255, 255, .6); --hdr-bg: rgba(243, 246, 248, .86); --band: var(--night); --rule: var(--night);
  --frame-edge: transparent; --logo: var(--night);
  --shadow-frame: 0 30px 60px -24px rgba(10, 43, 58, .35), 0 8px 18px -10px rgba(10, 43, 58, .25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--porcelain); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
#main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Type ---------- */
.display, h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
h1 { font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; }
h3 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; }
h4 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--mist); max-width: 34em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent-ink); }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.on-dark .kicker { color: var(--gold); }
em { font-style: italic; }
h1 em, h2 em, h3 em { color: var(--accent-ink); }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em { color: #a7d6e6; }
.muted { color: var(--mist); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15.5px; line-height: 1; white-space: nowrap; transition: transform .18s var(--ease), background .18s, color .18s, box-shadow .18s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--mark-bg); color: var(--mark-fg); box-shadow: 0 10px 24px -14px rgba(10, 43, 58, .8); }
.btn-primary:hover { background: var(--mark-hover); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-ink); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--ghost-bg); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-ink); }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: #e9f3f7; }
.btn-outline-light { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-play svg { width: 18px; height: 18px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16.5px; }
.link { color: var(--accent-ink); font-weight: 600; text-underline-offset: 4px; }
.link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--hdr-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.scrolled { border-bottom-color: var(--hair); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; color: var(--logo); flex: none; }
.logo svg { flex: none; }
.logo svg { height: 26px; width: auto; }
.logo .mark { width: 30px; height: 30px; margin-right: 8px; animation: spin 26s linear infinite; }
.logo .word { width: 61px; height: 21px; margin-top: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a { padding: 10px 13px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--mist); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: rgba(10, 43, 58, .06); }
.nav a.active { color: var(--ink); background: rgba(10, 43, 58, .08); }
.hdr .cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr .cta .btn { height: 42px; padding: 0 18px; font-size: 14.5px; }
.hdr .cta [data-for] { display: none; }
.hdr .cta [data-for].show { display: inline-flex; }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; margin-left: auto; }
.burger svg { width: 24px; height: 24px; margin: 0 auto; }
.mnav { display: none; }
@media (max-width: 920px) {
  .nav, .hdr .cta .login { display: none; }
  .burger { display: inline-flex; align-items: center; }
  .hdr .cta { margin-left: 0; }
  .hdr .cta .btn { display: none; }
  .mnav { display: block; position: fixed; inset: 72px 0 0; background: var(--porcelain); z-index: 39; padding: 20px var(--gutter); transform: translateX(100%); transition: transform .25s var(--ease); overflow: auto; }
  .mnav.open { transform: none; }
  .mnav a { display: block; padding: 14px 4px; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--hair); }
  .mnav .btn { display: inline-flex; margin-top: 18px; margin-right: 10px; border-bottom: 0; font-size: 15.5px; }
  .hdr .wrap { gap: 12px; }
  .hdr .cta .btn { height: 38px; padding: 0 14px; font-size: 13.5px; }
  .hdr .cta { gap: 6px; }
}
@media (max-width: 520px) {
  .hdr .theme { display: none; }
  .mnav .theme-row { display: flex; align-items: center; gap: 10px; padding: 14px 4px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--hair); }
  .mnav .theme-row .theme { display: inline-grid; }
}
@media (min-width: 521px) { .mnav .theme-row { display: none; } }

/* ---------- Hero (audience pages) ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 14px; color: var(--mist); }
.hero .proof span, .hero .proof .wa-link { display: inline-flex; align-items: center; gap: 8px; }
.hero .proof svg { width: 16px; height: 16px; color: var(--valid); }
.hero .proof .wa-link { color: var(--ink); font-weight: 600; }
.hero .proof .wa-link svg { color: #25d366; width: 18px; height: 18px; }
.hero .proof .wa-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero .glow { position: absolute; inset: auto -10% -30% 40%; height: 70%; background: radial-gradient(closest-side, rgba(29, 106, 133, .16), transparent 70%); pointer-events: none; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Device frame */
.frame { position: relative; border-radius: var(--r-l); background: var(--night); padding: 10px 10px 0; box-shadow: var(--shadow-frame); overflow: hidden; border: 1px solid var(--frame-edge); }
.frame .bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 8px; }
.frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.frame .bar .url { margin-left: 10px; height: 20px; padding: 0 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); font-size: 11.5px; display: inline-flex; align-items: center; gap: 6px; }
.frame img { width: 100%; height: auto; border-radius: 12px 12px 0 0; background: #fff; }
.frame.tilt { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
@media (max-width: 920px) { .frame.tilt { transform: none; } }
.stage { position: relative; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; background: var(--paper); border-radius: 12px; box-shadow: 0 16px 36px -18px rgba(10, 43, 58, .5), 0 0 0 1px var(--hair); font-size: 13px; line-height: 1.25; z-index: 2; }
.chip b { display: block; font-size: 13.5px; }
.chip small { color: var(--mist); font-size: 12px; }
.chip .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--valid-soft); color: var(--valid); }
.chip .ic.teal { background: var(--teal-soft); color: var(--teal); }
.chip .ic.gold { background: var(--gold-soft); color: var(--gold-ink); }
.chip .ic svg { width: 16px; height: 16px; }
.chip.a { right: -14px; top: 12%; animation: bob 7s ease-in-out infinite; }
.chip.b { left: -18px; bottom: 16%; animation: bob 8s ease-in-out 1.2s infinite; }
@media (max-width: 1100px) { .chip.a { right: 6px; } .chip.b { left: 6px; } }
@media (max-width: 640px) { .chip { display: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--paper); }
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding: 18px var(--gutter); font-size: 14.5px; font-weight: 600; color: var(--mist); }
@media (max-width: 640px) { .trust .wrap { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 24px; scrollbar-width: none; } .trust span { white-space: nowrap; } }
.trust span { display: inline-flex; align-items: center; gap: 9px; }
.trust svg { width: 18px; height: 18px; color: var(--teal); }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { margin: 14px 0 16px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }
.band { background: var(--band); color: #fff; }
.band.soft { background: var(--sky-2); color: var(--ink); }
.on-dark .lead { color: rgba(255, 255, 255, .72); }
.on-dark .muted { color: rgba(255, 255, 255, .65); }

/* ---------- Story (chapters + thread) ---------- */
.story { position: relative; }
.story .wrap { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); }
.thread { position: absolute; left: var(--gutter); top: 0; width: 64px; height: 100%; pointer-events: none; }
.thread path { fill: none; stroke-width: 2; stroke-linecap: round; }
.thread .ghost { stroke: var(--line); stroke-dasharray: 4 7; }
.thread .ink { stroke: var(--accent-ink); }
.thread .node { fill: var(--paper); stroke: var(--line); stroke-width: 2; transition: stroke .3s, fill .3s; }
.thread .node.lit { stroke: var(--accent-ink); fill: var(--accent-ink); }
.rider { position: absolute; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--teal); color: var(--teal); box-shadow: 0 8px 18px -8px rgba(10, 43, 58, .5); pointer-events: none; z-index: 3; transition: opacity .3s; }
.rider svg { width: 13px; height: 13px; }
.rider.ok { border-color: var(--valid); color: var(--valid); }
.rider.gold { border-color: var(--gold); color: var(--gold-ink); }
.chapters { grid-column: 2; }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 7vw, 104px) clamp(12px, 3vw, 40px); scroll-margin-top: 90px; }
.chapter + .chapter { border-top: 1px solid var(--hair); }
.chapter.flip .ch-visual { order: -1; }
.chapter .n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent-ink); margin-bottom: 10px; }
.chapter h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 16px; }
.chapter .lead { font-size: 18.5px; margin-bottom: 22px; }
.points { display: grid; gap: 12px; }
.points li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 16px; }
.points li svg { width: 22px; height: 22px; color: var(--valid); margin-top: 1px; }
.points li b { font-weight: 700; }
.points li span { color: var(--mist); display: block; font-size: 15px; }
.ch-visual { min-width: 0; }
@media (max-width: 920px) {
  .story .wrap { grid-template-columns: 28px minmax(0, 1fr); }
  .thread { width: 28px; }
  .rider { display: none; }
  .chapter { grid-template-columns: 1fr; padding-left: 12px; }
  .chapter.flip .ch-visual { order: 0; }
}

/* ---------- Panels & visuals ---------- */
.panel { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-m); box-shadow: 0 20px 40px -30px rgba(10, 43, 58, .35); }
.panel .ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--hair); font-size: 13px; font-weight: 700; color: var(--mist); }
.panel .ph .pill { font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--teal-soft); color: var(--teal-ink); }
.pill.ok { background: var(--valid-soft); color: var(--valid); }
.pill.gold { background: var(--gold-soft); color: var(--gold-ink); }
.pill.alert { background: var(--alert-soft); color: var(--alert); }
.pill.neutral { background: var(--hair); color: var(--mist); }

/* Flow (devis → encaissé) */
.flow { padding: 22px 18px 18px; }
.flow .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; position: relative; }
.flow .steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 20px; height: 2px; background: var(--hair); }
.flow .step { position: relative; text-align: center; font-size: 13px; font-weight: 700; color: var(--mist); }
.flow .step i { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 50%; background: var(--paper); border: 2px solid var(--hair); color: var(--soft); position: relative; transition: all .3s; }
.flow .step i svg { width: 18px; height: 18px; }
.flow .step.done i { border-color: var(--teal); color: var(--teal); }
.flow .step.now i { border-color: var(--valid); background: var(--valid); color: #fff; box-shadow: 0 0 0 6px var(--valid-soft); }
.flow .step.done, .flow .step.now { color: var(--ink); }
.flow .doc { margin-top: 20px; border: 1px solid var(--hair); border-radius: 10px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14px; }
.flow .doc b { font-size: 15px; }
.flow .doc .pill { white-space: nowrap; justify-self: end; }
@media (max-width: 480px) { .flow .doc { font-size: 13px; } .flow .step { font-size: 11.5px; } }
.flow .doc .tot { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px dashed var(--hair); padding-top: 10px; margin-top: 4px; font-weight: 700; }

/* Conversation (collaboration) */
.convo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.convo .side { padding: 18px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--hair); }
.convo .side h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.convo .side h4 i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--mark-bg); color: var(--mark-fg); font-family: var(--serif); font-style: italic; font-size: 17px; }
.convo .side.cab h4 i { background: var(--gold); color: var(--night); }
.convo .side li { display: flex; gap: 9px; font-size: 14.5px; color: var(--mist); padding: 5px 0; }
.convo .side li svg { width: 16px; height: 16px; color: var(--valid); flex: none; margin-top: 4px; }
.convo .line { grid-column: 1 / -1; position: relative; padding: 8px 0 0; }
.convo .msgs { display: grid; gap: 8px; }
.convo .msg { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--sky-2); font-size: 14px; max-width: 78%; opacity: .35; transform: translateY(6px); transition: opacity .35s, transform .35s, background .35s; }
.convo .msg.cab { margin-left: auto; background: var(--gold-soft); }
.convo .msg.on { opacity: 1; transform: none; }
.convo.static .msg { opacity: 1; transform: none; }
.convo .msg.ok.on { background: var(--valid-soft); }
.convo .msg i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--teal); flex: none; }
.convo .msg i svg { width: 12px; height: 12px; }
@media (max-width: 640px) { .convo { grid-template-columns: 1fr; } }

/* GED search demo */
.ged .search { display: flex; align-items: center; gap: 10px; margin: 14px 16px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 15px; }
.ged .search svg { width: 18px; height: 18px; color: var(--mist); }
.ged .search input { flex: 1; border: 0; outline: 0; font: inherit; background: transparent; color: var(--ink); min-width: 0; }
.rows .list { padding: 0 8px 10px; }
.rows .row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 10px; font-size: 14px; transition: background .2s, opacity .2s; }
.rows .row.hide { display: none; }
.rows .row.hit { background: var(--sky-2); }
.rows .row i { width: 36px; height: 36px; border-radius: 9px; background: var(--porcelain); display: grid; place-items: center; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.rows .row b { display: block; font-size: 14px; }
.rows .row small { color: var(--mist); font-size: 12.5px; }
.rows .count { padding: 8px 16px 14px; font-size: 13px; color: var(--mist); }

/* Treasury mini chart */
.tre { padding: 16px 16px 10px; }
.tre .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.tre .kpi { border: 1px solid var(--hair); border-radius: 10px; padding: 10px 12px; }
.tre .kpi small { display: block; color: var(--mist); font-size: 11.5px; font-weight: 600; }
.tre .kpi b { font-size: 16px; letter-spacing: -.01em; }
.tre .kpi .pill { margin-top: 4px; }

/* Écriture pré-saisie demo */
.entry { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px; }
.entry td.num, .entry .inv dd.num, .entry .inv .t span.num { white-space: nowrap; }
.entry .inv { border: 1px solid var(--hair); border-radius: 10px; padding: 14px; font-size: 13.5px; background: var(--porcelain); }
.entry .inv b { display: block; font-size: 15px; margin-bottom: 8px; }
.entry .inv dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 0; }
.entry .inv dt { color: var(--mist); } .entry .inv dd { margin: 0; text-align: right; }
.entry .inv .t { grid-column: 1 / -1; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 6px; display: flex; justify-content: space-between; font-weight: 700; }
.entry table { width: 100%; border-collapse: collapse; font-size: 13px; }
.entry th { text-align: left; font-size: 11px; color: var(--mist); font-weight: 700; padding: 4px 6px; border-bottom: 1px solid var(--hair); }
.entry td { padding: 7px 6px; border-bottom: 1px solid var(--hair); }
.entry td.r, .entry th.r { text-align: right; }
.entry tr.sum td { font-weight: 700; border-bottom: 0; }
.entry .foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.entry .foot .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.entry .foot .btn.done { background: var(--valid); color: #fff; pointer-events: none; }


/* Circuit stepper */
.circuit { padding: 18px 18px 12px; }
.circuit ol { display: grid; gap: 0; }
.circuit li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; border-radius: 10px; font-size: 14.5px; cursor: pointer; transition: background .2s; }
.circuit li:hover { background: var(--porcelain); }
.circuit li i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--hair); display: grid; place-items: center; color: var(--soft); font-size: 11px; font-weight: 800; transition: all .25s; }
.circuit li i svg { width: 13px; height: 13px; }
.circuit li.done i { border-color: var(--valid); background: var(--valid); color: #fff; }
.circuit li.now i { border-color: var(--teal); color: var(--teal); box-shadow: 0 0 0 5px var(--teal-soft); }
.circuit li .who { font-size: 12px; color: var(--mist); }
.circuit li.now .who { color: var(--teal); font-weight: 700; }
.circuit li.done span { color: var(--mist); }

/* Roles */
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.roles span { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; font-weight: 600; }
.roles span.lead-role { background: var(--mark-bg); color: var(--mark-fg); border-color: var(--mark-bg); }

/* Tabs + screenshot switcher */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tabs button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14.5px; color: var(--mist); transition: all .18s; }
.tabs button:hover { color: var(--ink); border-color: var(--teal); }
.tabs button[aria-selected="true"] { background: var(--mark-bg); color: var(--mark-fg); border-color: var(--mark-bg); }
.switcher .pane { display: none; }
.switcher .pane.on { display: block; }
.switcher .cap { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14.5px; color: var(--mist); }
.switcher .cap b { color: var(--ink); }

/* Modules grid */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module { padding: 24px 22px 22px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--hair); display: flex; flex-direction: column; gap: 12px; transition: transform .25s var(--ease), box-shadow .25s; }
.module:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(10, 43, 58, .45); }
.module .glyph { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-2); color: var(--teal); }
.module .glyph svg { width: 20px; height: 20px; }
.module h4 { font-size: 19px; }
.module ul { display: grid; gap: 6px; }
.module li { font-size: 14.5px; color: var(--mist); padding-left: 16px; position: relative; }
.module li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); opacity: .55; }
@media (max-width: 920px) { .modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .modules { grid-template-columns: 1fr; } }

/* Pays (cabinets) */
.countries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.country { padding: 22px 20px 20px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--hair); display: flex; flex-direction: column; gap: 10px; }
.country .flag { width: 44px; height: 32px; border-radius: 7px; display: grid; place-items: center; background: var(--mark-bg); color: var(--mark-fg); font-weight: 800; font-size: 13px; letter-spacing: .06em; }
.country h4 { font-size: 19px; }
.country ul { display: grid; gap: 8px; }
.country li { font-size: 14.5px; color: var(--mist); padding-left: 14px; position: relative; }
.country li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.country li b { color: var(--ink); font-weight: 700; }
.country.soon { border-style: dashed; background: transparent; }
.country.soon .flag { background: var(--gold-soft); color: var(--gold-ink); }
.country.soon p { font-size: 14.5px; color: var(--mist); }
@media (max-width: 1000px) { .countries { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .countries { grid-template-columns: 1fr; } }

/* Compliance */
.compliance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.comp { border-radius: var(--r-m); padding: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.comp .org { font-family: var(--serif); font-size: 30px; line-height: 1; color: #fff; }
.comp h4 { color: #fff; margin: 10px 0 6px; font-size: 17px; }
.comp p { font-size: 14px; color: rgba(255, 255, 255, .7); }
.comp .who { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.comp .who span { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; }
.comp .who span.you { background: #fff; color: var(--night); }
.comp .who span.cab { background: var(--gold); color: var(--night); }
@media (max-width: 920px) { .compliance { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .compliance { grid-template-columns: 1fr; } }

/* Security */
.secu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.secu div { padding-top: 18px; border-top: 2px solid var(--rule); }
.secu h4 { margin-bottom: 6px; }
.secu p { font-size: 15px; color: var(--mist); }
@media (max-width: 920px) { .secu { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .secu { grid-template-columns: 1fr; } }

/* Steps (démarrer / déploiement) */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.stepc { position: relative; padding: 26px 22px 22px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--hair); }
.stepc::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--mark-bg); color: var(--mark-fg); font-family: var(--serif); font-style: italic; font-size: 19px; display: grid; place-items: center; }
.stepc h4 { margin-bottom: 6px; font-size: 18px; }
.stepc p { font-size: 15px; color: var(--mist); }
.band.soft .stepc { border-color: transparent; }
.incl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.incl span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--hair); font-size: 14px; font-weight: 600; }
.incl svg { width: 16px; height: 16px; color: var(--valid); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-of-type { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 12px; height: 12px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(225deg); top: 32px; }
.faq .a { padding: 0 0 22px; color: var(--mist); max-width: 46em; }
.faq .more { margin-top: 28px; text-align: center; }

/* Doors (home) */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.door { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 28px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--hair); position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.door:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -32px rgba(10, 43, 58, .5); }
.door .who { font-family: var(--serif); font-style: italic; color: var(--accent-ink); font-size: 20px; }
.door h3 { margin: 6px 0 10px; }
.door .frame { margin-top: 8px; }
.door ul { display: grid; gap: 8px; }
.door li { display: flex; gap: 10px; font-size: 15px; color: var(--mist); }
.door li svg { width: 18px; height: 18px; color: var(--valid); flex: none; margin-top: 3px; }
.door .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.door.cab .who { color: var(--gold-ink); }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }

/* Home hero */
.hero-home { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); text-align: center; }
.hero-home h1 { max-width: 19ch; margin: 18px auto 20px; }
.hero-home .lead { margin: 0 auto; }
.hero-home .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-home .scene { position: relative; max-width: 980px; margin: clamp(40px, 6vw, 72px) auto 0; }

/* Collaboration scene */
.scene .cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(60px, 16vw, 220px); position: relative; z-index: 1; }
.scene .card { text-align: left; padding: 20px 20px 16px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--hair); box-shadow: 0 24px 48px -32px rgba(10, 43, 58, .45); }
.scene .card h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.scene .card h4 i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--mark-bg); color: var(--mark-fg); font-family: var(--serif); font-style: italic; font-size: 17px; }
.scene .card.cab h4 i { background: var(--gold); color: var(--night); }
.scene .card li { display: flex; gap: 9px; font-size: 14px; color: var(--mist); padding: 4px 0; }
.scene .card li svg { width: 16px; height: 16px; color: var(--valid); flex: none; margin-top: 3px; }
.scene .wire { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scene .wire path { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 5 8; }
.scene .parcel { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 9px; border-radius: 999px; background: var(--mark-bg); color: var(--mark-fg); font-size: 13.5px; font-weight: 700; box-shadow: 0 16px 30px -14px rgba(10, 43, 58, .7); white-space: nowrap; }
.scene .parcel i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .15); }
.scene .parcel i svg { width: 12px; height: 12px; }
.scene .parcel.ok { background: var(--valid); }
.scene .legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 22px; font-size: 13px; color: var(--mist); }
.scene .legend span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--hair); background: var(--paper); transition: all .3s; }
.scene .legend span.on { background: var(--mark-bg); color: var(--mark-fg); border-color: var(--mark-bg); }
@media (max-width: 640px) { .scene .cards { grid-template-columns: 1fr; gap: 70px; } .scene .legend { display: none; } }

/* Manifesto (3 short claims) */
.claims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.claim { padding: 26px 24px; border-radius: var(--r-m); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.claim .big { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); line-height: 1; color: #fff; }
.claim p { margin-top: 8px; color: rgba(255, 255, 255, .72); font-size: 15px; }
@media (max-width: 760px) { .claims { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin: 14px auto 14px; }
.cta-band .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-band .note { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.band.soft .note { color: var(--mist); }

/* Switch audience */
.switch { border-top: 1px solid var(--hair); }
.switch .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 34px; padding-bottom: 34px; }
.switch h3 { font-size: 26px; }
.switch p { color: var(--mist); }

/* Footer */
.ftr { background: var(--band); color: rgba(255, 255, 255, .72); padding: 56px 0 28px; }
.ftr .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.ftr .logo { color: #fff; margin-bottom: 14px; }
.ftr h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.ftr li { padding: 4px 0; font-size: 14.5px; }
.ftr a:hover { color: #fff; }
.ftr .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.ftr .bottom a { margin-right: 16px; }
.ftr .label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; color: #fff; margin-top: 10px; }
.ftr .label svg { width: 14px; height: 14px; color: var(--gold); }
@media (max-width: 860px) { .ftr .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ftr .top { grid-template-columns: 1fr; } }

/* Video modal */
.vmodal { position: fixed; inset: 0; z-index: 60; background: rgba(10, 43, 58, .82); display: grid; place-items: center; padding: 20px; }
.vmodal[hidden] { display: none; }
.vmodal .box { width: min(1000px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.vmodal video, .vmodal iframe { width: 100%; height: 100%; border: 0; }
.vmodal .close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--night); display: grid; place-items: center; }
.vmodal .close svg { width: 18px; height: 18px; }

/* ---------- Film : la vidéo joue dans la bande nuit, bords fondus, halo ambiant ---------- */
/* --glow : couleur moyenne des bords de l'image (halo) ; --feather : largeur du fondu des bords, large quand
   l'image est sombre (elle se fond dans la bande), quasi nulle quand elle est claire (écran net, coins arrondis). */
@property --glow { syntax: "<color>"; inherits: true; initial-value: #072432; }
@property --feather { syntax: "<length>"; inherits: true; initial-value: 64px; }
.film .sec-head { margin-bottom: clamp(26px, 4vw, 44px); }
.film-stage { --glow: #072432; --feather: 64px; position: relative; max-width: 1040px; margin: 0 auto; transition: --glow .9s linear, --feather .7s var(--ease); }
.band.on-dark .film-stage { margin-top: clamp(28px, 4vw, 48px); margin-bottom: clamp(36px, 5vw, 60px); }
.film .film-stage { margin-top: 0; margin-bottom: 0; }
.film-screen { position: relative; isolation: isolate; }
.film-screen::before { content: ""; position: absolute; inset: -16% -9%; z-index: -1; pointer-events: none; opacity: .45; background: radial-gradient(52% 50% at 50% 50%, var(--glow) 0%, transparent 70%); }
.film-video { position: relative; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: transparent; border-radius: 18px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent), linear-gradient(to bottom, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent), linear-gradient(to bottom, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent);
  mask-composite: intersect; }
.film-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 86px; height: 86px; border-radius: 50%; background: #fff; color: var(--night); display: grid; place-items: center; box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .7); transition: transform .2s var(--ease), background .2s; }
.film-play:hover { transform: scale(1.06); background: #e9f3f7; }
.film-play svg { width: 32px; height: 32px; margin-left: 4px; }
.film-play[hidden] { display: none; }
.film-bar { height: 2px; margin: 10px 7% 0; background: rgba(255, 255, 255, .14); border-radius: 2px; overflow: hidden; }
.film-bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.film-ui { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 7% 0; }
.film-sound { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px 0 14px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .28); color: #fff; font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: border-color .18s, background .18s; }
.film-sound:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.film-sound svg { width: 18px; height: 18px; }
.film-sound .off { display: none; }
.film-sound[aria-pressed="true"] .on { display: none; }
.film-sound[aria-pressed="true"] .off { display: block; }
.film-time { font-size: 13.5px; color: rgba(255, 255, 255, .6); font-weight: 600; letter-spacing: .02em; }
.film-switch { display: flex; justify-content: center; gap: 4px; margin: 0 auto 22px; padding: 4px; width: max-content; max-width: 100%; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.film-switch button { padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: rgba(255, 255, 255, .7); white-space: nowrap; transition: background .2s, color .2s; }
.film-switch button:hover { color: #fff; }
.film-switch button[aria-selected="true"] { background: #fff; color: var(--night); }
.film-stage.switching .film-video { opacity: 0; }
.film-video { transition: opacity .35s; }
@media (max-width: 640px) {
  .film-bar, .film-ui { margin-left: 0; margin-right: 0; }
  .film-sound span { display: none; }
  .film-sound { padding: 0 12px; }
  .film-play { width: 68px; height: 68px; }
  .film-play svg { width: 26px; height: 26px; }
  .film-switch button { padding: 8px 12px; font-size: 13.5px; }
}

/* ---------- Motif : le symbole Uvey en filigrane, surtout sur l'accueil ---------- */
.motif::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; --base: 7%; --glint: 38%;
  background: linear-gradient(115deg, color-mix(in srgb, var(--ink) var(--base), transparent) 44%, color-mix(in srgb, var(--gold) var(--glint), transparent) 50%, color-mix(in srgb, var(--ink) var(--base), transparent) 56%);
  background-size: 260% 100%; background-position: 0 0; animation: glint 13s ease-in-out infinite;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-60 -60 460 460'%3E%3Cg fill='none' stroke='%23000' stroke-width='30' stroke-linejoin='round'%3E%3Cpath d='M233.6 46.5S164.9 123 204 145.6c41.9 24.2 80-11.6 121.9-49.6'/%3E%3Cpath d='M40.2 104.8s76.6 68.8 99.2 29.6c24.1-41.8-11.5-79.8-49.3-121.6'/%3E%3Cpath d='M96.5 298.2s68.8-76.6 29.6-99.2c-39-22.5-74.8 7-113.3 41.9'/%3E%3Cpath d='M291 239.9s-76.6-68.8-99.2-29.6c-22.6 39.2 7.3 75.1 42.4 113.9'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-size: 150px 150px; -webkit-mask-repeat: repeat; -webkit-mask-position: 50% 0;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-60 -60 460 460'%3E%3Cg fill='none' stroke='%23000' stroke-width='30' stroke-linejoin='round'%3E%3Cpath d='M233.6 46.5S164.9 123 204 145.6c41.9 24.2 80-11.6 121.9-49.6'/%3E%3Cpath d='M40.2 104.8s76.6 68.8 99.2 29.6c24.1-41.8-11.5-79.8-49.3-121.6'/%3E%3Cpath d='M96.5 298.2s68.8-76.6 29.6-99.2c-39-22.5-74.8 7-113.3 41.9'/%3E%3Cpath d='M291 239.9s-76.6-68.8-99.2-29.6c-22.6 39.2 7.3 75.1 42.4 113.9'/%3E%3C/g%3E%3C/svg%3E");
  mask-size: 150px 150px; mask-repeat: repeat; mask-position: 50% 0; }
.motif::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 70% 80% at 50% 40%, transparent 30%, var(--porcelain) 100%); }
.motif > .wrap { position: relative; z-index: 1; }
.motif > .glow { z-index: 1; }
.hero.motif::before { --base: 5%; --glint: 28%; animation-delay: 4s; }
:root[data-theme="light"] .motif::before { --base: 8%; --glint: 34%; }
:root[data-theme="light"] .hero.motif::before { --base: 6%; --glint: 24%; }
@keyframes glint { 0%, 55% { background-position: 0% 0; } 100% { background-position: 100% 0; } }
@supports not (color: color-mix(in srgb, red 5%, transparent)) { .motif::before { background: var(--ink); opacity: .04; animation: none; } }

/* ---------- Bouton « Réserver une démo » : reflet qui passe, halo doré (comme la v1) ---------- */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, var(--shine, rgba(199, 163, 92, .5)) 48%, transparent 66%); transform: translateX(-120%); animation: ctaShine 4.5s var(--ease) infinite; }
.btn-shine { animation: ctaPulse 4.5s ease-out infinite; }
.btn-shine:hover { box-shadow: 0 0 0 1px var(--gold), 0 16px 30px -12px rgba(0, 0, 0, .6), 0 0 36px -4px rgba(205, 185, 140, .55); }
:root[data-theme="light"] .btn-shine { --shine: rgba(232, 220, 187, .55); }
.btn-ghost.btn-shine { --shine: rgba(214, 184, 109, .35); }
@keyframes ctaShine { 0%, 55% { transform: translateX(-120%); } 80%, 100% { transform: translateX(120%); } }
@keyframes ctaPulse { 0%, 55% { box-shadow: 0 0 0 0 rgba(205, 185, 140, .55); } 85%, 100% { box-shadow: 0 0 0 12px rgba(205, 185, 140, 0); } }

/* WhatsApp : plus de bulle flottante (Crisp partout) ; lien dans le héros et la bande finale des cabinets */
.wa { display: none; position: fixed; right: 22px; bottom: 22px; z-index: 35; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; place-items: center; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }
.wa svg { width: 28px; height: 28px; }


/* ---------- Ajustements clair / sombre qui ne sont pas de purs jetons ---------- */
.band.soft { background: #0e2533; color: var(--ink); }
:root[data-theme="light"] .band.soft { background: var(--sky-2); }
.module:hover, .door:hover { box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .8); }
:root[data-theme="light"] .module:hover { box-shadow: 0 24px 40px -28px rgba(10, 43, 58, .45); }
:root[data-theme="light"] .door:hover { box-shadow: 0 30px 50px -32px rgba(10, 43, 58, .5); }
.hero .glow { background: radial-gradient(closest-side, rgba(79, 170, 204, .18), transparent 70%); }
:root[data-theme="light"] .hero .glow { background: radial-gradient(closest-side, rgba(29, 106, 133, .16), transparent 70%); }
.comp, .claim { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.frame img { filter: brightness(.96); }
:root[data-theme="light"] .frame img { filter: none; }

/* Bouton de thème */
.theme { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--mist); border: 1.5px solid var(--line); background: var(--ghost-bg); }
.theme:hover { color: var(--ink); border-color: var(--accent-ink); }
.theme svg { width: 18px; height: 18px; }
.theme .moon { display: none; }
:root[data-theme="light"] .theme .moon { display: block; }
:root[data-theme="light"] .theme .sun { display: none; }

/* ---------- Apparitions en fondu (JS pose data-reveal ; sans JS tout est visible) ---------- */
[data-reveal] { opacity: 0; }
[data-reveal].in { opacity: 1; animation: reveal .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 85ms); }
@keyframes reveal { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
/* Chapitres : révélés par le fil */
.chapter > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.chapter.in > * { opacity: 1; transform: none; }
.chapter.in > .ch-visual { transition-delay: .12s; }
/* Changement de page : fondu croisé */
#main.fade { opacity: 0; transition: opacity .16s; }
#main { transition: opacity .22s var(--ease); }
.hdr { view-transition-name: hdr; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .chapter > * { opacity: 1; transform: none; translate: none; }
  .rider { display: none; }
}

/* Static policy pages reuse the public site's typography and spacing. */
.legal { max-width: 900px; }
.legal h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 54px); line-height: 1.15; margin-bottom: 32px; }
.legal h2 { margin: 32px 0 12px; font-size: 24px; }
.legal p, .legal ul, .legal ol { margin: 12px 0; }
.legal li { margin: 8px 0; }
.legal a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.nav a[aria-current="page"], .mnav a[aria-current="page"] { color: var(--ink); }
html { overflow-x: clip; }
