/* =========================================================
   COMPARATEUR MUTUELLE SENIOR  ·  Shared stylesheet
   Charte : navy / royal-blue / orange / green — Poppins + Mulish
   ========================================================= */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Les noms de tokens historiques sont conservés mais REMAPPÉS sur
     la nouvelle palette : toutes les pages existantes se rethèment d'un coup. */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f6f8fd;
  --border: #e5e9f2;
  --border-strong: #cfd8ea;
  --ink: #1E1B4B;
  --ink-soft: #3f4a60;
  --ink-mute: #6b7689;
  --accent: #6D28D9;
  --accent-soft: #EDE9FE;
  --accent-ink: #5B21B6;
  --link: #6D28D9;
  --brass: #6D28D9;          /* rôle « accent / CTA » → orange */
  --brass-soft: #EDE9FE;
  --ok: #2fa567;
  --ok-soft: #e5f5ed;
  --warn: #dd571c;
  --warn-soft: #fff6f0;
  --danger: #a4302a;

  /* Alias charte (utilisés par les composants article ajoutés en fin de feuille) */
  --blue: #6D28D9; --blue-dark: #5B21B6; --blue-soft: #EDE9FE;
  --orange: #6D28D9; --orange-dark: #5B21B6;
  --green: #2fa567; --green-soft: #e5f5ed; --lilac: #ecebfb;
  --text: #3f4a60; --muted: #6b7689; --line: #e5e9f2; --line-soft: #eef1f8;
  --card: #ffffff; --bg-alt: #f6f8fd;
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --shadow-card: 0 4px 18px rgba(21,41,79,.07);

  --font-body: "Mulish", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 26px;
  --text-2xl: 32px;
  --text-3xl: 42px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  --shadow-xs: 0 1px 1px rgba(28, 31, 35, 0.04);
  --shadow-sm: 0 1px 2px rgba(28, 31, 35, 0.05), 0 1px 3px rgba(28, 31, 35, 0.04);
  --shadow-md: 0 4px 12px rgba(28, 31, 35, 0.06), 0 2px 4px rgba(28, 31, 35, 0.04);

  --container: 1180px;
  --container-narrow: 900px;
  --header-h: 72px;

  --t-fast: 120ms ease;
  --t: 180ms ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.18; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- LAYOUT HELPERS ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
.layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: var(--space-12); align-items: start; }
.main-col { min-width: 0; }
/* Le bloc SEO est rendu en tête du DOM (crawlers) mais affiché en bas du listing. */
.main-col--seo { display: flex; flex-direction: column; }
.main-col--seo .cat-seo-text { order: 100; }

