/* kissgroup.io — tokens repris du design system KissMy (my.kissgroup.io/src/assets/scss/_settings.scss).
   Clair par défaut, sombre selon le système ou forcé par data-theme (bouton du pied de page). */
/* Les polices sont dans fonts.css (intégrées en base64).
   « Inter Fallback » est une police système recalibrée aux dimensions d'Inter :
   si Inter n'est pas encore chargée, le texte ne bouge pas au moment du remplacement. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; }
@font-face { font-family: "JetBrains Mono Fallback"; src: local("Menlo"), local("Courier New");
  size-adjust: 100%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%; }

:root {
  --bg: #F7F8FA; --surface: #FFFFFF; --border: #EAECF0; --border-soft: #F2F4F7;
  --text: #0F172A; --text-2: #475467; --text-3: #98A2B3;
  --accent: #4F46E5; --accent-hover: #4338CA; --accent-soft: #EEF0FF; --accent-border: #C7D2FE; --on-accent: #FFFFFF;
  --danger: #F04438; --danger-soft: #FEF3F2; --danger-text: #B42318;
  --success: #12B76A; --warn: #F79009;
  --logo-k: #2658E6; --logo-rest: #4A4F5C;
  --logo-plate: #FFFFFF;
  /* Couleurs produit : uniquement sur les icônes, comme dans le portail. */
  --kh: #CF43C8; --kl: #FF485D; --kb: #FF8469; --kbb: #E0A030; --kd: #00A373; --kv: #9E00FF; --km: #01B8E0;
  --shadow-md: 0 2px 8px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --font: "Kissgroup Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Kissgroup Mono", "JetBrains Mono Fallback", "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0B1220; --surface: #131C2E; --border: #2A374D; --border-soft: #1C2740;
  --text: #E6EBF5; --text-2: #A8B3C7; --text-3: #6F7B93;
  --accent: #818CF8; --accent-hover: #A5B1FD; --accent-soft: rgba(129,140,248,.16); --accent-border: rgba(129,140,248,.38); --on-accent: #0B1220;
  --danger: #F87171; --danger-soft: rgba(248,113,113,.16); --danger-text: #FCA5A5;
  --success: #22C55E; --warn: #FBBF24;
  --logo-k: #6F93FF; --logo-rest: #E6EBF5;
  --logo-plate: #F4F6FA;
  --kh: #E27ADC; --kl: #FF7685; --kb: #FFA08A; --kbb: #F2BE5C; --kd: #2FC796; --kv: #B86BFF; --km: #3FDBFF;
  --shadow-md: 0 2px 8px rgba(0,0,0,.40), 0 1px 2px rgba(0,0,0,.35);
  color-scheme: dark;
}}
:root[data-theme="dark"] {
  --bg: #0B1220; --surface: #131C2E; --border: #2A374D; --border-soft: #1C2740;
  --text: #E6EBF5; --text-2: #A8B3C7; --text-3: #6F7B93;
  --accent: #818CF8; --accent-hover: #A5B1FD; --accent-soft: rgba(129,140,248,.16); --accent-border: rgba(129,140,248,.38); --on-accent: #0B1220;
  --danger: #F87171; --danger-soft: rgba(248,113,113,.16); --danger-text: #FCA5A5;
  --success: #22C55E; --warn: #FBBF24;
  --logo-k: #6F93FF; --logo-rest: #E6EBF5;
  --logo-plate: #F4F6FA;
  --kh: #E27ADC; --kl: #FF7685; --kb: #FFA08A; --kbb: #F2BE5C; --kd: #2FC796; --kv: #B86BFF; --km: #3FDBFF;
  --shadow-md: 0 2px 8px rgba(0,0,0,.40), 0 1px 2px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

.eyebrow, .mono-cap { font-family: var(--font); font-size: .82rem; font-weight: 600; letter-spacing: 0; color: var(--accent); }
.mono-cap { color: var(--text-3); }
/* Police mono réservée aux données : nom de fichier, schémas. */
.csv-cap .mono-cap, .ec-phases, .ec-row-cap, .ec-legend { font-family: var(--mono); font-weight: 500; font-size: .76rem; letter-spacing: .04em; }
.lead { color: var(--text-2); font-size: 1.1rem; max-width: 58ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem/1 var(--font); text-decoration: none; border-radius: 8px;
  padding: 13px 18px; border: 1px solid transparent; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent-border); }
.btn-sm { padding: 9px 14px; font-size: .88rem; }

.ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- navigation ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.logo { font-weight: 700; font-size: 1.4rem; letter-spacing: -.03em; color: var(--logo-rest); text-decoration: none; white-space: nowrap; }
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 34px; width: auto; }
.logo-sm img { height: 28px; }
.nav nav > ul { display: flex; gap: 28px; font-size: .93rem; font-weight: 500; }
.nav ul a, .nav-r .login { color: var(--text-2); text-decoration: none; }
.nav ul a:hover, .nav-r .login:hover { color: var(--text); }
/* Menu déroulant des produits (ordinateur : au survol ou au clavier) */
.nav { position: relative; z-index: 20; }
.has-menu { position: relative; }
.menu { position: absolute; top: 100%; left: -24px; padding-top: 14px; opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility 0s .15s; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
.menu-list { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; width: 520px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 24px rgba(16,24,40,.08), 0 4px 8px rgba(16,24,40,.04); }
.nav .menu-list a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.nav .menu-list a:hover, .nav .menu-list a:focus-visible, .nav .menu-list a[aria-current="page"] { background: var(--bg); }
.menu-t { display: grid; gap: 1px; min-width: 0; }
.menu-t b { font-weight: 600; font-size: .92rem; }
.menu-t small { font-size: .78rem; color: var(--text-3); font-weight: 400; }
.nav .menu-list .menu-all { justify-content: space-between; padding-left: 16px; color: var(--accent); }
.nav .menu-list .menu-all b { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .menu { transition: none; } }
.nav-r { display: flex; align-items: center; gap: 18px; font-size: .93rem; font-weight: 500; }
/* Mobile : la navigation passe dans un panneau ouvert par le bouton menu (nav.js). */
.nav-toggle, .nav-m-only { display: none; }
@media (max-width: 880px) {
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; padding: 0; border: 0; border-radius: 8px;
    background: none; color: var(--text); cursor: pointer; }
  .nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .nav-toggle .nt-close, .nav.open .nav-toggle .nt-open { display: none; }
  .nav.open .nav-toggle .nt-close { display: inline; }
  .nav nav { display: none; position: absolute; top: calc(100% - 8px); left: var(--gutter); right: var(--gutter);
    max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; z-index: 1;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 12px 24px rgba(16,24,40,.08), 0 4px 8px rgba(16,24,40,.04); }
  .nav.open nav { display: block; }
  .nav nav > ul { display: grid; gap: 0; font-size: 1rem; list-style: none; margin: 0; padding: 0; }
  .nav nav > ul > li > a { display: block; padding: 12px; border-radius: 8px; }
  .nav nav > ul > li > a:hover, .nav nav > ul > li > a[aria-current="page"] { background: var(--bg); }
  .nav-m-only { display: block; border-top: 1px solid var(--border-soft); margin-top: 6px; padding-top: 6px; }
  /* Produits : la liste est affichée directement, sous le lien « Produits ». */
  .menu, .has-menu:hover .menu, .has-menu:focus-within .menu { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 6px; transition: none; }
  .menu-list { width: auto; padding: 0 0 0 4px; border: 0; box-shadow: none; background: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav .menu-list a { padding: 8px; gap: 10px; }
  .menu-list .ico { width: 28px; height: 28px; }
  .menu-list .ico svg { width: 15px; height: 15px; }
  .menu-t small { display: none; }
  .nav .menu-list li:last-child { display: none; }
}
@media (max-width: 420px) { .menu-list { grid-template-columns: minmax(0, 1fr); } }
/* #GrandissonsEnsemble sous le bouton du haut (accueil), une flèche remonte vers le bouton. */
.cta-top { position: relative; display: inline-flex; }
.cta-note { position: absolute; top: calc(100% + 2px); right: -14px; display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap;
  color: var(--accent); font-weight: 700; font-size: .95rem; letter-spacing: -.01em; text-decoration: none; }
.cta-note svg { width: 30px; height: 30px; margin-right: 63px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cta-note:hover { color: var(--accent-hover); }
@media (max-width: 640px) { .cta-note { display: none; } }
@media (max-width: 480px) { .nav-r .login { display: none; } }

/* ---------- premier écran ---------- */
.hero { padding-block: clamp(24px, 5vw, 56px) clamp(48px, 7vw, 96px); display: grid; gap: clamp(24px, 3vw, 40px); }
.hero-title { font-size: clamp(2.8rem, 14vw, 10rem); line-height: .9; letter-spacing: -.065em; font-weight: 800; margin-left: -.04em; }
.hero-title .pct { display: block; color: var(--accent); white-space: nowrap; }
/* Le métier, juste sous le slogan : ce qu'on lit en second. */
.hero-role { display: block; margin-top: clamp(18px, 2.4vw, 32px); font-size: clamp(1.6rem, 4.2vw, 3.2rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
/* Le mot après « 100 % » défile vers le haut ; « indirect. » revient entre chaque mot (static/js/hero.js).
   La fenêtre est plus haute que la ligne pour ne pas couper les jambages, les marges négatives gardent la mise en page. */
.rot { display: block; white-space: nowrap; min-height: .9em; }
.rot-box { display: block; height: 1.15em; margin-block: -.125em; overflow: hidden; }
.rot-list { display: block; transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.rot-list > span { display: block; height: 1.15em; line-height: 1.15em; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.hero-copy { display: grid; gap: 26px; justify-items: start; padding-top: 6px; }
.hero-lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); font-weight: 600; line-height: 1.45; max-width: 34ch; }
.hero-lead span { display: block; margin-top: 10px; color: var(--text-2); font-weight: 400; font-size: 1.05rem; max-width: 46ch; }
@media (max-width: 900px) { .hero-row { grid-template-columns: minmax(0, 1fr); } }

/* le circuit */
.circuit { position: relative; padding-right: 58px; }
.node { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; display: grid; gap: 12px; }
.node-h { display: flex; align-items: center; gap: 12px; }
.node-t { font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.node-s { font-size: .82rem; color: var(--text-3); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .76rem; font-weight: 500; color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; background: var(--bg); white-space: nowrap; }
.node { container-type: inline-size; }
/* Les offres, rangées comme la coupe plus bas : opéré, puis édité. */
.offers { display: grid; grid-template-columns: auto minmax(0, 1fr); border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; }
.offers-k { display: grid; align-content: center; padding: 0 12px; background: var(--bg); border-right: 1px solid var(--border-soft); }
.offers-k b { font-family: var(--font); font-size: .68rem; letter-spacing: 0; font-weight: 500; color: var(--text-2); }
.offers-k.ed b { color: var(--accent); }
.offers-k.ed, .offers-k.ed + ul { border-top: 1px solid var(--border-soft); }
.offers ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offers a { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-width: 0; color: inherit; text-decoration: none; transition: background-color .15s; }
.offers a:hover { background: var(--bg); color: var(--accent); }
.offers li { display: flex; font-size: .88rem; font-weight: 600; min-width: 0;
  border-left: 1px solid var(--border-soft); border-top: 1px solid var(--border-soft); }
.offers li:nth-child(odd) { border-left: 0; }
.offers li:nth-child(-n+2) { border-top: 0; }
.ico-sm { width: 26px; height: 26px; border-radius: 6px; }
.ico-sm svg { width: 14px; height: 14px; }
@container (max-width: 380px) {
  .offers li { font-size: .8rem; }
  .offers a { padding: 9px 8px; gap: 7px; }
  .offers .ico-sm { width: 22px; height: 22px; }
}
/* Étroit : l'étiquette passe au-dessus de ses offres. */
@container (max-width: 420px) {
  .offers { grid-template-columns: minmax(0, 1fr); }
  .offers-k { padding: 5px 10px; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .offers-k.ed + ul { border-top: 0; }
}
.node-you { border-color: var(--accent-border); box-shadow: 0 0 0 4px var(--accent-soft); }
.node-you .node-t { color: var(--accent); }
.node-client { background: transparent; border-style: dashed; }
.link { position: relative; height: 46px; display: flex; align-items: center; padding-left: 54px; font-family: var(--mono); font-size: .72rem; color: var(--text-3); }
.link::before { content: ""; position: absolute; left: 36px; top: 0; bottom: 0; border-left: 2px solid var(--border); }
.cut { position: absolute; right: 0; top: 34px; bottom: 34px; width: 54px; pointer-events: none; }
/* Flèche Kissgroup → client qui contourne le partenaire, barrée au milieu. */
.cut-line { position: absolute; left: 0; top: 0; bottom: 0; width: 24px; border: 2px dashed var(--danger); border-left: 0; border-radius: 0 10px 10px 0; opacity: .6; }
.cut-head { position: absolute; left: 0; bottom: -6px; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-right: 10px solid var(--danger); opacity: .75; }
.cut-x { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
  background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger-text); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.cut-lbl { position: absolute; left: 44px; top: 50%; transform: translate(-50%, -50%) rotate(90deg); white-space: nowrap;
  font-family: var(--mono); font-size: .7rem; color: var(--danger-text); letter-spacing: .04em; }

/* ---------- registre ---------- */
.ledger-sec { padding-block: 0 clamp(64px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(40px, 6vw, 96px); }
.ledger-head { display: grid; gap: 8px; align-content: start; }
.ledger-head h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 700; letter-spacing: -.02em; }
.ledger { border-top: 2px solid var(--text); font-size: 1rem; }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 6px 24px; padding: 15px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.ledger-row dt { color: var(--text-2); }
.ledger-row dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.ledger-row dd.hl { font-family: var(--mono); color: var(--accent); font-size: 1.1rem; }
@media (max-width: 860px) { .ledger-sec { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .ledger-row { grid-template-columns: minmax(0, 1fr); } .ledger-row dd { text-align: left; } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--border); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 48px); max-width: 760px; }
.sec h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }

/* la coupe opéré / édité */
.stack { display: grid; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-md); }
.layer { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-top: 1px solid var(--border); }
.layer:first-child { border-top: 0; }
.layer-k { padding: 18px 20px; display: grid; align-content: center; gap: 2px; border-right: 1px solid var(--border); background: var(--bg); }
.layer-k b { font-family: var(--font); font-size: .74rem; letter-spacing: 0; font-weight: 500; color: var(--text-2); }
.layer-k span { font-size: .82rem; color: var(--text-3); }
.layer-k.ed b { color: var(--accent); }
.layer-v { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cell { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-left: 1px solid var(--border-soft); min-width: 0; }
.cell:first-child { border-left: 0; }
.cell h3 { font-size: .95rem; font-weight: 700; margin-bottom: 3px; }
.cell p { font-size: .84rem; color: var(--text-2); line-height: 1.45; }
.cell-link { color: inherit; text-decoration: none; transition: background-color .15s; }
.cell-link:hover { background: var(--bg); }
.cell-link:hover h3, .cell h3 a:hover { color: var(--accent); }
.cell h3 a { color: inherit; text-decoration: none; }
.layer-top { background: var(--accent-soft); }
.layer-top .layer-k { background: transparent; border-right-color: var(--accent-border); }
.layer-top .layer-k b { color: var(--accent); }
.top-v { padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.top-v p { font-weight: 600; font-size: 1.05rem; }
.top-v small { color: var(--text-2); font-size: .88rem; }
@media (max-width: 1080px) { .layer-v { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cell { border-top: 1px solid var(--border-soft); } .cell:nth-child(-n+2) { border-top: 0; } .cell:nth-child(odd) { border-left: 0; } }
@media (max-width: 640px) {
  .layer { grid-template-columns: minmax(0, 1fr); }
  .layer-k { border-right: 0; border-bottom: 1px solid var(--border); }
  .layer-top .layer-k { border-bottom-color: var(--accent-border); }
  .layer-v { grid-template-columns: minmax(0, 1fr); }
  .cell { border-left: 0; border-top: 1px solid var(--border-soft); }
  .cell:first-child { border-top: 0; }
  .cell:nth-child(2) { border-top: 1px solid var(--border-soft); }
}

/* KissMy */
.kissmy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 88px); align-items: center; }
.km-copy { display: grid; gap: 16px; }
.km-list { display: grid; margin-top: 8px; border-top: 1px solid var(--border); }
.km-list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.km-list b { font-weight: 600; }
.km-list span { color: var(--text-2); font-size: .94rem; }
.access { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.access-cap { padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
.access-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 16px; align-items: center; padding: 20px; border-top: 1px solid var(--border-soft); }
.access-row:nth-child(2) { border-top: 0; }
.access-t h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.access-t p { font-size: .88rem; color: var(--text-2); line-height: 1.45; }
.access-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.access-links a { font-family: var(--font); font-size: .76rem; color: var(--accent); text-decoration: none; background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 999px; padding: 4px 10px; white-space: nowrap; transition: border-color .15s, background-color .15s; }
.access-links a::after { content: " ↗"; }
.access-links a:hover { border-color: var(--accent); }
@media (max-width: 560px) { .access-row { grid-template-columns: auto minmax(0, 1fr); } .access-links { grid-column: 2; justify-content: flex-start; } }
@media (max-width: 900px) { .kissmy { grid-template-columns: minmax(0, 1fr); } }

/* captures KissMy */
.kissmy { padding-bottom: clamp(40px, 5vw, 64px); }
.screens { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding-block: 0 clamp(64px, 9vw, 120px); }
.screen { min-width: 0; display: grid; gap: 10px; }
.screen img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); background: var(--surface); }
.screen figcaption { font-family: var(--font); font-size: .74rem; color: var(--text-3); letter-spacing: 0; }
.screen-back { grid-column: 1 / span 9; grid-row: 1; }
.screen-front { grid-column: 6 / span 7; grid-row: 1; margin-top: clamp(80px, 14vw, 200px); position: relative; z-index: 1; }
.screen-front img { box-shadow: 0 24px 48px rgba(16, 24, 40, .16), 0 4px 12px rgba(16, 24, 40, .08); }
/* captures KissMy sous les offres des pages produits */
.prod-shots { display: grid; gap: clamp(16px, 2vw, 24px); padding-block: clamp(24px, 4vw, 48px) clamp(48px, 6vw, 80px); }
.prod-shots-head { display: grid; gap: 8px; }
.prod-shots-head h2 { margin: 0; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.shot { margin: 0; min-width: 0; display: grid; gap: 10px; align-content: start; }
.shot-open { display: block; border-radius: 10px; cursor: zoom-in; }
.shot-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shot img { width: 100%; height: auto; aspect-ratio: 1520 / 784; object-fit: cover; object-position: left top; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md); background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.shot-open:hover img { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(16, 24, 40, .14); }
.shot figcaption { font-size: .86rem; color: var(--text-2); line-height: 1.45; }
.shots-note { margin: 0; font-family: var(--font); font-size: .72rem; color: var(--text-3); letter-spacing: 0; }
@media (max-width: 760px) { .shots { grid-template-columns: minmax(0, 1fr); } }
/* page KissMy */
.km-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(40px, 6vw, 88px); align-items: start; margin-bottom: clamp(32px, 4vw, 56px); }
.km-split .sec-head { margin-bottom: 0; }
.km-split .lead a { color: var(--accent); }
@media (max-width: 900px) { .km-split { grid-template-columns: minmax(0, 1fr); } }
.km-rows { box-shadow: none; }
.km-rows .access-row { align-items: start; padding: clamp(20px, 2.4vw, 28px); scroll-margin-top: 96px; }
.km-rows .access-row:first-child { border-top: 0; }
.km-rows .access-t h3 { font-size: 1.1rem; margin-bottom: 6px; }
.km-rows .access-t h3 small { margin-left: 6px; font-size: .82rem; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.km-rows .access-t p { font-size: .95rem; max-width: 70ch; }
@media (max-width: 560px) { .km-rows .access-t h3 small { display: block; margin: 2px 0 0; } }
.km-roadmap { margin-top: clamp(24px, 3vw, 36px); color: var(--text-2); }
#portail { scroll-margin-top: 80px; }
.shot-box { width: min(1480px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: auto; }
.shot-box::backdrop { background: rgba(8, 12, 22, .72); }
.shot-box img { display: block; width: 100%; height: auto; }
.shot-box button { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.1rem; line-height: 1; cursor: pointer; }
@media (max-width: 760px) {
  .screens { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .screen-back, .screen-front { grid-column: 1; grid-row: auto; margin-top: 0; }
}

/* appel final */
.final { padding-block: 0 clamp(64px, 9vw, 112px); }
.final-in { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 16px; justify-items: start; }
.final-tag { font-family: var(--mono); font-size: .9rem; color: var(--accent); letter-spacing: .02em; }
.final h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.03em; font-weight: 700; }
.final .ctas { margin-top: 8px; }

/* ---------- produits ---------- */
.nav ul a[aria-current="page"] { color: var(--text); font-weight: 600; }
.ico-lg { width: 44px; height: 44px; border-radius: 10px; }
.ico-lg svg { width: 22px; height: 22px; }
.badge-ed { display: inline-flex; align-items: center; height: 22px; line-height: 1; font-style: normal; font-family: var(--font); font-size: .68rem; letter-spacing: 0;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 999px; padding: 1px 10px 0; white-space: nowrap; vertical-align: middle; }
.tag { display: inline-flex; align-items: center; height: 22px; line-height: 1; font-size: .78rem; font-weight: 600; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 0 10px; white-space: nowrap; }

.page-head { padding-block: clamp(32px, 6vw, 72px) clamp(28px, 4vw, 48px); display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; max-width: 16ch; }

.catalog { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.catalog-row { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px 28px; align-items: center;
  padding: 24px 4px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: background-color .15s; }
.catalog-row:hover { background: var(--surface); }
.catalog-main { display: grid; gap: 4px; min-width: 0; }
.catalog-name { font-weight: 700; font-size: 1.15rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.catalog-name small { font-family: var(--font); font-weight: 400; font-size: .74rem; color: var(--text-3); letter-spacing: 0; }
.catalog-title { color: var(--text-2); }
.catalog-offers { font-family: var(--font); font-size: .76rem; color: var(--text-3); line-height: 1.6; }
.catalog-arrow { font-size: 1.3rem; color: var(--text-3); transition: transform .15s, color .15s; }
.catalog-row:hover .catalog-arrow { transform: translateX(4px); color: var(--accent); }
@media (max-width: 860px) {
  .catalog-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .catalog-offers { grid-column: 2 / -1; }
}

.prod-head { padding-block: clamp(20px, 4vw, 40px) clamp(32px, 4vw, 48px); display: grid; gap: clamp(24px, 3vw, 36px); }
.crumbs { display: flex; gap: 10px; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.prod-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px clamp(40px, 6vw, 96px); align-items: start; }
.prod-copy { display: grid; gap: 22px; justify-items: start; }
.prod-name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-weight: 700; font-size: 1.25rem; }
.prod-copy h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.03; letter-spacing: -.045em; font-weight: 800; }
.prod-facts { margin-top: 6px; }
.prod-facts .ledger-row dd { font-weight: 600; }
.offer-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.offer-nav a { font-size: .86rem; font-weight: 500; color: var(--text-2); text-decoration: none; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 14px; }
.offer-nav a:hover { color: var(--text); border-color: color-mix(in srgb, var(--pc) 45%, var(--border)); }
@media (max-width: 900px) { .prod-row { grid-template-columns: minmax(0, 1fr); } }

.offers-list { padding-block: 0 clamp(48px, 7vw, 88px); }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px clamp(32px, 5vw, 72px); padding-block: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--border); scroll-margin-top: 24px; }
.offer-group { display: grid; gap: 6px; padding-block: clamp(36px, 5vw, 56px) 4px; border-top: 2px solid var(--text); }
.offer-group h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.04em; font-weight: 800; }
.offer-group p { color: var(--text-2); max-width: 60ch; }
.offer-group + .offer { border-top: 0; }
.offer-head { display: grid; gap: 12px; align-content: start; justify-items: start; }
.offer-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; font-weight: 700; }
.offer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.offer-sum { color: var(--text-2); max-width: 44ch; }
.offer-speed { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; color: var(--pc, var(--text)); }

/* Logos de marque dans l'en-tête d'une offre, avec variante pour le thème sombre. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.offer-logo img { display: block; height: 30px; width: auto; max-width: 100%; }
.offer-logo-lg img { height: clamp(44px, 5vw, 60px); }
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .only-dark { display: block !important; } :root:not([data-theme="light"]) .only-light { display: none !important; } }
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }

/* LeBigo, mis en avant sur la page KissVoice */
.offer-feature .offer-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -.045em; font-weight: 800; }
.offer-feature .offer-sum { font-size: 1.05rem; color: var(--text); }
.lb-pillars { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lb-pillars li { display: grid; gap: 8px; align-content: start; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.lb-pillars h3 { font-size: 1rem; font-weight: 700; }
.lb-pillars p { font-size: .88rem; color: var(--text-2); line-height: 1.5; }
@media (max-width: 980px) { .lb-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lb-pillars { grid-template-columns: minmax(0, 1fr); } }
.dcs { grid-column: 1 / -1; display: grid; gap: 12px; }
.dc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.dc-list li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; font-weight: 600; }
.dc-list svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--pc, var(--text-3)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* KissLink : page de prise de rendez-vous en marque blanche */
.rdv { padding-block: 0 clamp(40px, 5vw, 64px); scroll-margin-top: 80px; }
.rdv-in { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px 48px; align-items: center; }
.rdv-copy { display: grid; gap: 10px; }
.rdv-copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.03em; font-weight: 700; max-width: 22ch; margin: 0; }
.rdv-copy > p { margin: 0; color: var(--text-2); max-width: 46ch; }
.rdv-in { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
.rdv-copy { padding-top: 48px; gap: 14px; }
.rdv-cols { display: grid; gap: 22px; margin-top: 8px; }
.rdv-cols h3 { margin: 0 0 10px; }
.rdv-demo { margin: 0; display: grid; gap: 10px; }
.rdv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rdv-colors { display: flex; gap: 8px; }
.rdv-sw { width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 2px solid var(--surface); background: var(--c); box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.rdv-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); }
.rdv-frame { display: block; box-sizing: content-box; width: calc(100% - 2px); height: 640px; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md); background: #fff; }
@media (max-width: 1080px) { .rdv-in { grid-template-columns: minmax(0, 1fr); } .rdv-copy { padding-top: 0; } .rdv-copy h2, .rdv-copy > p { max-width: none; } .rdv-cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* schémas de livraison KissLink : Internet et L3VPN, avec secours 4G/5G */
.links { padding-block: 0 clamp(40px, 5vw, 64px); display: grid; gap: 20px; }
.links-head { display: grid; gap: 8px; }
.links-head h2 { margin: 0; }
.fo-title { display: grid; gap: 4px; padding: 18px 20px 0; }
.fo-title h3 { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.fo-title p { margin: 0; font-size: .92rem; color: var(--text-2); }
.fo-priv { fill: var(--bg); stroke: var(--border); stroke-width: 1.5; }
.fo-priv-t { font: 700 12px var(--font); fill: var(--text-2); }
.fo-vpn { fill: color-mix(in srgb, var(--kbb) 12%, var(--surface)); stroke: var(--kbb); stroke-width: 1.5; }
.fo-vpn-t { font: 700 14px var(--font); fill: var(--text); }
.fo-vpn-l { stroke: var(--kbb); stroke-width: 2.5; fill: none; }
.fo-fw { stroke: color-mix(in srgb, var(--kh) 55%, var(--border)); }
.fo { margin: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.fo-scroll { overflow-x: auto; padding: 8px 12px 4px; }
.fo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px 0; }
.fo-modes { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.fo-mode { font: 600 .86rem var(--font); color: var(--text-2); background: none; border: 0; border-radius: 7px; padding: 7px 14px; cursor: pointer; }
.fo-mode[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-md); }
.fo-mode-txt { font-size: .9rem; color: var(--text-2); min-width: 0; }
.fo[data-mode="routeur"] .fo-only-b, .fo[data-mode="bridge"] .fo-only-r,
.fo[data-sites="mono"] .fo-only-multi, .fo[data-sites="multi"] .fo-only-mono { display: none; }
.fo-plate { fill: var(--logo-plate); stroke: var(--border); stroke-width: 1; }
.fo-lan, .fo-pin { stroke: var(--text-3); stroke-width: 2; fill: none; }
.fo-kb { stroke: color-mix(in srgb, var(--kl) 55%, var(--border)); }
.fo svg { display: block; width: 100%; min-width: 640px; height: auto; }
.fo-wide svg { min-width: 700px; }
.fo svg.fo-v { display: none; min-width: 0; max-width: 420px; margin-inline: auto; }
@media (max-width: 700px) { .fo svg.fo-h { display: none; } .fo svg.fo-v { display: block; } }
.fo-box, .fo-bb { fill: var(--bg); stroke: var(--border); stroke-width: 1.5; }
.fo-bb { stroke: color-mix(in srgb, var(--kbb) 55%, var(--border)); stroke-dasharray: 5 5; }
.fo-chip { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.fo-cap { font: 500 11px var(--mono); letter-spacing: .08em; fill: var(--text-3); }
.fo-cap-bb { fill: var(--kbb); }
.fo-dc { font: 500 9.5px var(--mono); letter-spacing: .08em; fill: var(--text-3); }
.fo-mid { font: 700 12.5px var(--font); fill: var(--text); }
.fo-tiny { font: 400 11px var(--font); fill: var(--text-3); }
.fo-ip-s { font-size: 11.5px; }
.fo-strong { font: 700 14px var(--font); fill: var(--text); }
.fo-small { font: 400 12px var(--font); fill: var(--text-3); }
.fo-label { font: 500 12px var(--mono); fill: var(--text-2); }
.fo-path { fill: none; stroke-width: 3; stroke-linecap: round; transition: stroke .3s, opacity .3s; }
.fo-fibre { stroke: var(--accent); stroke-dasharray: 10 8; animation: fo-flow 1s linear infinite; }
.fo-mobile { stroke: var(--text-3); stroke-width: 2; stroke-dasharray: 3 7; opacity: .7; }
.fo-out { stroke: var(--text-3); stroke-width: 2; fill: none; }
.fo-ip { fill: var(--accent-soft); stroke: var(--accent-border); stroke-width: 1.5; }
.fo-ip-t { font: 700 12px var(--font); fill: var(--accent); }
.fo-x { opacity: 0; transition: opacity .3s; }
.fo-x circle { fill: var(--danger-soft); stroke: var(--danger); stroke-width: 1.5; }
.fo-x path { stroke: var(--danger-text); stroke-width: 2; stroke-linecap: round; }
.fo:is([data-state="down"], [data-state="switching"]) .fo-cut { stroke: var(--danger); stroke-dasharray: 3 7; opacity: .55; animation: none; }
.fo[data-state="down"] .fo-backup { stroke: var(--success); stroke-width: 3; stroke-dasharray: 10 8; opacity: 1; animation: fo-flow 1s linear infinite; }
.fo:is([data-state="down"], [data-state="switching"]) .fo-x { opacity: 1; }
.fo[data-state="down"] .fo-l-mobile { fill: var(--text); }
@keyframes fo-flow { to { stroke-dashoffset: -18; } }
.fo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 20px; border-top: 1px solid var(--border-soft); }
.fo-status { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 500; min-width: 0; }
.fo-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent); }
.fo[data-state="switching"] .fo-dot { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent); }
@media (prefers-reduced-motion: reduce) { .fo-fibre, .fo[data-state="down"] .fo-backup { animation: none; } }
.ops { grid-column: 1 / -1; display: grid; gap: 12px; }
.ops-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ops-list li { position: relative; display: grid; place-items: center; min-height: 76px; padding: 14px 18px; text-align: center;
  background: var(--logo-plate); border: 1px solid var(--border); border-radius: 10px; font-weight: 600; font-size: .92rem; color: #0F172A; outline-offset: 2px; }
.ops-list img { display: block; max-width: 100%; max-height: 38px; width: auto; height: auto; object-fit: contain; }
.ops-list li[data-op="nexloop"] img { filter: brightness(0); max-height: 46px; }
.ops-list li[data-op="orange"] img, .ops-list li[data-op="ift"] img, .ops-list li[data-op="sfr"] img { max-height: 46px; }
/* Nom de l'opérateur en infobulle au survol ou au focus clavier. */
.ops-list li.op-logo::after { content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  background: var(--text); color: var(--bg); font: 600 .78rem var(--font); white-space: nowrap; padding: 5px 9px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 2; }
.ops-list li.op-logo:hover::after, .ops-list li.op-logo:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.offer-note { display: grid; gap: 6px; font-size: .9rem; color: var(--text-2); line-height: 1.5; max-width: 46ch; padding: 14px 16px;
  border: 1px solid var(--border); background: var(--surface); border-radius: 10px; }
.offer-note b { font-family: var(--font); font-weight: 500; font-size: .72rem; letter-spacing: 0; color: var(--pc, var(--accent)); }
.offer-link { font-weight: 600; color: var(--accent); text-decoration: none; }
.offer-link:hover { text-decoration: underline; }
.offer-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 40px; align-content: start; }
.offer-lists h3 { margin-bottom: 10px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 26px; font-size: .95rem; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 12px; height: 7px; border-left: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(-45deg); }
.checks-in li::before { border-color: var(--success); }
.offer-table { grid-column: 1 / -1; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.offer-table table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.offer-table th, .offer-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.offer-table thead th { font-family: var(--font); font-weight: 500; font-size: .72rem; letter-spacing: 0; color: var(--text-3); background: var(--bg); }
.offer-table tbody th { font-weight: 600; }
.offer-table td { color: var(--text-2); }
.offer-table tbody tr:last-child > * { border-bottom: 0; }
.table-note { padding: 10px 16px; font-size: .82rem; color: var(--text-3); border-top: 1px solid var(--border-soft); }
@media (max-width: 860px) { .offer { grid-template-columns: minmax(0, 1fr); } }

.fine-print { padding-block: 0 40px; }
.fine-print p { font-size: .85rem; color: var(--text-3); max-width: 80ch; }

.cdr { padding-block: 0 clamp(40px, 5vw, 64px); }
.cdr-in { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 48px; align-items: start; }
.cdr-copy { display: grid; gap: 10px; }
.cdr-copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.03em; font-weight: 700; max-width: 22ch; margin: 0; }
.cdr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 40px; }
.cdr-cols h3 { margin-bottom: 10px; }
@media (max-width: 860px) { .cdr-in { grid-template-columns: minmax(0, 1fr); } }

