/* ==========================================================================
   LPAC — Design system (direction « Canopée », figée)
   Portage de la maquette Claude Design. Polices auto-hébergées (Sora + Hanken)
   via fonts.css : aucune dépendance Google Fonts.
   ========================================================================== */

:root {
  --ds: 1; --ts: 1;

  --space-3: 3px;  --space-4: 4px;  --space-6: 6px;  --space-8: 8px;
  --space-12: 12px; --space-16: 16px; --space-20: 20px; --space-24: 24px;
  --space-32: 32px; --space-40: 40px; --space-56: 56px; --space-72: 72px;
  --space-section: 104px;
  --maxw: 1320px; --maxw-narrow: 720px;

  /* Canopée */
  --font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --bg: #FAFAF4;
  --surface: #FFFFFF;
  --surface-2: #F1F0E6;
  --ink: #13241A;
  --muted: #5A6B5D;
  --border: #E5E3D5;

  --accent: #0B6E63;
  --accent-ink: #08524A;
  --title-accent: #0B6E63;
  --accent-soft: #DCEDE3;
  --accent-2: #4F9D5D;

  --feature-bg: #DCEDE3;
  --feature-ink: #103029;
  --feature-muted: #4E6B64;   /* 4.78 sur --feature-bg : AA (l'ancien #5B7C75 tombait à 3.77) */
  --feature-accent: #0B6E63;

  --radius: 14px; --radius-sm: 10px; --radius-pill: 999px; --border-w: 1.5px;
  --shadow-sm: 0 1px 2px rgba(19,36,26,.05), 0 3px 10px rgba(19,36,26,.05);
  --shadow-md: 0 4px 12px rgba(19,36,26,.06), 0 14px 30px rgba(19,36,26,.07);

  --display-weight: 700; --display-spacing: -0.03em; --display-line: 0.98;
  --eyebrow-font: var(--font-body); --eyebrow-transform: uppercase;
  --eyebrow-spacing: 0.14em; --eyebrow-weight: 700; --eyebrow-size: 12px;

  --pentagon: polygon(50% 1%, 96% 36%, 79% 96%, 21% 96%, 4% 36%);
}

*, *::before, *::after { box-sizing: border-box; }
.lpac-front img { max-width: 100%; display: block; }
.lpac-front button { font: inherit; color: inherit; cursor: pointer; }
.lpac-front a { color: inherit; text-decoration: none; }

body.lpac-front {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: calc(17px * var(--ts));
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* garde-fou anti-débordement horizontal */
}
.lpac-front .site-header .header-cta { padding-block: 10px; }

.lpac-ic { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.lpac-front .site-main { padding: 0; display: block; }
.lpac-front .skip-link { position: absolute; left: -9999px; }
.lpac-front .skip-link:focus { left: var(--space-16); top: var(--space-16); background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--space-24); }
.container-narrow { width: 100%; max-width: var(--maxw-narrow); margin: 0 auto; padding-inline: var(--space-24); }

.display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-spacing); line-height: var(--display-line); margin: 0; text-wrap: balance; }
.h1 { font-size: calc(clamp(34px, 4.6vw, 54px) * var(--ts)); }
.h2 { font-size: calc(clamp(30px, 3.6vw, 44px) * var(--ts)); }
.h3 { font-size: calc(clamp(21px, 2vw, 26px) * var(--ts)); }
.lead { font-size: calc(clamp(18px, 1.5vw, 21px) * var(--ts)); color: var(--muted); line-height: 1.55; margin: 0; text-wrap: pretty; }
.muted { color: var(--muted); }
.accent-text { color: var(--accent-ink); }

.eyebrow {
  font-family: var(--eyebrow-font); text-transform: var(--eyebrow-transform);
  letter-spacing: var(--eyebrow-spacing); font-weight: var(--eyebrow-weight);
  font-size: calc(var(--eyebrow-size) * var(--ts)); color: var(--accent-ink);
  display: inline-block; position: relative; padding-bottom: 9px;
}
.eyebrow::after {
  content: ""; position: absolute; left: -2px; right: -3px; bottom: -1px; height: 8px;
  background: no-repeat center / 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'><path d='M2 6.5 C 22 3, 40 3.5, 58 5 C 76 6.6, 92 8.2, 112 6.4 C 132 4.6, 150 2.8, 170 4.2 C 182 5, 192 6.2, 198 5.4' fill='none' stroke='%230B6E63' stroke-width='1.6' stroke-linecap='round'/></svg>");
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  font-family: var(--font-display); font-weight: 600; font-size: calc(15px * var(--ts));
  letter-spacing: -0.01em; border: var(--border-w) solid transparent; border-radius: var(--radius-pill);
  padding: 13px 22px; transition: transform .15s ease, background .2s, box-shadow .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--title-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-ink); color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: calc(16px * var(--ts)); }
/* Spécificité : bat « .lpac-front a { color: inherit } » pour les liens-boutons */
.lpac-front .btn-primary,
.lpac-front .btn-primary:hover,
.lpac-front .btn-primary:focus,
.lpac-front .btn-primary:visited { color: #fff; }
.lpac-front .btn-dark { color: var(--bg); }
.lpac-front .btn-ghost { color: var(--ink); }
.lpac-front .btn-ghost:hover { color: var(--accent-ink); }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: var(--space-8); background: var(--accent-soft); color: var(--accent-ink);
  border-radius: var(--radius-pill); padding: 7px 14px; font-size: calc(13px * var(--ts)); font-weight: 600; font-family: var(--font-display); }
.chip-line { display: inline-flex; align-items: center; gap: var(--space-8); border: var(--border-w) solid var(--border);
  border-radius: var(--radius-pill); padding: 7px 14px; font-size: calc(13px * var(--ts)); font-weight: 600; color: var(--muted); background: var(--surface); }

/* ---------- card ---------- */
.card { background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

/* ---------- sections ---------- */
.section { padding-block: var(--space-section); }
.section-tight { padding-block: var(--space-56); }
.feature-section { background: var(--feature-bg); color: var(--feature-ink); }
.feature-section .lead { color: var(--feature-muted); }
.feature-section .eyebrow { color: var(--feature-accent); }

/* ---------- form fields ---------- */
.field { display: flex; flex-direction: column; gap: var(--space-6); }
.field label { font-size: calc(13px * var(--ts)); font-weight: 600; color: var(--ink); font-family: var(--font-display); }
.input, .select { font: inherit; font-size: calc(15px * var(--ts)); background: var(--surface); border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 15px; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.hr { height: var(--border-w); background: var(--border); border: 0; width: 100%; }
.stat-num { font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1; letter-spacing: -0.03em; }
.picto { clip-path: var(--pentagon); border-radius: 0 !important; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .reveal { animation: fadeUp .6s cubic-bezier(.16,.84,.44,1) both; } }

/* ==========================================================================
   HEADER
   ========================================================================== */
/* Header non sticky (défile avec la page) mais au-dessus du contenu (dropdowns).
   Pas de séparateur sous le header. */
.lpac-front .site-header { position: relative; z-index: 50; padding-top: 12px; background: var(--bg);
  border-bottom: 0; }
/* Spécificité renforcée (0,3,0) pour battre l'ancien « .site-header .container » inliné.
   On ne touche PAS au margin (laisse .container centrer : margin 0 auto). */
/* La barre du header n'est pas bornée par --maxw comme le reste du site : sur
   grand écran, la navigation et les deux boutons ont besoin de largeur, et le
   contenu centré à 1320 px laissait de grandes bandes vides sur les côtés. */
.lpac-front .site-header .site-header__bar { display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-24); min-height: 66px; height: auto; padding-block: 10px;
  max-width: 1720px; padding-inline: var(--space-40); }

/* Barre compactée dès 1400 px, et non 1240 : la barre non compactée réclame
   1365 px (144 de logo + 702 de menu + 391 de boutons + 48 de gouttières +
   80 de marges), donc elle débordait sur tout un écran de 1280 ou de 1366. */
@media (max-width: 1400px) {
  .lpac-front .site-header .site-header__bar { padding-inline: var(--space-24); gap: var(--space-16); }
  .nav-link { padding-inline: 8px; }
  /* Les boutons gardent leur hauteur, seule leur largeur se resserre : c'est
     ce qui reste de marge une fois le menu déjà compacté. */
  .lpac-front .site-header .header-cta { padding-inline: 14px; }
}

/* Dernier palier avant le menu burger : la barre n'a plus qu'un bouton, mais
   le menu à cinq entrées reste large. */
@media (max-width: 1140px) {
  .nav-link { padding-inline: 6px; font-size: calc(13.5px * var(--ts)); }
}
/* flex-shrink: 0 : sans lui, l'ajout d'un second bouton dans la barre comprime
   le logo et « La pompe à » se casse à son tour, d'où un lockup sur 3 lignes. */
.brand { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; flex-shrink: 0; }
/* Chaque moitié du lockup reste insécable : seul le <br> décide du retour. */
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; line-height: 1.15; color: var(--title-accent); white-space: nowrap; }
.brand__name .l { color: var(--ink); } .brand__name .tld { color: var(--ink); font-size: 13px; }
.nav-desktop { display: flex; align-items: center; gap: 2px; }
.nav-desktop > .nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; color: var(--muted); font-weight: 600;
  font-size: calc(14px * var(--ts)); font-family: var(--font-display); padding: 8px 11px; border-radius: var(--radius-sm); white-space: nowrap;
  transition: color .15s, background .15s; }
.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link { background: var(--accent-soft); color: var(--accent-ink); }
/* Entrée sans sous-menu : même fond au survol, mais le lien reste un lien
   (curseur, focus visible, clic direct). */
.nav-item.is-plain .nav-link { text-decoration: none; cursor: pointer; }
.nav-item.is-plain .nav-link:hover,
.nav-item.is-plain .nav-link:focus-visible { background: var(--accent-soft); color: var(--accent-ink); }
.nav-item:hover .nav-link .chev,
.nav-item:focus-within .nav-link .chev { transform: rotate(180deg); }
.nav-link .chev { display: inline-flex; transition: transform .2s; }
.nav-drop { position: absolute; top: calc(100% + 8px); left: 0; width: 268px; background: var(--surface); border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
/* :focus-within → le sous-menu reste accessible au clavier, maintenant que
   l'ouvreur est un <button> et non plus un lien. */
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop { opacity: 1; visibility: visible; transform: none; }
.nav-drop__silo { font-size: calc(11.5px * var(--ts)); color: var(--accent-ink); padding: 8px 10px 12px; font-weight: 600; position: relative; display: inline-block; }
.nav-drop__silo::after { content: ""; position: absolute; left: 8px; right: -3px; bottom: 4px; height: 7px; background: no-repeat center / 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'><path d='M2 6.5 C 22 3, 40 3.5, 58 5 C 76 6.6, 92 8.2, 112 6.4 C 132 4.6, 150 2.8, 170 4.2 C 182 5, 192 6.2, 198 5.4' fill='none' stroke='%230B6E63' stroke-width='1.6' stroke-linecap='round'/></svg>"); }
.nav-drop a { display: block; width: 100%; text-align: left; background: none; border: 0; font-size: calc(14px * var(--ts)); color: var(--ink);
  font-family: var(--font-display); font-weight: 500; padding: 9px 10px; transition: color .12s; }
.nav-drop a:hover { color: var(--accent-ink); }
/* a.nav-drop__cta (0,2,1) bat « .nav-drop a { border:0 } » (0,1,1) : la bordure s'affiche */
.nav-drop a.nav-drop__cta { display: flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600;
  border-top: 1px solid #C9C5B2; margin-top: 6px; padding-top: 12px; }
.nav-burger { display: none; background: none; border: 0; color: var(--ink); padding: 8px; }
.mobile-nav { display: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #0B6E63; color: #fff; padding-top: var(--space-56); padding-bottom: var(--space-20);
  /* logo inversé (carré blanc, glyphe teal) + CTA texte teal sur pastille blanche */
  --feature-ink: #fff; --feature-muted: rgba(255,255,255,.82); --feature-accent: #fff;
  --feature-bg: #0B6E63; --title-accent: #fff; --logo-glyph: #0B6E63; }
.site-footer .brand__name, .site-footer .brand__name .l { color: #fff; }
.site-footer .brand__name .tld { color: #DCEDE3; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-40); align-items: start; }
.footer-col h2 { font-family: var(--font-display); font-weight: 700; font-size: calc(14px * var(--ts)); margin: 0 0 var(--space-16); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-12); }
.footer-col a { color: rgba(255,255,255,.82); font-size: calc(14px * var(--ts)); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.82);
  font-size: calc(12.5px * var(--ts)); margin-top: var(--space-72); }
.footer-bottom .links { display: flex; gap: var(--space-20); }

/* ==========================================================================
   HOME — sections spécifiques
   ========================================================================== */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-56); align-items: center; }
.trust-strip { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust-item { display: flex; align-items: center; gap: 13px; padding: 10px 18px; min-width: 0; }
.trust-item .pic { width: 46px; height: 46px; flex-shrink: 0; clip-path: var(--pentagon); background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.trust-item .t { font-family: var(--font-display); font-weight: 700; font-size: calc(15.5px * var(--ts)); color: var(--ink); white-space: nowrap; }
.trust-item .d { font-size: calc(12.5px * var(--ts)); color: var(--muted); font-weight: 600; }

.types-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--space-24)) / 3); gap: var(--space-24);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 16px; padding-bottom: var(--space-40); scrollbar-width: none; }
.types-carousel::-webkit-scrollbar { display: none; }
.type-card { scroll-snap-align: start; padding: var(--space-32); display: flex; flex-direction: column; position: relative; }
.carousel-arrow { position: absolute; top: 50%; width: 48px; height: 48px; border-radius: var(--radius-pill); border: var(--border-w) solid var(--border);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-md); z-index: 5; transition: border-color .15s, color .15s; }
.carousel-arrow:hover { border-color: var(--accent); color: var(--accent-ink); }
.carousel-arrow.prev { left: 0; transform: translate(-50%, -50%); }
.carousel-arrow.next { right: 0; transform: translate(50%, -50%); }

.htw-track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-24); align-items: center; }
.htw-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%);
  background-image: linear-gradient(90deg, var(--accent) 55%, transparent 0); background-size: 14px 3px; background-repeat: repeat-x; animation: flowMove 1.1s linear infinite; opacity: .85; }
