@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-display:swap;font-weight:200 800;src:url(/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2')}
@font-face{font-family:'Plus Jakarta Sans';font-style:italic;font-display:swap;font-weight:200 800;src:url(/fonts/plus-jakarta-sans-latin-wght-italic.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-display:swap;font-weight:400;src:url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-display:swap;font-weight:500;src:url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2')}
:root {
  --primary: #3b3fb6;
  --primary-dark: #272a85;
  --accent: #0ea5b7;
  --ink: #151833;
  --muted: #5a5f7a;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --line: #e0e2ef;
  --soft: #eceefb;
  --accent-btn: #0b818f;
  --accent-btn-text: #ffffff;
  --radius: 16px;
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
/* Feuille de style commune. Les couleurs, rayons et polices viennent des
   variables définies par le build depuis site.config.mjs (theme). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.85rem); margin: 0.2em 0 0.4em; font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); margin: 2.2em 0 0.6em; font-weight: 700; }
h3 { font-size: 1.22rem; margin: 1.8em 0 0.5em; font-weight: 650; }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Bandeau légal (crédit) */
.legal-strip { background: var(--ink); color: #fff; font-size: 0.8rem; text-align: center; padding: 0.45em 16px; line-height: 1.4; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-heading); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.logo-text span + span { color: var(--primary); }
.logo-invert, .logo-invert .logo-text span + span { color: #fff; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; white-space: nowrap; padding: 0.45em 0.7em; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 0.93rem; font-weight: 550; }
.site-nav a:hover { background: var(--soft); color: var(--primary-dark); }
.site-nav a[aria-current] { color: var(--primary); background: var(--soft); }
.site-nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); }
.icon-link:hover { background: var(--soft); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; content: ''; transition: transform .2s; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(0,0,0,.25); padding: 10px 16px 16px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 0.75em 0.6em; font-size: 1rem; }
  .site-nav .nav-cta { display: block; margin-top: 8px; }
  .site-nav .nav-cta a { background: var(--accent-btn); color: var(--accent-btn-text); text-align: center; font-weight: 700; }
  .header-actions { order: 3; }
  .header-inner { gap: 8px; }
}
@media (max-width: 520px) {
  .header-actions .btn { display: none; }
  .logo-text { font-size: 0.95rem; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.75em 1.25em; border-radius: calc(var(--radius) - 2px); font-weight: 650; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font: inherit; font-weight: 650; line-height: 1.2; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.55em 0.95em; font-size: 0.92rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent-btn); color: var(--accent-btn-text); }
.btn-accent:hover { color: var(--accent-btn-text); filter: brightness(0.94); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--primary); }

/* Fil d'Ariane */
.crumbs { margin: 22px 0 6px; font-size: 0.86rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: '›'; margin-left: 6px; color: var(--line); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* En-tête de page */
.page-head { max-width: 860px; padding: 8px 0 18px; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--primary); margin: 0 0 6px; }
.kicker a { text-decoration: none; }
.standfirst { font-size: 1.2rem; line-height: 1.55; color: color-mix(in srgb, var(--ink) 86%, var(--muted)); margin: 0 0 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.88rem; color: var(--muted); margin: 0; }
.meta span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--line); background: var(--muted); opacity: .5; margin-right: 18px; vertical-align: middle; }
.hero { margin: 10px 0 30px; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--soft); }
.hero img { width: 100%; aspect-ratio: 3 / 2; max-height: 520px; object-fit: cover; }

/* Mise en page */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.single { max-width: 820px; }
@media (max-width: 1000px) { .with-sidebar { grid-template-columns: 1fr; gap: 20px; } }
.sidebar { position: sticky; top: 92px; display: grid; gap: 18px; max-height: calc(100vh - 110px); overflow: auto; padding-bottom: 8px; }
@media (max-width: 1000px) { .sidebar { position: static; max-height: none; } .sidebar .toc { display: none; } }

