/* Malus Écologique — jetons du thème « nova » (pleine largeur). Encre bleu nuit, orange signalisation, vert « exonéré ».
   Geist (titres, texte, interface) + Geist Mono (étiquettes). Contrastes AA : --accent sur --bg ≥ 4,5:1, --faint ≥ 4,5:1. */
:root {
  --bg: #ffffff; --bg-soft: #f6f7f9; --surface: #ffffff; --ink: #0b1220; --muted: #475467; --faint: #5d6b7e; --line: #e5e8ee; --line-2: #cfd5de;
  --accent: #c2410c; --accent-2: #f97316; --on-accent: #ffffff; --tint: #fff4ec; --kick: #c2410c; --ok: #15803d; --warn: #a15c07;
  --night: #0b1220; --night-2: #141c2e;
  --display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; --ui: var(--body);
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --shell: 1320px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 12px -4px rgba(16, 24, 40, .08);
  --shadow-md: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px -10px rgba(16, 24, 40, .16);
  --shadow-lg: 0 1px 2px rgba(16, 24, 40, .04), 0 16px 40px -12px rgba(16, 24, 40, .16), 0 48px 96px -32px rgba(16, 24, 40, .22);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #090c12; --bg-soft: #0f131b; --surface: #131924; --ink: #e9edf3; --muted: #a6b0bf; --faint: #8b96a7; --line: #222a37; --line-2: #313b4b;
  --accent: #fb923c; --accent-2: #f97316; --on-accent: #1a0c03; --tint: #23170f; --kick: #fdba74; --ok: #4ade80; --warn: #fbbf24;
  --night: #05070b; --night-2: #0d1220;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 12px 28px -10px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
  color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #090c12; --bg-soft: #0f131b; --surface: #131924; --ink: #e9edf3; --muted: #a6b0bf; --faint: #8b96a7; --line: #222a37; --line-2: #313b4b;
  --accent: #fb923c; --accent-2: #f97316; --on-accent: #1a0c03; --tint: #23170f; --kick: #fdba74; --ok: #4ade80; --warn: #fbbf24;
  --night: #05070b; --night-2: #0d1220;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 12px 28px -10px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
  color-scheme: dark }

/* Thème « nova » : gabarit pleine largeur moderne (produit / SaaS éditorial). À utiliser avec site.json → "shell": "wide".
   En-tête collant translucide, bandes pleine largeur, contenu centré dans .shell, colonne de lecture ~72ch avec sommaire collant, pied riche.
   Le site fournit ses jetons dans assets/tokens.css (--bg, --bg-soft, --surface, --ink, --muted, --faint, --line, --line-2, --accent, --accent-2,
   --on-accent, --tint, --kick, polices --display/--body/--ui/--mono) et ses composants dans assets/site.css. Échelle d'espacement 4/8 px. */

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility }
img, svg { max-width: 100%; height: auto } img { display: block }
a { color: var(--accent); text-decoration-line: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s }
a:hover { text-decoration-color: currentColor }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; margin: 0; color: var(--ink) }
p { text-wrap: pretty }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px }
::selection { background: color-mix(in srgb, var(--accent-2) 30%, transparent) }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 60 }
.skip:focus { left: 8px }
.shell { width: 100%; max-width: var(--shell, 1320px); margin-inline: auto; padding-inline: var(--gutter, clamp(16px, 4vw, 40px)) }
.kick, .eyebrow, .step { font: 600 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--kick); margin: 0 }

/* ---- en-tête collant translucide ---- */
.site-top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent) }
.top { display: flex; align-items: center; gap: 8px 32px; min-height: 64px }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 650 17px/1 var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap }
.brand svg { flex: none; width: 28px; height: 28px }
.nav { display: flex; gap: 2px; margin-left: auto; font: 500 14.5px/1 var(--ui) }
.nav a { color: var(--muted); text-decoration: none; padding: 9px 12px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s }
.nav a:hover { color: var(--ink); background: var(--bg-soft) }
.nav a[aria-current] { color: var(--ink); background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line) }
.top-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 14px/1 var(--ui); text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s }
.top-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm) }
.top-cta::after { content: "→"; transition: transform .15s } .top-cta:hover::after { transform: translateX(2px) }