.erasure { padding-block: 0 clamp(40px, 5vw, 64px); }
.erasure-in { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 22px; }
.erasure-copy { display: grid; gap: 10px; }
.erasure-copy h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.03em; font-weight: 700; max-width: 26ch; }
/* animation erasure coding (page KissData), pilotée par data-step dans erasure.js */
.ec { --g: 6px; --fd: color-mix(in srgb, var(--kd) 12%, transparent); --fdb: color-mix(in srgb, var(--kd) 35%, transparent);
  margin: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); overflow: hidden; }
.ec-phases { list-style: none; margin: 0; padding: 14px 20px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .7rem; }
.ec-phases li { transition: color .3s; }
.ec-phases li.on { color: var(--accent); }
.ec-phases li.done { color: var(--text-2); }
.ec-stage { padding: 14px 20px 18px; display: grid; gap: 8px; }
.ec-row-cap { font-size: .68rem; }
.ec-row-cap + .ec-disks { margin-top: 0; }
.ec-top, .ec-disks { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: var(--g); }
.ec-top { position: relative; z-index: 1; margin-bottom: 14px; }
.ec-top i, .ec-disks b { display: grid; place-items: center; height: 40px; border-radius: 6px; font: 500 .78rem var(--mono); font-style: normal;
  color: var(--kd); background: var(--fd); border: 1px solid var(--fdb); }
