/* Blog Vitruve Conseil — maquette
   Charte reprise du site principal : bleu #205e99, or #C9A86A, Lora + DM Sans. */

:root {
  --blue: #205e99;
  --blue-mid: #4c7ead;
  --blue-deep: #0e2f4f;
  --blue-ink: #0a2038;
  --gold: #C9A86A;
  --gold-light: #dbbe87;
  --gold-text: #8a6a2c;

  --bg: #FAFAF8;
  --surface: #ffffff;
  --surface-2: #f3f1ea;
  --text: #16222e;
  --muted: #586573;
  --line: #e5e2d9;
  --link: #205e99;
  --logo-filter: none;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --max: 1200px;
  --shadow: 0 1px 2px rgba(14, 47, 79, .06), 0 8px 24px rgba(14, 47, 79, .08);
  --shadow-lg: 0 2px 4px rgba(14, 47, 79, .06), 0 20px 50px rgba(14, 47, 79, .14);
  --ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1520;
  --surface: #111f2d;
  --surface-2: #16283a;
  --text: #e9eef3;
  --muted: #9fb0bf;
  --line: #22364a;
  --link: #7db4ea;
  --gold-text: #dbbe87;
  --logo-filter: brightness(0) invert(1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 20px 50px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1520;
    --surface: #111f2d;
    --surface-2: #16283a;
    --text: #e9eef3;
    --muted: #9fb0bf;
    --line: #22364a;
    --link: #7db4ea;
    --gold-text: #dbbe87;
    --logo-filter: brightness(0) invert(1);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 20px 50px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; letter-spacing: -.015em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.25rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 500 .95rem/1 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--blue-ink); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 6px 24px rgba(201, 168, 106, .35); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--text); }
.brand img { height: 44px; width: auto; filter: var(--logo-filter); }
.brand .sep { width: 1px; height: 28px; background: var(--line); }
.brand .tag { font: 500 .72rem/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.nav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav a:not(.btn) {
  padding: .55rem .9rem; border-radius: 999px; text-decoration: none; color: var(--text);
  font-size: .95rem; font-weight: 500; transition: background .2s;
}
.nav a:not(.btn):hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--blue); background: var(--surface-2); }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--text); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--gold); background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.header-actions { display: flex; gap: .5rem; align-items: center; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; margin-left: auto; }
  .nav {
    position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1rem; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none; margin: 0;
  }
  .site-header[data-open="true"] .nav { display: flex; }
  .nav a:not(.btn) { padding: .8rem 1rem; }
  .header-actions { margin-left: 0; }
  .brand .sep, .brand .tag { display: none; }
}
.nav .nav-cta { display: none; }
@media (max-width: 700px) {   /* l'en-tête manque de place : « Diagnostic gratuit » passe dans le menu */
  .header-actions .btn-gold { display: none; }
  .nav .nav-cta-diag { display: inline-flex; margin-top: .5rem; }
}
@media (max-width: 480px) {
  .header-in { gap: .75rem; }
  .header-actions .btn { display: none; }
  .nav .nav-cta { display: inline-flex; margin-top: .5rem; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 .78rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text);
  margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--gold); }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.7rem); font-weight: 500; letter-spacing: -.025em; }