/* Corps de texte */
.prose { min-width: 0; }
.prose > p, .prose li { font-size: 1.07rem; }
.prose h2 { padding-top: 0.2em; border-top: 1px solid var(--line); padding-top: 1.1em; }
.prose h2:first-child, .prose .summary + h2 { border-top: 0; padding-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--primary); font-weight: 700; }
.prose strong { font-weight: 680; color: color-mix(in srgb, var(--ink) 92%, var(--primary)); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--soft); padding: 0.1em 0.35em; border-radius: 5px; }

/* L'essentiel */
.summary { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--primary); border-radius: var(--radius); padding: 18px 22px 8px; margin: 0 0 28px; box-shadow: 0 10px 30px -24px rgba(0,0,0,.35); }
.summary-title { display: flex; align-items: center; gap: 8px; font-weight: 750; font-family: var(--font-heading); margin: 0 0 8px; color: var(--primary-dark); }
.summary ul { margin: 0 0 8px; padding-left: 1.2em; }
.summary li { margin: 0.4em 0; font-size: 1rem; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.ic-lg { width: 30px; height: 30px; }

/* Sommaire */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 24px; }
.toc-title, .side-title { font-weight: 750; font-family: var(--font-heading); margin: 0 0 8px; font-size: 0.98rem; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 0.92rem; }
.toc li { margin: 0.35em 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--primary); text-decoration: underline; }
.side-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.side-nav li { padding: 0.4em 0; border-top: 1px solid var(--line); line-height: 1.4; }
.side-nav li:first-child { border-top: 0; }
.side-nav a { color: var(--ink); text-decoration: none; }
.side-nav a:hover { color: var(--primary); }
.side-nav [aria-current] { font-weight: 700; color: var(--primary); }
.side-title a { text-decoration: none; }