.ec-top i.p, .ec-disks .p b { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-border); }
.ec-top i { background: color-mix(in srgb, var(--kd) 12%, var(--bg)); transition: transform .7s cubic-bezier(.5, 0, .3, 1), opacity .2s .55s, margin .5s, border-radius .5s, color .3s, scale .4s; }
.ec-top i.p { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); opacity: 0; scale: .6; }
.ec-whole { position: absolute; inset: 0 auto 0 0; width: calc((100% - 13 * var(--g)) / 14 * 10 + 9 * var(--g)); z-index: 1; display: grid; place-items: center; font: 600 .86rem var(--font); color: var(--kd); pointer-events: none; transition: opacity .3s; }
.ec:not([data-step="0"]) .ec-whole { opacity: 0; }
.ec[data-step="0"] .ec-top i:nth-of-type(-n+9) { margin-right: calc(-1 * var(--g) - 1px); border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ec[data-step="0"] .ec-top i:nth-of-type(n+2) { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-color: transparent; }
.ec[data-step="0"] .ec-top i { color: transparent; }
.ec:is([data-step="2"], [data-step="3"], [data-step="4"]) .ec-top i.p { opacity: 1; scale: 1; transition: opacity .4s, scale .4s cubic-bezier(.3, 1.4, .5, 1), transform .7s cubic-bezier(.5, 0, .3, 1); }
.ec:is([data-step="2"]) .ec-top i.p:nth-of-type(12) { transition-delay: .12s; }
.ec:is([data-step="2"]) .ec-top i.p:nth-of-type(13) { transition-delay: .24s; }
.ec:is([data-step="2"]) .ec-top i.p:nth-of-type(14) { transition-delay: .36s; }
/* répartition : chaque fragment descend dans son support */
.ec:is([data-step="3"], [data-step="4"]) .ec-top i, .ec[data-step="5"] .ec-top i.p { transform: translateY(var(--drop, 120px)); opacity: 0; }
.ec:is([data-step="3"], [data-step="4"]) .ec-top i.p { opacity: 0; transition: transform .7s cubic-bezier(.5, 0, .3, 1), opacity .2s .55s; }
/* reconstruction : les fragments survivants remontent, les manquants sont recalculés sur place */
.ec[data-step="5"] .ec-top i:not(.p) { transition: transform .7s cubic-bezier(.5, 0, .3, 1), opacity .15s; }
.ec[data-step="5"] .ec-top i.lost { border-style: dashed; color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); transition: transform 0s, opacity .4s .7s, color .3s, border-color .3s, background .3s; }