/* ---- bandes pleine largeur ---- */
.band { padding-block: clamp(56px, 8vw, 104px) }
.band.alt { background: var(--bg-soft); border-block: 1px solid var(--line) }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px) }
.sec-head p:not(.kick) { margin: 0; color: var(--muted); font-size: 18px }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 500 13px/1.2 var(--ui); letter-spacing: 0; text-transform: none; color: var(--muted) }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok, #16a34a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok, #16a34a) 18%, transparent) }

/* ---- en-tête d'article / de dossier : bande teintée pleine largeur (même HTML que le gabarit classique) ---- */
.page > .crumbs, .page > .art-head { background: var(--bg-soft); box-shadow: 0 0 0 100vmax var(--bg-soft); clip-path: inset(0 -100vmax) }
.page > .crumbs { margin: 0; padding-top: 24px; font: 500 13.5px/1.4 var(--ui); color: var(--faint) }
.crumbs a { color: var(--muted); text-decoration: none } .crumbs a:hover { color: var(--ink); text-decoration: underline }
.crumbs span { color: var(--faint) }
.art-head { padding-block: clamp(20px, 3vw, 32px) clamp(36px, 5vw, 56px); margin-bottom: clamp(32px, 5vw, 56px) }
.page > .art-head { border-bottom: 1px solid var(--line) }
.page > .art-head:first-child { padding-top: clamp(40px, 6vw, 72px) }
.art-head > * { max-width: 860px }
.art-head h1 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.05; letter-spacing: -.035em; margin: 14px 0 18px }
.art-head .lede { margin: 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: var(--muted); max-width: 64ch }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; font: 500 13px/1.3 var(--ui); color: var(--muted) }
.meta span { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line) }
.meta a { color: var(--ink); font-weight: 600; text-decoration: none }
/* la photo chevauche le bas de la bande */
.page > .art-head:has(+ .head-photo) { padding-bottom: clamp(96px, 12vw, 160px); margin-bottom: 0; border-bottom: 0 }
.head-photo { position: relative; margin: calc(-1 * clamp(64px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px) }
.head-photo img { width: 100%; aspect-ratio: 21 / 7; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); background: var(--bg-soft) }
.head-photo figcaption { margin-top: 8px; font: 400 12px/1.4 var(--ui); color: var(--faint); text-align: right }

/* ---- colonne de lecture + sommaire collant ---- */
.art { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; max-width: 1180px; margin: 0 auto clamp(72px, 10vw, 120px) }
.toc { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow: auto; font: 500 14px/1.4 var(--ui); padding: 4px 0; scrollbar-width: thin }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; border-left: 1px solid var(--line); counter-reset: t }
.toc li a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; transition: color .15s, border-color .15s }
.toc li a:hover { color: var(--ink); border-left-color: var(--accent-2) }
.prose { max-width: 72ch; min-width: 0 }
.prose > * + * { margin-top: 1.15em }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); margin-top: 2.2em; letter-spacing: -.03em }
.prose h3 { font-size: 21px; margin-top: 1.8em; letter-spacing: -.02em }
.prose h2 + *, .prose h3 + * { margin-top: .6em }
.prose ul, .prose ol { padding-left: 1.3em } .prose li + li { margin-top: .4em } .prose li::marker { color: var(--accent-2) }
.prose strong { font-weight: 650; color: var(--ink) }
.prose blockquote { margin-inline: 0; padding: 20px 24px; background: var(--tint); border: 1px solid color-mix(in srgb, var(--accent-2) 22%, transparent); border-radius: 16px; font-size: 16.5px }
.prose blockquote p { margin: 0 } .prose blockquote p + p { margin-top: .6em }
.prose blockquote p:first-child strong:first-child { display: block; font: 600 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--kick); margin-bottom: 6px }
.prose code { font: 500 .9em var(--mono); background: var(--bg-soft); padding: 2px 6px; border-radius: 6px }
.prose img { border-radius: 16px }