@keyframes flowMove { from { background-position: 0 0; } to { background-position: 14px 0; } }
.htw-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-24); }
.htw-step.is-down { flex-direction: column-reverse; }
.htw-card { background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius); padding: var(--space-24); box-shadow: var(--shadow-sm); }
.htw-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--accent); position: relative; z-index: 2; }
.htw-chip { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 8px); white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: calc(12px * var(--ts)); color: var(--accent-ink); background: var(--accent-soft); padding: 3px 10px; border-radius: var(--radius-pill); }
.htw-step.is-down .htw-chip { top: auto; bottom: calc(100% + 8px); }
@media (prefers-reduced-motion: reduce) { .htw-track::before { animation: none; } }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-24); text-align: center; }
.brands-band { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: var(--space-56); align-items: center; }
.brand-logo { background: var(--surface); aspect-ratio: 3/2; display: grid; place-items: center; padding: var(--space-12); }
.brand-logo span { font-family: var(--font-display); font-weight: 700; font-size: calc(15px * var(--ts)); color: var(--ink); letter-spacing: -0.01em; }
.budget-block { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-24); align-items: stretch; }
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-24); }
.home-article:hover { border-color: var(--accent) !important; }
.aides-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-56); align-items: center; }
.cta-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; }

/* ==========================================================================
   FICHES (marque, modèle, type de PAC)
   ========================================================================== */
.lpac-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-20);
  font-size: calc(13px * var(--ts)); font-family: var(--font-display); font-weight: 600; color: var(--muted); }
.lpac-crumbs a { color: var(--muted); transition: color .15s; }
.lpac-crumbs a:hover { color: var(--accent-ink); }
.lpac-crumbs span[aria-current] { color: var(--ink); }
.lpac-crumbs .lpac-ic { color: color-mix(in oklab, var(--muted) 55%, transparent); }

.lpac-sechead { max-width: 620px; margin-bottom: var(--space-32); }
.lpac-sechead h2 { margin-top: var(--space-16); }

.ptype-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-56); align-items: center; }
.ptype-specs { display: grid; grid-template-columns: repeat(3, 1fr); }
.ptype-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-24); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-24); }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-24); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-24); }
.ptype-other:hover { border-color: var(--accent) !important; }

.lpac-fact { padding: var(--space-24); display: flex; gap: var(--space-16); align-items: flex-start; }
.lpac-fact__ic { width: calc(44px * var(--ds)); height: calc(44px * var(--ds)); flex-shrink: 0; clip-path: var(--pentagon);
  background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.lpac-fact__k { font-family: var(--font-display); font-size: calc(11.5px * var(--ts)); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.lpac-fact__v { font-size: calc(15px * var(--ts)); margin-top: 4px; line-height: 1.45; }

.lpac-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-12); }
.lpac-list li { display: flex; gap: 10px; align-items: flex-start; font-size: calc(15px * var(--ts)); }
.lpac-list--muted li { color: var(--muted); }

/* ==========================================================================
   RESPONSIVE (mobile-first polish)
   ========================================================================== */
@media (max-width: 1080px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
/* 1080 et non 1040 : entre les deux, le menu à lui seul dépassait la barre. */
@media (max-width: 1080px) {
  .nav-desktop { display: none; }
  .nav-burger { display: inline-flex; }
  /* Le conteneur du drawer est masqué par défaut (.mobile-nav { display:none })
     et n'était jamais réaffiché : le panneau ne pouvait pas apparaître, malgré
     la classe is-open posée par front.js. La règle vit dans cette media query
     pour que le drawer se referme tout seul au retour en desktop. */
  .mobile-nav.is-open { display: block; }
  /* Header mobile : logo + burger uniquement (le CTA reste dans le drawer) */
  .lpac-front .header-cta { display: none; }
}
@media (max-width: 420px) {
  .brand { font-size: 15px; }
}
@media (max-width: 920px) {
  /* minmax(0,1fr) et non 1fr : sinon le contenu (formulaire, tableau) impose
     sa largeur minimale et déborde de la colonne sur petit écran. */
  .hero-grid, .aides-grid, .cta-grid, .brands-band, .budget-block { grid-template-columns: minmax(0, 1fr) !important; }
  .guides-grid { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .types-carousel { grid-auto-columns: calc((100% - var(--space-24)) / 2) !important; }
  .hero-art { order: 2; } /* image APRÈS le titre sur mobile */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Fiches */
  .ptype-hero, .ptype-specs, .ptype-facts, .cards-3, .proscons { grid-template-columns: 1fr !important; }
  .cards-4 { grid-template-columns: 1fr 1fr !important; }
  .ptype-specs .ptype-spec { border-left: 0 !important; border-top: var(--border-w) solid var(--border); }
  .ptype-specs .ptype-spec:first-child { border-top: 0; }
}
@media (max-width: 760px) {
  :root { --space-section: 72px; }
  .htw-track { grid-template-columns: 1fr; gap: var(--space-16); }
  .htw-track::before { display: none; }
  .htw-step, .htw-step.is-down { flex-direction: column; gap: var(--space-8); }
  .htw-dot { display: none; }
  .cta-grid > div { padding: var(--space-24) !important; }
}
@media (max-width: 640px) {
  .types-carousel { grid-auto-columns: 100% !important; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-32); }
  .footer-bottom { margin-top: var(--space-40); }
  /* Les 3 liens légaux, empilés : côte à côte les colonnes deviennent si
     étroites que chaque libellé se coupe sur deux lignes. */
  .footer-bottom .links { flex-direction: column; align-items: flex-start; gap: var(--space-12); }
  .footer-bottom .links > * { white-space: nowrap; }
  .h1 { font-size: calc(clamp(30px, 8vw, 40px) * var(--ts)); }
  .section { padding-block: var(--space-56); }
}

/* ---------- Mobile nav (drawer) ---------- */
.mobile-nav__panel { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--surface); z-index: 60;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.16,.84,.44,1); box-shadow: var(--shadow-md); overflow-y: auto; padding: var(--space-24); }
.mobile-nav.is-open .mobile-nav__panel { transform: none; }
.mobile-nav__backdrop { position: fixed; inset: 0; background: rgba(6,17,16,.4); z-index: 55; opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s; }
.mobile-nav.is-open .mobile-nav__backdrop { opacity: 1; visibility: visible; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-24); }
/* Accordéons du drawer : <details> replié par défaut. */
.mobile-nav__group { border-top: var(--border-w) solid var(--border); }
.mobile-nav__group > .g-title {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-12);
  padding: var(--space-16) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: calc(15px * var(--ts)); color: var(--ink);
}
/* Le marqueur natif (triangle) est retiré : on affiche notre chevron. */
.mobile-nav__group > .g-title::-webkit-details-marker { display: none; }
.mobile-nav__group > .g-title::marker { content: ''; }
.mobile-nav__group .g-chevron { flex: 0 0 auto; color: var(--muted); transition: transform .22s ease; }
.mobile-nav__group[open] > .g-title { color: var(--accent-ink); }
.mobile-nav__group[open] .g-chevron { transform: rotate(180deg); color: var(--accent-ink); }
.mobile-nav__group > .g-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.mobile-nav__links { padding-bottom: var(--space-16); }
.mobile-nav__group a { display: block; padding: 7px 0; color: var(--muted); font-size: calc(15px * var(--ts)); }
.mobile-nav__group a:hover { color: var(--accent-ink); }
.mobile-nav__cta { margin-top: var(--space-16); }
body.lpac-nav-open { overflow: hidden; }







/* ==========================================================================
   FICHES (Type de PAC, Marque, Modèle) — layout commun
   ========================================================================== */
.lpac-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-20);
  font-size: calc(13px * var(--ts)); font-family: var(--font-display); font-weight: 600; }
.lpac-crumbs a { color: var(--muted); transition: color .15s; }
.lpac-crumbs a:hover { color: var(--accent-ink); }
.lpac-crumbs span[aria-current] { color: var(--ink); }
.lpac-crumbs .lpac-ic { color: color-mix(in oklab, var(--muted) 55%, transparent); }

.lpac-sechead { max-width: 640px; margin-bottom: var(--space-32); }
.lpac-sechead .h2 { margin-top: var(--space-16); }

.ptype-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-56); align-items: center; }
.ptype-specs { display: grid; grid-template-columns: repeat(3, 1fr); }
.ptype-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-24); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-24); }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-24); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-24); }

.lpac-fact { padding: var(--space-24); display: flex; gap: var(--space-16); align-items: flex-start; }
.lpac-fact__ic { width: 44px; height: 44px; flex-shrink: 0; clip-path: var(--pentagon); background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.lpac-fact__k { font-family: var(--font-display); font-size: calc(11.5px * var(--ts)); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.lpac-fact__v { font-size: calc(15px * var(--ts)); margin-top: 4px; line-height: 1.45; }

.lpac-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-12); }
.lpac-list li { display: flex; gap: 10px; align-items: flex-start; font-size: calc(15px * var(--ts)); }
.lpac-list--muted li { color: var(--muted); }
.ptype-other:hover { border-color: var(--accent) !important; }

@media (max-width: 920px) {
  .ptype-specs, .ptype-facts, .proscons, .cards-3 { grid-template-columns: 1fr !important; }
  .cards-4 { grid-template-columns: 1fr 1fr !important; }
  /* `.ptype-hero figure { order: -1 }` retiré : vestige de l'ancien gabarit,
     il faisait remonter l'image au-dessus du titre sur mobile. L'ordre est
     désormais géré par .ptype-hero__text / .ptype-hero__fig. */
  .ptype-spec { border-left: 0 !important; border-top: var(--border-w) solid var(--border); }
  .ptype-specs > .ptype-spec:first-child { border-top: 0; }
}
@media (max-width: 560px) {
  .cards-4 { grid-template-columns: 1fr !important; }
}

/* Fiche Marque : en-tête */
.brand-head { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: var(--space-40); align-items: start; }
.brand-badge { width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: calc(24px * var(--ts)); overflow: hidden; }
.brand-badge img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.lpac-marque .lead p:last-child { margin-bottom: 0; }
@media (max-width: 920px) { .brand-head { grid-template-columns: 1fr !important; } }

/* Fiche Modèle */
.model-head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-40); align-items: center; }
.lpac-spec-row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-16); align-items: center; padding: var(--space-16) var(--space-24); }
@media (max-width: 920px) { .model-head { grid-template-columns: 1fr !important; } .model-head figure { order: -1; } }

/* Archives (Marques / Modèles) */
.lpac-filterbar { background: var(--surface); border-block: 1.5px solid var(--border); }
.lpac-filterbar__inner { display: flex; gap: var(--space-16); align-items: center; flex-wrap: wrap; padding-block: var(--space-16); }
.lpac-search { position: relative; flex: 1 1 360px; max-width: 480px; min-width: 220px; }
.lpac-search__ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); display: inline-flex; }
.lpac-search .input { background: var(--surface-2); }
.lpac-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.lpac-filter { border: 1.5px solid var(--border); background: var(--surface); color: var(--muted); border-radius: var(--radius-pill);
  padding: 9px 16px; font-family: var(--font-display); font-weight: 600; font-size: calc(13.5px * var(--ts)); white-space: nowrap; transition: all .15s ease; }
.lpac-filter:hover { border-color: var(--accent); color: var(--accent-ink); }
.lpac-filter.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.lpac-count { color: var(--muted); font-size: calc(14px * var(--ts)); margin-bottom: var(--space-24); font-family: var(--font-display); font-weight: 600; }
.brands-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-24); }
.brand-card { padding: var(--space-32); display: flex; flex-direction: column; }
.brand-card:hover { border-color: var(--accent) !important; }
/* minmax(0, 1fr) et non 1fr : sinon chaque colonne refuse de descendre sous la
   largeur de son mot le plus long, la carte s'élargit et déborde du conteneur. */
.brand-card__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); margin-top: var(--space-24); padding-top: var(--space-20); border-top: 1.5px solid var(--border); }
.brand-card__stats > div { min-width: 0; }
.brand-card__stats .bc-k {
  font-family: var(--font-display); font-weight: 600;
  font-size: calc(11px * var(--ts)); text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
}
.brand-card__stats .bc-v {
  font-family: var(--font-display); font-weight: 700;
  font-size: calc(15px * var(--ts)); margin-top: 4px; overflow-wrap: break-word;
}
@media (max-width: 860px) { .brands-grid { grid-template-columns: 1fr !important; } }

/* ==========================================================================
   BLOG — index (home.php), archive catégorie (category.php), carte d'article
   ========================================================================== */
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-20);
  font-size: calc(13px * var(--ts)); font-family: var(--font-display); font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs > span[aria-current] { color: var(--ink); }
.crumbs .lpac-ic { color: color-mix(in oklab, var(--muted) 55%, transparent); }

.blog-headsec { padding-top: calc(40px * var(--ds)); padding-bottom: var(--space-32); }
.blog-headsec--cat { padding-bottom: var(--space-24); }
.blog-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-56); align-items: center; }
.blog-hero__text { max-width: 640px; }
.blog-hero__accent { color: #12897B; } /* 4.10 sur --bg ; l'ancien #85B6B1 tombait à 2.15 */
.blog-hero__text .lead { margin-top: var(--space-16); }
.blog-hero__art { display: grid; place-items: center; }
.blog-hero__art svg { width: 100%; height: auto; }
.blog-hero__art img { width: 100%; height: auto; border-radius: var(--radius); }

.blog-catbar { position: sticky; top: 0; z-index: 30; background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px); border-bottom: var(--border-w) solid var(--border); }
.blog-cats { display: flex; gap: 8px; overflow-x: auto; padding-block: var(--space-16); scrollbar-width: none; }
.blog-cats::-webkit-scrollbar { display: none; }
.blog-cat { flex-shrink: 0; border: var(--border-w) solid var(--border); background: var(--surface); color: var(--muted);
  border-radius: var(--radius-pill); padding: 9px 18px; font-family: var(--font-display); font-weight: 600;
  font-size: calc(14px * var(--ts)); white-space: nowrap; text-decoration: none; transition: all .15s ease; }
.blog-cat:hover { border-color: var(--accent); color: var(--accent-ink); }
.blog-cat.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

.blog-listing { padding-top: var(--space-40); }
.blog-listing .container { display: grid; gap: var(--space-24); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-24); }
.blog-empty { text-align: center; padding-block: var(--space-56); }
.blog-more { display: flex; justify-content: center; margin-top: var(--space-40); }
.blog-more .nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.blog-more .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
  border: var(--border-w) solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); font-family: var(--font-display); font-weight: 600; text-decoration: none; transition: all .15s ease; }