.ec-disks span { position: relative; display: grid; gap: 6px; padding: 4px 3px 7px; min-width: 0;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 8px; transition: border-color .3s, background .3s; }
.ec-disks span::after { content: ""; justify-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--success); opacity: .25; transition: background .3s, opacity .3s; }
.ec-disks b { height: 34px; font-weight: 500; opacity: 0; transition: opacity .3s; }
.ec:not([data-step="0"], [data-step="1"], [data-step="2"]) .ec-disks b { opacity: 1; transition: opacity .25s .6s; }
.ec:not([data-step="0"], [data-step="1"], [data-step="2"]) .ec-disks span::after { opacity: 1; }
.ec-disks span.off { border-color: var(--danger); background: var(--danger-soft); }
.ec-disks span.off::after { background: var(--danger); }
.ec-disks span.off b { opacity: .18 !important; transition: opacity .3s !important; }
.ec-disks span.off::before { content: "✕"; position: absolute; inset: 4px 3px auto; height: 34px; display: grid; place-items: center; z-index: 1; color: var(--danger-text); font: 700 1rem var(--font); }

.ec-legend { display: grid; grid-template-columns: 10fr 4fr; gap: var(--g); font-size: .68rem; }
.ec-legend span:first-child { color: var(--kd); }
.ec-legend span:last-child { color: var(--accent); }
.ec-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 20px; border-top: 1px solid var(--border-soft); background: var(--surface); }
.ec-status { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 500; min-width: 0; flex: 1 1 280px; }
.ec-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent); transition: background .3s, box-shadow .3s; }
.ec[data-step="4"] .ec-dot { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent); }
@media (prefers-reduced-motion: reduce) { .ec *, .ec *::before, .ec *::after { transition: none !important; } }
.ec-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; margin: 6px 0 0; }
.ec-steps dt { font-weight: 700; margin-bottom: 4px; }
.ec-steps dd { margin: 0; color: var(--text-2); font-size: .93rem; }
@media (max-width: 760px) { .ec-steps { grid-template-columns: minmax(0, 1fr); } .ec { --g: 3px; } .ec-stage, .ec-phases, .ec-bar { padding-inline: 12px; } .ec-top i, .ec-disks b { font-size: .56rem; letter-spacing: -.04em; } .ec-disks span { padding-inline: 1px; border-radius: 5px; } }