/* ---- tableaux ---- */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface) }
table { border-collapse: collapse; width: 100%; font: 400 15px/1.45 var(--ui) }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top }
tbody tr:last-child td { border-bottom: 0 }
thead th { position: sticky; top: 0; background: var(--bg-soft); font: 600 12px/1.3 var(--ui); letter-spacing: .02em; color: var(--muted); z-index: 1 }
tbody tr { transition: background .12s } tbody tr:hover { background: color-mix(in srgb, var(--accent-2) 6%, transparent) }
td:first-child { font-weight: 550; color: var(--ink) }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap }
.tbl-note { font: 400 13px/1.55 var(--ui); color: var(--faint); margin-top: .6em !important }
figure.illu { margin-inline: 0; padding: 24px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px }
figure.illu svg { display: block; width: 100% } figure.illu figcaption { margin-top: 12px; font: 400 13.5px/1.5 var(--ui); color: var(--muted) }

/* ---- FAQ, sources, auteur, à lire ensuite ---- */
.faq { display: grid; gap: 8px }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s }
.faq details:hover { border-color: var(--line-2) } .faq details[open] { box-shadow: var(--shadow-sm) }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative; font: 600 17px/1.4 var(--display); letter-spacing: -.01em }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border: solid var(--faint); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px }
.faq details > :not(summary) { margin: 0 20px 18px; color: var(--muted) }
.sources { font: 400 14px/1.55 var(--ui); color: var(--muted); padding-left: 1.2em } .sources a { color: var(--muted); word-break: break-word }
.author { display: flex; gap: 16px; align-items: center; margin-top: 56px !important; padding: 20px 24px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px }
.author .av { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)) }
.author p { margin: 0; font: 400 15px/1.55 var(--ui); color: var(--muted) } .author b { color: var(--ink); font-weight: 650 }
.related { display: grid; gap: 8px; margin-top: 40px !important }
.related .eyebrow { padding-bottom: 4px }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; font: 550 16px/1.35 var(--ui); transition: border-color .15s, transform .15s, box-shadow .15s }
.related a:hover { border-color: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-sm) }
.byline { font: 500 14px/1.4 var(--ui); color: var(--muted) }

figure.video { margin-inline: 0 }
figure.video .video-play, figure.video video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 16px; overflow: hidden; background: var(--ink) }
figure.video .video-play { position: relative; padding: 0; border: 0; cursor: pointer }
figure.video .video-play img { width: 100%; height: 100%; object-fit: cover }
figure.video .vp-icon { position: absolute; right: 20px; bottom: 20px; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .3) }
figure.video .vp-icon::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--accent) }
figure.video figcaption { margin-top: 10px; font: 400 14px/1.5 var(--ui); color: var(--muted) }

/* ---- pages dossier ---- */
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(56px, 8vw, 96px) }
.hcard { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s }
.hcard:hover { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-md) }
.hcard .step { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--tint); font-size: 11px }
.hcard b { font: 650 19px/1.3 var(--display); letter-spacing: -.02em }
.hcard .note { color: var(--muted); font: 400 15px/1.55 var(--ui) }
.hcard::after { content: "→"; margin-top: auto; padding-top: 4px; font: 500 16px/1 var(--ui); color: var(--accent); transition: transform .2s }
.hcard:hover::after { transform: translateX(4px) }