.blog-more .page-numbers:hover { border-color: var(--accent); color: var(--accent-ink); }
.blog-more .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Carte d'article */
.blog-card { overflow: hidden; text-align: left; display: flex; flex-direction: column; padding: 0;
  background: var(--surface); text-decoration: none; color: inherit; }
.blog-card:hover { border-color: var(--accent) !important; }
/* Cadre en 3/2 : c'est le format des images à la une (1536x1024). En 16/10 le
   fond du conteneur dépassait autour de l'image. */
.blog-card__media { position: relative; background: var(--accent-soft); display: grid; place-items: center;
  aspect-ratio: 3 / 2; overflow: hidden; }
/* `place-items: center` empêche `height: 100%` de s'appliquer : le grid item
   n'étant pas étiré, sa hauteur de référence est la sienne. `place-self: stretch`
   le rétablit, et l'image couvre le cadre quel que soit son format. */
.blog-card__media .post-card__img { place-self: stretch; width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__scene { opacity: .9; color: var(--accent-ink); display: inline-flex; }
.blog-card__cat { position: absolute; top: var(--space-16); left: var(--space-16); font-family: var(--font-display);
  font-weight: 600; font-size: calc(12.5px * var(--ts)); color: var(--accent-ink); background: var(--surface);
  padding: 6px 12px; border-radius: var(--radius-pill); }
/* Titre + extrait calés en haut, méta (trait + durée + date) poussée en bas
   par `margin-top:auto` : les cartes d'une même rangée restent alignées même
   quand les titres n'ont pas le même nombre de lignes. */
.blog-card__body { padding: var(--space-24); display: flex; flex-direction: column; flex-grow: 1; justify-content: flex-start; }
.blog-card__title { font-size: calc(18px * var(--ts)); line-height: 1.15; }
.blog-card__ex { margin-top: var(--space-12); font-size: calc(14px * var(--ts)); line-height: 1.55; }
.blog-card__meta { margin-top: auto; padding-top: var(--space-16); position: relative;
  display: flex; align-items: center; gap: var(--space-16); color: var(--muted); font-size: calc(13px * var(--ts)); }
.blog-card__read { display: inline-flex; gap: 6px; align-items: center; }
.wavy-sep { position: absolute; top: 0; left: 0; right: 0; height: 9px; background: no-repeat center / 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 7 C 16 1.5, 30 1.5, 42 6 C 54 10.5, 66 11, 80 6.5 C 94 2, 106 1.5, 120 6.5 C 134 11.5, 146 11, 160 6 C 172 1.8, 186 2, 198 6.5' fill='none' stroke='%230B6E63' stroke-width='1.4' stroke-linecap='round' opacity='0.55'/></svg>"); }

/* Carte à la une : visuel à droite, texte à gauche. */
.blog-card--big { flex-direction: row-reverse; }
.blog-card--big .blog-card__media { width: 46%; flex-shrink: 0; aspect-ratio: auto; min-height: 300px; }
.blog-card--big .blog-card__body { padding: var(--space-40); }
.blog-card__eyebrow { align-self: flex-start; margin-bottom: var(--space-16); font-family: var(--font-display);
  font-weight: 700; font-size: calc(12px * var(--ts)); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.blog-card--big .blog-card__title { font-size: calc(30px * var(--ts)); }
.blog-card--big .blog-card__ex { font-size: calc(16px * var(--ts)); }

/* CTA du blog (carte teal) */
.blog-cta { overflow: hidden; background: #0B6E63; color: #fff; border-color: transparent; }
.blog-cta__text { padding: var(--space-56); }
.blog-cta__text .eyebrow { color: #fff; }
.blog-cta__text .h2 { margin-top: var(--space-16); }
.blog-cta__text .lead { margin-top: var(--space-16); color: rgba(255,255,255,.85); }
.blog-cta__form { padding: var(--space-40); color: var(--ink); }

@media (max-width: 920px) {
  .blog-hero { grid-template-columns: 1fr; }
  .blog-hero__art { display: none; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card--big { flex-direction: column; }
  .blog-card--big .blog-card__media { width: auto; aspect-ratio: 3 / 2; min-height: 0; }
  .blog-card--big .blog-card__body { padding: var(--space-24); }
  .blog-cta__text { padding: var(--space-32); }
}
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   ARTICLE — single.php
   ========================================================================== */
.article-head { padding-top: calc(24px * var(--ds)); padding-bottom: var(--space-24); }
/* Largeur commune à l'image du hero et au bloc sommaire, pour qu'ils soient
   parfaitement alignés l'un sous l'autre quelle que soit la largeur d'écran. */
.lpac-article { --article-col: 360px; }
.article-hero { display: grid; grid-template-columns: var(--article-col) 1fr; gap: var(--space-56); align-items: center; }
.article-hero__text { order: 2; }
.article-hero__fig { order: 1; margin: 0; }
.article-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: var(--space-20); }
.article-meta__i { color: var(--muted); font-size: calc(13px * var(--ts)); display: inline-flex; gap: 7px; align-items: center; }
/* `text-wrap: pretty` et non `balance` (hérité de .display) : « balance »
   égalise les lignes et laissait un large vide à droite du titre. */
.article-title { font-size: calc(clamp(30px, 3.6vw, 46px) * var(--ts)); text-wrap: pretty; }

/* Dates sous l'image du hero */
.article-dates { margin-top: var(--space-12); display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-16);
  font-size: calc(12.5px * var(--ts)); color: var(--muted); font-family: var(--font-display); }
.article-dates time { color: var(--ink); font-weight: 600; }
.article-lead { margin-top: var(--space-16); }
/* 3/2 et non 4/3 : c'est le format natif des photos (1536x1024 ici). Avec un
   cadre en 4/3, « cover » rognait 11 % de l'image sur les côtés. */
.article-figcard { aspect-ratio: 3 / 2; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; padding: 0; }
.article-figimg { width: 100%; height: 100%; object-fit: cover; }
.article-figscene { width: 82%; display: inline-flex; }

/* Un peu plus large que le conteneur standard du site, pour donner de l'air
   à l'ensemble sommaire + article. Les trois zones de la page (hero, corps,
   « à lire ensuite ») partagent la même largeur pour rester alignées. */
.article-wrap,
.lpac-article .article-head .container,
.lpac-article .article-related .container { max-width: 1440px; }
/* Marges latérales généreuses réservées au desktop : sur mobile on garde le
   padding standard du conteneur, sinon il ne reste presque plus de place. */
@media (min-width: 921px) {
  .article-wrap,
  .lpac-article .article-head .container,
  .lpac-article .article-related .container { padding-inline: var(--space-72); }
}
.article-wrap { margin-top: var(--space-24); padding-bottom: var(--space-72); }
/* Sommaire à gauche, texte à droite. L'ordre du HTML garde le contenu en
   premier (SEO, lecteurs d'écran) ; seule la position visuelle est inversée. */
.article-grid { display: grid; grid-template-columns: var(--article-col) minmax(0, 1fr); gap: var(--space-40); align-items: start; }
.article-aside { order: -1; }

/* Sidebar */
.article-aside { position: sticky; top: var(--space-24); display: grid; gap: var(--space-20); }
.article-toc { padding: var(--space-20); }
.article-toc__t { font-family: var(--font-display); font-size: calc(15px * var(--ts)); font-weight: 800; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); }
/* Masque la puce native du <summary> (triangle) dans tous les moteurs. */
.article-toc__t { list-style: none; }
.article-toc__t::-webkit-details-marker { display: none; }
.article-toc__chev { display: none; color: var(--muted); transition: transform .2s ease; }
.article-toc[open] .article-toc__chev { transform: rotate(180deg); }
.article-toc ul { list-style: none; padding: 0; margin: var(--space-16) 0 0; display: grid; gap: 2px; }
.article-toc a { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; text-decoration: none; color: var(--muted);
  font-family: var(--font-display); font-weight: 600; font-size: calc(14px * var(--ts)); transition: color .15s ease; }
.article-toc a:hover { color: var(--accent-ink); }
.article-toc .toc-n { font-weight: 700; color: var(--accent); }

/* Prose */
/* Centré dans sa colonne (sinon le texte se colle à gauche et laisse une
   bande vide à droite), et un peu plus large qu'avant.
   `width: 100%` est indispensable : sans lui, les marges auto font passer
   l'élément en largeur « au contenu », et un enfant large (tableau d'encart)
   déborde alors de la colonne sur mobile. */
.prose { max-width: 900px; min-width: 0; width: 100%; margin-inline: auto; }
.prose > p { font-size: calc(17px * var(--ts)); line-height: 1.75; color: color-mix(in oklab, var(--ink) 88%, var(--muted)); margin: 0 0 var(--space-16); }
.prose h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(28px * var(--ts)); line-height: 1.15;
  margin: var(--space-40) 0 var(--space-16); scroll-margin-top: var(--space-24); color: var(--accent); }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: calc(21px * var(--ts)); margin: var(--space-32) 0 var(--space-12); }
.prose ul, .prose ol { margin: var(--space-20) 0; padding-left: 0; list-style: none; display: grid; gap: var(--space-12); }
.prose ul li { position: relative; padding-left: 30px; font-size: calc(16px * var(--ts)); line-height: 1.65; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 38px; font-size: calc(16px * var(--ts)); line-height: 1.65; counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700;
  font-size: calc(13px * var(--ts)); display: grid; place-items: center; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); margin: var(--space-24) 0; }
.prose blockquote { margin: var(--space-24) 0; padding: var(--space-20) var(--space-24); background: var(--surface); border: var(--border-w) solid var(--border);
  border-left: 4px solid var(--accent); border-radius: var(--radius-sm); font-size: calc(17px * var(--ts)); line-height: 1.6; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--space-24) 0; font-size: calc(15px * var(--ts)); }
.prose th, .prose td { text-align: left; padding: var(--space-12) var(--space-16); border-bottom: var(--border-w) solid var(--border); }
.prose th { font-family: var(--font-display); font-weight: 700; }

/* À lire ensuite */
.article-related { background: var(--surface-2); }
.article-related__t { margin-bottom: var(--space-24); }
.related-card { text-align: left; padding: var(--space-24); background: var(--surface); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; }
.related-card:hover { border-color: var(--accent) !important; }
.related-card__cat { font-family: var(--font-display); font-size: calc(11px * var(--ts)); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
.related-card__t { font-size: calc(18px * var(--ts)); margin-top: 10px; line-height: 1.2; }
.related-card__more { margin-top: var(--space-16); display: inline-flex; gap: 7px; align-items: center; color: var(--accent-ink);
  font-size: calc(13.5px * var(--ts)); font-weight: 600; font-family: var(--font-display); }

@media (max-width: 920px) {
  /* minmax(0,1fr) et non 1fr : sinon un contenu large (tableau d'encart)
     impose sa min-content à la colonne et fait déborder la page en largeur. */
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; }
  /* Colonne unique : le `gap` de 56px devient un écart vertical trop grand
     entre le titre et l'image, on le resserre. */
  .article-hero { grid-template-columns: 1fr; gap: var(--space-24); }
  .article-hero__text { order: 1; }
  .article-hero__fig { order: 2; }
  /* Sommaire repliable : seul le mobile affiche le chevron et rend le
     titre cliquable (sur desktop il reste ouvert en permanence). */
  .article-toc__chev { display: inline-flex; }
  .article-toc__t { cursor: pointer; }
}

/* Affinage typo mobile (prose) */
@media (max-width: 560px) {
  .prose h2 { font-size: calc(23px * var(--ts)); margin-top: var(--space-32); }
  .prose h3 { font-size: calc(19px * var(--ts)); }
  .prose > p { font-size: calc(16px * var(--ts)); }
  .prose h2, .prose h3, .prose p, .prose li { overflow-wrap: break-word; }
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
  .article-title { font-size: calc(30px * var(--ts)); }
}

/* Titre du hero : accroche plus longue que l'ancienne, on réduit un peu le
   corps pour qu'elle tienne sur 2 lignes sans déborder de la colonne. */
.hero-copy .h1 { font-size: calc(clamp(30px, 3.6vw, 44px) * var(--ts)); }

/* ==========================================================================
   ENCARTS D'ARTICLE (shortcodes, cf. inc/article-inserts.php)
   Portage de ArticleInserts.jsx.
   ========================================================================== */
.art-insert { margin: var(--space-32) 0; }
.art-insert-head { display: block; font-family: var(--font-display); font-weight: 700; font-size: calc(15px * var(--ts)); color: var(--ink); margin-bottom: var(--space-16); }
.art-insert-foot { display: block; margin-top: var(--space-12); font-size: calc(12px * var(--ts)); color: var(--muted); }

/* Graphique en barres */
.art-chart { background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius); padding: var(--space-32); }
.art-chart-rows { display: grid; gap: var(--space-16); }
.art-chart-row { display: grid; grid-template-columns: 150px 1fr; gap: var(--space-16); align-items: center; }
.art-chart-label { font-size: calc(13.5px * var(--ts)); font-weight: 600; color: var(--ink); }
.art-chart-track { background: var(--surface-2); border-radius: var(--radius-pill); overflow: hidden; }
.art-chart-bar { min-width: 56px; height: calc(30px * var(--ds)); border-radius: var(--radius-pill); display: flex; align-items: center;
  justify-content: flex-end; padding-inline: 12px; font-family: var(--font-display); font-weight: 700; font-size: calc(13px * var(--ts));
  background: var(--accent-soft); color: var(--accent-ink); }