.hero h1 em { font-style: italic; color: var(--blue); position: relative; white-space: nowrap; }
:root[data-theme="dark"] .hero h1 em { color: var(--gold-light); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { color: var(--gold-light); } }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin-top: 1.5rem; }
.search {
  display: flex; align-items: center; gap: .75rem; margin-top: 2rem; max-width: 520px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: .35rem .5rem .35rem 1.15rem;
  box-shadow: var(--shadow); transition: border-color .2s;
}
.search:focus-within { border-color: var(--gold); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; padding: .7rem 0; outline: none; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.facts strong { color: var(--text); font-weight: 600; }

.hero-art { justify-self: center; width: 100%; max-width: 560px; }

/* Logo animé : le cadre reste fixe, le V en sort vers la droite, puis le nom s'écrit.
   Les styles de base décrivent l'état final ; les animations partent de l'état de départ. */
.logo-anim {
  --logo-blue: #006cd9; --logo-gray: #595959; --logo-frame: #595959;
  position: relative; width: 100%; aspect-ratio: var(--ratio); cursor: pointer;
}
:root[data-theme="dark"] .logo-anim { --logo-blue: #5aa9ff; --logo-gray: #c9d3dc; --logo-frame: #8fa1b3; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-anim { --logo-blue: #5aa9ff; --logo-gray: #c9d3dc; --logo-frame: #8fa1b3; }
}
.la-frame { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--logo-frame); animation: la-fade .9s ease both; }
.la-layer {
  position: absolute; inset: 0; background: var(--logo-blue);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* Le V se trace en JavaScript (canvas, voir main.js). Sans script, il apparaît simplement en fondu. */
.la-v { -webkit-mask-image: url(/assets/logo/v.png); mask-image: url(/assets/logo/v.png); animation: la-fade .8s ease .8s both; }
.la-arc { -webkit-mask-image: url(/assets/logo/arc.png); mask-image: url(/assets/logo/arc.png); animation: la-fade .6s ease 3.2s both; }
.la-dot { -webkit-mask-image: url(/assets/logo/dot.png); mask-image: url(/assets/logo/dot.png); animation: la-fade .3s ease 2.7s both; }
.js-draw .la-layer { display: none; }
.la-canvas { position: absolute; color: var(--logo-blue); }
.la-itruve { -webkit-mask-image: url(/assets/logo/itruve.png); mask-image: url(/assets/logo/itruve.png); animation: la-write-1 1.3s cubic-bezier(.5, 0, .3, 1) 4.3s both; }
.la-conseil { background: var(--logo-gray); -webkit-mask-image: url(/assets/logo/conseil.png); mask-image: url(/assets/logo/conseil.png); animation: la-write-2 1s cubic-bezier(.5, 0, .3, 1) 5.5s both; }
/* Mot et « CONSEIL » en canvas (même chaîne de rendu que le V, voir main.js) ; les calques CSS ci-dessus servent de secours sans JavaScript */
.la-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.la-cv-itruve { color: var(--logo-blue); animation: la-write-1 1.3s cubic-bezier(.5, 0, .3, 1) 4.3s both; }
.la-cv-conseil { color: var(--logo-gray); animation: la-write-2 1s cubic-bezier(.5, 0, .3, 1) 5.5s both; }
/* Ordre du tracé : cadre, V (0,4 s), point du i (2,7 s), arc (3,2 s), mot « itruve » (4,3 s), « CONSEIL » (5,5 s) */
@keyframes la-fade { from { opacity: 0; } }
@keyframes la-write-1 { from { clip-path: inset(0 58% 0 0); } to { clip-path: inset(0); } }
@keyframes la-write-2 { from { clip-path: inset(0 53% 0 0); opacity: .2; } to { clip-path: inset(0); opacity: 1; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; justify-self: start; max-width: 420px; margin-bottom: .5rem; }
}

/* ---------- À la une ---------- */
.featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.featured .cover { min-height: 320px; aspect-ratio: auto; border-radius: 0; }
.featured-body { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.featured-body h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.featured-body p { color: var(--muted); margin: 0; }
.kicker { font: 600 .75rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.meta { font-size: .88rem; color: var(--muted); display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.more { font-weight: 600; font-size: .95rem; color: var(--blue); display: inline-flex; gap: .4rem; align-items: center; margin-top: .25rem; }
:root[data-theme="dark"] .more { color: var(--gold-light); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .more { color: var(--gold-light); } }
.more span { transition: transform .25s var(--ease); }
a:hover > .more span, a:hover .more span { transform: translateX(4px); }
@media (max-width: 820px) { .featured { grid-template-columns: 1fr; } .featured .cover { min-height: 200px; } }

/* ---------- Couvertures ---------- */
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; color: rgba(255, 255, 255, .5); }
.cover .cover-art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s var(--ease); }
.card:hover .cover-art, .featured:hover .cover-art { transform: scale(1.06) rotate(-1deg); }
.c-fiscalite { background: linear-gradient(135deg, #205e99 0%, #0e2f4f 100%); }
.c-assurance { background: linear-gradient(135deg, #4c7ead 0%, #205e99 100%); }
.c-epargne { background: linear-gradient(135deg, #dbbe87 0%, #b08d4c 100%); color: rgba(10, 32, 56, .45); }
.c-cabinet { background: linear-gradient(135deg, #1b3550 0%, #0a2038 100%); color: rgba(201, 168, 106, .55); }
.chip {
  position: absolute; left: 1rem; top: 1rem; z-index: 1;
  font: 600 .72rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase;
  padding: .45rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--blue-ink);
}

/* ---------- Filtres + grille ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter {
  min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  font: 500 .92rem/1 var(--font-sans); transition: all .2s var(--ease);
}
.filter:hover { border-color: var(--gold); }
.filter[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter .n { opacity: .65; margin-left: .35rem; font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.card-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card h3 { font-size: 1.3rem; line-height: 1.25; }
.card .more { margin-top: auto; padding-top: .5rem; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.load-more { display: flex; justify-content: center; margin-top: 2.5rem; }
.card-item { display: flex; }
.card-item[hidden] { display: none; }
.card-item .card { flex: 1; }
.card .cover { aspect-ratio: 16 / 10; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .cover-img, .featured:hover .cover-img { transform: scale(1.04); }
.card h3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.excerpt { color: var(--muted); font-size: .95rem; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.featured-body h2 { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tool h3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* contenu des articles importés */
.art-figure { margin: 0 0 .5rem; max-width: 860px; }
.art-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 520px; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); }
.featured .cover-img { object-fit: contain; background: var(--surface-2); }
.art-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
.prose a { text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 1.25rem auto; }
.prose .embed { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); }
.prose video { width: 100%; border-radius: var(--radius-sm); }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }

/* ---------- Simulateurs ---------- */
.tools { background: var(--surface-2); border-block: 1px solid var(--line); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.tool {
  display: block; text-decoration: none; color: inherit; padding: 1.6rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tool .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-text);
}
.tool .ico svg { width: 24px; height: 24px; }
.tool h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.tool p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Newsletter ---------- */
.news {
  position: relative; overflow: hidden; color: #fff; border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 70%, var(--blue-ink) 100%);
  padding: clamp(2rem, 6vw, 4rem);
}
.news::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 340px; height: 340px; border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 106, .45); box-shadow: inset 0 0 0 60px rgba(201, 168, 106, .05);
}
.news-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.news h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.news h2 em { color: var(--gold-light); }
.news p { color: rgba(255, 255, 255, .82); }
.form-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.form-row input[type="email"] {
  flex: 1 1 220px; min-height: 48px; padding: 0 1.25rem; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1); color: #fff; font: inherit; outline: none;
}
.form-row input::placeholder { color: rgba(255, 255, 255, .65); }
.form-row input:focus { border-color: var(--gold); background: rgba(255, 255, 255, .16); }
.consent { display: flex; gap: .6rem; font-size: .82rem; margin-top: .9rem; color: rgba(255, 255, 255, .75); }
.consent input { margin-top: .25rem; accent-color: var(--gold); }
.form-ok { display: none; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: rgba(201, 168, 106, .2); border: 1px solid var(--gold); }
@media (max-width: 820px) { .news-in { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Bandeau rendez-vous ---------- */
.cta-strip { text-align: center; padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-strip h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 22ch; margin: 0 auto 1rem; }
.cta-strip p { color: var(--muted); max-width: 54ch; margin: 0 auto 1.75rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--blue); color: rgba(255, 255, 255, .9); padding: 3.5rem 0 2rem; font-size: .93rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(201, 168, 106, .6); text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2.5rem; }
.foot-brand img { height: 44px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.foot-brand p { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: #f1e3c4; margin: 0; }
.site-footer h3 { font: 600 .75rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: #f1e3c4; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .82rem; color: rgba(255, 255, 255, .8); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.demo-banner { background: var(--gold); color: var(--blue-ink); text-align: center; font-size: .88rem; font-weight: 500; padding: .55rem 1rem; }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--blue)); }
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 2rem; }
.crumbs a { color: var(--muted); }
.art-head { padding: 1.5rem 0 2.5rem; max-width: 860px; }
.art-head h1 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); line-height: 1.22; margin: 1rem 0 1.25rem; letter-spacing: -.015em; }
.art-head .lead { font-size: 1.25rem; color: var(--muted); max-width: 60ch; }
.byline { display: flex; align-items: center; gap: .9rem; margin-top: 1.5rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font: 600 1rem/1 var(--font-serif); flex: none; }
.byline b { display: block; font-weight: 600; font-size: .95rem; }
.byline span { font-size: .85rem; color: var(--muted); }
.art-cover { border-radius: calc(var(--radius) + 6px); aspect-ratio: 21 / 9; box-shadow: var(--shadow); }
.art-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding: 3rem 0 2rem; }
.toc { position: sticky; top: 96px; align-self: start; font-size: .9rem; }
.toc h2 { font: 600 .72rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 1rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1.5px solid var(--line); }
.toc a { display: block; padding: .4rem 0 .4rem 1rem; margin-left: -1.5px; border-left: 1.5px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--blue); border-left-color: var(--gold); font-weight: 600; }
:root[data-theme="dark"] .toc a.on { color: var(--gold-light); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toc a.on { color: var(--gold-light); } }
@media (max-width: 960px) { .art-layout { grid-template-columns: 1fr; } .toc { display: none; } }

.prose { max-width: 70ch; font-size: 1.125rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.75rem 0 1rem; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.3rem; margin: 2rem 0 .75rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--gold); }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; margin: 1.5rem 0; }
.prose th, .prose td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prose td:last-child, .prose th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.keypoints {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 1.5rem 1.75rem; margin-bottom: 2rem;
}
.keypoints h2 { font: 600 .78rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .9rem; }
.keypoints ul { margin: 0; }
.pull { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; line-height: 1.4; color: var(--blue); border-left: 3px solid var(--gold); padding-left: 1.5rem; margin: 2.25rem 0; }
:root[data-theme="dark"] .pull { color: var(--gold-light); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pull { color: var(--gold-light); } }