.others { padding-block: 0 clamp(56px, 7vw, 88px); display: grid; gap: 14px; }
.others-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.others-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  text-decoration: none; font-weight: 600; font-size: .92rem; }
.others-list a:hover { border-color: var(--accent-border); }

/* ---------- Kiss sommes-nous ---------- */
#ksn-title { max-width: 18ch; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; }
/* Frise par année : l'année à gauche, les étapes sur une ligne verticale à droite. */
.tl { display: grid; }
.tl-year { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 40px; border-top: 1px solid var(--border); padding-top: 22px; }
.tl-y { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--text-3); }
.tl-now .tl-y { color: var(--accent); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tl-list { list-style: none; margin: 0; padding: 0 0 26px 30px; border-left: 2px solid var(--border); display: grid; gap: 26px; }
.tl-list li { position: relative; display: grid; gap: 6px; }
.tl-list li::before { content: ""; position: absolute; left: -38px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); }
.tl-now .tl-list li::before { background: var(--accent); }
.tl-m { font-family: var(--font); font-size: .76rem; letter-spacing: 0; color: var(--accent); }
.tl-list h4 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.tl-list p:not(.tl-m) { color: var(--text-2); max-width: 68ch; }
@media (max-width: 760px) {
  .tl-year { grid-template-columns: minmax(0, 1fr); }
}