/* Encadrés */
.callout { border-radius: var(--radius); padding: 16px 20px 6px; margin: 1.6em 0; border: 1px solid; }
.callout-head { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.callout-title { font-weight: 700; font-family: var(--font-heading); font-size: 1.08rem; margin-bottom: 0.4em; }
.callout p { font-size: 1rem; }
.callout-essentiel { background: var(--soft); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.callout-essentiel .callout-head { color: var(--primary-dark); }
.callout-attention { background: #fff5f2; border-color: #f3c2b4; }
.callout-attention .callout-head { color: #b3361b; }
.callout-astuce { background: #f1f8f1; border-color: #bfdcbf; }
.callout-astuce .callout-head { color: #2d6a2f; }
.callout-chiffre { background: #fff9eb; border-color: #f0dca6; }
.callout-chiffre .callout-head { color: #8a5a00; }
.callout-legal { background: #f3f4fb; border-color: #c9cdea; }
.callout-legal .callout-head { color: #333d8f; }
.callout-exemple { background: var(--surface); border-color: var(--line); border-style: dashed; }
.callout-exemple .callout-head { color: var(--muted); }

/* Tableaux */
.table { margin: 1.6em 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
caption { caption-side: top; text-align: left; font-weight: 700; padding: 12px 14px; font-family: var(--font-heading); border-bottom: 1px solid var(--line); }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--primary-dark); }
tbody th { font-weight: 650; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--soft) 35%, transparent); }
.table figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 8px; }

/* Comparatif, étapes, chiffres, check-list, citation */
.compare { margin: 1.8em 0; }
.compare-title, .steps-title, .checklist-title { font-weight: 750; font-family: var(--font-heading); font-size: 1.12rem; margin-bottom: 0.7em; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 4px; border-top: 4px solid var(--primary); }
.compare-b { border-top-color: var(--accent); }
.compare-name { font-weight: 750; margin-bottom: 0.4em; }
.compare-col ul { padding-left: 1.1em; }
.compare-col li { font-size: 0.98rem; }
.compare-verdict { background: var(--soft); border-radius: var(--radius); padding: 12px 16px; margin-top: 12px; font-size: 1rem; }
.steps ol { list-style: none; padding: 0; counter-reset: step; margin: 0; }
.steps li { position: relative; padding: 2px 0 6px 52px; margin: 0 0 12px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 750; font-family: var(--font-heading); }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 40px; bottom: -10px; width: 2px; background: var(--line); }
.step-name { font-weight: 700; margin-bottom: 0.2em; }
.steps li p { font-size: 1rem; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 1.6em 0; }
.figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.figure-value { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--primary); line-height: 1.15; }
.figure-label { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.checklist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 8px; margin: 1.6em 0; }
.checklist ul { list-style: none; padding: 0; margin: 0 0 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; margin: 0.55em 0; font-size: 1rem; }
.checklist svg { width: 22px; height: 22px; flex-shrink: 0; color: #fff; background: var(--primary); border-radius: 6px; padding: 3px; margin-top: 2px; }
.pull { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-family: var(--font-heading); font-size: 1.28rem; line-height: 1.45; color: var(--primary-dark); }
.pull p { margin: 0; }

/* Appels à l'action */
.cta { display: flex; align-items: center; gap: 18px; justify-content: space-between; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: calc(var(--radius) + 2px); padding: 20px 24px; margin: 2em 0; }
.cta p { margin: 0; color: rgba(255,255,255,.88); font-size: 0.98rem; }
.cta .cta-title { color: #fff; font-weight: 750; font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 4px; }
.cta .btn { flex-shrink: 0; }
.cta-side { flex-direction: column; align-items: flex-start; margin: 0; }
.cta-wide { margin: 40px 0; padding: 28px 32px; }
@media (max-width: 640px) { .cta { flex-direction: column; align-items: flex-start; } }

/* FAQ */
.faq { margin-top: 2.6em; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 680; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 18px 4px; }
.faq details p { font-size: 1rem; }

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; position: relative; }
.card:hover { box-shadow: 0 16px 34px -22px rgba(0,0,0,.45); transform: translateY(-2px); }
.card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 14px 16px 16px; }
.card-kicker { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin-bottom: 4px; }
.card-title { font-size: 1.06rem; margin: 0 0 6px; line-height: 1.35; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card-title a:hover { color: var(--primary); }
.card p { font-size: 0.93rem; color: var(--muted); margin: 0; line-height: 1.5; }
.related, .hub-list, .other-sections { margin: 56px 0 20px; }
.related h2, .hub-list h2, .other-sections h2 { margin-top: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0; }
.chips a { display: inline-block; padding: 0.45em 0.9em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 550; }
.chips a:hover { border-color: var(--primary); color: var(--primary); }

/* Accueil */
.home-hero { background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent), linear-gradient(180deg, var(--soft), var(--bg)); border-bottom: 1px solid var(--line); }
.home-hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; padding: 48px 0 52px; }
@media (max-width: 900px) { .home-hero-inner { grid-template-columns: 1fr; padding: 28px 0 32px; gap: 24px; } }
.home-hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); }
.home-hero-img { margin: 0; border-radius: calc(var(--radius) + 8px); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.home-hero-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.hero-search, .search-form { display: flex; gap: 8px; margin-top: 8px; }
.hero-search input, .search-form input { flex: 1; min-width: 0; padding: 0.8em 1em; border: 1.5px solid var(--line); border-radius: calc(var(--radius) - 2px); font: inherit; background: var(--surface); }
.hero-search input:focus, .search-form input:focus { border-color: var(--primary); outline: none; }
.home-sections, .home-tools, .home-featured { margin: 54px 0; }
.home-sections h2, .home-tools h2, .home-featured h2 { margin-top: 0; }
.section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.section-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; border-top: 4px solid var(--primary); display: flex; flex-direction: column; }
.section-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.section-card h3 a { color: var(--ink); text-decoration: none; }
.section-card h3 a:hover { color: var(--primary); }
.section-card > p { color: var(--muted); font-size: 0.95rem; }
.section-card ul { list-style: none; padding: 0; margin: 0 0 12px; font-size: 0.93rem; }
.section-card li { padding: 0.35em 0; border-top: 1px dashed var(--line); line-height: 1.4; }
.section-card li a { color: var(--ink); text-decoration: none; }
.section-card li a:hover { color: var(--primary); text-decoration: underline; }
.more { margin-top: auto; font-weight: 700; text-decoration: none; }
.more::after { content: ' →'; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 1.2em 0 2em; }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tool-card:hover { border-color: var(--primary); box-shadow: 0 14px 30px -24px rgba(0,0,0,.5); color: var(--ink); }
.tool-card .ic { color: var(--primary); }
.tool-card strong { font-family: var(--font-heading); font-size: 1.04rem; line-height: 1.3; }
.tool-card span { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.tool-card .tool-go { color: var(--primary); font-weight: 700; margin-top: auto; }
.tool-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tool-list a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); height: 100%; }
.tool-list a:hover { border-color: var(--primary); }
.tool-list span { font-size: 0.9rem; color: var(--muted); }

