/* Artisan Pratique · feuille de style unique. Police auto-hébergée : aucun appel vers un service tiers. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Jetons ---------- */
:root {
  color-scheme: light;
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #ede9df;
  --surface-3: #e3ded0;
  --text: #151b27;
  --text-strong: #0c1220;
  --muted: #59606f;
  --border: #ddd7ca;
  --border-strong: #c6bead;
  --primary: #1b4a86;
  --primary-strong: #12365f;
  --primary-soft: #e6eef9;
  --on-primary: #ffffff;
  --accent: #b5450a;
  --accent-bright: #f08a3c;
  --accent-soft: #fdeadb;
  --ink: #0f1f38;
  --ink-2: #16294a;
  --ink-3: #1f3a66;
  --on-ink: #eef2f8;
  --on-ink-muted: #b4c0d6;
  --ok: #176a3a;
  --ok-soft: #e4f5ea;
  --warn: #8a4506;
  --warn-soft: #fff3e0;
  --warn-border: #efc07e;
  --info-soft: #e8f0fa;
  --info-border: #b9cfe9;
  --danger: #b42318;
  --grid-line: rgba(27, 74, 134, .09);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .07);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .06), 0 18px 40px rgba(16, 24, 40, .14);
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 74rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f141c;
    --surface: #171d28;
    --surface-2: #1f2735;
    --surface-3: #283243;
    --text: #e7ebf2;
    --text-strong: #ffffff;
    --muted: #a3acbb;
    --border: #2b3445;
    --border-strong: #3b4659;
    --primary: #8fb8f2;
    --primary-strong: #b9d2f8;
    --primary-soft: #182740;
    --on-primary: #0a1a30;
    --accent: #f6a35f;
    --accent-bright: #f08a3c;
    --accent-soft: #3a2416;
    --ink: #0a1527;
    --ink-2: #102040;
    --ink-3: #183060;
    --on-ink: #eef2f8;
    --on-ink-muted: #aab7cc;
    --ok: #74e2a3;
    --ok-soft: #15301f;
    --warn: #f7c35c;
    --warn-soft: #33270f;
    --warn-border: #6b5320;
    --info-soft: #172538;
    --info-border: #2e4a70;
    --danger: #f97066;
    --grid-line: rgba(143, 184, 242, .08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 40px rgba(0, 0, 0, .5);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f141c;
  --surface: #171d28;
  --surface-2: #1f2735;
  --surface-3: #283243;
  --text: #e7ebf2;
  --text-strong: #ffffff;
  --muted: #a3acbb;
  --border: #2b3445;
  --border-strong: #3b4659;
  --primary: #8fb8f2;
  --primary-strong: #b9d2f8;
  --primary-soft: #182740;
  --on-primary: #0a1a30;
  --accent: #f6a35f;
  --accent-bright: #f08a3c;
  --accent-soft: #3a2416;
  --ink: #0a1527;
  --ink-2: #102040;
  --ink-3: #183060;
  --on-ink: #eef2f8;
  --on-ink-muted: #aab7cc;
  --ok: #74e2a3;
  --ok-soft: #15301f;
  --warn: #f7c35c;
  --warn-soft: #33270f;
  --warn-border: #6b5320;
  --info-soft: #172538;
  --info-border: #2e4a70;
  --danger: #f97066;
  --grid-line: rgba(143, 184, 242, .08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 40px rgba(0, 0, 0, .5);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
svg { fill: none; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--primary-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 4px; }
strong { color: var(--text-strong); }
.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 40;
}
.skip:focus { left: 16px; }
.wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.icon { width: 1.25em; height: 1.25em; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Aperçu privé (node build.mjs --preview) */
.preview-banner {
  background: var(--accent-soft); color: var(--text); font-size: .9rem; text-align: center;
  padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.preview-only { display: none; }
.is-preview .preview-only { display: block; }
.is-preview #print { display: none; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.12; letter-spacing: -0.018em; font-weight: 700; font-stretch: 94%; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem); margin: .1em 0 .45em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 1.95rem); margin: 1.7em 0 .55em; }
h3 { font-size: 1.2rem; margin: 1.3em 0 .4em; letter-spacing: -0.01em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 44rem; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--accent-bright); }
.eyebrow-light { color: var(--accent-bright); }
.hl { position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .04em; height: .3em; background: var(--accent-soft); z-index: -1; border-radius: 3px; }
.band-ink .hl::after { background: var(--ink-3); }

.prose { max-width: 46rem; text-wrap: pretty; }
.prose.prose-wide { max-width: 62rem; }
.prose h2 { border-top: 1px solid var(--border); padding-top: 1.1em; }
.prose h2:first-of-type, .prose .article-head + h2, .prose .toc + h2, .prose .callout + h2 { border-top: 0; padding-top: 0; }
.prose > p > a, .prose li a, .prose td a { text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.prose > p > a:hover, .prose li a:hover, .prose td a:hover { text-decoration-color: currentColor; }

/* Fil d'Ariane */
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "›"; color: var(--border-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text); }

.updated { margin-top: 40px; font-size: .9rem; color: var(--muted); }

/* ---------- En-tête ---------- */
.site-header { background: color-mix(in srgb, var(--surface) 90%, transparent); border-bottom: 1px solid var(--border); position: relative; z-index: 30; }
@supports (backdrop-filter: blur(1px)) { .site-header { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-strong); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; font-stretch: 94%; margin-right: auto; }
.brand:hover { color: var(--text-strong); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: .97rem; }
.main-nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; }
.main-nav a:hover { color: var(--text-strong); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--text-strong); box-shadow: inset 0 -3px 0 var(--accent-bright); border-radius: 8px 8px 0 0; }
.site-header .header-cta { display: none; }
@media (min-width: 760px) {
  .site-header { position: sticky; top: 0; }
  .site-header .header-cta { display: inline-flex; }
}
@media (max-width: 599px) {
  .header-inner { padding-top: 8px; padding-bottom: 6px; min-height: 0; }
  .brand { flex-basis: 100%; }
  .main-nav { margin-left: -10px; }
}

main { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }
main.full { padding: 0; }
.page-head { max-width: 50rem; margin-bottom: 28px; }
.page-head h1 { margin-top: 0; }
.page-head .lead { margin-bottom: 0; }
.guide-group { margin-top: 36px; }
.guide-group h2 { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: 1.35rem; }
.guide-group + .guide-group { margin-top: 40px; }

/* ---------- Bandes de la page d'accueil ---------- */
.band { padding: clamp(40px, 6vw, 72px) 0; }
.band-grid {
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
  position: relative;
}
.band-grid::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.band-grid > .wrap { position: relative; z-index: 1; }
.band-soft { background: var(--surface-2); }
.band-ink { background: var(--ink); color: var(--on-ink); }
.band-ink h2, .band-ink h3, .band-ink strong { color: #fff; }
.band-ink a { color: #fff; }
.band-ink .muted { color: var(--on-ink-muted); }
.section-head { max-width: 46rem; margin-bottom: 28px; }
.section-head h2 { margin: 0 0 .4em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.section-head .eyebrow { margin-bottom: 8px; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head-row .section-head { margin: 0; }
.section-head-row .btn { flex: none; }

/* Héros */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(32px, 5vw, 64px); }
.hero-inner { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .hero-inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; } }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.3rem); margin: 0 0 .4em; max-width: 24ch; }
.hero .lead { margin-bottom: 1.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .93rem; color: var(--muted); }
.proof li { margin: 0; display: inline-flex; align-items: center; gap: 7px; }
.proof .icon { color: var(--ok); width: 1.15em; height: 1.15em; stroke-width: 2.4; }