/* simulateur */
.sim { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); margin: 2rem 0; }
.sim h3 { margin: 0 0 .25rem; }
.sim .sub { color: var(--muted); font-size: .93rem; margin-bottom: 1.5rem; }
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field .inp { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); padding-right: .9rem; }
.field .inp:focus-within { border-color: var(--gold); }
.field input[type="number"] { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 500 1.1rem var(--font-sans); padding: .75rem .9rem; outline: none; }
.field .inp span { color: var(--muted); }
.field input[type="range"] { width: 100%; margin-top: .75rem; accent-color: var(--blue); }
.result { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-sm); background: var(--blue-deep); color: #fff; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.result div span { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.result div b { display: block; font: 500 1.5rem/1.2 var(--font-serif); color: var(--gold-light); font-variant-numeric: tabular-nums; }
.sim .note { font-size: .82rem; color: var(--muted); margin: 1rem 0 0; }
@media (max-width: 640px) { .sim-grid, .result { grid-template-columns: 1fr; } }

.inline-cta { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 1.5rem 1.75rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); margin: 2.5rem 0; }
.inline-cta p { margin: 0; font-family: var(--font-serif); font-size: 1.25rem; max-width: 30ch; line-height: 1.3; }
.disclaimer { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 2.5rem; }
.author-box { display: flex; gap: 1.25rem; align-items: center; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 2.5rem; }
.author-box .avatar { width: 64px; height: 64px; font-size: 1.4rem; }
.author-box p { margin: 0; font-size: .95rem; color: var(--muted); }
.share { display: flex; gap: .5rem; margin-top: 1.5rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Boutons d'appel à l'action groupés : diagnostic gratuit + rendez-vous */
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.inline-cta .cta-actions { justify-content: flex-start; }

/* ---------- Page d'un thème ---------- */
.cat-head { padding: 0 0 2.25rem; }
.cat-head .eyebrow { margin-top: 1.25rem; }
.cat-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); margin: .25rem 0 1rem; letter-spacing: -.015em; }
.cat-head .lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; margin-bottom: .75rem; }
.cat-list { padding-top: 0; }
.theme-nav { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.theme-nav h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.theme-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.theme-nav a {
  display: inline-block; padding: .55rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--text); font-weight: 500; background: var(--surface); transition: border-color .2s;
}
.theme-nav a:hover { border-color: var(--gold); }
a.kicker { text-decoration: none; }
a.kicker:hover { text-decoration: underline; }
.site-footer .foot-sub { margin-top: 1.75rem; }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 1rem; }
.nf h1 { font-size: clamp(4rem, 14vw, 9rem); color: var(--gold); }