/* ---- pied de page riche ---- */
.site-foot { background: var(--bg-soft); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px) 32px; font: 400 14.5px/1.6 var(--ui); color: var(--muted) }
.f-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px }
.f-brand .brand { margin-bottom: 16px }
.f-brand p { margin: 0 0 12px; max-width: 46ch } .f-brand b { color: var(--ink); font-weight: 600 }
.f-small { font-size: 13px; color: var(--faint) }
.f-h { margin: 4px 0 14px; font: 600 13px/1.3 var(--ui); color: var(--ink) }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.f-col a { color: var(--muted); text-decoration: none } .f-col a:hover { color: var(--ink) }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint) }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .f-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) } .f-brand { grid-column: 1 / -1 }
  .top { flex-wrap: wrap; justify-content: space-between; row-gap: 0 }
  .nav { order: 3; width: calc(100% + 2 * var(--gutter, clamp(16px, 4vw, 40px))); margin: 0 calc(-1 * var(--gutter, clamp(16px, 4vw, 40px))); padding: 0 var(--gutter, clamp(16px, 4vw, 40px)) 10px; overflow-x: auto; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 85%, transparent) }
  .nav::-webkit-scrollbar { display: none }
  .nav a { padding: 7px 12px; font-size: 14px }
  html { scroll-padding-top: 120px }
}
@media (max-width: 960px) {
  .art { grid-template-columns: minmax(0, 1fr) }
  .toc { position: static; max-height: none; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .head-photo img { aspect-ratio: 16 / 9 }
}
@media (max-width: 640px) {
  body { font-size: 16.5px }
  .hub-grid, .f-grid { grid-template-columns: minmax(0, 1fr) }
  .f-grid { gap: 28px }
  .head-photo img { aspect-ratio: 4 / 3; border-radius: 14px }
  .top { min-height: 56px } .top-cta { padding: 9px 14px; font-size: 13px }
  .brand { font-size: 16px }
  th, td { padding: 10px 12px }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } *, *::before, *::after { transition: none !important; animation: none !important } }

/* Malus Écologique — composants propres (thème nova) : hero + simulateurs, cartes de dossiers, formulaire de contact. */

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 56% at 88% 8%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 72%),
    radial-gradient(36% 40% at 4% 100%, color-mix(in srgb, #6366f1 9%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, #000 35%, transparent 100%); mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, #000 35%, transparent 100%) }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px) }
.hero-t { padding-top: clamp(0px, 3vw, 40px) }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 700; line-height: 1.0; letter-spacing: -.045em; margin: 24px 0 24px }
.hero h1 em { display: block; font-style: normal; background: linear-gradient(92deg, var(--accent) 10%, #e5560b 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em }
.hero .lede { margin: 0; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 50ch }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; border-top: 1px solid var(--line) }
.hero-facts div { padding: 20px 20px 0 0 }
.hero-facts div + div { padding-left: 20px; border-left: 1px solid var(--line) }
.hero-facts dt { font: 650 clamp(24px, 2.4vw, 32px)/1.05 var(--display); letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap }
.hero-facts dd { margin: 8px 0 0; font: 400 13.5px/1.45 var(--ui); color: var(--muted) }
.hero-tool { position: relative; scroll-margin-top: 88px }
.hero-tool::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent-2) 45%, transparent), transparent 40%); filter: blur(28px); opacity: .55 }

/* ---- simulateurs (malus + carte grise) ---- */
.sim-m { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 2.2vw, 28px); box-shadow: var(--shadow-lg); font-family: var(--ui) }
.prose .sim-m { margin-block: 32px; box-shadow: var(--shadow-md) }
.sm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line) }
.sm-head span:first-child { display: inline-flex; align-items: center; gap: 10px; font: 650 17px/1.2 var(--display); letter-spacing: -.02em }
.sm-head span:first-child::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 20%, transparent) }
.sm-head span + span { padding: 5px 10px; border-radius: 999px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); font: 500 12px/1.2 var(--mono); color: var(--muted) }
.sm-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px }
.sm-in > label:not(.sm-chk), .sm-seg { display: grid; gap: 8px; align-content: start; font: 500 13.5px/1.3 var(--ui); color: var(--muted); min-width: 0 }
.sm-in > label:first-child, .sm-seg { grid-column: 1 / -1 }
.sm-seg { margin: 0; padding: 0; border: 0 } .sm-seg legend { padding: 0; margin-bottom: 8px }
.sm-in label > span sup, .sm-chk sup { font-size: .7em; line-height: 0 }
.sm-in input[type=number], .sm-in select { font: 500 16px/1.2 var(--ui); height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); width: 100%; min-width: 0;
  font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; -moz-appearance: textfield }