.never { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.never li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 6px 40px; padding: 20px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.never h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; display: flex; gap: 12px; align-items: baseline; }
.never h3::before { content: "✕"; flex: none; font-size: .85rem; color: var(--danger); }
.never p { color: var(--text-2); }
@media (max-width: 760px) { .never li { grid-template-columns: minmax(0, 1fr); } }

.founders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.founders li { display: flex; gap: 16px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.initials { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 600 .95rem var(--mono);
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border); }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.founders h3 { font-size: 1.05rem; font-weight: 700; }
.founders p { color: var(--text-2); font-size: .88rem; }
@media (max-width: 900px) { .founders { grid-template-columns: minmax(0, 1fr); } }

.kiss { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 88px); align-items: end; }
.kiss-main { display: grid; gap: 16px; }
.eyebrow-kiss { font-size: .9rem; }
.kiss-top { padding-block: clamp(32px, 6vw, 72px) clamp(48px, 7vw, 88px); }
.kiss h1, .kiss h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1; letter-spacing: -.05em; font-weight: 800; }
.kiss-k { color: var(--accent); }
.values { display: grid; gap: 24px; margin: 0; }
.values dt { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
@media (max-width: 900px) { .kiss { grid-template-columns: minmax(0, 1fr); } }
.values dd { margin: 0; color: var(--text-2); }

.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quotes figure { margin: 0; display: grid; gap: 18px; align-content: space-between; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.quotes blockquote { margin: 0; font-size: 1.08rem; line-height: 1.5; font-weight: 500; }
.quotes figcaption { display: grid; gap: 2px; font-size: .88rem; color: var(--text-2); }
.quotes figcaption b { color: var(--text); font-weight: 700; }
@media (max-width: 800px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Blog ---------- */
.blog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 0 clamp(56px, 8vw, 96px); }
.post-card a { display: grid; height: 100%; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .15s; }
.post-card a:hover { border-color: var(--accent-border); }
.post-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; max-width: 100%; background: var(--bg); }
.post-card-t { display: grid; gap: 8px; align-content: start; padding: 18px 20px 20px; }
.post-card h2 { font-size: 1.12rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.post-card p:not(.mono-cap) { color: var(--text-2); font-size: .92rem; }
.post-more { margin-top: 4px; font-weight: 600; font-size: .9rem; color: var(--accent); }
.post-card-lead { grid-column: 1 / -1; }
.post-card-lead a { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.post-card-lead img { aspect-ratio: auto; height: 100%; min-height: 280px; }
.post-card-lead .post-card-t { align-content: center; padding: clamp(24px, 4vw, 48px); gap: 12px; }
.post-card-lead h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.03em; }
@media (max-width: 960px) { .blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .blog-list { grid-template-columns: minmax(0, 1fr); }
  .post-card-lead a { grid-template-columns: minmax(0, 1fr); }
  .post-card-lead img { min-height: 0; aspect-ratio: 16 / 10; }
}

.post { max-width: calc(760px + 2 * var(--gutter)); padding-block: clamp(20px, 4vw, 40px) clamp(48px, 7vw, 80px); display: grid; gap: clamp(24px, 3vw, 36px); }
.post-head { display: grid; gap: 16px; }
.post-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.06; letter-spacing: -.04em; font-weight: 800; }
.post-hero { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }
.prose { font-size: 1.06rem; line-height: 1.7; display: grid; gap: 18px; }
.prose > * { margin: 0; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin-top: 18px; }
.prose h2 strong { font-weight: inherit; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 6px; }
.prose blockquote { margin: 6px 0; padding: 18px 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  font-size: 1.12rem; line-height: 1.55; font-weight: 500; color: var(--text); }
.prose .fig { display: grid; place-items: center; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--logo-plate); }
.prose .fig img { max-width: min(320px, 100%); height: auto; }
.more { padding-block: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--border); display: grid; gap: 20px; }
.more-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.more-head h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -.03em; font-weight: 800; }
.more-head a { font-weight: 600; color: var(--accent); text-decoration: none; }
.blog-list-3 { padding-block: 0 clamp(48px, 7vw, 80px); }
.post-card h3 { font-size: 1.05rem; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }

/* ---------- Contact ---------- */
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start;
  padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.contact-intro { display: grid; gap: 18px; }
.contact-intro h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.045em; font-weight: 800; }
.contact-ways { margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 2px solid var(--text); }
.contact-ways div { padding: 16px 0; border-bottom: 1px solid var(--border); display: grid; gap: 4px; align-content: start; }
.contact-ways dt { font-family: var(--font); font-size: .72rem; letter-spacing: 0; color: var(--text-3); }
.contact-ways dd { margin: 0; font-weight: 600; line-height: 1.5; }
.contact-ways dd a { color: var(--text); text-decoration: none; }
.contact-ways dd a:hover { color: var(--accent); }
@media (max-width: 420px) { .contact-ways { grid-template-columns: minmax(0, 1fr); } }
.contact-partner { font-size: .92rem; color: var(--text-2); }
.contact-partner a { color: var(--accent); font-weight: 600; text-decoration: none; }
.dp-gets { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 2px solid var(--text); }
.dp-gets li { padding: 16px 0; border-bottom: 1px solid var(--border); display: grid; gap: 4px; align-content: start; }
.dp-gets b { font-weight: 700; }
.dp-tag b { font-family: var(--mono); font-weight: 500; color: var(--accent); letter-spacing: .01em; }
.dp-gets span { color: var(--text-2); font-size: .92rem; }
@media (max-width: 420px) { .dp-gets { grid-template-columns: minmax(0, 1fr); } }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: clamp(22px, 3vw, 32px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-md); }
.contact-form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--text-2); min-width: 0; }
.contact-form input, .contact-form select, .contact-form textarea { font: 400 1rem var(--font); color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; width: 100%; min-width: 0; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cf-wide { grid-column: 1 / -1; }
.cf-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-status { grid-column: 1 / -1; font-size: .9rem; color: var(--text-2); }
.cf-status-error { color: var(--danger-text); }
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cf-note { font-size: .82rem; color: var(--text-3); }
.cf-sent { display: grid; gap: 8px; }
.cf-sent h2 { font-size: 1.6rem; letter-spacing: -.03em; }
.cf-sent p { color: var(--text-2); }
@media (max-width: 900px) { .contact-page { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .contact-form { grid-template-columns: minmax(0, 1fr); } }

/* Pages légales */
.legal .post-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.legal-short { padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.legal-short b { color: var(--text); }
.legal-table { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); min-width: 160px; }
.legal-table thead th { font-family: var(--font); font-weight: 500; font-size: .72rem; letter-spacing: 0; color: var(--text-3); background: var(--bg); }
.legal-table tbody th { font-weight: 600; color: var(--text); }
.legal-table td { color: var(--text-2); }
.legal-table tbody tr:last-child > * { border-bottom: 0; }

/* 404 */
.notfound { padding-block: clamp(48px, 10vw, 140px); display: grid; gap: 18px; justify-items: start; }
.notfound h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.04em; line-height: 1.05; }

/* ---------- pied de page ---------- */
.foot { border-top: 1px solid var(--border); background: var(--surface); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; padding-block: 40px 28px; }
.foot-id { display: grid; gap: 10px; }
.foot-id p { color: var(--text-2); font-size: .9rem; }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; font-size: .92rem; align-content: start; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 14px 18px; border-top: 1px solid var(--border-soft); font-size: .8rem; color: var(--text-3); }
.foot-bottom a { color: var(--text-3); text-decoration: none; }
.foot-bottom a:hover { color: var(--text-2); }
.theme-easter-egg { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; color: var(--text-3); background: transparent;
  border: 0; border-radius: 50%; cursor: pointer; opacity: .42; transition: color .18s ease, opacity .18s ease, transform .18s ease; }
