/* Ponteo, feuille de style v2 (refonte 2026-09).
   Direction : sobre et haut de gamme, thème unique bleu marin (cahier de normes Ponteo v1.0),
   Manrope et JetBrains Mono hébergées, rayon unique 8 px, un accent (saumon), mouvement retenu.
   Brief : design/BRIEF-refonte-site.md (racine du projet). Aucune ressource externe. */

@import url("/assets/fonts/fonts.css");

:root {
  --ground: #0F1D30; --chapter: #14263E; --deep: #0A1424; --peak: #1B4D8F; --sky: #A9BEDD; --surface: #182C47;
  --ink: #FBFAF6; --ink-2: #EFEDE6; --muted: #B8C2D0; --muted-2: #8C99AB;
  --line: rgba(239, 237, 230, .14); --line-2: rgba(239, 237, 230, .26);
  --accent: #E06650; --accent-hover: #E87A66; --accent-ink: #14263E;
  --paper: #EFEDE6; --paper-2: #FBFAF6; --paper-ink: #14263E; --paper-text: #23282B; --paper-muted: #4A5357; --paper-line: #D3CEBF;
  --ok: #3E9B5F; --warn: #E0A03A; --danger: #D8452E;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", Consolas, ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 8px; --w: 1180px; --ease: cubic-bezier(.2, .7, .2, 1); --header-h: 68px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--ink-2); font: 500 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); line-height: 1.06; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; }
h3 { font-size: 1.15rem; line-height: 1.3; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s, text-underline-offset .2s; }
/* Liens texte : le soulignement glisse et passe au saumon */
p a:not(.btn), li a:not(.btn), td a:not(.btn), dd a:not(.btn), .note a, .measure a, .plans-note a, .doc-content a:not(.btn):not(.doc-nav a), .faq-body a, .contact-aside a, .prose a, .sc-note a, .cap-note a, .site-footer a:not(.btn) { text-decoration: underline; text-decoration-color: rgba(239, 237, 230, .35); }
p a:not(.btn):hover, li a:not(.btn):hover, td a:not(.btn):hover, dd a:not(.btn):hover, .note a:hover, .measure a:hover, .plans-note a:hover, .doc-content a:not(.btn):hover, .faq-body a:hover, .contact-aside a:hover, .prose a:hover, .sc-note a:hover, .cap-note a:hover, .site-footer a:not(.btn):hover { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .32em; }
strong { font-weight: 700; }
code { font-family: var(--mono); font-size: .86em; background: rgba(239, 237, 230, .08); border: 1px solid var(--line); border-radius: 6px; padding: .1em .38em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.container { width: 100%; max-width: var(--w); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 700px) { .container { padding-inline: 32px; } }
.measure { max-width: 62ch; color: var(--muted); }
.visually-hidden { 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: -80px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .6em 1em; border-radius: var(--r); text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.ext::after { content: "↗"; display: inline-block; margin-left: .25em; font-size: .8em; opacity: .7; }

/* ------------------------------------------------------------------ Boutons : une intention, un libellé */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .6em 1.25em; border-radius: var(--r); font: 700 .98rem var(--font); line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .18s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:hover { text-decoration: none; }
/* Survol : un balayage lumineux traverse le bouton, pas de déplacement */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, rgba(251, 250, 246, .28) 50%, transparent 65%); transform: translateX(-130%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: translateX(130%); }
.btn:active { transform: scale(.985); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(224, 102, 80, 0); transition: transform .18s var(--ease), background-color .2s, box-shadow .3s; }
.btn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(224, 102, 80, .25); }
.btn-line { color: var(--ink); border-color: var(--line-2); background: transparent; }
.btn-line::after { content: ""; position: absolute; inset: 0; z-index: -2; background: rgba(239, 237, 230, .08); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-line:hover::after { transform: scaleX(1); }
.btn-paper { background: var(--paper); color: var(--paper-ink); }
.btn-paper:hover { background: #fff; color: var(--paper-ink); }
.btn-small { min-height: 40px; padding-block: .45em; font-size: .92rem; }
.btn .btn-arrow { transition: transform .2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
/* alias des pages non migrées, pour que rien ne casse */
.btn-primary { background: var(--paper); color: var(--paper-ink); }
.btn-primary:hover { background: #fff; color: var(--paper-ink); }
.btn-ghost, .btn-ghost-light { color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover, .btn-ghost-light:hover { border-color: var(--ink); color: var(--ink); }

/* ------------------------------------------------------------------ Barre fixe minimale */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 29, 48, .88); border-bottom: 1px solid transparent; transition: border-color .3s; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .site-header { background: rgba(15, 29, 48, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; padding-block: 8px; }
.brand img { display: block; width: 118px; height: auto; transition: width .3s var(--ease); }
.site-header.is-scrolled .brand img { width: 100px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav ul a { position: relative; display: inline-block; padding: .3em 0; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; white-space: nowrap; transition: color .2s; }
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--ink); }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-login { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-login:hover { color: var(--ink); }
/* Menu compte : dropdown animé (connexion Connect / Extract) */
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px 0 11px; border-radius: 999px; border: 1.5px solid rgba(239, 237, 230, .26); background: transparent; color: #EFEDE6; font: inherit; font-weight: 600; font-size: .9rem; line-height: 1; cursor: pointer; white-space: nowrap; transition: border-color .25s, background-color .25s; }
.nav-dd-btn:hover, .nav-dd.is-open .nav-dd-btn { border-color: var(--accent); background: rgba(224, 102, 80, .12); }
.nav-dd-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-dd-ico { display: inline-flex; }
.nav-dd-ico svg { width: 18px; height: 18px; display: block; }
.nav-dd-caret svg { width: 14px; height: 14px; display: block; transition: transform .25s var(--ease); }
.nav-dd.is-open .nav-dd-caret svg { transform: rotate(180deg); }
.nav-dd-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 246px; padding: 7px; border-radius: 14px; background: #16273d; border: 1px solid var(--line-2); box-shadow: 0 22px 46px -16px rgba(0, 0, 0, .65); display: grid; gap: 2px; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right; visibility: hidden; pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s; z-index: 60; }
.nav-dd.is-open .nav-dd-menu { opacity: 1; transform: translateY(0) scale(1); visibility: visible; pointer-events: auto; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.nav-dd-item { display: grid; gap: 1px; padding: 9px 12px; border-radius: 10px; text-decoration: none; transition: background-color .18s; }
.nav-dd-item:hover, .nav-dd-item:focus-visible { background: rgba(239, 237, 230, .07); outline: none; }
.nav-dd-name { color: #EFEDE6; font-weight: 600; font-size: .95rem; transition: color .18s; }
.nav-dd-sub { color: var(--muted); font-size: .8rem; }
.nav-dd-item:hover .nav-dd-name, .nav-dd-item:focus-visible .nav-dd-name { color: var(--accent); }
.nav-dd-item-x .nav-dd-name { color: var(--accent); }
.nav-dd-item-x:hover .nav-dd-name, .nav-dd-item-x:focus-visible .nav-dd-name { color: var(--accent-hover); }
/* Ouverture au survol sur grand écran (pointeur fin). Le pont ::after couvre l'espace bouton↔menu. */
@media (hover: hover) and (pointer: fine) and (min-width: 1181px) {
  .nav-dd:hover::after { content: ""; position: absolute; top: 100%; right: 0; width: 100%; height: 14px; }
  .nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu {
    opacity: 1; transform: translateY(0) scale(1); visibility: visible; pointer-events: auto;
    transition: opacity .18s var(--ease), transform .18s var(--ease);
  }
  .nav-dd:hover .nav-dd-btn, .nav-dd:focus-within .nav-dd-btn { border-color: var(--accent); background: rgba(224, 102, 80, .12); }
  .nav-dd:hover .nav-dd-caret svg, .nav-dd:focus-within .nav-dd-caret svg { transform: rotate(180deg); }
}
@media (max-width: 1180px) {
  .nav-dd { width: 100%; }
  .nav-dd-btn { display: none; }
  .nav-dd-menu { position: static; opacity: 1; transform: none; visibility: visible; pointer-events: auto; background: transparent; border: none; box-shadow: none; padding: 0; min-width: 0; gap: 0; transition: none; }
  .nav-dd-item { padding: .7em 0; border-bottom: 1px solid var(--line); border-radius: 0; }
}
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; background: transparent; border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); content: ""; border-radius: 2px; transition: transform .25s var(--ease), background-color .2s; }
.nav-toggle-bar { top: 20px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1180px) {
  .js .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding: 6px 0 18px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav ul a { display: block; padding: .7em 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { align-self: flex-start; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
}

/* ------------------------------------------------------------------ Chapitres et révélations */
.chapter { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.chapter-alt, .chapter-peak { border-radius: clamp(20px, 3vw, 40px); margin-inline: clamp(0px, 1.5vw, 20px); overflow: hidden; }
.chapter-alt { background: var(--chapter); }
.chapter-peak::before { content: ""; position: absolute; inset: -20% -10% auto; height: 70%; background: radial-gradient(50% 60% at 50% 30%, rgba(27, 77, 143, .35), transparent 70%); pointer-events: none; }
.chapter-peak > .container { position: relative; }
.chapter-peak { background: var(--deep); }
.chapter-peak .measure { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { margin: 14px 0 0; }
.eyebrow { display: block; margin: 0 0 12px; font: 700 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.reveal { opacity: 1; transform: none; }
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.motion .rows > .reveal:nth-child(2), .motion .rail > li:nth-child(2) { transition-delay: .08s; }
.motion .rows > .reveal:nth-child(3), .motion .rail > li:nth-child(3) { transition-delay: .16s; }
.motion .rows > .reveal:nth-child(4), .motion .rail > li:nth-child(4) { transition-delay: .24s; }
.motion .rows > .reveal:nth-child(5) { transition-delay: .32s; }
.motion .rows > .reveal:nth-child(6) { transition-delay: .4s; }
.motion .reveal.is-in { opacity: 1; transform: none; }
.folio { position: fixed; left: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 14px; z-index: 10; }
.folio a { width: 6px; height: 26px; border-radius: 3px; background: var(--line-2); display: block; transition: background .3s; }
.folio a[aria-current="true"] { background: var(--accent); }
@media (max-width: 1320px) { .folio { display: none; } }

/* ------------------------------------------------------------------ Hero scindé, le pont qui se dessine */
.hero { position: relative; padding-block: clamp(44px, 7vw, 84px) clamp(36px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.22rem; line-height: 1.55; color: var(--muted); max-width: 30ch; margin: 22px 0 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-glow { position: absolute; z-index: -1; right: -10%; top: -20%; width: 60vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(27, 77, 143, .35), rgba(224, 102, 80, .06) 45%, transparent 68%); filter: blur(10px); pointer-events: none; }
.motion .hero-glow { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-6%, 8%) scale(1.08); } }
.motion .bridge { will-change: transform; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero-glow { display: none; } }
.bridge { position: relative; width: 100%; aspect-ratio: 5 / 3; max-width: 620px; margin-inline: auto; }
.bridge svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bridge .draw { stroke-dasharray: 1200; stroke-dashoffset: 0; }
.motion .bridge .draw { stroke-dashoffset: 1200; animation: draw 2.2s var(--ease) .2s forwards; }
.motion .bridge .draw-2 { animation-delay: .9s; }
.motion .bridge .draw-3 { animation-delay: 1.5s; animation-duration: 1.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bridge .packet { offset-path: path("M120 240 V150 a30 30 0 0 1 30 -30 h200 a30 30 0 0 1 30 30 V240"); offset-rotate: 0deg; opacity: 1; offset-distance: 50%; }
.bridge .packet.p2 { offset-distance: 20%; }
.bridge .packet.back { offset-distance: 80%; }
.motion .bridge .packet { opacity: 0; animation: cross 3.6s cubic-bezier(.45, 0, .55, 1) 2.4s infinite; }
.motion .bridge .packet.p2 { animation-delay: 3.6s; }
.motion .bridge .packet.back { animation-name: cross-back; animation-delay: 4.8s; }
.motion .bridge .arch-glow { animation-name: draw, breathe; animation-duration: 2.2s, 4s; animation-delay: .9s, 3s; animation-iteration-count: 1, infinite; animation-fill-mode: forwards, none; }
@keyframes breathe { 50% { opacity: .28; } }
@keyframes cross { 0% { offset-distance: 0%; opacity: 0; } 6% { opacity: 1; } 60% { opacity: 1; } 66% { offset-distance: 100%; opacity: 0; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes cross-back { 0% { offset-distance: 100%; opacity: 0; } 6% { opacity: 1; } 60% { opacity: 1; } 66% { offset-distance: 0%; opacity: 0; } 100% { offset-distance: 0%; opacity: 0; } }
.bridge .shore { font: 700 15px var(--font); fill: var(--ink); }
.bridge .shore-sub { font: 500 12.5px var(--font); fill: var(--muted); }
.bridge .label { font: 600 11px var(--mono); fill: var(--accent); letter-spacing: .08em; }

/* ------------------------------------------------------------------ Aiguillage : deux portes */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.door { --mx: 50%; --my: 50%; position: relative; isolation: isolate; padding: 22px 24px; display: grid; gap: 6px; text-decoration: none; color: inherit; transition: background .2s; }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(240px circle at var(--mx) var(--my), rgba(224, 102, 80, .14), transparent 70%); opacity: 0; transition: opacity .3s; }
.door:hover::before { opacity: 1; }
.door + .door { border-left: 1px solid var(--line-2); }
.door:hover { background: rgba(239, 237, 230, .05); }
.door strong { color: var(--ink); font-size: 1.08rem; }
.door span { color: var(--muted); font-size: .95rem; }
.door .go { color: var(--accent); font-weight: 700; margin-top: 4px; transition: transform .3s var(--ease); display: inline-block; }
.door:hover .go { transform: translateX(6px); }
.door.is-chosen { background: rgba(224, 102, 80, .08); }
@media (max-width: 640px) { .doors { grid-template-columns: minmax(0, 1fr); } .door + .door { border-left: 0; border-top: 1px solid var(--line-2); } }

/* ------------------------------------------------------------------ Situations : titre collant, rangées */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split .sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.rows { display: grid; }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 26px 12px; margin-inline: -12px; border-top: 1px solid var(--line); border-radius: var(--r); transition: background-color .3s; }
.row:hover { background: rgba(239, 237, 230, .04); }
.row:hover .ico { border-color: var(--accent); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--chapter); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); transition: border-color .3s, transform .3s var(--ease); }
.row:hover .ico { transform: rotate(-6deg); }
.row .ico .icon { width: 22px; height: 22px; }
.row h3 { margin-bottom: 6px; }
.row p { margin: 0; }
.row .pain { color: var(--ink); }
.row .gain { color: var(--muted); margin-top: 6px; }
.row .gain::before { content: "→ "; color: var(--accent); font-weight: 800; }
.row .routes { margin-top: 12px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split .sticky { position: static; } }

/* Puces de routes (partagées avec les cas d'usage) */
.routes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.routes li { margin: 0; }
.route-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font: 500 .74rem var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: .28em .6em; border-radius: 6px; background: rgba(239, 237, 230, .06); border: 1px solid var(--line); }
.route-chip b { font-weight: 700; font-size: .66rem; letter-spacing: .04em; }
.route-chip .m-get { color: #A9BEDD; } .route-chip .m-post { color: #A5D6B3; } .route-chip .m-patch { color: #EBCB85; } .route-chip .m-delete { color: #F0A090; }

/* ------------------------------------------------------------------ Sommet : le lecteur de scénarios */
.scenarios { position: relative; }
.sc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.sc-tab { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: .5em 1em; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; color: var(--muted); font: 700 .95rem var(--font); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .2s var(--ease); }
.sc-tab .icon { width: 18px; height: 18px; }
.sc-tab:hover { color: var(--ink); border-color: var(--ink); background: rgba(239, 237, 230, .06); }
.sc-tab[aria-selected="true"] { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.soon-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.soon-badge { display: inline-block; vertical-align: .2em; margin-left: .3em; white-space: nowrap; font: 700 .64rem var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: .3em .65em; border-radius: 6px; color: #EBCB85; border: 1px solid rgba(235, 203, 133, .4); }
.sc-panel { position: relative; }
.sc-panel + .sc-panel { margin-top: 18px; }
.js .sc-panel + .sc-panel { margin-top: 0; }
.sc-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.sc-head > div:first-child { flex: 1 1 420px; min-width: 0; }
.sc-head h3 { color: var(--ink); font-size: 1.4rem; margin-bottom: .3em; }
.sc-head p { margin: 0; color: var(--muted); max-width: 70ch; }
.sc-head .usecase-tag { font: 700 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5em; }
.sc-controls { display: none; gap: 8px; }
.sc-live .sc-controls { display: flex; }
.sc-controls { align-items: center; gap: 6px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(239, 237, 230, .04); }
.sc-btn { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink); background: transparent; border: 0; border-radius: 50%; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.sc-btn svg { width: 18px; height: 18px; fill: currentColor; }
.sc-btn[data-sc-restart] svg { fill: none; stroke: currentColor; }
.sc-btn:hover { background: rgba(239, 237, 230, .1); }
.sc-btn:active { transform: scale(.92); }
.sc-btn[data-sc-toggle] { background: var(--accent); color: var(--accent-ink); }
.sc-btn[data-sc-toggle]:hover { background: var(--accent-hover); }
.sc-btn .ico-play { display: none; }
.sc-btn[aria-pressed="true"] .ico-pause { display: none; }
.sc-btn[aria-pressed="true"] .ico-play { display: block; margin-left: 2px; }
.sc-stage { position: relative; border-radius: 16px; padding: clamp(10px, 2vw, 22px); margin-bottom: 0; background: radial-gradient(60% 80% at 50% 0%, rgba(27, 77, 143, .22), transparent 70%), var(--ground); border: 1px solid var(--line); }
.sc-svg { position: relative; display: block; width: 100%; height: auto; }
.sc-tall { display: none; max-width: 360px; margin: 0 auto; }
@media (max-width: 700px) { .sc-wide { display: none; } .sc-tall { display: block; } }
.sc-bus { stroke: var(--line-2); stroke-width: 3; stroke-linecap: round; }
.sc-seg { stroke: transparent; stroke-width: 3; stroke-linecap: round; transition: stroke .4s; }
.sc-seg.is-active { stroke: var(--sky); }
.sc-res .sc-seg.is-active { stroke: var(--accent); }
.sc-drop { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 3 4; }
.sn-box { fill: var(--chapter); stroke: var(--line-2); stroke-width: 1.5; transition: stroke .35s, fill .35s; }
.sn-core .sn-box { fill: var(--deep); stroke: var(--accent); }
.sn-title { font: 700 17px var(--font); fill: var(--ink); letter-spacing: -.015em; }
.sn-sub { font: 500 12.5px var(--mono); fill: var(--muted); }
.sn-core .sn-sub { fill: var(--sky); }
.sn-status { font: 700 12.5px var(--mono); fill: var(--sky); }
.sn-core .sn-status { fill: var(--accent); }
.sn-port { fill: var(--ground); stroke: var(--line-2); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.sn.is-active .sn-box { stroke: var(--sky); stroke-width: 2.5; }
.sn.is-active .sn-port { fill: var(--sky); stroke: var(--sky); }
.sc-res .sn.is-active .sn-box { stroke: var(--accent); }
.sc-res .sn.is-active .sn-port { fill: var(--accent); stroke: var(--accent); }
.pkt { display: none; fill: var(--sky); stroke: var(--ground); stroke-width: 2.5; }
.sc-live .pkt { display: block; transition: transform .9s var(--ease), fill .3s; }
.sc-res .pkt { fill: var(--accent); }
.dg-zone-box { fill: rgba(239, 237, 230, .03); stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 5 6; }
.dg-zone { font: 700 11.5px var(--mono); fill: var(--muted); letter-spacing: .1em; }
.dg-fw { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 8 6; }
/* Les étapes : une frise, pas des encadrés */
.sc-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 18px; }
.sc-steps li { position: relative; margin: 0; padding: 0; }
.sc-steps li::before { content: ""; position: absolute; left: 16px; right: -18px; top: 15px; height: 2px; background: var(--line); }
.sc-steps li:last-child::before { display: none; }
.sc-steps li::after { content: ""; position: absolute; left: 16px; right: -18px; top: 15px; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; }
.sc-steps li:last-child::after { display: none; }
.sc-res .sc-steps li::after { background: var(--accent); }
.sc-live.is-playing .sc-steps li.is-current::after { animation: sc-progress var(--sc-dur, 2600ms) linear forwards; }
.sc-live .sc-steps li.is-done::after { transform: scaleX(1); }
@keyframes sc-progress { to { transform: scaleX(1); } }
.sc-step-btn { position: relative; z-index: 1; display: block; width: 100%; text-align: left; padding: 40px 0 0; background: none; border: 0; color: var(--muted); font: 500 .9rem/1.45 var(--font); cursor: pointer; transition: color .3s; }
.sc-step-num { position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 .74rem var(--mono); color: var(--muted); background: var(--ground); border: 2px solid var(--line-2); transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.sc-steps li.is-done .sc-step-num { border-color: var(--sky); color: var(--sky); }
.sc-res .sc-steps li.is-done .sc-step-num { border-color: var(--accent); color: var(--accent); }
.sc-steps li.is-current .sc-step-btn { color: var(--ink); }
.sc-steps li.is-current .sc-step-num { background: var(--sky); border-color: var(--sky); color: var(--ground); transform: scale(1.1); }
.sc-res .sc-steps li.is-current .sc-step-num { background: var(--accent); border-color: var(--accent); }
.sc-step-text .route-chip { margin-top: 8px; white-space: normal; display: inline-flex; }
.sc-step-btn:hover { color: var(--ink); }
.sc-steps:not(.sc-live *) li { padding-left: 0; }
@media (max-width: 640px) {
  .sc-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sc-steps li::before, .sc-steps li::after { display: none; }
  .sc-step-btn { padding: 4px 0 18px 46px; }
}
.sc-note { margin: 18px 0 0; font-size: .88rem; color: var(--muted); }
.sc-note a { color: var(--ink); }

/* ------------------------------------------------------------------ Les trois questions */
.fears { display: grid; margin-top: 40px; border-top: 1px solid var(--line-2); }
.fear { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; padding-block: 34px; border-bottom: 1px solid var(--line-2); }
.fear h3 { font-size: 1.35rem; color: var(--ink); margin-bottom: 0; }
.fear .q { color: var(--muted); font-size: 1rem; margin: 8px 0 0; }
.fear .a { display: grid; gap: 12px; }
.fear .a p { margin: 0; }
.fear .a strong { color: var(--ink); }
.fear .proof { font: 600 .8rem var(--mono); color: var(--accent); }
@media (max-width: 760px) { .fear { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ------------------------------------------------------------------ Étapes sur le rail du pont */
.rail { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 44px 0 0; padding: 0; list-style: none; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line-2); }
.rail .fill { position: absolute; left: 0; top: 11px; height: 2px; background: var(--accent); width: 100%; transition: width 1.6s var(--ease); }
.motion .rail .fill { width: 0; }
.motion .rail.is-in .fill { width: 100%; }
.rail li { margin: 0; padding-top: 34px; position: relative; }
.rail li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ground); border: 2.5px solid var(--accent); }
.chapter-alt .rail li::before { background: var(--chapter); }
.rail h3 { margin-bottom: 8px; }
.rail p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 860px) { .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rail::before, .rail .fill { display: none; } }
@media (max-width: 480px) { .rail { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ Développeurs : un vrai premier appel */
.dev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.dev .points { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; color: var(--muted); }
.dev .points li { padding-left: 22px; position: relative; }
.dev .points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--accent); }
.dev .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.code-block { position: relative; border-radius: var(--r); background: #0B1626; border: 1px solid var(--line); overflow: hidden; margin: 0 0 1.25em; }
.code-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); font: 500 .74rem var(--mono); color: var(--muted-2); }
.code-label-text { flex: 1 1 auto; min-width: 0; }
.code-block pre { margin: 0; padding: 18px; }
.code-block:not(:has(.code-label)) pre { padding-right: 84px; }
pre { font: 500 .82rem/1.65 var(--mono); color: #E6E3D8; overflow: visible; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; border-radius: 0; }
.c-cmt { color: var(--muted-2); font-style: italic; } .c-key { color: #A9BEDD; } .c-str { color: #E3D9B6; } .c-num, .c-lit { color: #D9C48C; } .c-var { color: #C9C2DE; } .c-flag { color: var(--muted); } .c-kw { color: var(--ink); font-weight: 600; } .c-punc { color: #8D979B; }
.copy-btn { font: 600 .72rem var(--font); color: var(--ink-2); cursor: pointer; background: rgba(239, 237, 230, .06); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 10px; min-height: 26px; transition: background-color .2s, border-color .2s; }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.is-done { color: var(--accent); border-color: var(--accent); }
.code-block > .copy-btn { position: absolute; top: 8px; right: 8px; }
@media (max-width: 860px) { .dev { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ Prix : deux forfaits, un seul objet */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.plan { padding: clamp(24px, 3vw, 40px); }
.plan ul { columns: 1; }
@media (min-width: 900px) { .plan .amount { font-size: 3.6rem; } }
.plan { border-radius: var(--r); padding: 28px; border: 1px solid var(--line-2); display: grid; gap: 14px; align-content: start; }
.plan.featured { background: var(--paper); color: var(--paper-text); border-color: var(--paper); }
.plan .name { font-weight: 800; font-size: 1.1rem; }
.plan .amount { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan.featured .amount { color: var(--paper-ink); }
.plan .amount small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.plan.featured .amount small { color: var(--paper-muted); }
.plan .sub { color: var(--muted); font-size: .97rem; margin: 0; }
.plan.featured .sub { color: var(--paper-muted); }
.plan ul { margin: 6px 0 0; padding-left: 18px; font-size: .95rem; display: grid; gap: 6px; }
.plan .flag { justify-self: start; font: 700 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: .3em .6em; border-radius: 6px; }
.plan .btn { justify-self: start; }
.plans-note { margin: 18px 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ Clôture, pied de page, témoins */
.close { border-radius: var(--r); background: var(--deep); border: 1px solid var(--line-2); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 28px; align-items: center; }
.close h2 { margin-bottom: 0; }
.close p { color: var(--muted); margin: 10px 0 0; max-width: 52ch; }
.close .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .close { grid-template-columns: minmax(0, 1fr); } }
.site-footer { padding-block: 56px 28px; color: var(--muted-2); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand img { width: 118px; height: auto; }
.footer-brand p { margin: 14px 0 0; max-width: 32ch; }
.footer-title { margin: 0 0 12px; color: var(--ink); font-size: .95rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-nav li { margin: 0; }
.site-footer .footer-nav a, .site-footer .footer-legal-links a { text-decoration-color: transparent; }
.site-footer a:hover { color: var(--ink); }
.footer-legal { padding-top: 20px; }
.footer-legal p { margin: 0 0 .5em; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.consent { position: fixed; inset: auto 16px 16px 16px; z-index: 1000; display: flex; justify-content: center; pointer-events: none; }
.consent-box { pointer-events: auto; width: 100%; max-width: 760px; background: var(--chapter); color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 1.1rem 1.25rem; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
.consent-title { font-size: 1.05rem; margin: 0 0 .35rem; }
.consent-box p { margin: 0 0 .8rem; font-size: .95rem; color: var(--muted); }
.consent-box a { color: var(--ink); }
.consent-options { display: grid; gap: .5rem; margin: 0 0 .9rem; }
.consent-option { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.consent-option input { margin-top: .2rem; accent-color: var(--accent); }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
@media (max-width: 520px) { .consent-actions .btn { flex: 1 1 45%; } }
.consent-box:focus { outline: none; }

/* ------------------------------------------------------------------ Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bridge .packet { opacity: 1; }
}
@media print {
  .site-header, .site-footer, .consent, .folio, .nav-toggle { display: none; }
  body { background: #fff; color: #23282B; }
}

.chapter-foot { margin-top: 40px; }
.chapter-end { padding-bottom: clamp(64px, 9vw, 120px); }

/* ------------------------------------------------------------------ Hub développeurs */
.hero-dev { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-dev .eyebrow { margin-bottom: 14px; }
.hero-dev .code-block { margin: 0; }
.spec-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 auto clamp(24px, 4vw, 40px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-strip > div { padding: 18px 20px 18px 0; }
.spec-strip > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.spec-strip dt { font: 600 .72rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.spec-strip dd { margin: 0; font: 600 1rem var(--mono); color: var(--ink); }
.spec-strip dd span { color: var(--accent); }
@media (max-width: 860px) { .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spec-strip > div:nth-child(3) { padding-left: 0; border-left: 0; } .spec-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.rail-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .rail-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rail-5::before, .rail-5 .fill { display: none; } }
@media (max-width: 480px) { .rail-5 { grid-template-columns: minmax(0, 1fr); } }
.row-tags { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; } .row-tags code { font-size: .74rem; }

/* ------------------------------------------------------------------ Pages intérieures : page de titre, tarifs */
.hero-page { padding-block: clamp(44px, 7vw, 84px) clamp(28px, 4vw, 44px); max-width: 860px; margin-inline: auto; }
.hero-page h1 em { font-style: normal; color: var(--accent); }
.hero-page .lead { font-size: 1.18rem; line-height: 1.55; color: var(--muted); max-width: 62ch; margin: 18px 0 0; }
.hero-page .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.narrow { max-width: 860px; }
.plans-wide { max-width: none; margin-top: 0; }
.plan .extra { margin: 0; padding: 12px 14px; border-radius: var(--r); background: rgba(239, 237, 230, .06); border: 1px solid var(--line); font-size: .93rem; }
.plan.featured .extra { background: rgba(20, 38, 62, .06); border-color: var(--paper-line); }
.plan .extra strong { font-variant-numeric: tabular-nums; }
.note-line { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; color: var(--muted); font-size: .95rem; }
.note-line .icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.note-line a { color: var(--ink); }
.servers { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 480px) { .servers { grid-template-columns: minmax(0, 1fr); } }
.server { border-radius: var(--r); padding: 16px; background: var(--paper); color: var(--paper-text); }
.server-head { display: flex; align-items: center; gap: 8px; font: 600 .78rem var(--mono); color: var(--peak); margin: 0 0 12px; }
.server-head .icon { width: 18px; height: 18px; }
.server ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.server li { margin: 0; display: flex; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: var(--r); font-size: .86rem; border: 1px dashed #B1AB99; background: var(--paper-2); }
.server li.full { border-style: solid; border-color: var(--peak); }
.server li span:last-child { font: 600 .74rem var(--mono); color: var(--peak); white-space: nowrap; }
.server li:not(.full) span:last-child { color: var(--paper-muted); }
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border-radius: var(--r); border: 1px solid var(--line-2); }
.calc-form { border-radius: var(--r) 0 0 var(--r); }
.calc-result { border-radius: 0 var(--r) var(--r) 0; overflow: hidden; }
@media (max-width: 860px) { .calc-form { border-radius: var(--r) var(--r) 0 0; } .calc-result { border-radius: 0 0 var(--r) var(--r); } }
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-form { padding: clamp(22px, 4vw, 36px); margin: 0; }
.calc-form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.calc-form .field { margin-bottom: 22px; }
.calc-form legend, .calc-label { display: block; font-weight: 700; font-size: .95rem; color: var(--ink); margin-bottom: 8px; padding: 0; }
.calc-hint { font-size: .84rem; color: var(--muted); margin: 6px 0 0; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg label { position: relative; display: block; cursor: pointer; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid var(--line-2); transition: border-color .2s, background-color .2s; }
.seg label:hover { border-color: var(--ink); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--accent); background: rgba(224, 102, 80, .08); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg strong { display: block; color: var(--ink); }
.seg span { font-size: .84rem; color: var(--muted); }
.stepper { display: flex; align-items: stretch; height: 50px; border: 1.5px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.stepper button { width: 46px; height: 100%; border: 0; background: rgba(239, 237, 230, .06); font: 700 1.2rem var(--font); color: var(--ink); cursor: pointer; }
.stepper button:hover { background: rgba(239, 237, 230, .12); }
.stepper input[type="number"] { width: 4.5em; height: 100%; min-height: 0; border: 0; border-inline: 1.5px solid var(--line-2); border-radius: 0; text-align: center; font: 700 1.1rem var(--mono); color: var(--ink); background: transparent; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.calc-form select { width: 100%; min-height: 46px; padding: 0 12px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--chapter); color: var(--ink); font: 600 .98rem var(--font); }
.calc-result { padding: clamp(22px, 4vw, 36px); background: var(--deep); color: var(--muted); display: flex; flex-direction: column; }
.calc-result-label { font: 700 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.calc-total { display: block; font: 800 clamp(2.6rem, 5vw, 3.6rem) var(--font); letter-spacing: -.03em; color: var(--ink); line-height: 1; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.motion .calc-total.is-bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.04); } }
.calc-breakdown { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font: 500 .84rem var(--mono); }
.calc-breakdown li { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.calc-breakdown li span:last-child { color: var(--ink); white-space: nowrap; }
.calc-foot { font-size: .86rem; margin: 0 0 18px; }
.calc-actions { margin-top: auto; display: grid; gap: 10px; justify-items: start; }
.calc-actions .note { margin: 0; font-size: .86rem; }
.ledger { display: grid; border-top: 1px solid var(--line-2); }
.ledger-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding-block: 22px; border-bottom: 1px solid var(--line-2); }
.ledger-row .ico { width: 44px; height: 44px; border-radius: var(--r); background: var(--ground); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); }
.ledger-row .ico .icon { width: 22px; height: 22px; }
.ledger-row h3 { margin-bottom: 4px; }
.ledger-row p { margin: 0; color: var(--muted); font-size: .95rem; }
.ledger-calc { font: 500 .9rem var(--mono); color: var(--muted); white-space: nowrap; }
.ledger-calc b { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .ledger-row { grid-template-columns: 56px minmax(0, 1fr); } .ledger-calc { grid-column: 2; } }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line-2); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface); color: var(--ink); font: 700 .72rem var(--font); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
tbody th { font-weight: 600; color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.note { font-size: .92rem; color: var(--muted); }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--chapter); }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.2rem var(--mono); color: var(--accent); flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq-body { padding: 0 18px 18px; color: var(--muted); }
.faq-body p { margin: 0 0 .6em; }
.faq-body a { color: var(--ink); }

/* ------------------------------------------------------------------ Cas d'usage */
.uc-index { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.uc-index li { margin: 0; }
.uc-index a { display: inline-block; padding: .45em .9em; border-radius: var(--r); border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink); transition: border-color .2s; }
.uc-index a:hover { border-color: var(--accent); color: var(--accent); }
.uc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line-2); align-items: start; }
.uc:first-of-type { border-top: 0; padding-top: 0; }
.uc-num { font: 700 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.uc h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.uc .lead { color: var(--muted); font-size: 1.05rem; }
.uc dl { margin: 22px 0; display: grid; gap: 14px; }
.uc dl > div { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--line-2); }
.uc dt { font: 700 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.uc dt.dt-pain { color: var(--accent); }
.uc dl > div:has(.dt-pain) { border-left-color: var(--accent); }
.uc dd { margin: 0; color: var(--ink-2); font-size: .97rem; }
.uc-visual { display: grid; gap: 14px; min-width: 0; }
.uc-visual .code-block { margin: 0; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.2fr) 28px minmax(0, 1fr); align-items: center; gap: 0; }
.flow-node { padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); font-weight: 700; color: var(--ink); text-align: center; font-size: .95rem; min-width: 0; }
.flow-node small { display: block; font: 500 .74rem var(--mono); color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.flow-node.core { background: var(--deep); border-color: var(--accent); }
.flow-node.core small { color: var(--sky); }
.flow-link { height: 2px; background: var(--accent); }
@media (max-width: 860px) { .uc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .flow { grid-template-columns: minmax(0, 1fr); gap: 8px; } .flow-link { width: 2px; height: 16px; justify-self: center; } }
.cap-legend { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .92rem; color: var(--muted); }
.cap-legend li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.cap { display: inline-block; white-space: nowrap; font: 700 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: .3em .6em; border-radius: 6px; border: 1px solid transparent; }
.cap-ok { color: #A5D6B3; border-color: rgba(165, 214, 179, .4); }
.cap-gen { color: #C9D8EE; border-color: rgba(201, 216, 238, .4); }
.cap-mod { color: #EBCB85; border-color: rgba(235, 203, 133, .4); }
.cap-no { color: #F0A090; border-color: rgba(240, 160, 144, .4); }
.cap-group { margin: 32px 0 10px; font-size: 1.05rem; }
.cap-table td { vertical-align: top; }
.cap-table td:first-child { color: var(--ink); }
.cap-table td > div + div { margin-top: 4px; }
.cap-note { display: block; margin-top: 4px; color: var(--muted); font-size: .86rem; }
.cap-note a { color: var(--ink); }

/* ------------------------------------------------------------------ Connecteurs */
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.pair-card { padding: 22px 24px; border-bottom: 1px solid var(--line-2); }
.pair-card:nth-child(odd) { border-right: 1px solid var(--line-2); }
.pair-card:nth-last-child(-n+2) { border-bottom: 0; }
.pair-card p:last-child { margin: 0; color: var(--muted); font-size: .95rem; }
.pair { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.pair-link { flex: 0 0 34px; height: 2px; background: var(--accent); position: relative; }
.pair-link::before, .pair-link::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pair-link::before { left: -2px; } .pair-link::after { right: -2px; }
@media (max-width: 640px) { .pairs { grid-template-columns: minmax(0, 1fr); } .pair-card:nth-child(odd) { border-right: 0; } .pair-card:nth-last-child(2) { border-bottom: 1px solid var(--line-2); } }
.platform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line-2); }
.platform:first-of-type { border-top: 0; padding-top: 0; }
.platform .os-h { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.platform .lead { color: var(--muted); margin: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.checklist li { margin: 0; padding-left: 26px; position: relative; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 760px) { .platform { grid-template-columns: minmax(0, 1fr); } }
.compare { margin-top: 40px; }
.compare-table .col-ponteo { background: rgba(239, 237, 230, .04); }
.compare-table thead .col-ponteo { background: var(--surface); color: var(--accent); }
.compare-table .yes, .compare-table .meh, .compare-table .no { display: inline-flex; gap: 8px; align-items: flex-start; }
.compare-table .yes::before, .compare-table .meh::before, .compare-table .no::before { content: ""; flex-shrink: 0; margin-top: .45em; width: 8px; height: 8px; border-radius: 50%; }
.compare-table .yes { color: var(--ink); } .compare-table .yes::before { background: var(--accent); }
.compare-table .meh { color: var(--muted); } .compare-table .meh::before { background: var(--line-2); }
.compare-table .no { color: var(--muted); } .compare-table .no::before { background: var(--line-2); }
.compare .note { margin-top: 12px; }

/* ------------------------------------------------------------------ Formulaires (contact, soumission) */
.rows-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.rows-2 .row:nth-child(2) { border-top: 1px solid var(--line); }
.rows-2 .row:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .rows-2 { grid-template-columns: minmax(0, 1fr); } .rows-2 .row:nth-last-child(2) { border-bottom: 0; } }
.rail-vertical { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 12px; }
.rail-vertical::before, .rail-vertical .fill { display: none; }
.rail-vertical li { padding: 0 0 22px 30px; }
.rail-vertical li::before { top: 4px; }
.rail-vertical li::after { content: ""; position: absolute; left: 7px; top: 24px; bottom: 0; width: 2px; background: var(--line-2); }
.rail-vertical li:last-child::after { display: none; }
.rail-vertical h4 { margin-bottom: 4px; color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: rgba(239, 237, 230, .04); color: var(--ink); font: 500 1rem var(--font); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 102, 80, .25); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
/* Liste d'options native : fond foncé + texte clair (sinon texte clair sur fond blanc du navigateur) */
.field select option { background: #14263E; color: #FBFAF6; }
.chapter-light .field select option { background: #FBFAF6; color: #14263E; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 0; color: #F0A090; font-size: .88rem; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .86rem; color: var(--muted); margin: 0; }
.form-note a { color: var(--ink); }
.contact-form .btn { justify-self: start; }
.contact-aside { padding: 24px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--chapter); }
.contact-aside h2, .contact-aside h3 { font-size: 1.1rem; }
.contact-aside ul { padding-left: 18px; color: var(--muted); font-size: .95rem; display: grid; gap: 10px; }
.contact-aside strong { color: var(--ink); }
.contact-aside a { color: var(--ink); }
.contact-aside p:last-child { margin: 0; }
.alert { padding: 16px 18px; border-radius: var(--r); margin-bottom: 22px; border: 1px solid transparent; }
.alert h2 { font-size: 1.1rem; margin-bottom: .3em; }
.alert p { margin: 0; }
.alert-success { background: rgba(62, 155, 95, .15); border-color: rgba(165, 214, 179, .4); }
.alert-error { background: rgba(216, 69, 46, .14); border-color: rgba(240, 160, 144, .4); }
.alert a { color: var(--ink); }

/* ------------------------------------------------------------------ Agent Windows */
.hero-note { margin-top: 18px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 36px; }
.duo-item { padding: 22px; border-radius: var(--r); border: 1px solid var(--line-2); }
.duo-item .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--ground); border: 1px solid var(--line-2); color: var(--ink); margin-bottom: 14px; }
.duo-item .ico .icon { width: 22px; height: 22px; }
.duo-item p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 700px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.os-h { margin-top: 36px; font-size: 1.3rem; }
.os-panel .checklist { margin-bottom: 8px; }
.config-grid, .tray-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: 36px; }
@media (max-width: 860px) { .config-grid, .tray-grid { grid-template-columns: minmax(0, 1fr); } }
.config-grid .os-h, .tray-grid .os-h { margin-top: 0; }
.fields { list-style: none; margin: 16px 0; padding: 0; display: grid; }
.fields li { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.fields li:last-child { border-bottom: 1px solid var(--line); }
.fields strong { color: var(--ink); }
.fields span { color: var(--muted); }
@media (max-width: 560px) { .fields li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.contact-aside h3 { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.contact-aside h3:first-child { margin-top: 0; }
.contact-aside h3 .icon { width: 20px; height: 20px; color: var(--accent); }
.contact-aside p { color: var(--muted); font-size: .95rem; }
.status-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.status-list li { margin: 0; }
.status-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); border: 1px solid var(--line-2); height: 100%; }
.status-item h4 { margin: 0 0 4px; }
.status-item p { margin: 0; color: var(--muted); font-size: .9rem; }
.status-dot { flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; }
.status-grey { background: #8C9AA3; }
.status-green { background: #3E9B5F; box-shadow: 0 0 0 4px rgba(62, 155, 95, .25); }
.status-red { background: #D8452E; }
.status-orange { background: #E0A03A; }
@media (max-width: 560px) { .status-list { grid-template-columns: minmax(0, 1fr); } }
.tray-mock { margin: 0; padding: 18px; border-radius: var(--r); background: var(--ground); border: 1px solid var(--line-2); }
.tray-menu { list-style: none; margin: 0 0 14px auto; padding: 6px; width: min(100%, 250px); border-radius: 6px; background: #F3F3F3; color: #1b1b1b; font: 500 .9rem "Segoe UI", system-ui, sans-serif; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.tray-menu li { margin: 0; padding: 6px 12px; border-radius: 4px; }
.tray-menu li.hl { background: #E5E5E5; }
.tray-menu li.sep { padding: 0; height: 1px; margin: 4px 8px; background: #D5D5D5; }
.tray-bar { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 6px; background: #202020; color: #eee; font: 500 .8rem "Segoe UI", system-ui, sans-serif; }
.tray-icons { display: inline-flex; gap: 10px; }
.tray-icons span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tray-caption { margin-top: 12px; font-size: .84rem; color: var(--muted); }

/* ------------------------------------------------------------------ Prose (légal), erreur */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--ink); }
.prose table { font-size: .92rem; margin: 0 0 1.5em; }
.prose th, .prose td { border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--chapter); }
.error-page { padding-bottom: clamp(64px, 9vw, 120px); }
.error-code { font: 800 clamp(4rem, 12vw, 8rem) var(--font); letter-spacing: -.04em; line-height: 1; color: var(--accent); margin: 0 0 8px; }
.link-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.link-list li { margin: 0; }

/* ------------------------------------------------------------------ Documentation */
.hero-doc { max-width: none; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.page-hero-meta li { margin: 0; }
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-block: 24px 96px; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; font-size: .92rem; scrollbar-width: thin; }
.doc-toc-title { font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); margin: 0 0 1em; }
.doc-toc ul { list-style: none; padding: 0; margin: 0; }
.doc-toc li { margin: 0; }
.doc-toc a { display: block; padding: .32em .75em; border-left: 1px solid var(--line-2); color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.doc-toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.doc-toc a.is-active { color: var(--ink); border-left: 2px solid var(--accent); padding-left: calc(.75em - 1px); font-weight: 700; }
.doc-toc ul ul a { padding-left: 1.5em; font-size: .8rem; font-family: var(--mono); }
.doc-toc ul ul a.is-active { padding-left: calc(1.5em - 1px); }
@media (max-width: 920px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .doc-toc { position: static; max-height: none; border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px; }
}
.doc-content { min-width: 0; max-width: 880px; }
.doc-content p, .doc-content li { color: var(--ink-2); }
.doc-content a { color: var(--ink); }
.doc-section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.doc-section:last-child { border-bottom: 0; }
.doc-section > h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.55rem, 2.6vw, 2rem); }
.doc-section > h2 .idx { font: 700 .8rem var(--mono); color: var(--accent); letter-spacing: .04em; }
.doc-section h3 { margin-top: 1.6em; scroll-margin-top: calc(var(--header-h) + 16px); }
.doc-cta { margin: 0 0 48px; }
.http { display: inline-block; min-width: 3.2em; text-align: center; font: 700 .78rem var(--mono); padding: .18em .45em; border-radius: 6px; }
.http-2 { background: rgba(62, 155, 95, .18); color: #A5D6B3; }
.http-4 { background: rgba(224, 160, 58, .18); color: #EBCB85; }
.http-5 { background: rgba(216, 69, 46, .18); color: #F0A090; }
.retry { font-size: .84rem; font-weight: 600; white-space: nowrap; }
.retry-yes { color: #A5D6B3; } .retry-no { color: #F0A090; } .retry-fix { color: #EBCB85; }
.route { position: relative; padding: 32px 0 8px; margin-top: 28px; border-top: 1px dashed var(--line-2); scroll-margin-top: calc(var(--header-h) + 16px); }
.route-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 1.06rem; margin: 0 0 .7em; }
.route-title code { background: none; border: 0; padding: 0; font-size: .98rem; color: var(--ink); font-weight: 600; }
.route-title-sub { margin-top: -.3em; }
.method { display: inline-block; min-width: 66px; text-align: center; font: 700 .72rem var(--mono); letter-spacing: .06em; padding: .34em .6em; border-radius: 6px; color: var(--ink); }
.method-get { background: var(--peak); } .method-post { background: #2E6445; } .method-patch { background: #8A5A0B; } .method-delete { background: #A8321F; }
.route-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -.2em 0 1em; padding: 0; list-style: none; font-size: .84rem; color: var(--muted); }
.route-meta li { margin: 0; }
.route-meta strong { color: var(--ink); font-weight: 600; }
.callout { position: relative; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); background: rgba(239, 237, 230, .05); padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; margin: 0 0 1.3em; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-warn { border-left-color: #EBCB85; }
.roadmap-tag { display: inline-block; font: 700 .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: .25em .6em; border-radius: 6px; color: #EBCB85; border: 1px solid rgba(235, 203, 133, .4); vertical-align: .15em; }
.doc-content td:first-child { white-space: nowrap; }
@media (max-width: 600px) { .doc-content td:first-child { white-space: normal; } }
.table-scroll { overflow-x: auto; margin: 1rem 0; }
/* Référence des ressources */
.res-finder { margin: 1.6em 0; }
.res-finder td:last-child { white-space: normal; }
.res-finder td a { text-decoration: none; }
.res-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 1.4em 0 .6em; }
.res-legend .note { flex-basis: 100%; margin: .4em 0 0; }
.res-status { display: inline-block; font: 600 .7rem var(--mono); letter-spacing: .02em; border-radius: 6px; padding: .2em .7em; border: 1px solid var(--line-2); white-space: nowrap; color: var(--ink); }
.res-status-write { color: #A5D6B3; border-color: rgba(165, 214, 179, .45); }
.res-status-read { color: #C9D8EE; border-color: rgba(201, 216, 238, .45); }
.res-status-readonly { color: #EBCB85; border-color: rgba(235, 203, 133, .45); }
.res-status-empty { color: var(--muted); }
.res-status-module { color: #D9C2E3; border-color: rgba(217, 194, 227, .45); }
.res-search { margin: 1.4em 0 1em; }
.res-search label { display: block; font-weight: 700; margin-bottom: .35em; color: var(--ink); }
.res-search input { width: 100%; max-width: 520px; font: inherit; padding: .65em .9em; border: 1.5px solid var(--line-2); border-radius: var(--r); background: rgba(239, 237, 230, .04); color: var(--ink); }
.res-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 102, 80, .25); }
.res-search .note { margin: .4em 0 0; min-height: 1.2em; }
.res-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 22px; margin: 1em 0 2em; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--r); }
.res-index-domain { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; margin-bottom: .3em; }
.res-index ul { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.res-index li { margin: .15em 0; }
.res-index li a { color: var(--muted); text-decoration: none; }
.res-index li a:hover { color: var(--ink); text-decoration: underline; }
.res-count { font: 600 .72rem var(--mono); color: var(--ink); background: rgba(239, 237, 230, .08); border-radius: 6px; padding: .15em .6em; }
.res-domain { scroll-margin-top: calc(var(--header-h) + 16px); }
.res-route { padding-top: 22px; margin-top: 18px; scroll-margin-top: calc(var(--header-h) + 16px); }
.res-route .route-title { font-size: 1.02rem; }
.res-route .route-title code { font-family: var(--mono); font-size: .86rem; color: var(--muted); font-weight: 500; }
.res-kind { display: inline-block; font: 700 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: .1em .55em; }
.res-curated { color: #A5D6B3; border-color: rgba(165, 214, 179, .45); }
.res-routes { font-size: .88rem; }
.res-routes td { vertical-align: middle; }
.res-routes td code { white-space: nowrap; }
.res-routes .res-m { width: 76px; }
.res-routes .method { font-size: .64rem; }
.res-fields { margin-top: 10px; font-size: .84rem; }
.res-fields summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.res-fields ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 12px; max-height: 260px; overflow: auto; }
.res-fields li { margin: 0; display: flex; justify-content: space-between; gap: 8px; }
.res-fields li span { color: var(--muted); font-size: .78rem; }

/* ------------------------------------------------------------------ Impression et PDF de la documentation : encres claires */
@media print {
  :root { --ground: #FBFAF6; --chapter: #FBFAF6; --peak: #1B4D8F; --ink: #23282B; --ink-2: #23282B; --muted: #4A5357; --muted-2: #5D666A; --line: #DDD9CC; --line-2: #C4BFAF; --accent: #D8452E; color-scheme: light; }
  html { font-size: 13px; }
  body { background: #fff; color: #23282B; }
  .site-header, .site-footer, .doc-toc, .copy-btn, .close, .folio, .nav-toggle, .hero-page .actions, .res-search, .consent, .page-hero-meta { display: none !important; }
  .hero-page { display: none !important; }
  .doc-layout { display: block; padding: 0; }
  .doc-content { max-width: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .code-block { break-inside: avoid; background: #F3F1EA !important; border-color: #DDD9CC; }
  .code-block pre, .code-block code, .code-block code * { color: #14263E !important; }
  .code-label { background: #EAE7DE !important; color: #14263E !important; }
  code { color: #23282B !important; background: #EFEDE6 !important; border-color: #DDD9CC !important; }
  .method { color: #fff !important; }
  .http-2 { color: #2E6445; } .http-4 { color: #8A5A0B; } .http-5 { color: #A8321F; }
  .retry-yes { color: #2E6445; } .retry-no { color: #A8321F; } .retry-fix { color: #8A5A0B; }
  .res-status-write, .res-curated { color: #2E6445; } .res-status-read { color: #1B4D8F; } .res-status-readonly { color: #8A5A0B; } .res-status-module { color: #7A3A8A; }
  .callout { background: #F3F1EA; }
  thead th { background: #14263E; color: #fff; }
  tr { break-inside: avoid; }
  h2, h3, h4 { break-after: avoid; }
  .doc-section { padding-top: 10px; }
  .route { margin-top: 14px; padding-top: 14px; }
  .pdf-cover { display: block !important; }
  .pdf-logo { display: block; width: 230px; height: auto; margin: 0 0 22px; }
  .res-fields ul { max-height: none !important; overflow: visible !important; }
  .table-wrap { overflow: visible; border: 0; }
  a { color: #1B4D8F; text-decoration: none; }
}

/* Comparatif (accueil) */
.compare-block { margin-top: 48px; }
.compare-block h3 { font-size: 1.3rem; margin-bottom: 18px; }
.compare-block .compare { margin-top: 0; }

/* Documentation : largeur, recherche, navigation */
.page-documentation .container.doc-layout { max-width: 1480px; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; }
.page-documentation .doc-content { max-width: none; }
.page-documentation .hero-page { max-width: 1480px; margin-inline: auto; }
.doc-search { position: relative; margin-bottom: 18px; }
.doc-search input { width: 100%; font: inherit; font-size: .92rem; padding: .6em .9em .6em 2.4em; border: 1.5px solid var(--line-2); border-radius: var(--r); background: rgba(239, 237, 230, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8C2D0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center / 16px; color: var(--ink); }
.doc-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 102, 80, .25); }
.doc-search-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 60vh; overflow: auto; list-style: none; margin: 0; padding: 6px; background: var(--deep); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); }
.doc-search-results li { margin: 0; }
.doc-search-results a { display: grid; gap: 2px; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.doc-search-results a:hover, .doc-search-results a.is-hot { background: rgba(239, 237, 230, .08); }
.doc-search-results small { font: 500 .74rem var(--mono); color: var(--muted); }
.doc-search-results .m { font: 700 .66rem var(--mono); color: var(--accent); letter-spacing: .06em; }
.doc-search-results .none { padding: 10px; color: var(--muted); font-size: .9rem; }
.doc-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 .7rem var(--mono); color: var(--muted-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; pointer-events: none; }
.doc-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc-nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s; }
.doc-nav a:hover { color: var(--ink); }
.doc-nav a span { display: block; font: 600 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.doc-nav a.next { text-align: right; margin-left: auto; }
.doc-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--paper-ink); text-decoration: none; font-weight: 800; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.doc-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
mark.doc-hit { background: rgba(224, 102, 80, .3); color: inherit; border-radius: 3px; }

/* Calculateur : champs courts côte à côte, liste déroulante stylée, résultat enrichi */
.calc-form .field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 8px; align-items: end; }
.calc-hint-pair { margin: 0 0 22px; }
.calc-form .field-pair .field { margin: 0; }
.stepper { width: 100%; max-width: 200px; }
.stepper input[type="number"] { flex: 1 1 auto; width: 3.5em; }
.select-wrap { position: relative; max-width: 300px; }
.select-wrap select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; color: var(--muted); }
.calc-form select option { background: #14263E; color: #FBFAF6; }
.chapter-light .calc-form select option { background: #FBFAF6; color: #14263E; }
.calc-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 102, 80, .25); }
.calc-extra { list-style: none; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid rgba(239, 237, 230, .16); display: grid; gap: 8px; font-size: .9rem; }
.calc-extra li { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.calc-extra li span:last-child { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 480px) { .calc-form .field-pair { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ Formulaires : envoi et confirmation animés */
.btn-send { position: relative; }
.btn-send .btn-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(20, 38, 62, .25); border-top-color: currentColor; animation: spin .8s linear infinite; }
.btn-send.is-sending { pointer-events: none; opacity: .9; }
.btn-send.is-sending .btn-arrow { display: none; }
.btn-send.is-sending .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert-animated { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; align-items: center; animation: alert-in .6s var(--ease) both; }
.alert-animated h2, .alert-animated p { grid-column: 2; }
.alert-animated h2 { margin: 0; }
.alert-check { grid-row: 1 / 3; width: 52px; height: 52px; color: #A5D6B3; }
.alert-check circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw-check .7s var(--ease) .1s forwards; }
.alert-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw-check .5s var(--ease) .6s forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@keyframes alert-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .alert-check circle, .alert-check path { stroke-dashoffset: 0; animation: none; } .alert-animated { animation: none; } }

/* ------------------------------------------------------------------ Liste déroulante stylée (remplace le <select> natif, qui reste dans le formulaire) */
.nice-select { position: relative; }
.nice-select .visually-hidden-select { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nice-trigger { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 6px 14px 6px 6px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: rgba(239, 237, 230, .04); color: var(--ink); font: 600 1rem var(--font); cursor: pointer; text-align: left; transition: border-color .2s, box-shadow .2s; }
.nice-trigger:hover { border-color: var(--ink); }
.nice-trigger:focus-visible, .nice-select.is-open .nice-trigger { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 102, 80, .25); }
.nice-mark { flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font: 800 .8rem var(--mono); letter-spacing: .02em; background: var(--chapter); border: 1px solid var(--line-2); color: var(--muted); transition: background-color .2s, color .2s; }
.nice-mark[data-mark="AC"] { background: #1B4D8F; color: #FBFAF6; border-color: transparent; }
.nice-mark[data-mark="AV"] { background: #E06650; color: #14263E; border-color: transparent; }
.nice-mark[data-mark="—"] { color: var(--muted-2); }
.nice-text { flex: 1 1 auto; min-width: 0; }
.nice-text small { display: block; font: 500 .78rem var(--font); color: var(--muted); }
.nice-caret { flex-shrink: 0; width: 18px; height: 18px; color: var(--muted); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8C2D0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 18px; transition: transform .25s var(--ease); }
.nice-select.is-open .nice-caret { transform: rotate(180deg); }
.nice-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--deep); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top; pointer-events: none; transition: opacity .2s var(--ease), transform .25s var(--ease); }
.nice-select.is-open .nice-list { opacity: 1; transform: none; pointer-events: auto; }
.nice-option { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 10px 8px 6px; border-radius: 8px; cursor: pointer; color: var(--ink); font-weight: 600; transition: background-color .15s; }
.nice-option:hover, .nice-option.is-hot { background: rgba(239, 237, 230, .08); }
.nice-option[aria-selected="true"] { color: var(--ink); }
.nice-option .nice-check { margin-left: auto; width: 16px; height: 16px; opacity: 0; color: var(--accent); }
.nice-option[aria-selected="true"] .nice-check { opacity: 1; }
.nice-option small { display: block; font: 500 .78rem var(--font); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .nice-list, .nice-caret { transition: none; } }

/* ------------------------------------------------------------------ Lumières subtiles : halos et reflets qui cassent la monotonie */
.chapter-alt, .chapter-peak, .close, .sc-stage, .code-block, .plan.featured, .doors, .calc { position: relative; }
.chapter-alt::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 8% 0%, rgba(27, 77, 143, .28), transparent 65%), radial-gradient(40% 40% at 100% 100%, rgba(224, 102, 80, .07), transparent 70%); }
.chapter-alt > .container { position: relative; }
.chapter-alt::after, .chapter-peak::after { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(239, 237, 230, .35), transparent); pointer-events: none; }
.hero-glow { opacity: .9; }
.close::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(50% 80% at 85% 20%, rgba(224, 102, 80, .16), transparent 70%), radial-gradient(40% 60% at 10% 100%, rgba(27, 77, 143, .35), transparent 70%); }
.close > * { position: relative; }
.close::after { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(239, 237, 230, .45), transparent); pointer-events: none; }
.doors::before { content: ""; position: absolute; left: 20%; right: 20%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7; pointer-events: none; }
.code-block::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(169, 190, 221, .5), transparent); pointer-events: none; }
.code-block::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 40% at 50% 0%, rgba(27, 77, 143, .18), transparent 70%); }
.code-block > * { position: relative; }
.sc-stage::before { content: ""; position: absolute; left: 15%; right: 15%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(169, 190, 221, .6), transparent); pointer-events: none; }
.plan.featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 50% at 100% 0%, rgba(224, 102, 80, .18), transparent 70%); }
.plan.featured > * { position: relative; }
.calc-result::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at 100% 100%, rgba(224, 102, 80, .14), transparent 70%), radial-gradient(50% 50% at 0% 0%, rgba(27, 77, 143, .35), transparent 70%); }
.calc-result { position: relative; }
.calc-result > * { position: relative; }
.rail li::before { box-shadow: 0 0 0 6px rgba(224, 102, 80, .12); }
.row .ico, .ledger-row .ico, .duo-item .ico { box-shadow: inset 0 1px 0 rgba(239, 237, 230, .08); }
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(239, 237, 230, .3), transparent); }
.fear { position: relative; }
.fear:hover .a strong { text-shadow: 0 0 24px rgba(251, 250, 246, .25); }
@media (prefers-reduced-motion: no-preference) {
  .chapter-peak::before { animation: glow-shift 18s ease-in-out infinite alternate; }
  @keyframes glow-shift { to { transform: translateX(8%) scale(1.06); } }
}

/* Espace client : pastille dans la barre, libellé qui se déplie au survol */
.nav-account { display: inline-flex; align-items: center; gap: 0; height: 40px; padding: 0; box-sizing: border-box; border-radius: 999px; border: 1.5px solid rgba(239, 237, 230, .26); color: #EFEDE6; text-decoration: none; font-weight: 600; font-size: .9rem; overflow: hidden; transition: border-color .25s, background-color .25s, padding .3s cubic-bezier(.2, .7, .2, 1); }
.nav-account-ico { width: 37px; height: 37px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 0; }
.nav-account-ico svg { width: 19px; height: 19px; display: block; }
.nav-account-label { max-width: 0; opacity: 0; white-space: nowrap; transition: max-width .3s cubic-bezier(.2, .7, .2, 1), opacity .25s, padding .3s; }
.nav-account:hover, .nav-account:focus-visible, .nav-account[aria-current="page"] { border-color: #E06650; background: rgba(224, 102, 80, .12); padding-right: 14px; }
.nav-account:hover .nav-account-label, .nav-account:focus-visible .nav-account-label, .nav-account[aria-current="page"] .nav-account-label { max-width: 120px; opacity: 1; padding-left: 2px; }
.nav-account:hover .nav-account-ico svg { color: #E06650; }
@media (max-width: 1180px) { .nav-account { align-self: flex-start; padding-right: 14px; } .nav-account .nav-account-label { max-width: none; opacity: 1; padding-left: 2px; } }

.select-wrap:has(.nice-select)::after { display: none; }
.nice-select { z-index: 5; }
.nice-select.is-open { z-index: 40; }

/* Débordements : halo du hero contenu, code et boutons Copier dans la largeur du mobile */
html { overflow-x: clip; }
.hero { overflow: visible; }
.hero-glow { right: 0; }
.code-block:not(:has(.code-label)) pre { padding-right: 18px; padding-top: 44px; }
.code-block > .copy-btn { max-width: calc(100% - 16px); }
@media (max-width: 600px) { .callout { margin-inline: 0; } .doc-layout { padding-inline: 0; } }