.art-chart-bar.is-hot { background: var(--accent); color: #fff; }

/* « Le saviez-vous ? » */
.art-dyk { display: block; background: var(--accent-soft); border-radius: var(--radius); padding: var(--space-24) var(--space-32); }
.art-dyk-head { display: flex; align-items: center; gap: var(--space-12); margin-bottom: var(--space-12); }
.art-dyk-pic { flex-shrink: 0; width: calc(46px * var(--ds)); height: calc(46px * var(--ds)); clip-path: var(--pentagon);
  background: var(--accent); color: #fff; display: grid; place-items: center; }
.art-dyk-title { font-family: var(--font-display); font-weight: 700; font-size: calc(21px * var(--ts)); color: var(--accent-ink); }
.art-dyk-body { color: var(--ink); font-size: calc(15px * var(--ts)); line-height: 1.6; }
.art-dyk-body p { margin: 6px 0 0; font-size: inherit; line-height: inherit; }

/* Tableau */
.art-table-scroll { border: var(--border-w) solid var(--border); border-radius: var(--radius); overflow: hidden; overflow-x: auto; }
.art-table table { width: 100%; border-collapse: collapse; font-size: calc(14.5px * var(--ts)); margin: 0; }
.art-table th { background: var(--surface-2); padding: calc(13px * var(--ds)) var(--space-20); font-family: var(--font-display); font-weight: 700;
  font-size: calc(12.5px * var(--ts)); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: left; border: 0; }
.art-table td { padding: calc(13px * var(--ds)) var(--space-20); border-top: var(--border-w) solid var(--border); border-bottom: 0; text-align: left; }
.art-table th.is-num, .art-table td.is-num { text-align: right; }
.art-table td.is-key { font-weight: 700; font-family: var(--font-display); }
.art-table tbody tr:nth-child(even) { background: color-mix(in oklab, var(--surface-2) 55%, transparent); }

/* Image légendée */
.art-figure-frame { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.art-figure-frame img { width: 100%; display: block; margin: 0; border-radius: 0; }
.art-figure-cap { margin-top: var(--space-12); font-size: calc(13px * var(--ts)); color: var(--muted); font-style: italic; }

/* Chiffre-clé */
.art-key { display: flex; gap: var(--space-24); align-items: center; background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: var(--space-32); }
.art-key-value { font-family: var(--font-display); font-weight: 700; font-size: calc(clamp(40px, 5vw, 58px) * var(--ts)); line-height: 1;
  letter-spacing: -.02em; color: var(--accent); flex-shrink: 0; }
.art-key-label { font-family: var(--font-display); font-weight: 700; font-size: calc(17px * var(--ts)); }
.art-key-sub { margin-top: 4px; opacity: .75; font-size: calc(14px * var(--ts)); line-height: 1.5; }

@media (max-width: 560px) {
  .art-chart-row { grid-template-columns: 1fr; }
  .art-chart-label { margin-bottom: 4px; }
  .art-key { flex-direction: column; align-items: flex-start; gap: var(--space-16); }
  .art-chart, .art-dyk, .art-key { padding: var(--space-20); }
  /* Plutôt que d'écraser 4 colonnes dans 320px, on laisse le tableau
     défiler horizontalement à l'intérieur de son cadre. */
  .art-table table { min-width: 460px; }
  .art-table th, .art-table td { padding-inline: var(--space-16); white-space: nowrap; }
}

/* ==========================================================================
   Trait « à la main » pleine largeur (séparateur de sections)
   Motif SVG répété horizontalement : l'ondulation garde sa fréquence quelle
   que soit la largeur de l'écran, contrairement à un tracé étiré.
   ========================================================================== */
.lpac-rule {
  height: 14px;
  /* Marge du haut plus courte que celle du bas : le trait est ainsi rattaché
     visuellement au hero qui le précède, plutôt que centré entre les deux. */
  margin-block: var(--space-8) var(--space-40);
  background-repeat: repeat-x;
  background-position: center;
  background-size: 600px 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 14'><path d='M0 8 C 12 8, 26 3.4, 48 4.2 C 70 5, 82 10.8, 106 10.4 C 130 10, 146 4, 172 4.8 C 196 5.6, 212 10.2, 238 9.6 C 262 9, 278 3.6, 306 4.6 C 332 5.6, 346 11.4, 372 10.6 C 396 9.9, 414 4.2, 442 5.4 C 468 6.5, 484 10.8, 512 9.8 C 538 8.9, 556 5.2, 578 6.6 C 588 7.3, 594 8, 600 8' fill='none' stroke='%230B6E63' stroke-width='2' stroke-linecap='round' opacity='0.65'/></svg>");
}
@media (max-width: 920px) { .lpac-rule { margin-block: var(--space-12) var(--space-24); background-size: 420px 12px; height: 12px; } }

/* ==========================================================================
   FICHE TYPE DE PAC (single-lpac_pac_type.php)
   Même ossature que l'article : hero, trait, sommaire + corps, blocs.
   ========================================================================== */
.ptype-head { padding-top: calc(24px * var(--ds)); padding-bottom: var(--space-24); }
/* Texte à gauche, image à droite. */
.ptype-hero { display: grid; grid-template-columns: 1fr var(--article-col); gap: var(--space-56); align-items: center; }
.lpac-ptype { --article-col: 360px; }
.ptype-hero__text { order: 1; }
.ptype-hero__fig { order: 2; margin: 0; }
.ptype-title { font-size: calc(clamp(30px, 3.6vw, 46px) * var(--ts)); margin-top: var(--space-16); text-wrap: pretty; }
.ptype-lead { margin-top: var(--space-16); }
.ptype-actions { display: flex; gap: var(--space-12); margin-top: var(--space-32); flex-wrap: wrap; }
.ptype-figcard { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; padding: 0; }
.ptype-figimg { width: 100%; height: 100%; object-fit: cover; }
.ptype-figscene { display: inline-flex; transform: scale(1.35); color: var(--accent-ink); }

/* Chiffres clés sous l'image */
.ptype-keyfacts { margin-top: var(--space-16); display: grid; gap: var(--space-12); }
.ptype-keyfact { display: flex; gap: var(--space-12); align-items: center; }
.ptype-keyfact__ic { width: 30px; height: 30px; flex-shrink: 0; clip-path: var(--pentagon); background: var(--accent-soft);
  color: var(--accent-ink); display: grid; place-items: center; }
.ptype-keyfact__k { display: block; font-family: var(--font-display); font-size: calc(11px * var(--ts));
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ptype-keyfact__v { display: block; font-family: var(--font-display); font-weight: 700; font-size: calc(14.5px * var(--ts)); line-height: 1.3; }

/* Colonne principale */
.ptype-main { max-width: 900px; min-width: 0; width: 100%; margin-inline: auto; }
.ptype-h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(28px * var(--ts));
  line-height: 1.15; letter-spacing: var(--display-spacing); color: var(--accent); margin: var(--space-40) 0 var(--space-16);
  scroll-margin-top: var(--space-24); }
.ptype-block { margin-top: var(--space-8); }
.ptype-para { font-size: calc(17px * var(--ts)); line-height: 1.75; color: color-mix(in oklab, var(--ink) 88%, var(--muted)); margin: 0 0 var(--space-16); }

/* Encadré « l'essentiel » (vise l'extrait optimisé) */
.ptype-essentiel { background: var(--accent-soft); border-radius: var(--radius); padding: var(--space-24) var(--space-32); margin-bottom: var(--space-32); }
.ptype-essentiel__t { font-family: var(--font-display); font-weight: 700; font-size: calc(19px * var(--ts));
  color: var(--accent-ink); margin: 0 0 var(--space-16); scroll-margin-top: var(--space-24); }
.ptype-essentiel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-12); }
.ptype-essentiel li { position: relative; padding-left: 28px; font-size: calc(15.5px * var(--ts)); line-height: 1.55; color: var(--ink); }
.ptype-essentiel li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }

/* Grille de faits (fonctionnement) */
.ptype-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); }

/* Avantages / inconvénients */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-24); }
.proscons__card { padding: var(--space-32); }
.proscons__head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-20); }
.proscons__ic { width: 36px; height: 36px; flex-shrink: 0; clip-path: var(--pentagon); display: grid; place-items: center; }
.proscons__ic.is-pro { background: var(--accent-soft); color: var(--accent-ink); }
.proscons__ic.is-con { background: var(--surface-2); color: var(--muted); }
.proscons__t { font-size: calc(19px * var(--ts)); }
.lpac-list__ic { flex-shrink: 0; margin-top: 2px; display: inline-flex; }
.lpac-list__ic.is-pro { color: var(--accent); }

/* Encadré réglementation */
.ptype-note { display: flex; gap: var(--space-16); padding: var(--space-24); align-items: flex-start; margin-top: var(--space-20); }
.ptype-note__ic { width: 40px; height: 40px; flex-shrink: 0; clip-path: var(--pentagon); background: var(--surface-2);
  color: var(--accent-ink); display: grid; place-items: center; }
.ptype-note__t { font-family: var(--font-display); font-weight: 700; font-size: calc(15px * var(--ts)); margin-bottom: 4px; }
.ptype-note p { margin: 0; font-size: calc(15px * var(--ts)); line-height: 1.6; color: var(--muted); }

/* Budget & aides */
.ptype-budget { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: var(--space-32); }
.ptype-budget__k { display: block; font-family: var(--font-display); font-size: calc(11.5px * var(--ts));
  text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.ptype-budget__v { display: block; font-family: var(--font-display); font-weight: 700; color: var(--accent-soft);
  font-size: calc(clamp(26px, 3vw, 34px) * var(--ts)); line-height: 1.1; margin-top: 6px; letter-spacing: -.02em; }
.ptype-budget__aides { margin: var(--space-20) 0 var(--space-24); font-size: calc(15px * var(--ts)); line-height: 1.6; opacity: .85; }

/* FAQ */
.ptype-faq { display: grid; gap: var(--space-12); }
.ptype-faq__item { padding: var(--space-20) var(--space-24); }
.ptype-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-16); font-family: var(--font-display); font-weight: 700; font-size: calc(16px * var(--ts)); color: var(--ink); }
.ptype-faq__item summary::-webkit-details-marker { display: none; }
.ptype-faq__chev { color: var(--muted); flex-shrink: 0; transition: transform .2s ease; }
.ptype-faq__item[open] .ptype-faq__chev { transform: rotate(180deg); }
.ptype-faq__item p { margin: var(--space-12) 0 0; font-size: calc(15.5px * var(--ts)); line-height: 1.65; color: var(--muted); }

/* Comparatif */
.ptype-compare { background: var(--surface-2); }
.ptype-other { padding: var(--space-24); display: flex; flex-direction: column; gap: var(--space-12); }
.ptype-other__t { font-size: calc(18px * var(--ts)); line-height: 1.15; }
.ptype-other__more { margin-top: auto; display: inline-flex; gap: 7px; align-items: center; color: var(--accent-ink);
  font-size: calc(13.5px * var(--ts)); font-weight: 600; font-family: var(--font-display); }

/* CTA */
.ptype-cta { overflow: hidden; background: var(--feature-bg); color: var(--feature-ink); border-color: transparent; }
.ptype-cta__text { padding: var(--space-56); }
.ptype-cta__text .h2 { margin-top: var(--space-16); }
.ptype-cta__text .lead { margin-top: var(--space-16); }
.ptype-cta__form { padding: var(--space-40); color: var(--ink); }

@media (max-width: 920px) {
  .ptype-hero { grid-template-columns: 1fr; gap: var(--space-24); }
  .ptype-hero__text { order: 1; }
  .ptype-hero__fig { order: 2; }
  .ptype-facts, .proscons { grid-template-columns: 1fr; }
  .ptype-cta__text { padding: var(--space-32); }
  .ptype-cta__form { padding: var(--space-24); }
}
@media (max-width: 560px) {
  .ptype-h2 { font-size: calc(23px * var(--ts)); margin-top: var(--space-32); }
  .ptype-essentiel { padding: var(--space-20); }
  .ptype-budget, .proscons__card { padding: var(--space-20); }
}

/* ==========================================================================
   BLOCS PARTAGÉS (template-parts/blocks/*) — source unique
   ========================================================================== */
/* cta-conversion */
.lpac-cta { overflow: hidden; background: var(--feature-bg); color: var(--feature-ink); border-color: transparent; }
.lpac-cta__text { padding: var(--space-56); }
.lpac-cta__text .h2 { margin-top: var(--space-16); }
.lpac-cta__text .lead { margin-top: var(--space-16); }
.lpac-cta__points { list-style: none; padding: 0; margin: var(--space-32) 0 0; display: grid; gap: 12px; }
.lpac-cta__points li { display: flex; gap: 10px; align-items: center; }
.lpac-cta__check { color: var(--feature-accent); display: inline-flex; flex-shrink: 0; }
.lpac-cta__form { padding: var(--space-40); color: var(--ink); }
@media (max-width: 920px) {
  .lpac-cta__text { padding: var(--space-32); }
  .lpac-cta__form { padding: var(--space-24); }
}

/* faq : réponse en HTML simple */
.ptype-faq__a { margin-top: var(--space-12); }
.ptype-faq__a p { margin: 0 0 var(--space-12); font-size: calc(15.5px * var(--ts)); line-height: 1.65; color: var(--muted); }
.ptype-faq__a p:last-child { margin-bottom: 0; }
.ptype-faq__a a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   LANDINGS FINANCEMENT (template-parts/landing.php)
   ========================================================================== */
.lpac-landing { --article-col: 360px; }
.landing-head { padding-top: calc(24px * var(--ds)); padding-bottom: var(--space-24); }
.landing-hero { max-width: 860px; }
.landing-title { font-size: calc(clamp(30px, 3.6vw, 46px) * var(--ts)); margin-top: var(--space-16); text-wrap: pretty; }
.landing-lead { margin-top: var(--space-16); }
.landing-actions { display: flex; gap: var(--space-12); margin-top: var(--space-32); flex-wrap: wrap; }
.landing-dates { margin: var(--space-20) 0 0; font-size: calc(12.5px * var(--ts)); color: var(--muted); font-family: var(--font-display); }
.landing-dates time { color: var(--ink); font-weight: 600; }
.landing-related { background: var(--surface-2); }
.landing-related__d { font-size: calc(13.5px * var(--ts)); line-height: 1.5; margin: var(--space-8) 0 0; }