.sm-in select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23738196' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center }
.sm-in input[type=number]::-webkit-inner-spin-button, .sm-in input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0 }
.sm-in input[type=number]:hover, .sm-in select:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line-2)) }
.sm-in input[type=number]:focus, .sm-in select:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 20%, transparent) }
.sm-num { position: relative; display: block } .sm-num input { padding-right: 56px !important }
.sm-num i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 500 13px/1 var(--mono); font-style: normal; color: var(--faint); pointer-events: none }
/* contrôles segmentés */
.seg { display: grid; gap: 8px }
.seg-o { position: relative; display: block; cursor: pointer; min-width: 0 }
.seg-o input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer }
.seg-o span { display: block; height: 100%; color: var(--ink); transition: background .15s, border-color .15s, box-shadow .15s, color .15s }
.seg-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)) } .seg-tiles .seg-o { grid-column: span 2 } .seg-tiles .seg-o:nth-child(n+4) { grid-column: span 3 }
.seg-tiles span { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface) }
.seg-tiles b { display: block; font: 550 14px/1.3 var(--ui) } .seg-tiles small { display: block; margin-top: 2px; font: 400 12px/1.35 var(--ui); color: var(--muted) }
.seg-tiles .seg-o:hover span { border-color: color-mix(in srgb, var(--ink) 30%, var(--line-2)) }
.seg-tiles input:checked + span { border-color: var(--accent-2); background: var(--tint); box-shadow: inset 0 0 0 1px var(--accent-2) }
.seg-pills { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 13px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line) }
.seg-pills span { padding: 9px 6px; border-radius: 9px; text-align: center; font: 550 14px/1.2 var(--ui); color: var(--muted); white-space: nowrap }
.seg-pills .seg-o:hover span { color: var(--ink) }
.seg-pills input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 0 0 1px var(--line) }
.seg-o input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px }
/* interrupteur (occasion importée, options carte grise) */
.sm-chk { display: flex; align-items: center; gap: 12px; grid-column: 1 / -1; font: 500 14.5px/1.35 var(--ui); color: var(--ink); cursor: pointer }
.sm-chk input { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 40px; height: 24px; margin: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: background .2s }
.sm-chk input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s }
.sm-chk input:checked { background: var(--accent) } .sm-chk input:checked::after { transform: translateX(16px) }
.sm-chk input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px }
.sm-in [hidden] { display: none !important }
/* résultats */
.sm-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px }
.sm-out > div { padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); min-width: 0 }
.sm-out span { display: block; font: 500 12.5px/1.2 var(--ui); color: var(--muted) }
.sm-out b { display: block; margin-top: 6px; font: 650 22px/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap }
.sm-out > .sm-tot { order: -1; grid-column: 1 / -1; position: relative; overflow: hidden; padding: 20px 22px; border-radius: 16px; color: #fff; box-shadow: none;
  background: radial-gradient(120% 140% at 100% 0%, rgba(249, 115, 22, .45), transparent 55%), linear-gradient(135deg, var(--night-2), var(--night)) }