.theme-easter-egg:hover, .theme-easter-egg:focus-visible { color: var(--accent); opacity: 1; transform: rotate(8deg); }
.theme-easter-egg svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-moon { display: none; }
.theme-easter-egg[data-current-theme="dark"] .theme-sun { display: none; }
.theme-easter-egg[data-current-theme="dark"] .theme-moon { display: block; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.km-more { justify-self: start; margin-top: 18px; font-weight: 600; color: var(--accent); text-decoration: none; }
.km-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- page Facturation ---------- */
.km-list span a, .sec-head .lead a { color: var(--accent); }
#exemple, #rythme, #csv, #kissmy { scroll-margin-top: 80px; }
.inv-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 32px clamp(32px, 4vw, 56px); align-items: start; }
/* la facture : reprise de la mise en page du PDF, dans les couleurs du site */
.inv { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-md); padding: clamp(18px, 3vw, 32px); display: grid; gap: 20px; font-size: .86rem; min-width: 0; }
.inv-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 32px; }
.inv-id { display: grid; gap: 10px; align-content: start; justify-items: start; }
.inv-logo { height: 30px; width: auto; margin-bottom: 8px; }
.inv h3 { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.inv-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 20px; }
.inv-meta dt { font-weight: 600; }
.inv-meta dd { color: var(--text-2); font-variant-numeric: tabular-nums; }
.inv-free { color: var(--text-2); }
.inv-parties { display: grid; gap: 14px; align-content: start; color: var(--text-2); line-height: 1.45; }
.inv-parties b { color: var(--text); }
.inv-cap { font-size: .76rem; color: var(--text-3); margin-bottom: 2px; display: flex; align-items: center; gap: 8px; }
.inv-client { display: grid; gap: 10px; }
.inv-client h4 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.inv-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.inv-t th, .inv-t td { padding: 7px 10px; text-align: right; vertical-align: top; }
.inv-t th:first-child, .inv-t td:first-child { text-align: left; }
.inv-t th:not(:first-child), .inv-t td:not(:first-child) { white-space: nowrap; }
.inv-t thead th { background: var(--bg); color: var(--text-2); font-weight: 500; font-size: .78rem; border-bottom: 1px solid var(--border); }
.inv-t tbody td:first-child { width: 58%; }
.inv-t tbody tr:not(.inv-d) td { padding-bottom: 2px; }
.inv-t .inv-d td { padding-top: 0; border-bottom: 1px solid var(--border-soft); font-size: .78rem; color: var(--text-3); line-height: 1.5; white-space: normal; text-align: left; }
.inv-t td b { font-weight: 600; display: inline; }
.inv-t tfoot th, .inv-t tfoot td { background: var(--bg); font-weight: 700; }
.inv-ref { color: var(--text-2); }
.inv-m { color: var(--text-3); letter-spacing: .06em; white-space: nowrap; }
.inv-end { display: grid; gap: 16px; padding-top: 4px; }
.inv-sum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; align-items: start; }
.inv-sum dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
.inv-sum dt { font-weight: 600; }
.inv-sum dd { text-align: right; }
.inv-sum .inv-ttc { border-top: 1px solid var(--border); padding-top: 6px; font-weight: 700; }
.inv-pay { background: var(--bg); border-radius: 8px; padding: 14px 16px; color: var(--text-2); line-height: 1.5; }
.inv-pay b { color: var(--text); }
.inv-legal { font-size: .74rem; color: var(--text-3); }
/* repères numérotés, renvoyés aux notes */
.inv-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  font: 600 .7rem/1 var(--mono); font-style: normal; vertical-align: 1px; flex: none; }
.inv-notes { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; border-top: 1px solid var(--border); position: sticky; top: 24px; }
.inv-notes li { counter-increment: n; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.inv-notes li::before { content: counter(n); grid-row: span 2; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font: 600 .7rem/1 var(--mono); margin-top: 2px; }
.inv-notes b { font-weight: 600; }
.inv-notes span { color: var(--text-2); font-size: .94rem; }
@media (max-width: 980px) { .inv-layout { grid-template-columns: minmax(0, 1fr); } .inv-notes { position: static; } }
@media (max-width: 600px) {
  .inv-top, .inv-sum { grid-template-columns: minmax(0, 1fr); }
  .inv-t .inv-opt { display: none; }
  .inv-t th, .inv-t td { padding: 8px 6px; }
  .inv-t tbody td:first-child { width: auto; }
  .inv { padding: 14px; }
  .inv-t td:nth-child(2) { white-space: normal; min-width: 4.5em; }
}
/* export CSV */
.csv { margin: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.csv-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--bg); }
.csv-cap .mono-cap { overflow-wrap: anywhere; }
.csv-sep { font-family: var(--mono); font-size: .76rem; color: var(--text-3); }
.csv-scroll { overflow-x: auto; }
.csv pre { margin: 0; padding: 16px 18px; font: .78rem/1.8 var(--mono); color: var(--text-2); white-space: pre; }
.csv pre b { color: var(--accent); font-weight: 500; }
.csv-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 32px; margin-top: 28px; }
.csv-cols div { display: grid; gap: 4px; align-content: start; border-top: 1px solid var(--border); padding-top: 12px; }
.csv-cols dt { font-family: var(--mono); font-size: .8rem; color: var(--text); }
.csv-cols dd { color: var(--text-2); font-size: .92rem; }