/* keyfigures */
.lpac-kf { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-16); margin-top: var(--space-32); }
.lpac-kf[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.lpac-kf[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
.lpac-kf__item { background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius);
  padding: var(--space-20); display: flex; flex-direction: column; gap: 4px; }
.lpac-kf__ic { width: 30px; height: 30px; clip-path: var(--pentagon); background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; margin-bottom: 6px; }
.lpac-kf__v { font-family: var(--font-display); font-weight: 700; font-size: calc(19px * var(--ts)); color: var(--accent);
  line-height: 1.15; letter-spacing: -.02em; }
.lpac-kf__k { font-size: calc(13px * var(--ts)); color: var(--muted); line-height: 1.4; }

/* callout */
.lpac-callout { border-radius: var(--radius); padding: var(--space-32); margin-top: var(--space-40); }
.lpac-callout.is-soft { background: var(--accent-soft); color: var(--ink); }
.lpac-callout.is-dark { background: var(--ink); color: var(--bg); }
.lpac-callout.is-line { background: var(--surface); border: var(--border-w) solid var(--border); }
.lpac-callout__head { display: flex; align-items: center; gap: var(--space-12); margin-bottom: var(--space-16); }
.lpac-callout__ic { width: 40px; height: 40px; flex-shrink: 0; clip-path: var(--pentagon); background: var(--accent);
  color: #fff; display: grid; place-items: center; }
.lpac-callout__t { font-family: var(--font-display); font-weight: 700; font-size: calc(21px * var(--ts));
  color: var(--accent-ink); margin: 0; scroll-margin-top: var(--space-24); letter-spacing: -.02em; }
.lpac-callout.is-dark .lpac-callout__t { color: var(--accent-soft); }
.lpac-callout__body p { margin: 0 0 var(--space-12); font-size: calc(16px * var(--ts)); line-height: 1.7; }
.lpac-callout__body p:last-child { margin-bottom: 0; }
.lpac-callout__body ul { margin: var(--space-12) 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.lpac-callout__body li { position: relative; padding-left: 26px; font-size: calc(15.5px * var(--ts)); line-height: 1.6; }
.lpac-callout__body li::before { content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 11px; border-radius: 3px; background: var(--accent); }
.lpac-callout__body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 920px) {
  .lpac-kf, .lpac-kf[data-count="4"] { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .lpac-kf, .lpac-kf[data-count="2"], .lpac-kf[data-count="4"] { grid-template-columns: 1fr; }
  .lpac-callout { padding: var(--space-20); }
}

/* ==========================================================================
   BLOC « arguments » : réassurance en colonnes (picto + titre + description)
   Colonnes centrées, sans fond ni bordure.
   ========================================================================== */
.lpac-args { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-24); }
.lpac-args[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lpac-args[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lpac-arg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.lpac-arg__ic { width: 44px; height: 44px; flex-shrink: 0; clip-path: var(--pentagon); background: var(--accent-soft);
  color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 4px; }
.lpac-arg__t { font-family: var(--font-display); font-weight: 700; font-size: calc(14.5px * var(--ts));
  color: var(--ink); line-height: 1.25; letter-spacing: -.01em; }
.lpac-arg__d { font-size: calc(13px * var(--ts)); line-height: 1.5; color: var(--muted); max-width: 26ch; }

@media (max-width: 860px) {
  .lpac-args, .lpac-args[data-cols="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-20); }
}
@media (max-width: 460px) {
  .lpac-args, .lpac-args[data-cols="2"], .lpac-args[data-cols="3"] { grid-template-columns: 1fr; }
}

/* Intégration dans le tunnel : bandeau au-dessus de la navigation. */
.flow-args { padding: 0 var(--space-40) var(--space-24); }
.flow-args .lpac-arg__ic { width: 38px; height: 38px; }
@media (max-width: 880px) { .flow-args { padding: 0 var(--space-24) var(--space-20); } }

/* ==========================================================================
   CORRECTIFS MOBILE — page d'accueil
   ========================================================================== */
/* Marques : la grille de logos ne doit pas être élargie par le texte. */
.brands-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16); }
.brand-logo span { text-align: center; overflow-wrap: anywhere; line-height: 1.2; }

@media (max-width: 920px) {
  /* Marques : le titre passe avant le visuel des logos. */
  .brands-band > .card { order: 2; }
  .brands-band > div:not(.card) { order: 1; }

  /* Réassurance d'accueil : les libellés doivent pouvoir passer à la ligne. */
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .trust-item { padding: 10px 12px; min-width: 0; }
  .trust-item .t { white-space: normal; }
  .trust-item > div { min-width: 0; }

  /* Fonctionnement : le trait horizontal disparaît, on relie verticalement. */
  .htw-track { grid-template-columns: 1fr; gap: var(--space-32); }
  .htw-track::before { display: none; }
  .htw-step { position: relative; }
  .htw-step + .htw-step::before {
    content: ""; position: absolute; left: 50%; top: calc(var(--space-32) * -1);
    width: 3px; height: var(--space-32); transform: translateX(-50%);
    background-image: linear-gradient(180deg, var(--accent) 55%, transparent 0);
    background-size: 3px 14px; background-repeat: repeat-y; opacity: .85;
  }
}

@media (max-width: 560px) {
  .brands-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip { grid-template-columns: minmax(0, 1fr); }
}

/* Carrousel des types : une carte à la fois, sans découpe. */
@media (max-width: 920px) {
  .types-carousel { scroll-snap-type: x mandatory; }
  .type-card { scroll-snap-align: center; }
}

/* ==========================================================================
   PAGE CONTACT (page-contact.php)
   ========================================================================== */
.contact-head { padding-top: calc(24px * var(--ds)); padding-bottom: var(--space-24); }
.contact-hero { max-width: 720px; }
.contact-title { font-size: calc(clamp(30px, 3.6vw, 46px) * var(--ts)); margin-top: var(--space-16); text-wrap: pretty; }
.contact-lead { margin-top: var(--space-16); }
.contact-wrap { padding-bottom: var(--space-72); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-40); align-items: start; max-width: 1100px; margin-inline: auto; }
.contact-intro { margin-bottom: var(--space-24); }
.contact-form { padding: var(--space-32); }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); }
.contact-fields .field.is-full { grid-column: 1 / -1; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-submit { margin-top: var(--space-24); }
.contact-legal { margin: var(--space-16) 0 0; font-size: calc(12.5px * var(--ts)); color: var(--muted); display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.contact-legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.contact-alert { display: flex; gap: var(--space-16); padding: var(--space-24); margin-bottom: var(--space-24); align-items: flex-start; }
.contact-alert.is-ok { background: var(--accent-soft); border-color: transparent; }
.contact-alert.is-error { background: var(--surface-2); border-color: var(--border); }
.contact-alert__ic { width: 40px; height: 40px; flex-shrink: 0; clip-path: var(--pentagon); display: grid; place-items: center; background: var(--accent); color: #fff; }
.contact-alert.is-error .contact-alert__ic { background: var(--ink); }
.contact-alert__t { font-family: var(--font-display); font-weight: 700; font-size: calc(16px * var(--ts)); margin-bottom: 4px; }
.contact-alert p { margin: 0; font-size: calc(14.5px * var(--ts)); color: var(--muted); line-height: 1.6; }
/* Arguments empilés dans la colonne latérale : alignés à gauche. */
.lpac-args--stack { gap: var(--space-24); }
.lpac-args--stack .lpac-arg { align-items: flex-start; text-align: left; }
.lpac-args--stack .lpac-arg__d { max-width: none; }

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { order: 2; }
}
@media (max-width: 560px) {
  .contact-fields { grid-template-columns: 1fr; }
  .contact-form { padding: var(--space-20); }
}

/* ==========================================================================
   MARQUE (logo + nom) — verrouillage sur 2 lignes, header / footer / tunnel
   ========================================================================== */
/* L'ouvreur de sous-menu est un <button> : « .lpac-front button { font: inherit } »
   (0,1,1) l'emportait sur « .nav-link » (0,1,0) et lui imposait la police du
   corps de page. On repasse devant en spécificité. */
.lpac-front .nav-link {
  font-family: var(--font-display);
  font-size: calc(14px * var(--ts));
  font-weight: 600;
}
/* Nom de marque sur deux lignes, quelle que soit la place disponible. */
.brand { align-items: center; }
.brand__name { line-height: 1.1; }
.brand__name br { display: block; }

/* Le logo fait exactement la hauteur des 2 lignes de texte, et reste carré.
   La taille est exprimée en `em` : 2 lignes x 1.1 d'interligne = 2.2em. Elle
   suit donc automatiquement le corps de la marque (17px au header, 15px sur
   mobile), sans valeur en dur à maintenir. */
.brand { font-size: 17px; align-items: center; }
.brand__name { font-size: inherit; }
.brand > svg { width: 2.2em; height: 2.2em; flex-shrink: 0; }

/* Déclaré après la règle générale pour ne pas être écrasé par l'ordre du fichier. */
@media (max-width: 1040px) { .brand { font-size: 15px; } }

/* ==========================================================================
   BLOC « estimator-card » : appel vers le simulateur d'aides
   ========================================================================== */
.aides-side { color: var(--ink); }
.est-card { padding: var(--space-32); box-shadow: var(--shadow-md); border-color: transparent; }
.est-card__eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700; font-size: calc(12px * var(--ts));
  text-transform: uppercase; letter-spacing: .08em; }
.est-card__t { font-size: calc(23px * var(--ts)); margin-top: var(--space-12); line-height: 1.15; }
.est-card__lines { list-style: none; padding: 0; margin: var(--space-24) 0 0; display: grid; gap: 0; }
.est-card__lines li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-16);
  padding: 11px 0; border-bottom: var(--border-w) solid var(--border); }
.est-card__k { font-size: calc(14.5px * var(--ts)); color: var(--muted); }
.est-card__v { font-family: var(--font-display); font-weight: 700; font-size: calc(14.5px * var(--ts));
  color: var(--accent-ink); white-space: nowrap; }
.est-card__total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-16);
  margin-top: var(--space-20); }
.est-card__total-k { font-family: var(--font-display); font-weight: 700; font-size: calc(14px * var(--ts)); color: var(--ink); }
.est-card__total-v { font-family: var(--font-display); font-weight: 700; color: var(--accent);
  font-size: calc(clamp(22px, 2.4vw, 28px) * var(--ts)); letter-spacing: -.02em; white-space: nowrap; }
.est-card__cta { margin-top: var(--space-24); }
.est-card__note { margin: var(--space-12) 0 0; font-size: calc(12px * var(--ts)); color: var(--muted);
  display: flex; gap: 7px; align-items: center; justify-content: center; text-align: center; }

@media (max-width: 560px) { .est-card { padding: var(--space-20); } }

/* ==========================================================================
   Sommaire : la carte passe sur le conteneur, le <details> devient nu.
   Les deux boutons vivent dans la carte mais hors du repli, pour rester
   visibles quand le sommaire est fermé (mobile).
   ========================================================================== */
.toc-block { padding: var(--space-20); }
.toc-block .article-toc { padding: 0; background: none; border: 0; box-shadow: none; }
.toc-block .article-toc[hidden] { display: none; }
/* Séparateur seulement si le sommaire est réellement affiché. */
.toc-block .article-toc:not([hidden]) + .toc-actions {
  margin-top: var(--space-16); padding-top: var(--space-16);
  border-top: var(--border-w) solid var(--border);
}
.toc-actions { display: grid; gap: var(--space-8); }
.toc-actions .btn { font-size: calc(14px * var(--ts)); padding: 11px 16px; }

/* ==========================================================================
   Hero des landings : deux conteneurs (titre + actions | chiffres clés)
   ========================================================================== */
/* 60/40 : le visuel occupe 40 % de la largeur, le bloc titre + actions 60 %.
   minmax(0,…) pour qu'aucune des deux colonnes ne puisse déborder. */
.landing-hero { display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
  gap: var(--space-56); align-items: center; max-width: none; }
.landing-hero__text { min-width: 0; }
.landing-hero__side { min-width: 0; }
/* Empilés dans la colonne de droite plutôt qu'en bandeau sur 3 colonnes. */
.landing-hero__side .lpac-kf,
.landing-hero__side .lpac-kf[data-count="2"],
.landing-hero__side .lpac-kf[data-count="4"] { grid-template-columns: minmax(0, 1fr); margin-top: 0; gap: var(--space-12); }
.landing-hero__side .lpac-kf__item { flex-direction: row; align-items: center; gap: var(--space-16); padding: var(--space-16) var(--space-20); }
.landing-hero__side .lpac-kf__ic { margin-bottom: 0; }
.landing-hero__side .lpac-kf__v { font-size: calc(17px * var(--ts)); }

@media (max-width: 920px) {
  .landing-hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-24); }
}

/* Un montant ne doit jamais se couper (« 18 000 – 30 000 » / « € ») :
   il reste insécable, c'est le libellé qui passe à la ligne. */
.landing-hero__side .lpac-kf__item { flex-wrap: wrap; }
.landing-hero__side .lpac-kf__v { white-space: nowrap; flex: 0 0 auto; }
.landing-hero__side .lpac-kf__k { flex: 1 1 100%; padding-left: calc(30px + var(--space-16)); margin-top: 2px; }

/* Visuel du hero des landings.
   Par défaut l'image REMPLIT le cadre (bords arrondis, aucune marge blanche).
   La variante `is-contain` sert aux logos, qu'un recadrage amputerait. */
.landing-fig { margin: 0; }
.landing-figcard { aspect-ratio: 16 / 10; background: var(--surface-2); display: grid; place-items: center;
  overflow: hidden; padding: 0; border-radius: var(--radius); }
.landing-figcard .landing-figimg { width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: cover; object-position: center; display: block; border-radius: inherit; }
/* Logos : visibles en entier, avec un peu d'air autour. */
.landing-figcard.is-contain { padding: var(--space-24); }
.landing-figcard.is-contain .landing-figimg { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.landing-figscene { width: 84%; display: inline-flex; color: var(--accent-ink); }

/* Lien « Lire l'article complet » sous un chapô de section. */
.lpac-readmore { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-20);
  font-family: var(--font-display); font-weight: 700; font-size: calc(15px * var(--ts));
  color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1.5px; transition: color .15s ease; }
.lpac-readmore:hover { color: var(--accent); }

/* Fil d'Ariane et méta du hero des landings */
.landing-hero__text .crumbs { margin-bottom: var(--space-12); }
.landing-title { margin-top: 0; }
.landing-dates { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-20); }
.landing-dates__i { display: inline-flex; align-items: center; gap: 6px; }

/* ---- Pages légales (template page-legal.php) --------------------------- */
/* Gabarit minimal : un hero sobre puis le texte. Rien d'autre. */
:root { --legal-w: 940px; }
/* Un seul bloc centré, plus large que la colonne d'article : le hero et le
   texte partagent la même largeur et le même axe. */