.sm-out > .sm-tot span { color: #fed7aa; font-weight: 550 }
.sm-out > .sm-tot b { margin-top: 8px; font-size: clamp(40px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.05em; line-height: 1 }
[data-cartegrise] .sm-out { grid-template-columns: minmax(0, 1fr) }
.sm-dd { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px }
.sm-det { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font: 600 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 }
.sm-det::-webkit-details-marker { display: none }
.sm-det::after { content: ""; width: 7px; height: 7px; border: solid var(--faint); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); transition: transform .2s; margin-right: 4px }
.sm-dd[open] .sm-det::after { transform: rotate(-135deg) }
.o-notes { margin: 10px 0 0; padding-left: 1.3em; font: 400 14px/1.55 var(--ui); color: var(--ink) } .o-notes li + li { margin-top: 4px } .o-notes li::marker { color: var(--faint) } .o-notes:empty { display: none }
.sm-note { font: 400 12.5px/1.55 var(--ui); color: var(--muted); margin: 14px 0 0 }
.sm-note b { color: var(--ink); font-weight: 600 }
.sm-note a { color: var(--muted) } .sm-note a:hover { color: var(--accent) }
.tbl-scroll { max-height: 560px; overflow: auto }

/* ---- cartes de dossiers (bento) ---- */
.d-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.d-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: clamp(22px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: border-color .2s, box-shadow .2s, transform .2s }
.d-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px) }
.d-card:first-child { grid-column: span 2; background: radial-gradient(80% 120% at 100% 0%, var(--tint), transparent 60%), var(--surface) }
.d-card:first-child ul { columns: 2; column-gap: 32px }
.d-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px }
.d-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 20%, transparent) }
.d-card .kick { color: var(--faint) }
.d-card h3 { font-size: 23px; letter-spacing: -.03em } .d-card h3 a { color: var(--ink); text-decoration: none } .d-card h3 a:hover { color: var(--accent) }
.d-lede { margin: 0; font: 400 15px/1.55 var(--ui); color: var(--muted) }
.d-card ul { list-style: none; margin: 4px 0 0; padding: 0 }
.d-card li { break-inside: avoid; border-top: 1px solid var(--line) }
.d-card li a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; color: var(--ink); text-decoration: none; font: 500 14.5px/1.4 var(--ui); transition: color .15s }
.d-card li a::after { content: "→"; color: var(--faint); transition: transform .15s, color .15s }
.d-card li a:hover { color: var(--accent) } .d-card li a:hover::after { color: var(--accent); transform: translateX(3px) }

/* ---- accueil : bande de lecture ---- */
.home-read .art { margin-bottom: 0 }
.home-read .prose { font-size: 17px }

/* ---- formulaire de contact ---- */
.contact { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-block: 24px; max-width: 640px; box-shadow: var(--shadow-sm) }
.contact label { display: grid; gap: 8px; font: 500 13.5px/1.3 var(--ui); color: var(--muted) }
.contact input, .contact textarea { font: 400 15px/1.45 var(--ui); padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); width: 100% }
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 20%, transparent) }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.c-legal, .c-status { font: 400 13px/1.5 var(--ui); color: var(--muted); margin: 0 }
.c-status { color: var(--ok); font-weight: 500 }
.copybtn { justify-self: start; font: 600 15px/1 var(--ui); background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px; padding: 14px 22px; cursor: pointer; transition: transform .15s, box-shadow .15s }
.copybtn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md) }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) }
  .hero-t { padding-top: 0; max-width: 760px }
  .hero-tool { max-width: 720px }
  .d-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(36px, 10vw, 44px); margin: 18px 0 16px }
  .hero-facts { grid-template-columns: minmax(0, 1fr) }
  .hero-facts div, .hero-facts div + div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line) }
  .hero-facts dt { font-size: 21px } .hero-facts dd { margin: 0 }
  .sm-in { grid-template-columns: minmax(0, 1fr); gap: 14px }
  .sm-in > label:not(.sm-chk) { grid-column: 1 / -1 }
  .seg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) } .seg-tiles .seg-o, .seg-tiles .seg-o:nth-child(n+4) { grid-column: auto } .seg-tiles .seg-o:last-child { grid-column: 1 / -1 }
  .seg-pills span { padding: 9px 2px; font-size: 13.5px }
  .d-grid { grid-template-columns: minmax(0, 1fr) }
  .d-card:first-child { grid-column: auto } .d-card:first-child ul { columns: 1 }
  .sm-out b { font-size: 20px }
}
@media (max-width: 400px) { .seg-pills span { font-size: 12.5px; padding-inline: 0 } .hero-facts div, .hero-facts div + div { grid-template-columns: 96px minmax(0, 1fr) } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sm-out > .sm-tot { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07) } }
:root[data-theme="dark"] .sm-out > .sm-tot { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07) }