/* Bloc de texte SEO en bas de rubrique */
.cat-seo-text { margin-top: var(--space-12); padding: var(--space-8) var(--space-7); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cat-seo-text h2 { font-size: var(--text-xl); margin: 0 0 var(--space-3); color: var(--ink); }
.cat-seo-text h2:not(:first-child), .cat-seo-text h3 { margin-top: var(--space-5); }
.cat-seo-text p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 var(--space-3); }
.cat-seo-text ul { margin: 0 0 var(--space-3) var(--space-5); color: var(--ink-soft); line-height: 1.7; }
.cat-seo-text li { margin-bottom: 6px; }
.cat-seo-text > :last-child { margin-bottom: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--space-8);
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}
.brand .brand-mark {
  font-size: 27px; font-weight: 900; color: var(--ink);
}
.brand .brand-mark em { font-style: normal; color: var(--accent); }
.brand .brand-tag {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass);
  border-left: 1px solid var(--border-strong); padding-left: 10px;
}
.topbar-spacer { flex: 1; }
.topbar-tools { display: flex; align-items: center; gap: var(--space-4); }
.search {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 14px; min-width: 220px;
}
.search input { border: 0; background: transparent; outline: none; font-size: var(--text-sm); color: var(--ink); width: 100%; }
.search svg { color: var(--ink-mute); flex: none; }
.socials { display: flex; gap: var(--space-2); }
.socials a {
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center; color: var(--ink-soft);
  background: var(--surface-alt); border: 1px solid var(--border);
  transition: var(--t);
}
.socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-account {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700;
  font-size: var(--text-sm); padding: 9px 16px; border-radius: 999px;
  border: 0; transition: var(--t); white-space: nowrap;
}
.btn-account:hover { background: var(--accent-ink); color: #fff; }

/* ---------- NAV ---------- */
.nav {
  background: var(--ink);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner { display: flex; align-items: stretch; gap: 2px; }
.nav a {
  color: #d9d4cb; font-size: var(--text-sm); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 15px 16px; display: flex; align-items: center;
  transition: var(--t); position: relative;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav a.active { color: #fff; }
.nav a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px;
  height: 2px; background: var(--brass);
}
.nav .nav-shop { margin-left: auto; color: var(--bg); }
.nav .nav-shop:hover { background: var(--brass); color: #fff; }
.nav-burger { display: none; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section { margin-top: var(--space-12); }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--ink); padding-bottom: var(--space-3);
  margin-bottom: var(--space-6);
}
.section-head h2 {
  font-size: var(--text-xl); text-transform: uppercase; letter-spacing: 0.02em;
}
.section-head .more {
  font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.section-head .more:hover { gap: 10px; }

/* eyebrow / category tag */
.eyebrow {
  display: inline-block; font-size: var(--text-xs); font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.tag-cat {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 4px 9px; border-radius: var(--radius-sm);
}
.tag-cat.brass { background: var(--brass); }
.tag-cat.soft { background: var(--accent-soft); color: var(--accent); }
.meta { font-size: var(--text-xs); color: var(--ink-mute); letter-spacing: 0.03em; }

/* ============================================================
   PLACEHOLDER IMAGES
   ============================================================ */
.ph {
  position: relative; width: 100%; overflow: hidden;
  background-color: var(--surface-alt);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(176,138,74,0.10) 0, rgba(176,138,74,0.10) 1px,
    transparent 1px, transparent 11px
  );
  border: 1px solid var(--border);
  display: grid; place-items: center;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-mute); background: rgba(255,255,255,0.82);
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border);
  max-width: 80%; text-align: center;
}
.ph.dark {
  background-color: #20232a;
  background-image: repeating-linear-gradient(
    135deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px,
    transparent 1px, transparent 11px);
  border-color: #2c2f37;
}
.ph.dark::after { color: #b9bdc6; background: rgba(28,31,35,0.7); border-color: #3a3e47; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-4 { aspect-ratio: 3 / 4; }

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: var(--t);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .card-media { position: relative; display: block; overflow: hidden; }
/* Harmonise les vignettes : l'image remplit le ratio forcé du conteneur (crop center). */
.card .card-media img,
.card .card-media picture,
.card .card-media picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card .card-media > .ph { width: 100%; height: 100%; aspect-ratio: auto; }
.card .card-body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: 8px; }
.card .card-body .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card h3 { font-size: var(--text-md); line-height: 1.3; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card .excerpt { font-size: var(--text-sm); color: var(--ink-soft); margin-top: 2px; }

/* grid variants */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

/* horizontal compact card */
.card-h { display: grid; grid-template-columns: 116px 1fr; gap: var(--space-4); background: transparent; border: 0; }
.card-h .card-media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; }
.card-h .card-media img, .card-h .card-media picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-h h3 { font-size: var(--text-base); line-height: 1.3; }
.card-h h3 a { color: var(--ink); }
.card-h .card-body { padding: 0; gap: 6px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.hero-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8.2; }
.hero-main .ph { aspect-ratio: 16 / 8.2; border: 0; }
.hero-main img, .hero-main picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: auto 0 0 0; padding: var(--space-10) var(--space-8) var(--space-6);
  background: linear-gradient(to top, rgba(20,18,40,0.94) 0%, rgba(20,18,40,0.78) 35%, rgba(20,18,40,0.4) 70%, transparent 100%);
  color: #fff;
}
.hero-overlay .tag-cat { background: var(--brass); }
.hero-overlay h2 {
  color: #fff; font-size: var(--text-2xl); max-width: 760px;
  margin-top: var(--space-3); text-wrap: balance; text-shadow: 0 1px 14px rgba(0,0,0,0.45);
}
.hero-overlay .excerpt { color: rgba(255,255,255,0.9); margin-top: 10px; max-width: 620px; font-size: var(--text-base); text-shadow: 0 1px 10px rgba(0,0,0,0.4); }
.hero-overlay .meta { color: rgba(255,255,255,0.78); margin-top: 12px; text-shadow: 0 1px 10px rgba(0,0,0,0.4); }
.hero-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); }
.hero-thumbs .thumb { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); cursor: pointer; transition: var(--t); position: relative; aspect-ratio: 16/10; }
.hero-thumbs .thumb .ph { width: 100%; height: 100%; border: 0; }
.hero-thumbs .thumb img,
.hero-thumbs .thumb picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-thumbs .thumb:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.hero-thumbs .thumb.is-active { outline: 2px solid var(--accent); outline-offset: 0; }

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.aside { display: flex; flex-direction: column; gap: var(--space-8); position: sticky; top: calc(var(--header-h) + var(--space-6)); }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.widget-head {
  background: var(--surface-alt); border-bottom: 1px solid var(--border);
  padding: 12px var(--space-5); font-size: var(--text-xs); font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.widget-body { padding: var(--space-5); }
.widget-body.tight { padding: var(--space-4) var(--space-5); }

/* newsletter */
.newsletter p { font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: var(--space-4); }
.field-row { display: flex; gap: var(--space-2); }
.field-row input {
  flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 12px; font-size: var(--text-sm); background: var(--surface-alt); outline: none;
}
.field-row input:focus { border-color: var(--accent); background: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: var(--text-sm);
  border: 0; border-radius: var(--radius-sm); padding: 11px 18px; transition: var(--t); white-space: nowrap;
}
.btn:hover { background: var(--accent-ink); color: #fff; }
.btn-brass {
  background: var(--brass); color: #fff;
  position: relative; overflow: hidden;
  box-shadow: 0 6px 18px rgba(109,40,217,.30);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-brass:hover { background: var(--accent-ink); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(109,40,217,.46); }
.btn-brass:active { transform: translateY(0); }
.btn-brass::before {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); animation: btnShine 3.2s ease-in-out infinite; pointer-events: none;
}
@keyframes btnShine { 0% { left: -75%; } 45%, 100% { left: 135%; } }
/* Pulsation sur les CTA proéminents (header + encart + bouton flottant) */
.cta-message, .cta-box .btn-brass, .cta-sticky { animation: btnPulse 2.4s ease-in-out infinite; }
.cta-message:hover, .cta-box .btn-brass:hover { animation: none; }
@keyframes btnPulse { 0%,100% { box-shadow: 0 6px 18px rgba(109,40,217,.30); } 50% { box-shadow: 0 8px 28px rgba(109,40,217,.58); } }

/* Bouton CTA flottant (mobile uniquement) */
.cta-sticky { display: none; }
@media (max-width: 900px) {
  .cta-sticky {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 12px; right: 12px; z-index: 95;
    bottom: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 16px 18px; border-radius: 14px; font-size: 16px; font-weight: 800;
    box-shadow: 0 10px 28px rgba(109,40,217,.5);
  }
  body { padding-bottom: 86px; }
}
@media (prefers-reduced-motion: reduce) { .btn-brass::before, .cta-message, .cta-box .btn-brass, .cta-sticky { animation: none !important; } }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn-lg { padding: 14px 24px; font-size: var(--text-base); border-radius: var(--radius); }

/* most read list */
.rank-list { display: flex; flex-direction: column; }
.rank-item { display: grid; grid-template-columns: 28px 64px 1fr; gap: var(--space-3); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.rank-item:last-child { border-bottom: 0; }
.rank-item .num { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 900; color: var(--border-strong); text-align: center; }
.rank-item .ph { aspect-ratio: 1/1; border-radius: var(--radius-sm); }
.rank-item .card-media { display: block; aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; }
.rank-item .card-media img,
.rank-item .card-media picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.rank-item .rk-title { font-size: var(--text-sm); font-weight: 700; line-height: 1.3; color: var(--ink); }
.rank-item .rk-title:hover { color: var(--accent); }
.rank-item .eyebrow { font-size: 10px; }

/* product (boutique) widget */
.shop-promo { padding: var(--space-6) var(--space-5); text-align: center; background: linear-gradient(160deg, var(--accent) 0%, #241f4d 100%); color: #fff; }
.shop-promo .eyebrow { color: var(--brass-soft); }
.shop-promo h3 { color: #fff; font-size: var(--text-lg); margin: 10px 0 6px; }
.shop-promo p { font-size: var(--text-sm); color: rgba(255,255,255,0.78); margin-bottom: var(--space-5); }
.shop-promo .ph { border-radius: var(--radius); margin: var(--space-4) auto var(--space-5); }
.shop-promo .cms-ad { margin: var(--space-4) 0 var(--space-5); min-height: 90px; }
.cms-ad { min-height: 90px; }
.cms-ad:empty::before { content: ""; display: block; min-height: 90px; border-radius: var(--radius-sm); background: repeating-linear-gradient(45deg, var(--border) 0 10px, transparent 10px 20px); opacity: .35; }

/* newsletter — message d'état */
.nl-form .nl-msg { margin: var(--space-3) 0 0; font-size: var(--text-sm); font-weight: 600; }
.nl-form .nl-msg.is-ok { color: #1c7c45; }
.nl-form .nl-msg.is-err { color: #b3261e; }
.product-row { display: grid; grid-template-columns: 70px 1fr; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.product-row:last-child { border-bottom: 0; }
.product-row .ph { aspect-ratio: 1/1; border-radius: var(--radius-sm); }
.product-row .p-name { font-size: var(--text-sm); font-weight: 700; color: var(--ink); line-height: 1.25; }
.product-row .p-name:hover { color: var(--accent); }
.product-row .p-cat { font-size: 10px; }
.product-row .p-price { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 700; color: var(--brass); margin-top: 3px; }

/* simple link list */
.link-list li { border-bottom: 1px solid var(--border); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { display: flex; gap: 10px; padding: 12px 0; font-size: var(--text-sm); font-weight: 600; color: var(--ink); align-items: flex-start; }
.link-list a:hover { color: var(--accent); }
.link-list a .dot { color: var(--brass); font-weight: 900; }

/* ============================================================
   FOOTER
   ============================================================ */
.promo-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-16); }
.promo-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 180px; display: flex; align-items: flex-end; color: #fff; }
.promo-tile .ph { position: absolute; inset: 0; border: 0; }
.promo-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.promo-tile .pt-body { position: relative; padding: var(--space-6); background: linear-gradient(to top, rgba(20,18,40,0.9), transparent); width: 100%; }
.promo-tile h3 { color: #fff; font-size: var(--text-lg); display: flex; align-items: center; gap: 8px; }
.promo-tile p { color: rgba(255,255,255,0.82); font-size: var(--text-sm); margin-top: 6px; }

.site-footer { background: var(--ink); color: #c9cbd0; margin-top: var(--space-16); }
.site-footer .container { padding-top: var(--space-16); padding-bottom: var(--space-12); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-12); }
.footer-grid h4 { color: #fff; font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--space-5); }
.footer-grid p { font-size: var(--text-sm); color: #9aa0aa; line-height: 1.7; }
.footer-grid .brand .brand-mark { color: #fff; }
.footer-grid .brand .brand-mark em { color: #b9b4e6; }
.footer-grid .brand .brand-tag { color: var(--brass); border-color: #3a3e47; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #c9cbd0; font-size: var(--text-sm); }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,0.08); color: #fff; }
.footer-social a:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); justify-content: center; padding: var(--space-5) var(--space-6); }
.footer-bottom a { color: #9aa0aa; font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .sep { color: #4b5159; }
/* Sélecteur de langue (footer) */
.footer-lang { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding-bottom: var(--space-3); margin-bottom: var(--space-2); border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-lang .footer-lang-lbl { font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; margin-right: 4px; }
.footer-lang a { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; color: #9aa0aa; border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 4px 11px; text-transform: uppercase; }
.footer-lang a:hover { color: #fff; border-color: rgba(255,255,255,0.35); }
.footer-lang a.is-active { color: #1c1f23; background: var(--brass); border-color: var(--brass); }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.cat-header { background: linear-gradient(155deg, var(--accent) 0%, #241f4d 100%); color: #fff; padding: var(--space-12) 0 var(--space-12); }
.cat-header .eyebrow { color: var(--brass-soft); }
.cat-header h1 { color: #fff; font-size: var(--text-3xl); margin: var(--space-3) 0 var(--space-4); }
.cat-header p { color: rgba(255,255,255,0.82); max-width: 620px; font-size: var(--text-md); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--text-xs); color: var(--ink-mute); letter-spacing: 0.04em; text-transform: uppercase; }
.breadcrumb a { color: var(--ink-mute); font-weight: 700; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border-strong); }
.cat-header .breadcrumb, .cat-header .breadcrumb a { color: rgba(255,255,255,0.7); }
.cat-header .breadcrumb a:hover { color: #fff; }

.subcats { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.chip {
  font-size: var(--text-sm); font-weight: 700; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-soft); transition: var(--t);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* feature row card (category lead) */
.lead-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.lead-card .card-media { height: 100%; }
.lead-card .card-media .ph { height: 100%; min-height: 320px; border: 0; }
.lead-card .card-media img, .lead-card .card-media picture { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.lead-card .lc-body { padding: var(--space-10); display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); }
.lead-card h2 { font-size: var(--text-2xl); line-height: 1.2; }
.lead-card h2 a { color: var(--ink); }
.lead-card h2 a:hover { color: var(--accent); }
.lead-card .excerpt { font-size: var(--text-md); color: var(--ink-soft); }

.pagination { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-12); }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 700; font-size: var(--text-sm);
  color: var(--ink-soft); background: var(--surface); transition: var(--t);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .dots { border: 0; background: transparent; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.article-head { padding: var(--space-10) var(--space-12) var(--space-6); }
.article-head h1 { font-size: var(--text-3xl); line-height: 1.12; margin: var(--space-4) 0 var(--space-5); text-wrap: balance; }
.byline { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.byline .author { display: flex; align-items: center; gap: 10px; }
.byline .author .ph,
.byline .author img,
.byline .author picture { width: 40px; height: 40px; border-radius: 999px; }
.byline .author img { object-fit: cover; }
.byline .author .a-name { font-size: var(--text-sm); font-weight: 800; color: var(--ink); }
.byline .author .a-role { font-size: var(--text-xs); color: var(--ink-mute); }
.byline .dot-sep { color: var(--border-strong); }
.read-time { font-size: var(--text-xs); color: var(--ink-mute); display: inline-flex; gap: 6px; align-items: center; }

.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: var(--space-4) var(--space-12); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.share-row .lbl { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-right: 4px; }
.share-row a:not(.save) { width: 38px; height: 38px; flex: none; border-radius: var(--radius-sm); display: grid; place-items: center; color: #fff; transition: var(--t); }
.share-row a:not(.save):hover { transform: translateY(-2px); filter: brightness(1.08); }
.sh-fb  { background: #1877f2; }
.sh-tw  { background: #1c1f23; }
.sh-pin { background: #e60023; }
.sh-wa  { background: #25d366; }
.share-row .save { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; white-space: nowrap; }
.share-row .save.is-saved { background: var(--accent); border-color: var(--accent); color: #fff; }
.share-row .save.is-saved svg { fill: currentColor; stroke: currentColor; }

.article-hero .ph { aspect-ratio: 16/9; border: 0; }
.article-hero img, .article-hero picture { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); }
.article-hero figcaption { font-size: var(--text-xs); color: var(--ink-mute); padding: 10px var(--space-12); font-style: italic; }

.prose { padding: var(--space-8) var(--space-12) var(--space-10); font-size: var(--text-md); line-height: 1.78; color: var(--ink-soft); }
.prose > * + * { margin-top: var(--space-5); }
.prose .lead { font-size: var(--text-lg); line-height: 1.6; color: var(--ink); font-weight: 500; }
.prose h2 { font-size: var(--text-xl); color: var(--ink); margin-top: var(--space-10); margin-bottom: 2px; }
.prose h3 { font-size: var(--text-lg); color: var(--ink); margin-top: var(--space-8); }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose figure { margin: var(--space-8) 0; }
.prose figure .ph { border-radius: var(--radius); }
.prose figure figcaption { font-size: var(--text-xs); color: var(--ink-mute); font-style: italic; margin-top: 8px; }
.prose blockquote {
  margin: var(--space-6) 0; padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--brass); background: var(--brass-soft); border-radius: 0 10px 10px 0;
  font-family: inherit; font-size: 1.02rem; line-height: 1.65; font-weight: 500; color: var(--ink); font-style: normal;
}
.prose blockquote > :first-child { margin-top: 0; } .prose blockquote > :last-child { margin-bottom: 0; }
/* Listes — le reset global retire les puces ; on les restaure dans le contenu.
   S'applique aux listes générées (IA / éditeur) ET à .bullets. */
.prose ul, .prose ul.bullets { margin: var(--space-4) 0; padding-left: 0; list-style: none; }
.prose ul li, .prose ul.bullets li { position: relative; padding-left: 26px; margin-top: 10px; line-height: 1.7; }
.prose ul li::before, .prose ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--brass); }
.prose ol { margin: var(--space-4) 0; padding-left: 0; list-style: none; counter-reset: prose-ol; }
.prose ol li { position: relative; padding-left: 34px; margin-top: 10px; line-height: 1.7; counter-increment: prose-ol; }
.prose ol li::before { content: counter(prose-ol); position: absolute; left: 0; top: 0; min-width: 22px; height: 22px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 0.82em; color: #fff; background: var(--brass); border-radius: 6px; }
.prose ul ul, .prose ol ol, .prose ul ol, .prose ol ul { margin: 8px 0 0; }
.prose li > strong:first-child { color: var(--ink); }
.prose em { font-style: italic; }
.prose b { font-weight: 700; color: var(--ink); }

/* Page « Mes articles enregistrés » */
.fav-list { display: flex; flex-direction: column; gap: var(--space-3); max-width: 760px; }
.fav-item { display: flex; align-items: center; gap: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4) var(--space-5); transition: var(--t); }
.fav-item:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.fav-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.fav-main .eyebrow { font-size: 10px; }
.fav-title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-md); line-height: 1.25; color: var(--ink); }
.fav-main:hover .fav-title { color: var(--accent); }
.fav-date { font-size: var(--text-xs); color: var(--ink-mute); }
.fav-remove { flex: none; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-alt); color: var(--ink-mute); font-size: 15px; line-height: 1; transition: var(--t); }
.fav-remove:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.fav-empty { text-align: center; padding: var(--space-12) var(--space-6); color: var(--ink-soft); }
.fav-empty p { margin-bottom: var(--space-5); font-size: var(--text-md); }

/* ===== Pages de contenu statiques ===== */
.page-prose { max-width: 780px; font-size: var(--text-md); line-height: 1.78; color: var(--ink-soft); }
.page-prose .page-lead { font-size: var(--text-lg); line-height: 1.55; color: var(--ink); font-weight: 500; margin-bottom: var(--space-6); }
.page-prose h2 { font-size: var(--text-xl); color: var(--ink); margin: var(--space-8) 0 var(--space-3); }
.page-prose h2:first-child { margin-top: 0; }
.page-prose h3 { font-size: var(--text-lg); color: var(--ink); margin: var(--space-6) 0 var(--space-2); }
.page-prose p { margin: 0 0 var(--space-4); }
.page-prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.page-prose ul { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.page-prose li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.page-prose li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--brass); }

/* ===== Rédaction (auteurs) ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-6); }
.team-card { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); }
.team-photo { display: block; width: 110px; height: 110px; border-radius: 999px; overflow: hidden; flex: none; }
.team-photo img, .team-photo picture { width: 100%; height: 100%; object-fit: cover; }
.team-photo .ph { width: 100%; height: 100%; aspect-ratio: 1/1; }
.team-body h2 { font-size: var(--text-lg); }
.team-body h2 a { color: var(--ink); }
.team-body h2 a:hover { color: var(--accent); }
.team-role { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brass); margin-top: 3px; }
.team-bio { font-size: var(--text-sm); color: var(--ink-soft); margin-top: var(--space-3); }
.team-meta { font-size: var(--text-xs); color: var(--ink-mute); margin-top: var(--space-3); display: flex; align-items: center; gap: 8px; }

/* ===== Formulaire de contact ===== */
.contact-form .field { margin-bottom: var(--space-4); }
.contact-form label { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.contact-form input, .contact-form textarea { width: 100%; font-family: inherit; font-size: var(--text-base); color: var(--ink); background: var(--surface-alt); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 11px 14px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.contact-form .form-grid { grid-template-columns: 1fr 1fr; }
.form-banner { padding: var(--space-4) var(--space-5); border-radius: var(--radius); margin-bottom: var(--space-5); font-weight: 600; }
.form-banner.is-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #bfe0cd; }
.form-banner.is-err { background: var(--danger-soft); color: var(--danger); border: 1px solid #eecaca; }

/* ===== Newsletter (page) ===== */
.nl-page h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.nl-perks { list-style: none; margin: 0 0 var(--space-8); padding: 0; }
.nl-perks li { position: relative; padding-left: 28px; margin-bottom: var(--space-3); font-size: var(--text-md); color: var(--ink-soft); }
.nl-perks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brass); font-weight: 900; }
.nl-form--page .field-row { max-width: 460px; }

/* ===== Plan du site ===== */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-8); }
.sitemap-block h2 { font-size: var(--text-md); text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: var(--space-2); border-bottom: 2px solid var(--brass); margin-bottom: var(--space-3); }
.sitemap-block ul, .sitemap-cat ul { list-style: none; margin: 0; padding: 0; }
.sitemap-block li, .sitemap-cat li { margin-bottom: 8px; }
.sitemap-block a, .sitemap-cat a { color: var(--ink-soft); font-size: var(--text-sm); }
.sitemap-block a:hover, .sitemap-cat a:hover { color: var(--accent); }
.sitemap-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-8); }
.sitemap-cat h3 { font-size: var(--text-base); margin-bottom: var(--space-3); }
.sitemap-cat h3 a { color: var(--ink); }
@media (max-width: 600px) { .contact-form .form-grid, .team-card { grid-template-columns: 1fr; } .team-photo { width: 84px; height: 84px; } }

/* CTA / boutons d'action insérés dans le contenu (booste le CTR) */
.prose .cta-wrap { text-align: center; margin: var(--space-8) 0; }
.cta-btn {
  --cta-c1: var(--accent); --cta-c2: #4b3fa6;
  display: inline-flex; align-items: center; gap: 10px; position: relative; overflow: hidden;
  padding: 16px 34px; border-radius: 999px; font-family: var(--font-display);
  font-weight: 800; font-size: var(--text-md); letter-spacing: .2px; line-height: 1;
  color: #fff !important; text-decoration: none !important; cursor: pointer;
  background: linear-gradient(120deg, var(--cta-c1), var(--cta-c2));
  box-shadow: 0 10px 24px -8px rgba(48,43,99,.55); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.cta-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 32px -8px rgba(48,43,99,.65); filter: brightness(1.06); }
.cta-btn:active { transform: translateY(0) scale(.99); }
/* effet brillance qui traverse le bouton */
.cta-btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.cta-btn:hover::after { left: 130%; }
/* variantes */
.cta-btn.cta-brass { --cta-c1: var(--brass); --cta-c2: #946f33; box-shadow: 0 10px 24px -8px rgba(176,138,74,.6); }
.cta-btn.cta-hot   { --cta-c1: #e0356b; --cta-c2: #b01e6a; box-shadow: 0 10px 24px -8px rgba(224,53,107,.6); }
.cta-btn.cta-dark  { --cta-c1: #2a2540; --cta-c2: #111018; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); }
.cta-btn.cta-outline { background: transparent; color: var(--accent) !important; border: 2px solid var(--accent); box-shadow: none; }
.cta-btn.cta-outline:hover { background: var(--accent); color: #fff !important; }
/* pulsation (attire l'oeil) */
.cta-btn.cta-pulse { animation: ctaPulse 1.8s ease-in-out infinite; }
@keyframes ctaPulse { 0%,100% { box-shadow: 0 10px 24px -8px rgba(48,43,99,.55), 0 0 0 0 rgba(48,43,99,.45); } 50% { box-shadow: 0 14px 28px -8px rgba(48,43,99,.6), 0 0 0 12px rgba(48,43,99,0); } }
@media (prefers-reduced-motion: reduce) { .cta-btn, .cta-btn::after, .cta-btn.cta-pulse { animation: none; transition: none; } }

/* in-article product callout */
.product-callout {
  display: grid; grid-template-columns: 130px 1fr auto; gap: var(--space-5); align-items: center;
  background: var(--accent-soft); border: 1px solid #d6d2ea; border-radius: var(--radius-lg);
  padding: var(--space-5); margin: var(--space-8) 0;
}
.product-callout .ph { aspect-ratio: 1/1; border-radius: var(--radius); border-color: #d6d2ea; }
.product-callout .pc-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.product-callout h4 { font-size: var(--text-md); color: var(--ink); margin: 4px 0 4px; }
.product-callout p { font-size: var(--text-sm); color: var(--ink-soft); }
.product-callout .pc-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.product-callout .pc-price { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: var(--text-lg); }

/* tags / author box / related */
.article-foot { padding: 0 var(--space-12) var(--space-10); }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-6) 0; border-top: 1px solid var(--border); }
.tag-list .t {
  font-size: var(--text-sm); font-weight: 700; padding: 6px 14px; border-radius: 999px;
  background: var(--surface-alt); border: 1px solid var(--border); color: var(--ink-soft);
}
.tag-list .t:hover { border-color: var(--accent); color: var(--accent); }

.author-box { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-5); padding: var(--space-6); background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); align-items: center; }
.author-box .ph,
.author-box img,
.author-box picture { width: 72px; height: 72px; border-radius: 999px; }
.author-box img { object-fit: cover; }
.author-box .ab-name { font-size: var(--text-md); font-weight: 800; color: var(--ink); }
.author-box .ab-role { font-size: var(--text-xs); color: var(--brass); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.author-box p { font-size: var(--text-sm); color: var(--ink-soft); margin-top: 8px; }

/* Bloc auteur en bas d'article : le template utilise .author (pas .author-box),
   donc l'avatar n'était pas contraint (image rendue pleine taille). On reprend
   ici l'avatar rond 72px + la carte, comme .author-box. */
.article-foot .author { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-5); align-items: center; padding: var(--space-6); background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-top: var(--space-6); }
.article-foot .author img,
.article-foot .author picture,
.article-foot .author .avatar { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; flex: none; }
.article-foot .author picture img { width: 100%; height: 100%; }
.article-foot .author .avatar { background: var(--border); }
.article-foot .author strong { display: block; font-size: var(--text-md); font-weight: 800; color: var(--ink); }
.article-foot .author strong a { color: inherit; }
.article-foot .author p { font-size: var(--text-sm); color: var(--ink-soft); margin: 8px 0 0; }

.related { margin-top: var(--space-10); }

/* comments */
.comments { margin-top: var(--space-10); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-10); }
.comments h2 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.comments .sub { font-size: var(--text-sm); color: var(--ink-mute); margin-bottom: var(--space-6); }
.form-grid { display: grid; gap: var(--space-4); }
.form-grid textarea, .form-grid input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
  font-size: var(--text-sm); font-family: inherit; background: var(--surface-alt); outline: none; color: var(--ink);
}
.form-grid textarea:focus, .form-grid input:focus { border-color: var(--accent); background: #fff; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.comment { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--border); }
.comment .ph { width: 48px; height: 48px; border-radius: 999px; }
.comment .c-name { font-weight: 800; font-size: var(--text-sm); color: var(--ink); }
.comment .c-date { font-size: var(--text-xs); color: var(--ink-mute); }
.comment p { font-size: var(--text-sm); color: var(--ink-soft); margin-top: 6px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
.only-mobile { display: none; }

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; gap: var(--space-12); }
  .aside { position: static; }
}

@media (max-width: 860px) {
  :root { --text-3xl: 32px; --text-2xl: 26px; --text-xl: 22px; }
  .nav-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav .nav-shop { margin-left: 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-thumbs { grid-template-columns: repeat(4, 1fr); }
  .lead-card { grid-template-columns: 1fr; }
  .lead-card .card-media .ph { min-height: 220px; aspect-ratio: 16/9; }
  .lead-card .card-media img, .lead-card .card-media picture { min-height: 0; aspect-ratio: 16/9; }
  .lead-card .lc-body { padding: var(--space-8) var(--space-6); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .article-head, .share-row, .article-hero figcaption, .prose, .article-foot { padding-left: var(--space-6); padding-right: var(--space-6); }
  .comments { padding: var(--space-6); }
}

@media (max-width: 600px) {
  .container { padding: 0 var(--space-4); }
  .topbar-inner { gap: var(--space-3); }
  .topbar-tools .search { display: none; }
  .topbar-tools .socials { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-thumbs { grid-template-columns: repeat(3, 1fr); }
  /* Hero plus haut sur mobile : l'image respire et le titre n'est plus rogné. */
  .hero-main, .hero-main .ph { aspect-ratio: 3 / 4; }
  .hero-overlay { padding: var(--space-12) var(--space-5) var(--space-5); }
  .hero-overlay .excerpt { -webkit-line-clamp: 3; line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .promo-tiles { grid-template-columns: 1fr; }
  .product-callout { grid-template-columns: 1fr; text-align: center; }
  .product-callout .ph { width: 140px; margin: 0 auto; }
  .product-callout .pc-cta { align-items: center; }
  .form-grid .two { grid-template-columns: 1fr; }
  .brand .brand-tag { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Partage : label seul sur sa ligne → les 4 icônes tiennent ensemble sur UNE ligne,
     puis « Enregistrer » en pleine largeur dessous. */
  .share-row { gap: 8px; }
  .share-row .lbl { flex: 1 1 100%; margin: 0 0 2px; }
  .share-row .save { margin-left: 0; flex: 1 1 100%; justify-content: center; }
}

/* ---------- FAQ ACCORDION ---------- */
.faq-block { margin: var(--space-10) 0; }
.faq-block h2 { font-size: var(--text-xl); margin-bottom: var(--space-5); }
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.faq-item:has(.faq-trigger[aria-expanded="true"]) {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  line-height: 1.35;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-trigger:hover { background: var(--surface-alt); }
.faq-chevron { flex: none; color: var(--accent); transition: transform var(--t); }
.faq-trigger[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-panel {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  line-height: 1.7;
}
.faq-panel > *:first-child { margin-top: 0; }
.faq-panel > *:last-child { margin-bottom: 0; }
.faq-panel p { margin: 0 0 var(--space-3); }

/* ---------- GLOSSAIRE ---------- */
.glsx-index { max-width: 900px; margin: 0 auto; }
.glsx-search { position: relative; margin-bottom: var(--space-6); }
.glsx-search .search { background: var(--surface); border: 1px solid var(--border-strong); padding: var(--space-3) var(--space-4); }
.glsx-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.glsx-results a { display: block; padding: 10px var(--space-4); border-bottom: 1px solid var(--border); }
.glsx-results a:last-child { border-bottom: 0; }
.glsx-results a:hover { background: var(--accent-soft); }
.glsx-results a span { display: block; font-size: var(--text-sm); color: var(--ink-mute); }
.glsx-results a em { color: var(--brass); font-style: normal; font-size: var(--text-sm); }
.glsx-empty { padding: 10px var(--space-4); color: var(--ink-mute); }
.glsx-alpha { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--space-8); }
.glsx-alpha a, .glsx-alpha span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: var(--text-sm);
}
.glsx-alpha a { background: var(--accent-soft); color: var(--accent); }
.glsx-alpha a:hover { background: var(--accent); color: #fff; }
.glsx-alpha span { color: var(--border-strong); }
.glsx-group { margin-bottom: var(--space-8); }
.glsx-letter {
  font-size: var(--text-2xl); color: var(--accent); border-bottom: 2px solid var(--border);
  padding-bottom: var(--space-2); margin-bottom: var(--space-4); scroll-margin-top: 90px;
}
.glsx-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.glsx-card {
  display: block; padding: var(--space-4); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); transition: var(--t);
}
.glsx-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.glsx-term { display: block; font-weight: 800; color: var(--ink); }
.glsx-def { display: block; font-size: var(--text-sm); color: var(--ink-mute); margin-top: 2px; }

/* Terme : encadré def courte + synonymes */
.glsx-shortdef {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius); font-size: var(--text-md);
  color: var(--accent-ink); margin-bottom: var(--space-5);
}
.glsx-syn { color: var(--ink-soft); margin-bottom: var(--space-5); }

/* Auto-linking + infobulle */
.glsx-autolink {
  color: var(--accent); border-bottom: 1px dotted var(--brass); text-decoration: none; cursor: help;
}
.glsx-autolink:hover { background: var(--brass-soft); }
.glsx-tooltip {
  position: absolute; z-index: 50; max-width: 280px; background: var(--ink); color: #fff;
  padding: 10px 12px; border-radius: var(--radius); font-size: var(--text-sm); line-height: 1.5;
  box-shadow: var(--shadow-md); pointer-events: none; opacity: 0; transition: opacity var(--t-fast);
}
.glsx-tooltip.show { opacity: 1; }
.glsx-tooltip b { display: block; color: var(--brass-soft); margin-bottom: 2px; }

@media (max-width: 600px) { .glsx-list { grid-template-columns: 1fr; } }

/* ---------- QUIZ ---------- */
.sqsx-quiz { max-width: 680px; margin: 0 auto; --sqsx-primary: var(--accent); }
.sqsx-screen { display: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-8); text-align: center; box-shadow: var(--shadow-sm); }
.sqsx-screen.is-active { display: block; animation: sqsxIn .25s ease; }
@keyframes sqsxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sqsx-cover { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--space-5); }
.sqsx-quiz h1 { font-size: var(--text-2xl); }
.sqsx-quiz h2 { font-size: var(--text-xl); }
.sqsx-lead { color: var(--ink-soft); margin: var(--space-3) 0 var(--space-5); }
.sqsx-count { color: var(--ink-mute); font-size: var(--text-sm); margin-bottom: var(--space-5); }
.sqsx-btn { background: var(--sqsx-primary); border-color: var(--sqsx-primary); }
.sqsx-btn:hover { filter: brightness(.92); background: var(--sqsx-primary); color: #fff; }
.sqsx-progress { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: var(--space-5); }
.sqsx-progress-bar { display: block; height: 100%; width: 0; background: var(--sqsx-primary); transition: width var(--t); }
.sqsx-qnum { color: var(--sqsx-primary); font-weight: 700; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .05em; }
.sqsx-qtext { margin: var(--space-3) 0 var(--space-6); }
.sqsx-answers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.sqsx-answer { display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  background: var(--surface-alt); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: var(--space-4); font-weight: 600; cursor: pointer; transition: var(--t); color: var(--ink); font-family: inherit; }
.sqsx-answer:hover { border-color: var(--sqsx-primary); background: var(--accent-soft); transform: translateY(-1px); }
.sqsx-answer img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-sm); }
.sqsx-form { display: flex; flex-direction: column; gap: var(--space-3); max-width: 360px; margin: var(--space-4) auto 0; }
.sqsx-form input[type=text], .sqsx-form input[type=email] { padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); font-family: inherit; }
.sqsx-optin-check { display: flex; gap: 8px; align-items: flex-start; font-size: var(--text-sm); color: var(--ink-soft); text-align: left; }
.sqsx-skip { color: var(--ink-mute); font-size: var(--text-sm); }
.sqsx-analyzing { margin-top: var(--space-4); color: var(--sqsx-primary); font-weight: 600; }
.sqsx-result-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--space-4); }
.sqsx-result-desc { color: var(--ink-soft); margin: var(--space-3) 0 var(--space-5); text-align: left; }
.sqsx-product { background: var(--brass-soft); border: 1px solid var(--brass); border-radius: var(--radius); padding: var(--space-6) var(--space-5); margin-bottom: var(--space-5); text-align: center; }
.sqsx-product-label { display: inline-block; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .05em; color: var(--brass); font-weight: 800; }
.sqsx-product-img { width: 150px; height: auto; object-fit: contain; margin: var(--space-3) auto; display: block; filter: drop-shadow(0 8px 18px rgba(176,138,74,.35)); }
.sqsx-product-cta { margin-top: var(--space-4); }
.sqsx-share { display: flex; gap: var(--space-3); align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-5); }
.sqsx-sh { font-weight: 600; color: var(--accent); cursor: pointer; }
.sqsx-share span { color: var(--ink-mute); font-size: var(--text-sm); }
@media (max-width: 560px) { .sqsx-answers { grid-template-columns: 1fr; } .sqsx-screen { padding: var(--space-5); } }

/* ---------- DISCLAIMER OVERLAY ---------- */
#cms-overlay {
  position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center;
  background: rgba(28, 31, 35, .72); backdrop-filter: blur(4px); padding: var(--space-5);
}
/* L'attribut hidden doit l'emporter sur le sélecteur ID ci-dessus. */
#cms-overlay[hidden] { display: none !important; }
#cms-box {
  background: var(--surface); border-radius: 16px; max-width: 520px; width: 100%;
  padding: var(--space-10) var(--space-8); text-align: center; box-shadow: var(--shadow-md);
}
#cms-box h2 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
#cms-box p { color: var(--ink-soft); margin-bottom: var(--space-6); }
.cms-btns { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.cms-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 140px;
  padding: 12px 22px; border-radius: var(--radius); font-weight: 700; border: 0; cursor: pointer;
  font-family: inherit; font-size: var(--text-base); color: #fff; text-decoration: none;
}
.cms-btn-enter { background: #2da44e; }
.cms-btn-enter:hover { background: #298c43; color: #fff; }
.cms-btn-exit { background: #cf222e; }
.cms-btn-exit:hover { background: #b51d28; color: #fff; }

/* ---------- AD BADGE (posts sponsorisés injectés) ---------- */
.cms-ad-thumb-wrap { position: relative; display: block; }
.cms-ad-badge {
  position: absolute; top: 8px; left: 8px; background: rgba(0, 0, 0, .62); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; z-index: 2; pointer-events: none;
}

/* ================= HEADER REFONTE ================= */
.topbar-inner { display: flex; align-items: center; gap: var(--space-5); }
.header-search {
  flex: 1; max-width: 480px; position: relative; background: var(--surface-alt);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 9px 16px; display: flex; align-items: center; gap: 8px;
}
.header-search input { border: 0; background: none; outline: none; width: 100%; font-family: inherit; font-size: var(--text-base); }
.topbar-tools { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }

/* Dropdown résultats */
.hs-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60; display: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden; max-height: 60vh; overflow-y: auto;
}
.hs-results.show { display: block; }
.hs-results a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--ink); }
.hs-results a:last-child { border-bottom: 0; }
.hs-results a:hover { background: var(--accent-soft); }
.hs-type {
  flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 999px;
}
.hs-empty { padding: 14px 16px; color: var(--ink-mute); }

/* CTAs */
.cta-message { position: relative; display: inline-flex; align-items: center; gap: 7px; }
.cta-badge {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  background: #e0245e; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); animation: badgeBlink 1.1s ease-in-out infinite;
}
@keyframes badgeBlink { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.88); } }

/* Boutons mobile (cachés en desktop) */
.hs-icon-btn, .hamburger { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 6px; }
.hamburger { flex-direction: column; gap: 4px; width: 34px; }
.hamburger span { display: block; height: 2.5px; width: 22px; background: var(--ink); border-radius: 2px; }

/* Bannière promo — se fige en haut au scroll (CTR) */
.header-banner {
  background: var(--accent); color: #fff;
  position: sticky; top: 0; z-index: 70;
  transition: box-shadow var(--t);
}
.header-banner.is-stuck { box-shadow: 0 4px 14px rgba(28,31,35,.18); }
.header-banner-inner { display: flex; align-items: center; justify-content: center; gap: var(--space-4); padding: 9px 0; flex-wrap: wrap; font-weight: 600; }
.header-banner .btn { padding: 6px 14px; }

/* Off-canvas */
.offcanvas { position: fixed; inset: 0; z-index: 100000; background: rgba(28,31,35,.5); display: block; }
.offcanvas[hidden] { display: none; }
.offcanvas-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 360px); background: var(--surface);
  padding: var(--space-5); overflow-y: auto; box-shadow: -8px 0 24px rgba(0,0,0,.15); animation: ocIn .2s ease;
}
@keyframes ocIn { from { transform: translateX(100%); } to { transform: none; } }
.offcanvas-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.offcanvas-head .brand-mark { font-weight: 900; font-size: 20px; color: var(--accent); }
.offcanvas-head .brand-mark em { color: var(--brass); font-style: normal; }
.oc-close { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink-mute); }
.oc-nav { display: flex; flex-direction: column; }
.oc-nav a { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: var(--text-md); color: var(--ink); }
.oc-nav a:hover { color: var(--accent); }
.oc-ico { flex: none; width: 26px; height: 26px; color: var(--accent); }
.oc-ico svg { width: 26px; height: 26px; }

/* ---------- NAV : menus déroulants (desktop) ---------- */
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-top {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  color: #d9d4cb; font-size: var(--text-sm); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 15px 16px; display: inline-flex; align-items: center; gap: 6px;
  transition: var(--t);
}
.nav-top .caret { font-size: 10px; opacity: .7; transition: transform .15s; }
.nav-item:hover .nav-top, .nav-item:focus-within .nav-top, .nav-item.is-active .nav-top { color: #fff; background: rgba(255,255,255,0.06); }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--border); border-top: 0;
  border-radius: 0 0 12px 12px; box-shadow: var(--shadow-card);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s; z-index: 60;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: 0;
  text-transform: none; white-space: nowrap;
}
.dropdown a:hover { background: var(--accent-soft); color: var(--accent); }
.dropdown a.active { color: var(--accent); background: var(--accent-soft); }

/* ---------- NAV : accordéon (off-canvas mobile) ---------- */
.oc-group { border-bottom: 1px solid var(--border); }
.oc-group > summary {
  list-style: none; cursor: pointer; padding: 14px 6px;
  font-weight: 800; font-size: var(--text-md); color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.oc-group > summary::-webkit-details-marker { display: none; }
.oc-group > summary::after { content: "⌄"; font-size: 20px; line-height: 1; color: var(--ink-mute); transition: transform .2s; }
.oc-group[open] > summary::after { transform: rotate(180deg); }
.oc-sub { padding: 2px 0 10px; }
.oc-sub a { padding: 10px 6px 10px 14px; border-bottom: 0; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.oc-compare { display: flex; align-items: center; gap: 14px; padding: 16px 6px 6px; font-weight: 800; color: var(--accent); }

/* Modale recherche */
.search-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(28,31,35,.55); display: block; padding: 14px; }
.search-modal[hidden] { display: none; }
.search-modal-box { background: var(--surface); border-radius: var(--radius-lg); max-width: 560px; margin: 0 auto; padding: var(--space-4); }
.search-modal-head { display: flex; gap: 10px; align-items: center; }
.search-modal .search { background: var(--surface-alt); border: 1px solid var(--border-strong); padding: 10px 14px; }
.hs-results-m { position: static; box-shadow: none; border: 0; margin-top: 10px; display: block; }

/* ----- Bascule responsive du header ----- */
@media (max-width: 900px) {
  .header-search { display: none; }
  .nav { display: none; }
  .cta-message { display: none; }            /* CTA header masqué en mobile : remplacé par le bouton flottant */
  .hs-icon-btn, .hamburger { display: inline-flex; }
  .hs-icon-btn { padding: 9px; }
  .hs-icon-btn svg { width: 24px; height: 24px; }
  .hamburger { width: 38px; }
  .hamburger span { width: 24px; height: 3px; }
  .topbar-tools { gap: var(--space-3); }
}
@media (min-width: 901px) {
  .offcanvas, .search-modal { display: none !important; }
}

/* =====================================================================
   CHARTE MUTUELLE SENIOR — composants article (page pilier) — ajoutés
   Noms de classes nouveaux (sans collision avec l'existant).
   ===================================================================== */
.pill { display:inline-flex; align-items:center; gap:7px; background:var(--green-soft); color:var(--green); font-family:var(--font-head); font-weight:600; font-size:14px; padding:7px 14px; border-radius:999px; margin-bottom:16px; }
.pill::before { content:"✓"; font-weight:700; }

.callout { border-left:4px solid var(--blue); background:var(--bg-alt); border-radius:0 10px 10px 0; padding:18px 22px; margin:26px 0; }
.callout.warn { border-left-color:var(--orange); background:#fff6f0; }
.callout p:last-child { margin-bottom:0; }
.callout strong { color:var(--ink); }

.cta-box { border-radius:14px; padding:26px 28px; margin:32px 0; display:grid; grid-template-columns:1fr auto; gap:22px; align-items:center; }
.cta-box h3 { color:inherit; margin:0 0 6px; font-size:22px; font-family:var(--font-head); }
.cta-box p { margin:0; font-size:16px; }
.cta-green { background:var(--green-soft); border:1px solid #c8e8d6; }
.cta-green h3 { color:#1c7a4a; } .cta-green p { color:#357a57; }
.cta-blue { background:linear-gradient(120deg,#5B21B6,#8B5CF6); color:#fff; }
.cta-blue h3 { color:#fff; } .cta-blue p { color:#d6e6ff; }
.cta-orange-soft { background:#EDE9FE; border:1px solid #ffd6bf; }
.cta-orange-soft h3 { color:var(--orange-dark); }
@media (max-width:860px){ .cta-box { grid-template-columns:1fr; } .cta-box .btn { width:100%; } }

.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:32px 0; }
.stat { background:#fff; border:1px solid var(--line); border-radius:14px; padding:24px; text-align:center; box-shadow:var(--shadow-card); }
.stat .num { font-family:var(--font-head); font-weight:700; font-size:38px; color:var(--blue); line-height:1; }
.stat .num .u { font-size:22px; }
.stat .lbl { color:var(--muted); font-size:14.5px; margin-top:8px; }
@media (max-width:860px){ .stats { grid-template-columns:1fr; } }

.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:30px 0; counter-reset:step; }
.step { background:#fff; border:1px solid var(--line); border-radius:14px; padding:24px 22px; box-shadow:var(--shadow-card); }
.step .n { counter-increment:step; width:40px; height:40px; border-radius:50%; background:var(--blue); color:#fff; font-family:var(--font-head); font-weight:700; display:grid; place-items:center; margin-bottom:14px; }
.step .n::before { content:counter(step); }
.step h4 { font-size:18px; margin:0 0 6px; font-family:var(--font-head); color:var(--ink); }
.step p { margin:0; font-size:15px; color:var(--muted); }
@media (max-width:860px){ .steps { grid-template-columns:1fr; } }

.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; margin:26px 0; border-radius:14px; box-shadow:var(--shadow-card); }
table.data { width:100%; border-collapse:collapse; min-width:540px; background:#fff; font-size:15.5px; }
table.data thead th { background:var(--blue); color:#fff; font-family:var(--font-head); font-weight:600; text-align:left; padding:15px 18px; font-size:15px; }
table.data td { padding:14px 18px; border-bottom:1px solid var(--line-soft); vertical-align:top; }
table.data tbody tr:nth-child(even){ background:var(--bg-alt); }
table.data tbody tr:last-child td { border-bottom:0; }
table.data td:first-child { font-weight:700; color:var(--ink); font-family:var(--font-head); }
/* Tables générées sans classe explicite dans le corps d'article */
.prose table, .article table { width:100%; border-collapse:collapse; margin:26px 0; font-size:15.5px; box-shadow:var(--shadow-card); border-radius:14px; overflow:hidden; }
.prose table th, .article table th { background:var(--blue); color:#fff; font-family:var(--font-head); text-align:left; padding:14px 18px; }
.prose table td, .article table td { padding:13px 18px; border-bottom:1px solid var(--line-soft); }
.prose table tbody tr:nth-child(even), .article table tbody tr:nth-child(even){ background:var(--bg-alt); }

/* Sommaire + carte conseiller (sidebar page pilier) */
.toc { position:sticky; top:calc(var(--header-h) + 22px); align-self:start; }
.toc-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px; box-shadow:var(--shadow-card); }
.toc-card h4 { font-size:15px; text-transform:uppercase; letter-spacing:.8px; color:var(--muted); margin:0 0 12px; }
.toc-list { list-style:none; margin:0; padding:0; }
.toc-list a { display:block; padding:7px 12px; border-left:2px solid var(--line); color:var(--text); font-size:14.5px; line-height:1.4; }
.toc-list a:hover { color:var(--blue); text-decoration:none; }
.toc-list a.active { border-left-color:var(--orange); color:var(--ink); font-weight:700; background:var(--bg-alt); border-radius:0 8px 8px 0; }
.advisor { margin-top:20px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px; box-shadow:var(--shadow-card); text-align:center; }
.advisor strong { display:block; color:var(--ink); font-family:var(--font-head); font-size:15px; }
.advisor small { display:block; color:var(--muted); font-size:13.5px; }
.advisor .phone { display:inline-block; margin-top:10px; white-space:nowrap; background:var(--green); color:#fff; font-family:var(--font-head); font-weight:700; padding:9px 16px; border-radius:999px; font-size:15px; }
.advisor .phone:hover { text-decoration:none; filter:brightness(1.05); }

.link-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.link-card { display:flex; align-items:center; justify-content:space-between; gap:14px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px 22px; color:var(--ink); font-family:var(--font-head); font-weight:600; box-shadow:var(--shadow-card); transition:.15s; }
.link-card:hover { text-decoration:none; border-color:var(--blue); transform:translateY(-2px); }
.link-card .arrow { color:var(--blue); font-size:20px; flex-shrink:0; }
@media (max-width:860px){ .link-grid { grid-template-columns:1fr; } }

.pillar-layout { display:grid; grid-template-columns:264px minmax(0,1fr); gap:46px; }
@media (max-width:1024px){ .pillar-layout { grid-template-columns:1fr; gap:0; } .pillar-layout .toc { position:static; display:none; } .pillar-layout .advisor { display:none; } }

/* Bandeau hero des articles (page pilier) */
.art-hero { background: linear-gradient(120deg, var(--blue-soft) 0%, var(--lilac) 100%); padding: 34px 0 30px; border-bottom: 1px solid var(--line-soft); }
.art-hero h1 { font-size: clamp(27px, 3.4vw, 40px); letter-spacing: -.4px; margin: 6px 0 16px; max-width: 900px; }
.art-hero .byline { display: flex; align-items: center; gap: 12px; }
.art-hero .byline img, .art-hero .byline .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.art-hero .a-name { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.art-hero .a-name a { color: var(--ink); }
.art-hero .a-role { color: var(--muted); font-size: 14px; }
.art-hero .pill { margin-bottom: 4px; }
.article .article-hero { margin: 0 0 26px; border-radius: var(--radius, 14px); overflow: hidden; }
.article .article-hero img { width: 100%; }
.article .article-hero figcaption { font-size: 13px; color: var(--muted); padding: 8px 2px; }
.article .article-foot { margin-top: 30px; }
.article .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.article .tag-list .t { font-size: 13px; background: var(--bg-alt); color: var(--blue); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.article .author .ab-role { color: var(--orange); font-family: var(--font-head); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; }
.article .share-row { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; }
.article .share-row .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.article .share-row a[class^="sh-"] { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); color: var(--ink); border: 1px solid var(--line); }
.article .share-row a[class^="sh-"]:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.article .share-row .save { margin-left: auto; }
.article .share-row .save.is-saved { color: var(--orange); border-color: var(--orange); }

/* Images insérées dans le corps d'article (générées) */
.prose .article-image, .article .article-image { margin: 30px 0; }
.prose .article-image img, .article .article-image img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-card); }
.prose .article-image figcaption, .article .article-image figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
/* Encadrés inline générés par l'IA (style inline background clair) */
.prose > div[style*="background"] { border-radius: 12px; padding: 18px 22px; margin: 26px 0; }

/* ---- Responsive : images & tableaux du corps d'article (anti-débordement mobile) ---- */
.prose, .article { min-width: 0; }
.prose img, .article img, .art-hero img, .prose figure, .article .article-image { max-width: 100%; height: auto; }
.prose figure img, .article-image img { width: 100%; }
/* Tableaux générés sans wrapper : scroll horizontal au lieu de déborder */
.prose table, .article > table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 860px) {
  .prose, .article { overflow-x: hidden; }
  .prose pre, .article pre { overflow-x: auto; }
}

/* ---- Garde-fous responsive supplémentaires ---- */
h1, h2, h3, .art-hero h1, .prose h2, .prose h3 { overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
.prose a, .article a { overflow-wrap: break-word; word-break: break-word; }
/* min-width:0 = anti-blowout. On NE met PAS max-width:100% ici : ça écrasait le
   plafond .container (var(--container)=1180px) et rendait main.container plein écran
   en desktop (contenu ~1067px, images géantes). Le cap du conteneur doit primer. */
.art-hero .container, .pillar-layout, main.container { min-width: 0; }
@media (max-width: 860px) {
  .cta-box { grid-template-columns: 1fr; text-align: left; }
  .cta-box .btn, .cta-box a.btn { width: 100%; justify-content: center; }
  .art-hero { padding: 24px 0 22px; }
  .art-hero h1 { font-size: clamp(22px, 6vw, 30px); }
  .prose { font-size: 16px; }
}

/* ============ ANTI-DÉBORDEMENT HORIZONTAL (définitif) ============ */
/* clip (et non hidden) : stoppe tout scroll horizontal SANS casser position:sticky du sommaire */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; }
/* Rien dans le corps d'article ne peut dépasser le conteneur */
.prose > *, .article > * { max-width: 100%; box-sizing: border-box; }
img, svg, video, iframe, embed, object { max-width: 100%; height: auto; }
/* Tableaux générés : deviennent une zone à défilement horizontal interne */
.prose table, .article table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table thead, .article table thead { white-space: nowrap; }
/* Encadrés inline du modèle (div style=background…) : confinés */
.prose div[style], .article div[style] { max-width: 100%; box-sizing: border-box; overflow-wrap: break-word; }

/* ============================================================
   CORRECTIFS RESPONSIVE — page article (grille / CTA / images)
   ============================================================ */

/* 1) CAUSE RACINE DU DÉBORDEMENT MOBILE.
   Sur ≤1024px la grille passait en « grid-template-columns: 1fr » (= minmax(auto,1fr)).
   Le « auto » prend la taille intrinsèque du contenu (image hero 1600px, tableaux…),
   ce qui étirait la colonne à ~790px dans un écran de ~390px : tout le <body> était
   plus large que l'écran et overflow-x:clip coupait le H1 et le texte à droite.
   minmax(0,1fr) force la piste à respecter la largeur de l'écran. */
/* Les éléments de grille ont min-width:auto par défaut → leur min-content
   (image hero 1600px, tableaux) peut dépasser la piste. min-width:0 les autorise
   à se réduire à la largeur réelle de la colonne. Indispensable ICI (le min-width
   sur .pillar-layout seul ne suffit pas — il faut le mettre sur l'enfant). */
.pillar-layout > * { min-width: 0; }
@media (max-width: 1024px) {
  /* Colonne unique : la PISTE est plafonnée à 760px ET centrée via la grille
     (justify-content). On NE met PAS de marge auto sur l'enfant : sur un élément
     de grille, margin:auto annule le stretch → l'enfant se dimensionne à son
     max-content (et déborde). Ici l'enfant remplit la piste = min(écran, 760). */
  .pillar-layout { grid-template-columns: minmax(0, 760px); justify-content: center; gap: 0; }
  .pillar-layout > div:last-child { max-width: none; margin: 0; }
}

/* 2) CTA dans le corps d'article : « .prose a » (couleur accent + soulignement)
   battait « .btn-brass » par spécificité → boutons en texte bleu souligné.
   On rétablit l'apparence bouton. */
.prose a.btn, .article a.btn,
.prose a.cta-message, .article a.cta-message {
  color: #fff; text-decoration: none; font-weight: 700;
}
.prose a.btn:hover, .article a.btn:hover { color: #fff; text-decoration: none; }
.prose a.btn-brass, .article a.btn-brass { color: #fff; }
.prose a.btn-ghost, .article a.btn-ghost { color: var(--accent); }
.cta-box a, .cta-box a:hover { text-decoration: none; }

/* 3) Images du corps d'article : souvent carrées (1600×1600). En width:100% elles
   devenaient énormes. On les borne (hauteur max) et on les centre ; le srcset est
   injecté côté serveur pour servir la bonne taille selon l'écran. */
.prose .article-image, .article .article-image { text-align: center; margin: 30px 0; }
.prose .article-image img, .article .article-image img {
  width: auto; max-width: 100%; max-height: 360px;
  margin-left: auto; margin-right: auto;
}
@media (max-width: 600px) {
  .prose .article-image img, .article .article-image img { max-height: 300px; }
}

/* Encadré violet « Devis gratuit » : survol du bouton lisible (blanc sur violet). 10/11/2026 */
.shop-promo .btn-brass:hover { background: #fff; color: var(--accent-ink); box-shadow: 0 12px 28px rgba(0,0,0,.35); }