.legal-hero { max-width: var(--legal-w); margin-inline: auto; }
.legal-title { font-size: calc(38px * var(--ts)); line-height: 1.1; margin: 0 0 var(--space-12); }
.legal-date { color: var(--muted); font-size: calc(14.5px * var(--ts)); margin: 0; }
.legal-wrap { padding-top: var(--space-32); padding-bottom: var(--space-72); }
.legal-prose { max-width: var(--legal-w); margin-inline: auto; }
/* Le premier titre suit le trait : pas de marge haute superflue. */
.legal-prose > h2:first-child { margin-top: 0; }
.legal-prose h2 { color: var(--title-accent); }
.legal-prose h3 { font-size: calc(19px * var(--ts)); }

/* Le tableau des finalités : deux colonnes de texte, il se réduit tout seul. */
.legal-prose .wp-block-table { margin: var(--space-24) 0; }
.legal-prose table { table-layout: fixed; }

@media (max-width: 720px) {
  .legal-title { font-size: calc(28px * var(--ts)); }
  .legal-wrap { padding-top: var(--space-32); padding-bottom: var(--space-40); }
  /* En dessous de deux colonnes lisibles, on laisse le tableau défiler seul
     plutôt que d'élargir la page. */
  .legal-prose .wp-block-table { overflow-x: auto; }
  .legal-prose table { table-layout: auto; min-width: 460px; }
}

/* ---- Consentement cookies (inc/consent.php + assets/js/consent.js) ------ */
/* Bandeau au premier passage, puis fenêtre de réglage détaillé rouvrable
   depuis le pied de page. Structure reprise de Comparabois, habillage Canopée. */
.cc-root[hidden] { display: none !important; }
body.cc-locked { overflow: hidden; }

/* Bandeau ------------------------------------------------------------------ */
.cc-banner {
  position: fixed; left: var(--space-16); right: var(--space-16); bottom: var(--space-16);
  z-index: 9990; max-width: 1100px; margin-inline: auto;
  background: var(--accent); color: #fff;
  border: var(--border-w) solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(4,53,47,.28);
  animation: cc-up .35s cubic-bezier(.4,0,.2,1);
}
.cc-banner[hidden] { display: none; }
@keyframes cc-up { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cc-banner { animation: none; } }

.cc-banner__in {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-24) var(--space-32); align-items: center;
  padding: var(--space-20) var(--space-24);
}
.cc-banner__t {
  display: flex; align-items: center; gap: var(--space-8);
  font-family: var(--font-display); font-weight: 700;
  font-size: calc(16px * var(--ts)); color: #fff; margin: 0 0 var(--space-6);
}
.cc-banner__ic { display: inline-flex; color: var(--accent-soft); }
.cc-banner__d {
  font-size: calc(14px * var(--ts)); line-height: 1.55;
  color: rgba(255,255,255,.82); margin: 0; max-width: 74ch;
}
.cc-banner__actions { display: flex; align-items: center; gap: var(--space-12); flex-wrap: wrap; justify-content: flex-end; }

/* Boutons : sur fond teal, la version fantôme passe en contour clair. */
.cc-btn { padding: 11px 20px; font-size: calc(14.5px * var(--ts)); white-space: nowrap; }
.lpac-front .cc-banner .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.lpac-front .cc-banner .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.lpac-front .cc-banner .btn-primary { background: #fff; color: var(--accent-ink); }
.lpac-front .cc-banner .btn-primary:hover { background: var(--accent-soft); color: var(--accent-ink); }
/* Déclaré avec .lpac-front : à spécificité égale, la règle générique
   .lpac-front .cc-link (plus bas) l'emporterait et rendrait le lien
   illisible sur le fond teal. */
.lpac-front .cc-banner .cc-link { color: rgba(255,255,255,.88); }
.lpac-front .cc-banner .cc-link:hover { color: #fff; }

/* Lien nu, utilisé pour l'action secondaire (« Personnaliser », « Tout refuser »). */
.lpac-front .cc-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: calc(14px * var(--ts)); font-weight: 600;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
  transition: color .15s ease;
}
.lpac-front .cc-link:hover { color: var(--accent-ink); }

/* Fenêtre de réglage ------------------------------------------------------- */
.cc-modal { position: fixed; inset: 0; z-index: 9995; display: flex; align-items: center; justify-content: center; padding: var(--space-16); }
.cc-modal[hidden] { display: none; }
.cc-backdrop { position: absolute; inset: 0; background: rgba(8,33,29,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: cc-fade .2s ease; }
@keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }

.cc-dialog {
  position: relative; display: flex; flex-direction: column;
  width: 100%; max-width: 560px; max-height: calc(100vh - var(--space-32));
  background: var(--surface); border: var(--border-w) solid var(--border);
  border-radius: var(--radius); box-shadow: 0 32px 64px rgba(4,53,47,.3);
  animation: cc-pop .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes cc-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cc-backdrop, .cc-dialog { animation: none; } }

.cc-dialog__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-16);
  padding: var(--space-20) var(--space-24); border-bottom: var(--border-w) solid var(--border);
}
.cc-dialog__head h2 { font-size: calc(20px * var(--ts)); color: var(--title-accent); margin: 0; letter-spacing: var(--display-spacing); }
.cc-close {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 34px; height: 34px; padding: 0; cursor: pointer;
  background: transparent; border: 0; border-radius: var(--radius-sm);
  color: var(--muted); transition: background .15s ease, color .15s ease;
}
.cc-close:hover { background: var(--accent-soft); color: var(--accent-ink); }
.cc-close svg { display: block; }

.cc-dialog__body { flex: 1 1 auto; overflow-y: auto; padding: var(--space-20) var(--space-24); }
.cc-dialog__intro { font-size: calc(14.5px * var(--ts)); line-height: 1.6; color: var(--muted); margin: 0 0 var(--space-20); }

/* Une ligne par catégorie -------------------------------------------------- */
.cc-cat {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-16);
  align-items: center; margin-bottom: var(--space-12);
  padding: var(--space-16); background: var(--bg);
  border: var(--border-w) solid var(--border); border-radius: var(--radius-sm);
}
.cc-cat.is-locked { background: var(--accent-soft); border-color: transparent; }
.cc-cat__t { font-family: var(--font-display); font-weight: 700; font-size: calc(15px * var(--ts)); color: var(--ink); margin: 0 0 var(--space-4); }
.cc-cat__d { font-size: calc(13.5px * var(--ts)); line-height: 1.5; color: var(--muted); margin: 0; }

/* Interrupteur ------------------------------------------------------------- */
.cc-switch { display: inline-flex; align-items: center; gap: var(--space-8); cursor: pointer; flex: 0 0 auto; }
.cc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-switch__track {
  position: relative; display: inline-block; width: 44px; height: 24px;
  background: var(--border); border-radius: var(--radius-pill); transition: background .2s ease;
}
.cc-switch__thumb {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(19,36,26,.25);
  transition: transform .2s ease;
}
.cc-switch input:checked ~ .cc-switch__track { background: var(--accent); }
.cc-switch input:checked ~ .cc-switch__track .cc-switch__thumb { transform: translateX(20px); }
.cc-switch input:focus-visible ~ .cc-switch__track { outline: 2px solid var(--accent); outline-offset: 3px; }
.cc-switch--locked { cursor: not-allowed; }
.cc-switch--locked .cc-switch__track { background: var(--accent); opacity: .55; }
.cc-switch__status { font-size: calc(12px * var(--ts)); color: var(--feature-muted); font-weight: 600; }

.cc-dialog__link { font-size: calc(13.5px * var(--ts)); text-align: center; margin: var(--space-20) 0 0; }
.cc-dialog__link a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

.cc-dialog__foot {
  display: flex; align-items: center; justify-content: flex-end; gap: var(--space-12); flex-wrap: wrap;
  padding: var(--space-16) var(--space-24) var(--space-20);
  background: var(--bg); border-top: var(--border-w) solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}
.cc-dialog__foot .cc-link { margin-right: auto; }

/* Bouton du pied de page --------------------------------------------------- */
.lpac-front .cc-footer-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .15s ease;
}
/* Pas d'opacité ici : elle se multipliait à la couleur héritée et faisait
   retomber le contraste à 3.85 sur le teal du pied de page. */
.lpac-front .cc-footer-btn:hover { color: #fff; }

/* Mobile ------------------------------------------------------------------- */
@media (max-width: 860px) {
  .cc-banner__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-16); }
  .cc-banner__actions { justify-content: stretch; }
  .cc-banner__actions .cc-btn { flex: 1 1 calc(50% - var(--space-12)); justify-content: center; }
  .cc-banner__actions .cc-link { flex: 1 1 100%; text-align: center; order: 3; }
}
@media (max-width: 560px) {
  .cc-banner { left: var(--space-8); right: var(--space-8); bottom: var(--space-8); }
  .cc-banner__in { padding: var(--space-16); }
  .cc-banner__d { font-size: calc(13.5px * var(--ts)); }
  .cc-cat { grid-template-columns: minmax(0, 1fr); }
  .cc-dialog__foot { justify-content: stretch; }
  .cc-dialog__foot .cc-btn { flex: 1 1 auto; justify-content: center; }
  .cc-dialog__foot .cc-link { flex: 1 1 100%; text-align: center; margin-right: 0; order: 3; }
}

/* ---- Fiche marque : carte d'identité (single-lpac_marque.php) ----------- */
/* Rendu à plat, sans cartes : la section a déjà son fond, les pictos et un
   filet suffisent à séparer les informations. */
/* Deux conteneurs : identité à gauche, gammes à droite. */
.brand-id { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-40) var(--space-56); align-items: start; }
.brand-id__col { min-width: 0; }

/* Les faits passent en deux colonnes dans la moitié gauche. */
.brand-id__facts {
  list-style: none; margin: 0 0 var(--space-32); padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-20) var(--space-16);
}
.brand-id__fact {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto; align-items: center;
  column-gap: var(--space-12); row-gap: 2px;
}
.brand-id__ic {
  grid-row: 1 / 3; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: 0 0 34px; color: var(--accent-ink);
  background: var(--accent-soft); clip-path: var(--pentagon);
}
.brand-id__k {
  font-family: var(--eyebrow-font); font-size: calc(11.5px * var(--ts));
  font-weight: var(--eyebrow-weight); letter-spacing: var(--eyebrow-spacing);
  text-transform: var(--eyebrow-transform); color: var(--muted);
}
.brand-id__v {
  font-family: var(--font-display); font-weight: 700;
  font-size: calc(14.5px * var(--ts)); color: var(--ink); line-height: 1.3;
  overflow-wrap: break-word;
}

.brand-id__note { padding: var(--space-20) 0; border-top: var(--border-w) solid var(--border); }
.brand-id__note:last-child { padding-bottom: 0; }
.brand-id__nt {
  font-family: var(--font-display); font-weight: 700;
  font-size: calc(15px * var(--ts)); color: var(--title-accent);
  margin: 0 0 var(--space-6);
}
.brand-id__nd {
  margin: 0;
  font-size: calc(14.5px * var(--ts)); line-height: 1.65;
  color: color-mix(in oklab, var(--ink) 88%, var(--muted));
}

/* Colonne des gammes : une liste, pas des cartes. */
.brand-gammes__t {
  font-family: var(--font-display); font-weight: 700;
  font-size: calc(17px * var(--ts)); color: var(--title-accent);
  margin: 0 0 var(--space-16);
}
.brand-gammes { display: grid; gap: var(--space-12); }
.brand-gamme { padding: var(--space-20) var(--space-24); }
.brand-gamme__n { font-family: var(--font-display); font-weight: 700; font-size: calc(15px * var(--ts)); color: var(--ink); margin: 0 0 var(--space-4); }
.brand-gamme__d { margin: 0; font-size: calc(14px * var(--ts)); line-height: 1.6; color: var(--muted); }

@media (max-width: 980px) {
  /* Les deux conteneurs s'empilent : le catalogue passe sous l'identité. */
  .brand-id { grid-template-columns: minmax(0, 1fr); gap: var(--space-32); }
  .brand-id__col--gammes { padding-top: var(--space-24); border-top: var(--border-w) solid var(--border); }
}
@media (max-width: 520px) {
  .brand-id__facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-16); }
}

/* Colonnes de hauteurs inégales : la plus courte s'arrête à son contenu au
   lieu de s'étirer sur la hauteur de sa voisine. */
.proscons.is-top { align-items: start; }

/* Titre de section seul et centré (ni surtitre, ni trait). */
.lpac-sechead.is-centered { max-width: 760px; margin-inline: auto; text-align: center; }
/* Sans surtitre, le titre n'a pas à porter la marge qui l'en séparait. */
.lpac-sechead.is-centered > h2:first-child,
.lpac-sechead.is-centered > .h2:first-child { margin-top: 0; }

/* ---- Bloc FAQ centré (template-parts/blocks/faq.php) -------------------- */
/* Une seule règle pour tout le site : fiches type et marque, landings. */
.lpac-faq-block { max-width: 820px; margin-inline: auto; width: 100%; }
.lpac-faq-block > .ptype-h2 { text-align: center; margin-bottom: var(--space-32); }
.lpac-faq-block .ptype-faq { gap: var(--space-12); }
/* La question reste alignée à gauche : centrer le texte d'un accordéon nuit
   à la lecture dès que la question tient sur deux lignes. */
.lpac-faq-block .ptype-faq__item summary { text-align: left; gap: var(--space-16); }
.lpac-faq-block .ptype-faq__item[open] summary { color: var(--title-accent); }
.lpac-faq-block .ptype-faq__item[open] .ptype-faq__chev { color: var(--title-accent); }
.lpac-faq-block .ptype-faq__item summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm);
}

@media (max-width: 720px) {
  .lpac-faq-block > .ptype-h2 { margin-bottom: var(--space-24); }
}