/* Aperçu de devis (illustration en CSS) */
.hero-visual { position: relative; padding: 18px 0 28px; max-width: 520px; margin: 0 auto; width: 100%; }
.paper {
  background: #fff; color: #161a22; border-radius: 10px; padding: 22px 24px 20px; font-size: .78rem; line-height: 1.4;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(16, 24, 40, .08); transform: rotate(-1.2deg); position: relative;
}
.paper::before { content: ""; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); pointer-events: none; }
.paper-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.paper-head .paper-title { font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; color: #0c1220; line-height: 1; font-stretch: 94%; }
.paper-head .paper-num { color: #5b6170; font-size: .72rem; margin-top: 4px; }
.paper-head .paper-ent { text-align: right; color: #3a404d; font-size: .72rem; }
.paper-head .paper-ent strong { display: block; color: #0c1220; font-size: .8rem; }
.paper-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; background: #f4f3ef; border-radius: 6px; padding: 9px 11px; margin-bottom: 12px; color: #3a404d; }
.paper-meta b { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: #5b6170; font-weight: 700; }
.paper table { width: 100%; border-collapse: collapse; font-size: .74rem; margin-bottom: 10px; }
.paper th { text-align: left; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: #5b6170; padding: 4px 0; border-bottom: 1px solid #d9d6ce; font-weight: 700; background: transparent; }
.paper td, .paper tbody tr:nth-child(even) td, .paper td:first-child { padding: 6px 0; border-bottom: 1px solid #ebe8e1; color: #161a22; background: transparent; font-weight: 400; }
.paper .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.paper-totals { margin-left: auto; width: 60%; font-size: .76rem; }
.paper-totals div { display: flex; justify-content: space-between; padding: 2px 0; color: #3a404d; }
.paper-totals .grand { border-top: 2px solid #161a22; margin-top: 4px; padding-top: 5px; font-weight: 800; color: #0c1220; font-size: .9rem; }
.paper-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid #d9d6ce; font-size: .66rem; color: #5b6170; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.paper-foot span { display: inline-flex; align-items: center; gap: 4px; }
.paper-foot .icon { width: .9rem; height: .9rem; color: #176a3a; stroke-width: 2.6; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: var(--surface); color: var(--text-strong); border: 1px solid var(--border); box-shadow: var(--shadow); white-space: nowrap;
}
.chip .icon { width: 1.1em; height: 1.1em; stroke-width: 2.4; }
.chip-ok .icon { color: var(--ok); }
.chip-accent { background: var(--accent-bright); color: #1a1208; border-color: transparent; }
.chip-accent .icon { color: #1a1208; }
.chip-1 { top: 0; right: -6px; transform: rotate(2deg); }
.chip-2 { bottom: 8px; left: -8px; transform: rotate(-2deg); }
.chip-3 { top: 48%; right: -14px; transform: rotate(1.5deg); }
@media (max-width: 599px) {
  .hero-visual { padding: 14px 6px 24px; }
  .chip { font-size: .74rem; padding: 6px 10px; }
  .chip-1 { right: 0; }
  .chip-2 { left: 0; }
  .chip-3 { right: 0; top: 46%; }
}

/* Échéance */
.deadline-inner { display: grid; gap: 32px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .deadline-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; } }
.deadline h2 { margin: 0 0 .5em; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.deadline p { color: var(--on-ink-muted); font-size: 1.05rem; }
.deadline .btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.deadline .btn-light:hover { background: var(--on-ink); color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 14px 16px; }
.timeline .tl-date { font-weight: 800; font-size: .95rem; color: #fff; background: var(--ink-3); border-radius: 8px; padding: 6px 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.timeline .tl-date.now { background: var(--accent-bright); color: #1a1208; }
.timeline li p { margin: 0; color: var(--on-ink-muted); font-size: .95rem; }
.timeline li strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.countdown { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 12px 18px; margin: 4px 0 18px; }
.countdown strong { font-size: 2rem; line-height: 1; font-stretch: 92%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .85rem; color: var(--on-ink-muted); }

/* Parcours */
.paths { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.paths li { margin: 0; }
.paths a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text-strong); text-decoration: none; font-weight: 600; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.paths a:hover { border-color: var(--primary); transform: translateY(-1px); }
.paths a .icon { color: var(--accent); }
.paths small { display: block; font-weight: 500; color: var(--muted); font-size: .88rem; margin-top: 2px; }

/* ---------- Cartes ---------- */
.grid-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 0 0 8px; }
.grid-cards + h2 { margin-top: 2em; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; min-width: 0;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h2, .card h3 { margin: 0; font-size: 1.18rem; line-height: 1.25; }
.card h2 a, .card h3 a { color: var(--text-strong); text-decoration: none; }
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:hover h2 a, .card:hover h3 a { color: var(--primary); }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .card-link { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card .card-link::after { content: "→"; transition: transform .18s; }
.card:hover .card-link::after { transform: translateX(3px); }
.card-kicker { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin: 0; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 4px; }
.card-icon .icon { width: 24px; height: 24px; }
.card-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .86rem; color: var(--muted); padding-top: 6px; }
.card-meta .arrow { color: var(--primary); font-weight: 700; transition: transform .18s; }
.card:hover .card-meta .arrow { transform: translateX(3px); }
.card-tool { border-top: 4px solid var(--accent-bright); }

/* Confiance */
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.trust-list li { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.trust-list .card-icon { margin: 0; background: var(--surface); border: 1px solid var(--border); }
.trust-list strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.trust-list p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; letter-spacing: -0.005em;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-strong); color: var(--on-primary); }
.btn-secondary { background: var(--surface); color: var(--text-strong); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-strong); }
.btn-link { background: none; border: 0; color: var(--primary); padding: 6px 0; min-height: 0; text-decoration: underline; font-weight: 500; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .92rem; border-radius: 9px; }

/* ---------- Encadrés ---------- */
.callout { border-radius: var(--radius); padding: 16px 18px 16px 20px; margin: 1.3em 0; border: 1px solid; position: relative; }
.callout > :last-child { margin-bottom: 0; }
.callout.info { background: var(--info-soft); border-color: var(--info-border); }
.callout.warn { background: var(--warn-soft); border-color: var(--warn-border); }
.callout.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.callout-title { font-weight: 700; display: block; margin-bottom: 4px; color: var(--text-strong); }
.callout.info .callout-title { color: var(--primary-strong); }
.callout.warn .callout-title { color: var(--warn); }
.callout.ok .callout-title { color: var(--ok); }

.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.pub { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); color: var(--muted); vertical-align: middle; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; margin: 1.3em 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; white-space: nowrap; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 40%, transparent); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--text-strong); }
tr.pick td:first-child::after { content: "Notre choix"; display: block; width: max-content; margin-top: 6px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

/* Listes de contrôle */
.check { list-style: none; padding-left: 0; }
.check li { position: relative; padding-left: 32px; }
.check li::before { content: ""; position: absolute; left: 2px; top: .32em; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--primary); background: var(--primary-soft); }
.check li::after { content: ""; position: absolute; left: 8px; top: .42em; width: 5px; height: 10px; border: solid var(--primary); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }

/* ---------- Articles (guides) ---------- */
.article-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.article-aside { display: none; }
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 46rem) minmax(240px, 300px); gap: 64px; }
  .article-aside { display: block; position: sticky; top: 84px; }
  .toc-inline { display: none; }
}
.article-head { margin-bottom: 1.6em; }
.article-head h1 { margin-top: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--muted); margin: 0; padding-top: 14px; border-top: 1px solid var(--border); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { width: 1.05em; height: 1.05em; }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 1.8em; font-size: .95rem; }
.toc ol { margin: 8px 0 0; padding-left: 0; list-style: none; counter-reset: toc; }
.toc li { margin: 0; counter-increment: toc; }
.toc li a { display: flex; gap: 10px; padding: 6px 0; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.toc li a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; font-size: .78rem; font-weight: 700; color: var(--accent); padding-top: .2em; }
.toc li a:hover { color: var(--text-strong); }
.toc-title { font-weight: 700; margin: 0; color: var(--text-strong); display: flex; align-items: center; gap: 8px; }
.toc-side { padding: 0 0 0 16px; border: 0; background: none; border-left: 1px solid var(--border); border-radius: 0; }
.toc-side li a { padding: 5px 0 5px 12px; margin-left: -17px; border-left: 2px solid transparent; }
.toc-side li a.is-active { color: var(--text-strong); border-left-color: var(--accent-bright); }
details.toc summary { cursor: pointer; font-weight: 700; color: var(--text-strong); list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.toc summary::-webkit-details-marker { display: none; }
details.toc summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
details.toc[open] summary::after { content: "–"; }
.aside-card { margin-top: 24px; background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: 18px; }
.aside-card p { margin: 0 0 12px; font-size: .95rem; color: var(--on-ink-muted); }
.aside-card strong { color: #fff; display: block; font-size: 1.05rem; margin-bottom: 4px; }
.aside-card .btn { width: 100%; }
.aside-card .btn-light { background: #fff; color: var(--ink); }
.aside-card .btn-light:hover { background: var(--on-ink); color: var(--ink); }

.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.related h2 { margin: 0 0 20px; font-size: 1.4rem; }

/* Encart partenaires */
.partner-box { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent-bright); border-radius: var(--radius); padding: 18px 20px; margin: 1.8em 0; box-shadow: var(--shadow-sm); }
.partner-box h2, .partner-box h3 { margin-top: 0; font-size: 1.12rem; border: 0; padding: 0; }
.partner-box > :last-child { margin-bottom: 0; }

/* FAQ */
.faq h3 { font-size: 1.08rem; margin-top: 1.3em; }
.faq h3 + p { color: var(--text); }

/* ---------- Outils ---------- */
.tool-intro { max-width: 52rem; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 20px; }
.tool > * { min-width: 0; }
@media (min-width: 1080px) {
  .tool { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .tool-output { position: sticky; top: 84px; }
}
.tool-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px 18px 8px; margin: 0 0 16px; min-width: 0; box-shadow: var(--shadow-sm); }
.tool-form legend { font-weight: 700; padding: 0 8px; font-size: 1.02rem; color: var(--text-strong); }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: .93rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.row { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 9px 11px; min-height: 44px; width: 100%;
}
textarea { min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: 2px solid transparent; box-shadow: 0 0 0 3px var(--info-border); }
.choice { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.choice input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--primary); }

.lines { display: grid; gap: 12px; margin-bottom: 12px; }
.line { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 2px; background: var(--bg); }
.line-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.line .row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }

.checklist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.checklist h2 { font-size: 1.05rem; margin: 0 0 8px; border: 0; padding: 0; }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 8px; font-size: .93rem; margin-bottom: 6px; }
.checklist .st { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; margin-top: 2px; }
.checklist .st.ok { background: var(--ok-soft); color: var(--ok); }
.checklist .st.todo { background: var(--warn-soft); color: var(--warn); }
.checklist .st.info { background: var(--info-soft); color: var(--primary); }

/* Document de devis : une feuille blanche, quel que soit le thème */
.devis-paper {
  background: #fff; color: #161a22; border-radius: 6px; box-shadow: var(--shadow-lg);
  padding: clamp(16px, 4vw, 36px); font-size: .86rem; line-height: 1.45;
}
.devis-paper h2 { font-size: 1.35rem; margin: 0; color: #161a22; border: 0; padding: 0; letter-spacing: .02em; }
.devis-paper .d-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.devis-paper .d-block { min-width: 0; flex: 1 1 220px; }
.devis-paper .d-title { flex: 0 1 auto; text-align: right; }
.devis-paper .d-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #5b6170; margin-bottom: 2px; font-weight: 700; }
.devis-paper .d-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 16px; background: #f4f3ef; border-radius: 6px; padding: 10px 12px; margin-bottom: 16px; }
.devis-paper table { font-size: .82rem; border: 1px solid #d9d6ce; }
.devis-paper th { background: #eeece6; color: #161a22; white-space: normal; text-transform: none; letter-spacing: 0; font-size: .8rem; }
.devis-paper th, .devis-paper td { border-bottom: 1px solid #e3e0d8; padding: 6px 8px; }
.devis-paper tbody tr:nth-child(even) td { background: transparent; }
.devis-paper td:first-child { font-weight: 400; color: #161a22; }
.devis-paper td.num, .devis-paper th.num { text-align: right; white-space: nowrap; }
.devis-paper .d-totals { margin: 12px 0 16px auto; max-width: 300px; }
.devis-paper .d-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.devis-paper .d-totals .grand { border-top: 2px solid #161a22; margin-top: 4px; padding-top: 6px; font-weight: 700; font-size: .95rem; }
.devis-paper .d-mentions { font-size: .76rem; color: #3a404d; border-top: 1px solid #d9d6ce; padding-top: 10px; }
.devis-paper .d-mentions p { margin: 0 0 6px; }
.devis-paper .d-sign { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 14px; }
.devis-paper .d-sign > div { border: 1px dashed #b9b5ab; border-radius: 6px; padding: 10px; min-height: 110px; }
.devis-paper .d-box { border: 1px solid #d9d6ce; border-radius: 6px; padding: 10px 12px; margin-top: 12px; font-size: .78rem; break-inside: avoid; }
.devis-paper .d-box p { margin: 0 0 6px; }
.devis-paper .d-box ul { margin: 0 0 6px; padding-left: 1.2em; }
.devis-paper .d-box li { margin-bottom: 2px; }
.devis-paper .d-annex { margin-top: 18px; border-top: 2px dashed #b9b5ab; padding-top: 12px; font-size: .78rem; }
.devis-paper .empty { color: #8a8f99; font-style: italic; }
.devis-paper .table-wrap { border: 0; border-radius: 0; background: transparent; margin: 0; box-shadow: none; }
.devis-paper strong { color: #161a22; }

/* Calculateur de retenue de garantie */
.rg-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.rg-summary { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin-bottom: 8px; }
.rg-summary > div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rg-summary strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.rg-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.rg-panel td.num, .rg-panel th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rg-panel td:first-child { font-weight: 500; }
.rg-panel tfoot th { background: var(--surface-2); text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--text-strong); }
.rg-mention { background: var(--bg); border: 1px dashed var(--border-strong); border-radius: 8px; padding: 10px 12px; margin: 4px 0 0; font-size: .95rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); font-size: .93rem; margin-top: 24px; }
.site-footer strong { color: #fff; }
.footer-inner { padding-top: 44px; padding-bottom: 20px; }
.footer-grid { display: grid; gap: 32px 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; font-stretch: 94%; margin-bottom: 12px; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-tagline { margin: 0 0 12px; color: var(--on-ink); }
.disclaimer { max-width: 34rem; font-size: .86rem; margin: 0; }
.footer-col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-ink-muted); margin: 0 0 12px; font-stretch: 100%; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 8px; }
.footer-col a { color: var(--on-ink); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--ink-3); font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* ---------- Impression : seul le devis est imprimé ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .skip, .no-print, .tool-form, .checklist, .breadcrumb, .updated, .partner-box, .tool-intro, .after-tool, .related, .article-aside, .toc { display: none !important; }
  main { padding: 0; min-height: 0; }
  .tool { display: block; margin: 0; }
  .tool-output { position: static; }
  .devis-paper { box-shadow: none; border-radius: 0; padding: 0; font-size: 9.5pt; }
  .devis-paper .d-annex { break-before: page; border-top: 0; }
  a { color: inherit; text-decoration: none; }
}
