/* =================================================================
   Banques et Credits, feuille de style unique.
   Aucune ressource externe : polices systeme, images locales.
   ================================================================= */

:root {
  --bg: #fbfaf7;
  --bg-alt: #f2efe9;
  --surface: #ffffff;
  --ink: #101d2c;
  --ink-soft: #35485e;
  --muted: #64748b;
  --line: #e3ded4;
  --line-strong: #cfc8ba;
  --brand: #12365f;
  --brand-ink: #0b2340;
  --brand-soft: #eaf0f7;
  --btn-bg: #0b2340;
  --btn-fg: #ffffff;
  --btn-bg-hover: #0b8f6a;
  --accent: #0b8f6a;
  --accent-soft: #e6f4ef;
  --gold: #b4882b;
  --gold-soft: #f8f1de;
  --warn: #b4452b;
  --warn-soft: #fbeee9;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 29, 44, .06), 0 2px 8px rgba(16, 29, 44, .05);
  --shadow: 0 4px 12px rgba(16, 29, 44, .07), 0 16px 40px rgba(16, 29, 44, .07);
  --wrap: 1180px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220;
    --bg-alt: #0e1829;
    --surface: #111d30;
    --ink: #e9eef6;
    --ink-soft: #c3cfdf;
    --muted: #94a5bb;
    --line: #1e2d44;
    --line-strong: #2b3e59;
    --brand: #8fb6e2;
    --brand-ink: #cfe0f3;
    --brand-soft: #14263d;
    --btn-bg: #43c39a;
    --btn-fg: #06121f;
    --btn-bg-hover: #6fd6b3;
    --accent: #43c39a;
    --accent-soft: #102c26;
    --gold: #d7ab53;
    --gold-soft: #2a2213;
    --warn: #e88a72;
    --warn-soft: #2d1a15;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 10px 34px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.05rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------- En-tete ---------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; flex: 0 0 auto; }
.logo-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.16rem; font-weight: 700; letter-spacing: -.015em; }
.brand-amp { color: var(--accent); font-style: italic; padding: 0 .28em; font-weight: 400; }
.brand-baseline { font-size: .69rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  display: inline-block; padding: 9px 13px; border-radius: 9px;
  color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: .95rem;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.site-nav a[aria-current] { color: var(--brand); background: var(--brand-soft); }
.header-cta {
  flex: 0 0 auto; background: var(--btn-bg); color: var(--btn-fg); text-decoration: none;
  padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.header-cta:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
/* Bande « Service partenaire » : un bouton par formulaire de devis, sous la barre
   principale, visible en permanence sur ordinateur et sur mobile. */
.devis-band { border-top: 1px solid var(--line); }
.devis-band-inner { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding-top: 7px; padding-bottom: 7px; }
.devis-band-title { font-size: .69rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.devis-band-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.devis-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 6px 15px; border-radius: 999px;
  background: var(--accent-soft); color: var(--brand-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  font-weight: 650; font-size: .88rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.devis-pill::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.devis-pill:hover { color: var(--brand-ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.devis-pill[aria-current] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.devis-pill[aria-current]::before { background: currentColor; }
.devis-pill:focus-visible { border-radius: 999px; }
.nav-toggle { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-burger { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: 12px; min-height: 64px; }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 40px; padding: 8px 9px; cursor: pointer;
    border: 1px solid var(--line-strong); border-radius: 10px;
  }
  .burger-lines { display: flex; flex-direction: column; gap: 5px; width: 100%; }
  .burger-lines span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--accent); outline-offset: 2px; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; gap: 2px;
    margin: 0 0 12px; padding-top: 8px; border-top: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 12px 10px; font-size: 1.02rem; }
  .header-cta { display: none; }
  .nav-toggle:checked ~ .header-cta { display: block; width: 100%; text-align: center; margin-bottom: 14px; order: 5; }
  .nav-burger { order: 2; }
  .site-nav { order: 4; }
}
@media (min-width: 961px) and (max-width: 1120px) {
  .header-cta { display: none; }
}
@media (max-width: 440px) {
  .brand-name { font-size: 1.04rem; }
  .brand { gap: 8px; }
  .logo-mark { width: 34px; height: 34px; }
  .header-inner { gap: 8px; }
}
/* Mobile : les trois boutons sur une seule rangée de colonnes égales, libellés sur
   deux lignes au besoin, sans défilement horizontal ni menu à ouvrir. */
@media (max-width: 600px) {
  .devis-band-inner { padding-top: 8px; padding-bottom: 8px; }
  .devis-band-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .devis-band-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; width: 100%; }
  .devis-pill { display: flex; width: 100%; min-height: 42px; height: 100%; padding: 5px 6px; border-radius: 12px; font-size: .8rem; line-height: 1.15; text-align: center; white-space: normal; }
  .devis-pill::before { display: none; }
  .devis-pill:focus-visible { border-radius: 12px; }
}
@media (max-width: 350px) {
  .site-header .wrap { padding: 0 14px; }
  .brand-name { font-size: .98rem; }
  .brand-baseline { font-size: .6rem; letter-spacing: .08em; }
}

/* ---------------------------- Boutons ---------------------------- */
.btn {
  display: inline-block; background: var(--btn-bg); color: var(--btn-fg); text-decoration: none;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.btn-small { padding: 10px 18px; font-size: .92rem; }

/* --------------------------- Fil d'Ariane ------------------------ */
.breadcrumb { margin: 22px 0 8px; font-size: .86rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

/* ----------------------------- Hero ------------------------------ */
.hero { padding: 40px 0 10px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-kicker, .page-kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700;
  color: var(--accent); margin: 0 0 12px;
}
.hero h1 { margin-bottom: .35em; }
.hero-lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hero-points li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: .96rem; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 26px; }
}

/* ---------------------------- Sections --------------------------- */
.home-section, .home-tools, .home-editorial { padding: 56px 0; }
.home-section-alt, .home-tools { background: var(--bg-alt); }
.home-section h2, .home-tools h2 { text-align: center; }
.section-lead { text-align: center; color: var(--muted); max-width: 62ch; margin: 0 auto 34px; }
.section-more { text-align: center; margin-top: 30px; }
.section-more a { font-weight: 600; }

/* ----------------------------- Cartes ---------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-kicker {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--accent); margin-bottom: 8px;
}
.card-title { font-size: 1.18rem; margin: 0 0 .4em; }
.card-desc { color: var(--muted); font-size: .94rem; margin: 0 0 16px; flex: 1; }
.card-more { font-weight: 600; font-size: .9rem; color: var(--brand); }
.card:hover .card-more { color: var(--accent); }
.card-more::after { content: " \2192"; }

/* -------------------------- Liste de liens ----------------------- */
.link-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.link-list li a {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.link-list li a:hover { border-color: var(--accent); transform: translateX(3px); }
.ll-title { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.ll-desc { display: block; color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------------------------- Outils ----------------------------- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tool-card {
  display: flex; flex-direction: column; gap: 6px; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
}
.tool-card:hover { border-left-color: var(--brand); transform: translateY(-2px); }
.tool-card-title { font-family: var(--serif); font-size: 1.08rem; font-weight: 650; }
.tool-card-desc { color: var(--muted); font-size: .88rem; line-height: 1.45; }

.tool {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; margin: 34px 0; box-shadow: var(--shadow-sm);
}
.tool-head { margin-bottom: 18px; }
.tool-title { font-size: 1.3rem; margin: 0; }
.tool-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
.input-wrap { position: relative; display: flex; }
.input-wrap input, .input-wrap select {
  width: 100%; font: inherit; font-size: 1.02rem; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg); color: var(--ink);
}
.input-wrap.has-unit input { padding-right: 62px; }
.input-wrap .unit {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: .85rem; pointer-events: none;
}
.field-help { font-size: .79rem; color: var(--muted); margin: 0; line-height: 1.4; }
.tool-out {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px;
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line);
}
.out { display: flex; flex-direction: column; gap: 3px; }
.out-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.out-value { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.out-help { font-size: .76rem; color: var(--muted); }
.out-primary { background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; grid-column: span 2; }
.out-primary .out-value { color: var(--accent); font-size: 2rem; }
@media (max-width: 560px) { .out-primary { grid-column: span 1; } }
.tool-noscript { color: var(--warn); font-size: .9rem; margin-top: 16px; }
.tool-table-wrap { margin-top: 24px; overflow-x: auto; }
.tool-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.tool-table th, .tool-table td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.tool-table th:first-child, .tool-table td:first-child { text-align: left; }
.tool-table thead th { background: var(--bg-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------------------------- Article ---------------------------- */
.page { padding-bottom: 70px; }
.page-head { max-width: 46rem; margin: 18px 0 30px; }
.page-lead { font-size: 1.14rem; color: var(--ink-soft); }
.page-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: .84rem; color: var(--muted); margin: 0; }
.page-meta span { position: relative; }
.page-meta span + span::before { content: ""; position: absolute; left: -10px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.page-hero { margin: 0 0 44px; }
.page-hero img { width: 100%; max-height: 430px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.page-article.has-aside .page-grid { grid-template-columns: 260px minmax(0, 1fr); }
@media (max-width: 900px) { .page-article.has-aside .page-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.page-aside { position: relative; }
@media (min-width: 901px) { .page-aside > * { position: sticky; top: 148px; } .page-aside .aside-cta { position: static; } }
.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; font-size: .92rem;
}
.toc-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; font-family: var(--sans); font-weight: 700; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 9px; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.aside-cta {
  margin-top: 20px; background: var(--brand-soft); border-radius: var(--radius);
  padding: 20px 22px; font-size: .9rem; color: var(--ink-soft);
}
.aside-cta-title { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: .4em; }

/* --------------- Formulaires partenaires (devis) --------------- */
.devis-cta {
  margin: 2em 0; padding: 20px 24px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-left: 4px solid var(--accent);
}
.prose .devis-cta p { margin-bottom: .5em; }
.devis-cta-label {
  font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; color: var(--accent);
}
.prose .devis-cta-title { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-bottom: .35em; }
.prose .devis-cta-text { font-size: .98rem; color: var(--ink-soft); margin-bottom: 1em; }
.prose .devis-cta .devis-cta-btn { color: var(--btn-fg); text-decoration: none; }
.devis-head { margin-bottom: 18px; }
.devis-head .page-lead { margin-bottom: 0; }
.devis-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px; box-shadow: var(--shadow-sm);
}
#DevisProxContent { width: 100%; min-height: 420px; }
#DevisProxContent iframe { display: block; width: 100%; max-width: 100%; }
.devis-note { font-size: .84rem; color: var(--muted); margin: 12px 6px 4px; }
.devis-others { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 22px 0 34px; font-size: .92rem; color: var(--muted); }
.devis-others a {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--brand); text-decoration: none; font-weight: 600;
}
.devis-others a:hover { background: var(--brand-soft); border-color: var(--brand); }
@media (max-width: 600px) { .devis-form { padding: 6px; border-radius: var(--radius); } .devis-cta { padding: 18px; } }

/* ----------------------------- Prose ----------------------------- */
.prose { max-width: 44rem; font-size: 1.06rem; }
.prose > h2 { margin-top: 2.1em; padding-top: .3em; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 650; color: var(--ink); }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
  font-family: var(--serif); font-size: 1.12rem; color: var(--ink-soft); font-style: italic;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.table-wrap { overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { background: var(--bg-alt); font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 600; }

.callout {
  margin: 2em 0; padding: 20px 24px; border-radius: var(--radius);
  background: var(--brand-soft); border-left: 4px solid var(--brand);
  font-size: 1rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout-label {
  font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; color: var(--brand); margin-bottom: .6em;
}
.callout-key { background: var(--accent-soft); border-left-color: var(--accent); }
.callout-key .callout-label { color: var(--accent); }
.callout-warn { background: var(--warn-soft); border-left-color: var(--warn); }
.callout-warn .callout-label { color: var(--warn); }
.callout-example { background: var(--gold-soft); border-left-color: var(--gold); }
.callout-example .callout-label { color: var(--gold); }
.callout-figures { background: var(--bg-alt); border-left-color: var(--line-strong); }
.callout-figures .callout-label { color: var(--muted); }

/* --------------------------- A lire aussi ------------------------ */
.related { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.35rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.related a {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: inherit;
}
.related a:hover { border-color: var(--accent); }
.rel-kicker { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; }
.rel-title { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; }

/* ----------------------------- Hub ------------------------------- */
.hub-head { max-width: 46rem; margin-bottom: 26px; }
.hub-hero-media { margin-bottom: 36px; }
.hub-hero-media img { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hub-intro { max-width: 46rem; margin-bottom: 40px; }
.hub-count { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 18px; }

/* ---------------------------- Lexique ---------------------------- */
.lex-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 32px; }
.lex-index a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
  text-decoration: none; font-weight: 600; color: var(--ink-soft);
}
.lex-index a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.lex-letter { font-size: 1.9rem; color: var(--accent); margin: 44px 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--line); scroll-margin-top: 148px; }
.lex-group { display: grid; gap: 18px; }
.lex-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; scroll-margin-top: 148px; }
.lex-item h3 { margin-bottom: .35em; }
.lex-item p { margin: 0; color: var(--ink-soft); }
.lex-see { font-size: .88rem; margin-top: .7em !important; color: var(--muted) !important; }

/* ---------------------------- Recherche -------------------------- */
.search-app { margin: 10px 0 40px; }
.search-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.search-form input {
  width: 100%; font: inherit; font-size: 1.1rem; padding: 15px 18px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink);
}
.search-count { font-size: .86rem; color: var(--muted); margin: 14px 0; }
.search-results { display: grid; gap: 12px; }
.search-results a {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px; text-decoration: none; color: inherit;
}
.search-results a:hover { border-color: var(--accent); }
.sr-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; }
.sr-title { display: block; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; margin: 3px 0; }
.sr-desc { display: block; color: var(--muted); font-size: .9rem; }

/* -------------------------- Plan du site ------------------------- */
.sitemap-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; margin-top: 10px; }
.sitemap-group h2 { font-size: 1.15rem; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.sitemap-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sitemap-group a { text-decoration: none; color: var(--ink-soft); }
.sitemap-group a:hover { color: var(--accent); text-decoration: underline; }
.sitemap-formats { margin-top: 48px; padding-top: 8px; }
.sitemap-formats h2 { font-size: 1.15rem; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.sitemap-formats p { color: var(--ink-soft); }
.sitemap-formats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 30px; }
.sitemap-formats a { text-decoration: none; color: var(--ink-soft); }
.sitemap-formats a:hover { color: var(--accent); text-decoration: underline; }

/* ---------------------------- Pied de page ----------------------- */
.site-footer { background: var(--brand-ink); color: #cdd9e8; margin-top: 80px; padding: 60px 0 32px; }
@media (prefers-color-scheme: dark) { .site-footer { background: #060d18; border-top: 1px solid var(--line); } }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 34px; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: 26px; } }
.footer-brand .logo-mark { width: 44px; height: 44px; margin-bottom: 14px; }
.footer-pitch { font-size: .92rem; color: #9fb3ca; max-width: 32ch; }
.footer-col h2 { font-family: var(--sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .13em; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: #b9c9db; text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-network { margin-top: 26px; }
.footer-network a { overflow-wrap: anywhere; }
.footer-note { margin-top: 46px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .13); font-size: .84rem; color: #93a8c0; }
.footer-note strong { color: #d7e3f0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0 0; }
.footer-legal a { color: #93a8c0; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ---------------------------- Divers ----------------------------- */
.prose :target { scroll-margin-top: 148px; }
h2[id], h3[id] { scroll-margin-top: 148px; }
@media print {
  .site-header, .site-footer, .page-aside, .related, .tool-form { display: none; }
  body { font-size: 12pt; }
}

/* Fiche de l'éditeur (mentions légales), remplie par /legal/editeur.js */
.prose dl.editeur-identite {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) 1fr;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.prose dl.editeur-identite dt,
.prose dl.editeur-identite dd {
  margin: 0;
  padding: .7rem 1rem;
  border-top: 1px solid var(--line);
}
.prose dl.editeur-identite dt:first-of-type,
.prose dl.editeur-identite dt:first-of-type + dd { border-top: 0; }
.prose dl.editeur-identite dt {
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-alt);
}
.prose dl.editeur-identite dd { color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .prose dl.editeur-identite { grid-template-columns: 1fr; }
  .prose dl.editeur-identite dd { border-top: 0; padding-top: 0; background: var(--bg-alt); }
  .prose dl.editeur-identite dt { padding-bottom: .25rem; }
}

/* Coordonnées de contact (page Contact), remplies par /legal/contact.js */
.prose dl.contact-coordonnees {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.prose dl.contact-coordonnees dt,
.prose dl.contact-coordonnees dd {
  margin: 0;
  padding: .7rem 1rem;
  border-top: 1px solid var(--line);
}
.prose dl.contact-coordonnees dt:first-of-type,
.prose dl.contact-coordonnees dt:first-of-type + dd { border-top: 0; }
.prose dl.contact-coordonnees dt {
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-alt);
}
.prose dl.contact-coordonnees dd { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.prose dl.contact-coordonnees a { white-space: nowrap; }
@media (max-width: 600px) {
  .prose dl.contact-coordonnees { grid-template-columns: 1fr; }
  .prose dl.contact-coordonnees dd { border-top: 0; padding-top: 0; background: var(--bg-alt); }
  .prose dl.contact-coordonnees dt { padding-bottom: .25rem; }
  .prose dl.contact-coordonnees a { white-space: normal; }
}