/* Marques concurrentes, dans le hero de la fiche marque. */
.brand-rivals { margin-top: var(--space-32); }
.brand-rivals__k {
  display: block; margin-bottom: var(--space-12);
  font-family: var(--eyebrow-font); font-size: calc(11.5px * var(--ts));
  font-weight: var(--eyebrow-weight); letter-spacing: var(--eyebrow-spacing);
  text-transform: var(--eyebrow-transform); color: var(--muted);
}
.brand-rivals__list { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.brand-rivals__list a.chip { transition: background .15s ease, color .15s ease; }
.brand-rivals__list a.chip:hover { background: var(--accent); color: #fff; }

/* Sources consultées : alignées sur la FAQ (même largeur, même axe). */
.brand-sources { max-width: 820px; margin: var(--space-40) auto 0; width: 100%; }
.brand-sources__t {
  font-family: var(--font-display); font-weight: 700;
  font-size: calc(14px * var(--ts)); margin-bottom: var(--space-8);
}

/* Cartes de marque en mobile : trois colonnes dans 330 px, il faut resserrer
   la typo sinon chaque valeur part sur quatre lignes. */
@media (max-width: 720px) {
  .brand-card { padding: var(--space-24); }
  .brand-card__stats { gap: var(--space-12); padding-top: var(--space-16); margin-top: var(--space-20); }
  /* Les libellés se toucheraient sans cet écart : « POSITIONNEMENT » est long. */
  .brand-card__stats .bc-k { font-size: calc(9.5px * var(--ts)); letter-spacing: .04em; line-height: 1.25; }
  /* Pas de césure automatique : elle coupait « selon » en « se-lon ». */
  .brand-card__stats .bc-v { font-size: calc(12.5px * var(--ts)); line-height: 1.35; hyphens: manual; }
}
@media (max-width: 420px) {
  .brand-card__stats .bc-v { font-size: calc(12px * var(--ts)); }
}

/* Deux appels à l'action dans la barre du header. */
.header-actions { display: flex; align-items: center; gap: var(--space-12); }
.lpac-front .header-cta--second { white-space: nowrap; }
/* Sous 1300 px, le menu et les deux boutons ne tiennent plus ensemble, même
   compactés : le second est réservé au drawer, où il apparaît sous « Faire un
   devis ». Le seuil était à 1180, ce qui laissait la barre déborder de 45 px
   sur un écran de 1280. */
@media (max-width: 1300px) {
  .lpac-front .header-cta--second { display: none; }
}

/* Entrée du drawer sans sous-menu : même habillage qu'un summary, mais c'est
   un lien qui mène directement à la page. */
.lpac-front .mobile-nav__plain {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-12); padding: var(--space-16) 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: calc(15px * var(--ts)); color: var(--ink); text-decoration: none;
}
.lpac-front .mobile-nav__plain:hover { color: var(--accent-ink); }
.lpac-front .mobile-nav__plain:hover .g-chevron { color: var(--accent-ink); }

/* ---- Résultat de l'estimation d'aides (inc/aides-calcul.php) ------------ */
.aides-total {
  display: grid; justify-items: center; gap: var(--space-4);
  padding: var(--space-32) var(--space-24); margin-bottom: var(--space-24);
  background: var(--feature-bg); border-radius: var(--radius); text-align: center;
}
.aides-total__k {
  font-family: var(--eyebrow-font); font-size: calc(12px * var(--ts));
  font-weight: var(--eyebrow-weight); letter-spacing: var(--eyebrow-spacing);
  text-transform: var(--eyebrow-transform); color: var(--feature-muted);
}
.aides-total__v {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: calc(clamp(38px, 7vw, 56px) * var(--ts)); line-height: 1;
  letter-spacing: var(--display-spacing); color: var(--accent-ink);
}
.aides-total__d { font-size: calc(14.5px * var(--ts)); color: var(--feature-muted); }

.aides-list { list-style: none; margin: 0 0 var(--space-24); padding: 0; display: grid; gap: 0; }
.aides-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px var(--space-16); align-items: baseline;
  padding: var(--space-16) 0; border-bottom: var(--border-w) solid var(--border);
}
.aides-list__k { font-family: var(--font-display); font-weight: 700; font-size: calc(16px * var(--ts)); }
.aides-list__v {
  grid-column: 2; grid-row: 1 / 3; align-self: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: calc(20px * var(--ts)); color: var(--accent-ink); white-space: nowrap;
}
.aides-list__d { grid-column: 1; font-size: calc(14px * var(--ts)); line-height: 1.5; color: var(--muted); }

.aides-budget {
  padding: var(--space-20) var(--space-24); margin-bottom: var(--space-24);
  background: var(--surface-2); border-radius: var(--radius-sm);
}
.aides-budget__row {
  display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-16);
  align-items: baseline; justify-content: space-between;
  font-size: calc(15px * var(--ts)); padding: var(--space-8) 0;
}
.aides-budget__row.is-strong { border-top: var(--border-w) solid var(--border); margin-top: var(--space-8); padding-top: var(--space-16); }
.aides-budget__row.is-strong strong { color: var(--accent-ink); font-size: calc(19px * var(--ts)); }
.aides-budget__row strong { font-family: var(--font-display); white-space: nowrap; }

.aides-alert {
  padding: var(--space-20) var(--space-24); margin-bottom: var(--space-24);
  background: #FDF3E3; border-radius: var(--radius-sm);
  border-left: 4px solid #C97B1E;
}
.aides-alert p { margin: 0; font-size: calc(15px * var(--ts)); line-height: 1.6; color: #6B4310; }
.aides-alert p + p { margin-top: var(--space-8); }

.aides-notes { list-style: none; margin: 0 0 var(--space-24); padding: 0; display: grid; gap: var(--space-12); }
.aides-notes li {
  position: relative; padding-left: 26px;
  font-size: calc(14.5px * var(--ts)); line-height: 1.6; color: var(--muted);
}
.aides-notes li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 12px; height: 12px; border-radius: 3px; background: var(--accent-soft);
}
.aides-legal { font-size: calc(13px * var(--ts)); line-height: 1.6; color: var(--muted); margin: 0; }

@media (max-width: 560px) {
  .aides-total { padding: var(--space-24) var(--space-16); }
  .aides-list li { grid-template-columns: minmax(0, 1fr); }
  .aides-list__v { grid-column: 1; grid-row: auto; font-size: calc(22px * var(--ts)); }
  .aides-list__d { order: 3; }
}

/* ---- Fiche technique d'une marque -------------------------------------- */
/* Grille de spécifications : chaque paire est autonome, séparée par un filet
   plutôt qu'enfermée dans un tableau. Deux colonnes en desktop. */
.spec-grid {
  margin: 0 0 var(--space-40);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-56);
}
.spec {
  display: grid; gap: var(--space-4);
  padding: var(--space-20) 0;
  border-top: var(--border-w) solid var(--border);
  min-width: 0;
}
/* La première ligne de chaque colonne n'a pas de filet au-dessus. */
.spec:nth-child(1), .spec:nth-child(2) { border-top: 0; padding-top: 0; }
.spec__k {
  font-family: var(--eyebrow-font); font-size: calc(11.5px * var(--ts));
  font-weight: var(--eyebrow-weight); letter-spacing: var(--eyebrow-spacing);
  text-transform: var(--eyebrow-transform); color: var(--muted);
}
.spec__v {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: calc(15.5px * var(--ts)); line-height: 1.45; color: var(--ink);
  overflow-wrap: break-word;
}

/* Technologies signature : bandeau vert pleine largeur, pas une carte qui
   flotte à côté d'un tableau deux fois plus haut. */
.signature {
  background: var(--bg); border-radius: var(--radius);
  padding: var(--space-32);
}
.signature__head { display: flex; align-items: center; gap: var(--space-12); margin-bottom: var(--space-24); }
.signature__ic {
  display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px;
  background: var(--accent-soft); color: var(--accent-ink); clip-path: var(--pentagon);
}
.signature__t {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: calc(19px * var(--ts)); color: var(--ink);
  letter-spacing: var(--display-spacing);
}
.signature__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16) var(--space-32);
}
.signature__list li {
  display: flex; align-items: flex-start; gap: var(--space-12);
  font-size: calc(15px * var(--ts)); line-height: 1.5; color: var(--ink);
}
.signature__check {
  display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px;
  margin-top: 1px; border-radius: 50%; background: var(--accent); color: #fff;
}
.signature__check svg { display: block; }

@media (max-width: 900px) {
  .spec-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .spec:nth-child(2) { border-top: var(--border-w) solid var(--border); padding-top: var(--space-20); }
  .signature__list { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
}
@media (max-width: 560px) {
  .signature { padding: var(--space-24) var(--space-20); }
  .signature__t { font-size: calc(17px * var(--ts)); }
}

/* ---- Budget : grille tarifaire ----------------------------------------- */
/* Identité du bloc : le montant. Chaque configuration est une ligne, le prix
   est aligné à droite en teal, taille supérieure au libellé. */
.pricing { list-style: none; margin: 0 0 var(--space-32); padding: 0; }
.pricing__row {
  display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-24);
  align-items: baseline; justify-content: space-between;
  padding: var(--space-16) 0; border-bottom: var(--border-w) solid var(--border);
}
.pricing__row:first-child { border-top: var(--border-w) solid var(--border); }
.pricing__conf { font-size: calc(15.5px * var(--ts)); color: var(--ink); min-width: 0; }
.pricing__amount {
  font-family: var(--font-display); font-weight: 700;
  font-size: calc(19px * var(--ts)); color: var(--accent-ink); white-space: nowrap;
}

/* Repères chiffrés sous la grille : trois colonnes, sans cadre. */
.pricing-keys {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-24); padding: var(--space-24) 0;
  border-top: var(--border-w) solid var(--border);
  border-bottom: var(--border-w) solid var(--border);
}
.pricing-key { display: grid; gap: var(--space-4); min-width: 0; }
.pricing-key__k {
  font-family: var(--eyebrow-font); font-size: calc(11.5px * var(--ts));
  font-weight: var(--eyebrow-weight); letter-spacing: var(--eyebrow-spacing);
  text-transform: var(--eyebrow-transform); color: var(--muted);
}
.pricing-key__v { font-family: var(--font-display); font-weight: 700; font-size: calc(15px * var(--ts)); line-height: 1.4; }
.pricing-note { margin: var(--space-20) 0 0; max-width: 1000px; font-size: calc(13.5px * var(--ts)); line-height: 1.65; color: var(--muted); }

/* ---- Fiabilité : fiche en lignes --------------------------------------- */
/* Identité du bloc : la lecture ligne à ligne, picto + intitulé + réponse,
   comme une fiche technique de garantie. */
.trust-list { list-style: none; margin: 0; padding: 0; max-width: 1000px; }
.trust-row {
  display: grid; grid-template-columns: 34px 210px minmax(0, 1fr);
  gap: var(--space-16); align-items: baseline;
  padding: var(--space-20) 0; border-bottom: var(--border-w) solid var(--border);
}
.trust-row:first-child { border-top: var(--border-w) solid var(--border); }
.trust-row__ic {
  grid-row: 1 / 2; display: grid; place-items: center;
  width: 34px; height: 34px; align-self: start;
  background: var(--accent-soft); color: var(--accent-ink); clip-path: var(--pentagon);
}
.trust-row__k { font-family: var(--font-display); font-weight: 700; font-size: calc(15px * var(--ts)); color: var(--ink); }
.trust-row__v { font-size: calc(15px * var(--ts)); line-height: 1.6; color: var(--muted); min-width: 0; }
.trust-note {
  display: flex; gap: var(--space-12); align-items: flex-start;
  margin: var(--space-24) 0 0; max-width: 1000px;
  font-size: calc(14.5px * var(--ts)); line-height: 1.65; color: var(--muted);
}
.trust-note__ic { color: var(--accent); flex: 0 0 auto; margin-top: 1px; }

/* ---- Verdict : la décision --------------------------------------------- */
/* Identité du bloc : fond vert, avis en tête, deux colonnes tranchées. */
.verdict-lead {
  max-width: 900px; margin: 0 0 var(--space-40);
  font-family: var(--font-display); font-weight: 600;
  font-size: calc(clamp(17px, 1.9vw, 20px) * var(--ts)); line-height: 1.5;
  color: var(--feature-ink); text-wrap: pretty;
}
.verdict { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-32); }
.verdict__col { padding: var(--space-24); background: var(--bg); border-radius: var(--radius); }
.verdict__t {
  margin: 0 0 var(--space-16); font-family: var(--font-display); font-weight: 700;
  font-size: calc(16px * var(--ts)); color: var(--ink);
}
.verdict__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-12); }
.verdict__col li {
  display: flex; gap: var(--space-12); align-items: flex-start;
  font-size: calc(14.5px * var(--ts)); line-height: 1.55; color: var(--ink);
}
.verdict__m {
  display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px;
  margin-top: 1px; border-radius: 50%; color: #fff;
}
.is-pro .verdict__m { background: var(--accent); }
.is-con .verdict__m { background: var(--muted); }

.verdict-cases__t {
  margin: var(--space-40) 0 var(--space-20);
  font-family: var(--font-display); font-weight: 700;
  font-size: calc(18px * var(--ts)); color: var(--feature-ink);
}
.verdict-cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-24); }
.verdict-case { display: grid; gap: var(--space-6); padding-top: var(--space-16); border-top: 2px solid var(--feature-accent); }
.verdict-case__t { font-family: var(--font-display); font-weight: 700; font-size: calc(15px * var(--ts)); color: var(--feature-ink); }
.verdict-case__d { margin: 0; font-size: calc(14px * var(--ts)); line-height: 1.6; color: var(--feature-muted); }

@media (max-width: 900px) {
  .pricing-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-row { grid-template-columns: 30px minmax(0, 1fr); }
  .trust-row__ic { width: 30px; height: 30px; }
  .trust-row__v { grid-column: 2; }
  .verdict { grid-template-columns: minmax(0, 1fr); gap: var(--space-20); }
  .verdict-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pricing__amount { font-size: calc(17px * var(--ts)); }
  .pricing-keys { grid-template-columns: minmax(0, 1fr); gap: var(--space-16); }
  .verdict-cases { grid-template-columns: minmax(0, 1fr); }
}

/* Fiabilité & SAV : bloc centré dans la page, sous un titre lui-même centré. */
.trust-list { max-width: 1040px; margin-inline: auto; }
.trust-note { max-width: 1040px; margin-inline: auto; }

/* ---- Masquage accessible ------------------------------------------------ */
/* Classe standard de WordPress, absente jusqu'ici de la feuille de style : les
   titres réservés aux lecteurs d'écran s'affichaient donc à l'écran, comme le
   « Pagination des publications » au-dessus des boutons de page. On les masque
   visuellement sans les retirer de l'arbre d'accessibilité. */