/* Calculateurs */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 22px 24px; margin: 0 0 32px; box-shadow: 0 20px 40px -32px rgba(0,0,0,.5); }
.calc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.calc-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; margin: 0; color: var(--primary-dark); }
.calc-sub, .calc-progress { font-size: 0.86rem; color: var(--muted); margin: 0; }
.calc-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field[hidden] { display: none; }
.field-label { font-size: 0.9rem; font-weight: 620; line-height: 1.35; }
.field-input { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 9px; background: var(--bg); overflow: hidden; }
.field-input:focus-within { border-color: var(--primary); }
.field input, .field select, .rows-row input { font: inherit; font-family: var(--font-mono); font-size: 1rem; border: 0; background: transparent; padding: 0.55em 0.7em; width: 100%; min-width: 0; color: var(--ink); }
.field select { font-family: var(--font-body); border: 1.5px solid var(--line); border-radius: 9px; background: var(--bg); }
.field input:focus, .field select:focus, .rows-row input:focus { outline: none; }
.field select:focus { border-color: var(--primary); }
.unit { display: grid; place-items: center; padding: 0 0.7em; background: var(--soft); color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.field-hint { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.calc-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; grid-column: 1 / -1; }
@media (max-width: 700px) { .calc-groups { grid-template-columns: 1fr; } }
.calc-group, .calc-rows { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 14px; display: grid; gap: 10px; margin: 0; grid-column: 1 / -1; }
.calc-group legend, .calc-rows legend, .check-group legend { font-weight: 750; padding: 0 6px; font-family: var(--font-heading); }
.rows-table { display: grid; gap: 6px; overflow-x: auto; }
.rows-head, .rows-row { display: grid; grid-template-columns: 34px repeat(3, minmax(110px, 1fr)); gap: 8px; align-items: center; }
.rows-head span { font-size: 0.8rem; font-weight: 650; color: var(--muted); line-height: 1.3; }
.rows-row input { border: 1.5px solid var(--line); border-radius: 8px; background: var(--bg); }
.rows-row input:focus { border-color: var(--primary); }
.rows-n { font-weight: 700; color: var(--muted); text-align: center; }
.calc-out { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.result { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.result-label { font-size: 0.82rem; color: var(--muted); line-height: 1.3; }
.result-value { font-family: var(--font-mono); font-weight: 500; font-size: 1.2rem; color: var(--ink); }
.result-main { background: var(--primary); border-color: var(--primary); }
.result-main .result-label { color: rgba(255,255,255,.85); }
.result-main .result-value { color: #fff; font-size: 1.35rem; }
.result-text { grid-column: 1 / -1; }
.result-text .result-value { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; line-height: 1.45; }
.result-main.result-text .result-value { font-size: 1.1rem; }
.calc-note { font-size: 0.86rem; color: var(--muted); margin: 10px 0 0; }
.calc-error { background: #fff5f2; border: 1px solid #f3c2b4; color: #8f2a14; border-radius: 10px; padding: 12px 14px; margin: 0; }
.calc .table { margin: 16px 0 0; }
.check-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 12px; margin: 0 0 12px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px dashed var(--line); cursor: pointer; font-size: 0.98rem; line-height: 1.45; }
.check-item:first-of-type { border-top: 0; }
.check-item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.check-item input:checked + span { text-decoration: line-through; color: var(--muted); }

/* Comparateur partenaire */
.partner { margin: 0 0 34px; }
.partner-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.partner-frame iframe { display: block; width: 100%; min-height: 900px; border: 0; }
.partner-wait { text-align: center; background: linear-gradient(160deg, var(--soft), var(--surface)); border: 2px dashed color-mix(in srgb, var(--primary) 35%, var(--line)); border-radius: calc(var(--radius) + 4px); padding: 36px 24px 28px; }
.partner-wait-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--surface); color: var(--primary); box-shadow: 0 10px 24px -16px rgba(0,0,0,.5); }
.partner-wait-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; color: var(--primary-dark); margin-bottom: 8px; }
.partner-wait p { max-width: 60ch; margin-inline: auto; }
.partner-wait .chips { justify-content: center; }

/* Lexique */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 26px; position: sticky; top: 68px; background: var(--bg); padding: 8px 0; z-index: 5; }
.letters a { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.letters a:hover { background: var(--primary); color: #fff; }
.lex-group h2 { border-top: 0; font-size: 1.6rem; color: var(--primary); margin: 1.2em 0 0.4em; padding-top: 0; }
.lex-item { padding: 12px 0; border-top: 1px solid var(--line); }
.lex-item dt { font-weight: 750; font-family: var(--font-heading); font-size: 1.08rem; }
.lex-item dd { margin: 4px 0 0; }
.lex-item dd p { margin: 0 0 0.3em; font-size: 1rem; }
.lex-more { font-size: 0.9rem; }
.lex-item:target { background: var(--soft); border-radius: 8px; padding-inline: 10px; }

/* Plan du site, recherche, contact */
.plan { columns: 2 340px; column-gap: 40px; }
.plan section { break-inside: avoid; margin-bottom: 26px; }
.plan h2 { font-size: 1.15rem; margin: 0 0 8px; }
.plan ul { margin: 0; padding-left: 1.1em; font-size: 0.95rem; }
.search-status { color: var(--muted); margin: 14px 0; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { padding: 14px 0; border-top: 1px solid var(--line); }
.search-results a { font-weight: 700; font-size: 1.08rem; }
.search-results p { margin: 4px 0 0; font-size: 0.95rem; color: var(--muted); }
.search-results .s-section { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); font-weight: 700; }
.search-results mark { background: color-mix(in srgb, var(--accent) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px 12px; margin-top: 2em; }
.contact-box h2 { border-top: 0; margin-top: 0.8em; padding-top: 0; }

/* Pied de page */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); margin-top: 80px; padding: 50px 0 26px; font-size: 0.92rem; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { max-width: 520px; margin-bottom: 30px; }
.footer-brand p { margin: 12px 0 0; }
.footer-small { font-size: 0.84rem; color: rgba(255,255,255,.6); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px; }
.footer-title { font-weight: 750; color: #fff; margin: 0 0 8px; font-family: var(--font-heading); }
.footer-title a { color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0.4em 0; line-height: 1.4; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 34px; padding-top: 18px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0; }
.footer-bottom p { margin: 0; }
.footer-legal { margin: 18px 0 0; font-size: 0.85rem; color: rgba(255,255,255,.7); }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .prose > p, .prose li { font-size: 1.02rem; }
  .standfirst { font-size: 1.08rem; }
  .meta { gap: 2px 14px; }
  .meta span + span::before { display: none; }
  .calc { padding: 18px 16px; }
  .hero { margin-inline: -16px; border-radius: 0; }
}
@media print {
  .site-header, .site-footer, .sidebar, .cta, .legal-strip, .related { display: none !important; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