.screen-reader-text:not(:focus):not(:active) {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ==========================================================================
   ENCARTS D'ARTICLE 2 — rythme et conversion
   Chaque encart hérite de .art-insert (marges verticales communes) et se pose
   dans le flux du texte, à la largeur de la colonne de lecture.
   ========================================================================== */

/* --- FAQ repliable : le bloc partagé, recalé dans le corps du texte -------- */
.art-faq .ptype-block { margin: 0; }
.art-faq .ptype-h2 { font-size: calc(clamp(21px, 2.2vw, 26px) * var(--ts)); margin: 0 0 var(--space-20); }
.art-faq .ptype-faq { max-width: none; }

/* --- Étapes numérotées ---------------------------------------------------- */
.art-steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.art-step { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: var(--space-16);
  padding: 0 0 var(--space-24) 0; }
.art-step:last-child { padding-bottom: 0; }
/* Le filet vertical relie les pastilles entre elles, jamais après la dernière. */
.art-step::before { content: ""; position: absolute; left: 18px; top: 34px; bottom: 0; width: 2px; background: var(--border); }
.art-step:last-child::before { display: none; }
.art-step-n { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  font-size: calc(15px * var(--ts)); position: relative; z-index: 1; }
.art-step-body { padding-top: 5px; }
.art-step-t { display: block; font-family: var(--font-display); font-weight: 700; font-size: calc(16.5px * var(--ts)); color: var(--ink); }
.art-step-d { display: block; margin-top: 4px; color: var(--muted); font-size: calc(15px * var(--ts)); line-height: 1.6; }

/* --- Duel ----------------------------------------------------------------- */
.art-vs-card { background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius); overflow: hidden; }
.art-vs-head, .art-vs-row {
  display: grid;
  /* minmax(0,…) : sans lui une valeur longue élargirait sa colonne et
     désaxerait toutes les lignes du tableau. */
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 26px minmax(0, 1fr);
  align-items: center; gap: var(--space-12);
  padding: var(--space-16) var(--space-20);
}
.art-vs-head { background: var(--feature-bg); padding-block: var(--space-16); }
.art-vs-name { font-family: var(--font-display); font-weight: 700; font-size: calc(14.5px * var(--ts));
  color: var(--feature-ink); text-align: center; line-height: 1.25; }
.art-vs-vs { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: calc(11px * var(--ts));
  color: var(--feature-muted); text-transform: uppercase; letter-spacing: .08em; }
.art-vs-row + .art-vs-row, .art-vs-row { border-top: 1px solid var(--border); }
.art-vs-crit { font-size: calc(14.5px * var(--ts)); font-weight: 600; color: var(--ink); }
.art-vs-val { text-align: center; font-size: calc(15px * var(--ts)); color: var(--muted); }
.art-vs-val.is-win { color: var(--accent-ink); font-weight: 700; font-family: var(--font-display); }
.art-vs-sep { height: 100%; }
.art-vs-verdict { margin: 0; padding: var(--space-20); background: var(--surface-2); border-top: 1px solid var(--border);
  font-size: calc(15px * var(--ts)); line-height: 1.6; color: var(--ink); }

@media (max-width: 620px) {
  /* Les deux camps sont annoncés une seule fois, en tête de carte. Les rappeler
     à chaque ligne donnait des libellés qui se coupaient différemment d'une
     ligne à l'autre, et la valeur mise en avant changeait de police d'un côté
     puis de l'autre : le tableau semblait se dérégler à chaque rangée.
     Ici, colonnes fixes, même typographie des deux côtés, et seule la couleur
     désigne l'avantage. */
  .art-vs-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); padding: var(--space-12) var(--space-16); }
  .art-vs-head .art-vs-crit, .art-vs-vs { display: none; }
  .art-vs-name { font-size: calc(12.5px * var(--ts)); text-align: left; }
  .art-vs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 4px; padding: var(--space-16); }
  .art-vs-crit { grid-column: 1 / -1; font-family: var(--font-display); font-size: calc(14px * var(--ts)); }
  .art-vs-sep { display: none; }
  .art-vs-val, .art-vs-val.is-win {
    text-align: left;
    font-family: var(--font-body);
    font-size: calc(14.5px * var(--ts));
    line-height: 1.4;
  }
  .art-vs-val::before { content: none; }
}

/* --- Liste à cocher ------------------------------------------------------- */
.art-check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-12); }
.art-check-item { margin: 0; }
/* La case native est masquée sans être retirée du DOM : le clavier et les
   lecteurs d'écran continuent de la voir, seul le rendu est repris. */
.art-check-box { position: absolute; opacity: 0; width: 1px; height: 1px; }
.art-check-item label { display: flex; gap: var(--space-16); align-items: flex-start; cursor: pointer;
  background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius-sm);
  padding: var(--space-16); transition: border-color .15s ease, background .15s ease; }
.art-check-item label:hover { border-color: var(--accent); }
.art-check-box:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.art-check-mark { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border);
  display: grid; place-items: center; color: transparent; margin-top: 1px; transition: all .15s ease; }
.art-check-box:checked + label { background: var(--accent-soft); border-color: var(--accent); }
.art-check-box:checked + label .art-check-mark { background: var(--accent); border-color: var(--accent); color: #fff; }
.art-check-box:checked + label .art-check-t { text-decoration: line-through; text-decoration-color: var(--accent); opacity: .75; }
.art-check-t { display: block; font-family: var(--font-display); font-weight: 700; font-size: calc(15.5px * var(--ts)); color: var(--ink); }
.art-check-d { display: block; margin-top: 3px; color: var(--muted); font-size: calc(14px * var(--ts)); line-height: 1.55; }

/* --- Colonnes libres ------------------------------------------------------ */
.art-cols-grid { display: grid; gap: var(--space-20); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.art-cols-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.art-cols-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.art-col { background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius); padding: var(--space-24); }
.art-col-ic { display: grid; place-items: center; width: 38px; height: 38px; clip-path: var(--pentagon);
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: var(--space-12); }
.art-col-t { display: block; font-family: var(--font-display); font-weight: 700; font-size: calc(16px * var(--ts));
  color: var(--ink); margin-bottom: 6px; }
.art-col-body { color: var(--muted); font-size: calc(14.5px * var(--ts)); line-height: 1.6; }
.art-col-body p { margin: 0 0 8px; font-size: inherit; line-height: inherit; }
.art-col-body p:last-child { margin-bottom: 0; }

@media (max-width: 780px) {
  .art-cols-grid, .art-cols-grid[data-cols="3"], .art-cols-grid[data-cols="4"] { grid-template-columns: minmax(0, 1fr); }
}

/* --- Cartes --------------------------------------------------------------- */
.art-cards-grid { display: grid; gap: var(--space-16); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.art-cards-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.art-cards-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.art-card { display: flex; flex-direction: column; background: var(--surface); border: var(--border-w) solid var(--border);
  border-radius: var(--radius); padding: var(--space-20); }
.art-card.is-link { transition: border-color .15s ease, transform .15s ease; }
.art-card.is-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.art-card-ic { display: grid; place-items: center; width: 34px; height: 34px; clip-path: var(--pentagon);
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: var(--space-12); }
.art-card-t { display: block; font-family: var(--font-display); font-weight: 700; font-size: calc(15.5px * var(--ts)); color: var(--ink); }
.art-card-d { display: block; margin-top: 5px; color: var(--muted); font-size: calc(14px * var(--ts)); line-height: 1.55; }
.art-card-go { margin-top: var(--space-16); color: var(--accent); }

@media (max-width: 700px) {
  /* Défilement horizontal seulement ici : sur un petit écran le geste est
     naturel, alors qu'en desktop il masquerait du contenu pour rien. */
  .art-cards-grid, .art-cards-grid[data-cols="2"], .art-cards-grid[data-cols="4"] {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--space-24) * -1); padding-inline: var(--space-24);
    padding-bottom: var(--space-12); scrollbar-width: none;
  }
  .art-cards-grid::-webkit-scrollbar { display: none; }
  .art-card { flex: 0 0 78%; scroll-snap-align: start; }
}

/* --- Encadré typé --------------------------------------------------------- */
.art-note { display: flex; gap: var(--space-16); align-items: flex-start; border-radius: var(--radius);
  padding: var(--space-20) var(--space-24); border: var(--border-w) solid transparent; }
.art-note-ic { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.art-note-t { display: block; font-family: var(--font-display); font-weight: 700; font-size: calc(15px * var(--ts)); margin-bottom: 4px; }
.art-note-body { min-width: 0; font-size: calc(15px * var(--ts)); line-height: 1.6; }
.art-note-body p { margin: 0 0 8px; font-size: inherit; line-height: inherit; }
.art-note-body p:last-child { margin-bottom: 0; }
.art-note.is-retenir { background: var(--accent-soft); }
.art-note.is-retenir .art-note-ic { background: var(--surface); color: var(--accent-ink); }
.art-note.is-retenir .art-note-t { color: var(--accent-ink); }
/* Ambre plutôt que rouge : c'est une mise en garde, pas une erreur. */
.art-note.is-attention { background: #FDF6E7; border-color: #EEDFBB; }
.art-note.is-attention .art-note-ic { background: #F6E7C2; color: #7A5B12; }
.art-note.is-attention .art-note-t { color: #7A5B12; }
.art-note.is-astuce { background: var(--surface-2); border-color: var(--border); }
.art-note.is-astuce .art-note-ic { background: var(--surface); color: var(--accent-ink); }

/* --- Avis d'expert -------------------------------------------------------- */
.art-quote { margin-inline: 0; padding-left: var(--space-24); border-left: 3px solid var(--accent); }
.art-quote-txt { margin: 0; padding: 0; border: 0; font-family: var(--font-display); font-weight: 600;
  font-size: calc(clamp(17px, 1.9vw, 20px) * var(--ts)); line-height: 1.45; color: var(--ink); font-style: normal; }
.art-quote-by { display: flex; gap: var(--space-12); align-items: center; margin-top: var(--space-16); }
.art-quote-av { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: calc(15px * var(--ts)); }
.art-quote-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: calc(14.5px * var(--ts)); color: var(--ink); }
.art-quote-role { display: block; font-size: calc(13px * var(--ts)); color: var(--muted); }

/* --- Bande de conversion -------------------------------------------------- */
/* `space-between` renvoyait le bouton contre le bord droit : sur un texte court,
   la bande se retrouvait creusée en son milieu. Le bouton suit maintenant le
   texte, et passe à la ligne de lui-même quand la place manque. */
.art-cta { display: flex; gap: var(--space-24); align-items: center; justify-content: flex-start; flex-wrap: wrap;
  border-radius: var(--radius); padding: var(--space-24); }
.art-cta.is-teal { background: var(--accent); color: #fff; }
.art-cta.is-creme { background: var(--feature-bg); color: var(--feature-ink); }
/* Base de 62 % : le texte occupe une largeur constante d'une bande à l'autre,
   le bouton se pose toujours au même endroit, et un texte long se replie en
   deux lignes au lieu de renvoyer le bouton à la ligne suivante. */
.art-cta-body { flex: 0 1 62%; min-width: 0; }
.art-cta-t { display: block; font-family: var(--font-display); font-weight: 700; font-size: calc(17px * var(--ts)); line-height: 1.3; }
.art-cta-d { display: block; margin-top: 5px; font-size: calc(14.5px * var(--ts)); line-height: 1.5; opacity: .9; }
/* Sur fond teal, le bouton primaire disparaîtrait : on l'inverse. */
.art-cta.is-teal .art-cta-btn { background: #fff; color: var(--accent-ink); border-color: #fff; }
.art-cta.is-teal .art-cta-btn:hover { background: var(--bg); color: var(--accent-ink); }
.art-cta-btn { flex-shrink: 0; }

/* --- Aides mobilisables --------------------------------------------------- */
.art-aides { display: flex; gap: var(--space-24); align-items: center; background: var(--ink); color: var(--bg);
  border-radius: var(--radius); padding: var(--space-24) var(--space-32); }
.art-aides-val { flex-shrink: 0; text-align: center; }
.art-aides-num { display: block; font-family: var(--font-display); font-weight: 700;
  font-size: calc(clamp(30px, 4vw, 42px) * var(--ts)); line-height: 1; color: var(--accent-soft); white-space: nowrap; }
.art-aides-cap { display: block; margin-top: 6px; font-size: calc(11.5px * var(--ts)); text-transform: uppercase;
  letter-spacing: .1em; font-weight: 700; opacity: .7; }
.art-aides-body { min-width: 0; }
.art-aides-t { display: block; font-family: var(--font-display); font-weight: 700; font-size: calc(17px * var(--ts)); line-height: 1.3; }
.art-aides-d { display: block; margin-top: 6px; font-size: calc(13.5px * var(--ts)); line-height: 1.55; opacity: .75; }
.art-aides-btn { margin-top: var(--space-16); }

@media (max-width: 620px) {
  .art-aides { flex-direction: column; align-items: flex-start; gap: var(--space-16); padding: var(--space-24); }
  .art-aides-val { text-align: left; }
  .art-cta { flex-direction: column; align-items: flex-start; }
  .art-cta-btn { width: 100%; justify-content: center; }
}

/* --- Formulaire de rappel dans le fil du texte ---------------------------- */
.art-callback { max-width: 520px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   Les encarts dans le corps d'un article
   `.prose` habille tout ce qu'il contient : puce carrée sur les <ul>, compteur
   sur les <ol>, retrait de 38 px, soulignement des liens, blockquote en carte.
   Nos encarts apportent déjà leur propre mise en forme : on neutralise ici ce
   que .prose leur impose, sans rien changer au texte courant autour.
   -------------------------------------------------------------------------- */
.prose .art-insert ul,
.prose .art-insert ol { margin: 0; padding-left: 0; list-style: none; }
.prose .art-insert li { padding-left: 0; font-size: inherit; line-height: inherit; }
.prose .art-insert li::before { content: none; }

/* Un bouton n'est pas un lien de texte : pas de soulignement. Les liens
   rédigés dans une réponse de FAQ, eux, restent soulignés. */
.prose .art-insert .btn,
.prose .art-card.is-link { text-decoration: none; }

/* Le filet vertical des étapes, redéclaré après la neutralisation ci-dessus
   (sélecteur plus spécifique, sans quoi `content: none` l'emporterait). */
.prose .art-steps .art-step::before {
  content: ""; position: absolute; left: 18px; top: 34px; bottom: 0; width: 2px; background: var(--border);
}
.prose .art-steps .art-step:last-child::before { content: none; }

/* Titre de FAQ : centré sur une landing, aligné à gauche dans un article pour
   suivre les autres titres de niveau 2 du texte. */
.prose .art-faq .lpac-faq-block > .ptype-h2 { text-align: left; }

/* Avis d'expert : .prose transforme les blockquote en carte bordée, ce qui
   doublait le filet vertical de l'encart. */
.prose .art-quote blockquote {
  background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0;
}
