/*
Theme Name: BP 2026
Theme URI: https://www.bobinagepompe.com/
Author: Seobooster
Author URI: https://www.seobooster.fr/
Description: Thème WordPress code pur (zéro page-builder, zéro framework) pour bobinagepompe.com — atelier de bobinage/rebobinage de moteurs électriques de pompes. Direction artistique : cuivre + anthracite + ivoire technique, angles vifs (chanfrein), ombre portée plate. Voir DIRECTION.md pour la doctrine complète.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bp-2026
*/

/* =========================================================
   Polices — self-hosted (P-086), woff2 variables dans assets/fonts/,
   téléchargées depuis Google Fonts (sous-jeu latin, couvre le français).
   Big Shoulders Display : titres condensés hauts et lourds.
   Archivo : corps de texte, grotesque technique.
   ========================================================= */
@font-face{
  font-family:"Archivo";
  font-style:normal;
  font-weight:400 900;
  font-display:swap;
  src:url("assets/fonts/archivo-variable-latin.woff2") format("woff2");
}
@font-face{
  font-family:"Big Shoulders Display";
  font-style:normal;
  font-weight:700 900;
  font-display:swap;
  src:url("assets/fonts/bigshouldersdisplay-variable-latin.woff2") format("woff2");
}

/* =========================================================
   Variables — palette EXACTE de DIRECTION.md, contraste
   mesuré clair ET sombre (P-110 / P-351 Mathias travaille en
   sombre). Aucune couleur en dehors de cette liste.
   ========================================================= */
:root{
  --ivoire:#F2EDE3;
  --surface:#FFFFFF;
  --anthracite:#1C1B19;
  --encre:#201D1A;
  --encre-doux:#55504A;
  --cuivre:#A6501F;
  --cuivre-sombre:#7A3E1B;
  --cuivre-vif:#C36A2D;
  --ligne:#D8CFC0;

  /* rôles (permettent la bascule sombre ci-dessous sans dupliquer les règles) */
  --bg:var(--ivoire);
  --text:var(--encre);
  --text-soft:var(--encre-doux);
  --surface-1:var(--surface);
  --ligne-1:var(--ligne);
  --shadow-off:6px 6px 0 var(--anthracite);
  --shadow-off-sm:4px 4px 0 var(--anthracite);
  --chanfrein:16px;
  --chanfrein-sm:10px;

  --font-head:"Big Shoulders Display","Arial Narrow",sans-serif;
  --font-body:"Archivo",-apple-system,"Segoe UI",Arial,sans-serif;

  /* motif de spires en filigrane (SVG en data-URI, trait cuivre uniquement) */
  --motif-spire:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23C36A2D' stroke-width='2'%3E%3Ccircle cx='70' cy='70' r='58'/%3E%3Ccircle cx='70' cy='70' r='45'/%3E%3Ccircle cx='70' cy='70' r='32'/%3E%3Ccircle cx='70' cy='70' r='19'/%3E%3Ccircle cx='70' cy='70' r='7'/%3E%3C/g%3E%3C/svg%3E");
}

/* Mode sombre — mêmes hex de base, rôles inversés/ajustés pour rester AA.
   --surface-1 dérive de --anthracite/--ivoire via color-mix (aucune teinte
   inventée) : carte légèrement plus claire que le fond pour rester lisible. */
@media (prefers-color-scheme:dark){
  :root{
    --bg:var(--anthracite);
    --text:var(--ivoire);
    --text-soft:rgba(242,237,227,.74);
    --surface-1:color-mix(in srgb, var(--anthracite) 84%, var(--ivoire) 16%);
    --ligne-1:rgba(242,237,227,.2);
    --shadow-off:6px 6px 0 #000;
    --shadow-off-sm:4px 4px 0 #000;
  }
  /* le cuivre plein-texte (--cuivre) n'a pas de ratio vérifié sur anthracite :
     en sombre, tout texte/bouton actionnable passe par --cuivre-vif réservé
     aux éléments larges (labels de bouton en gras ≥1rem, gros titres) — jamais
     un lien de paragraphe, qui reste souligné en --text (cf. DIRECTION.md). */
  .btn--primary{background:var(--cuivre-vif)}
  .btn--primary:hover,.btn--primary:focus-visible{background:var(--cuivre)}
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
html.js .reveal{opacity:0;transform:translateY(16px);transition:opacity .5s ease,transform .5s ease}
html.js .reveal.in{opacity:1;transform:none}
body{margin:0;font-family:var(--font-body);font-weight:400;color:var(--text);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased;overflow-wrap:break-word;word-break:break-word;overflow-x:hidden}
img,svg{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3,h4{margin:0 0 .5em;font-family:var(--font-head);font-weight:900;line-height:1.02;letter-spacing:.012em}
h1,h2{text-transform:uppercase}
p{margin:0 0 1em;max-width:75ch}
ul,ol{margin:0;padding:0}
.wrap{max-width:75rem;width:100%;margin:0 auto;padding:0 1.25rem}
.eyebrow{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--font-body);font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--cuivre);margin-bottom:.9rem}
.eyebrow::before{content:"";width:22px;height:3px;background:var(--cuivre);display:inline-block;flex:none}
.section--dark .eyebrow,.section--dark .eyebrow::before,
.hero .eyebrow,.hero .eyebrow::before,
.cat-hero .eyebrow,.cat-hero .eyebrow::before,
.local-hero .eyebrow,.local-hero .eyebrow::before{color:var(--ivoire)}
.skip-link{position:absolute;left:-9999px;top:auto;background:var(--surface);color:var(--text);padding:.7rem 1.1rem;z-index:200;font-weight:700}
.skip-link:focus{left:1rem;top:1rem}
:focus-visible{outline:3px solid var(--cuivre-sombre);outline-offset:2px}

/* =========================================================
   Utilitaire chanfrein + ombre portée plate.
   CORRIGÉ 14/09/2026 (recette v2) : l'ancienne technique (pseudo ::after
   z-index:-1 façon "P-207/§41") peint en réalité AU-DESSUS du fond CSS
   propre de l'élément hôte (ordre d'empilement CSS2.1 : le fond de l'élément
   qui forme le contexte d'empilement est TOUJOURS sous ses enfants
   z-index négatif). Résultat constaté : tout panneau clair (formulaire de
   devis, cartes pictos, question de FAQ) devenait invisible dès qu'un
   enfant n'avait pas SON PROPRE fond opaque — le panneau semblait "noir"
   alors que son background CSS était bien blanc. Remplacé par
   filter:drop-shadow(), qui s'applique au rendu déjà découpé (clip-path)
   de l'élément et se peint TOUJOURS derrière, sans ambiguïté d'empilement.
   ========================================================= */
.card,.btn,.icon-card,.stat,.article-card,.sidebar-card,.toc,.author-box,
.faq details,.quiz,.local-step,.local-dept,.local-ville-panel,.local-cta-final,
.cta-end,.rubrique-tile,.table-clean,.mid-cta,.partner-cta,.article-grid-cta,
.cat-empty{
  position:relative;
  clip-path:polygon(var(--chanfrein) 0,100% 0,100% 100%,0 100%,0 var(--chanfrein));
  filter:drop-shadow(var(--shadow-off));
}
.btn,.icon-card,.stat{filter:drop-shadow(var(--shadow-off-sm))}
.section--dark .card,.section--dark .quiz{filter:drop-shadow(6px 6px 0 var(--ligne-1))}
.section--dark .icon-card,.section--dark .stat{filter:drop-shadow(4px 4px 0 var(--ligne-1))}
@media (max-width:480px){
  :root{--chanfrein:var(--chanfrein-sm)}
}

/* =========================================================
   Header / navigation
   ========================================================= */
.site-header{position:sticky;top:0;z-index:50;background:var(--bg);border-bottom:3px solid var(--cuivre)}
.header-inner{max-width:75rem;margin:0 auto;padding:0 1.25rem;display:flex;align-items:center;justify-content:space-between;height:4.5rem;gap:1.2rem}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;flex:none;min-width:0}
.brand img,.brand svg{display:block;height:2.1rem;width:auto;flex:none}
/* si le gabarit sépare monogramme (favicon.svg / logo rogné) et texte du nom
   plutôt que d'utiliser logo.svg complet (monogramme + wordmark intégrés) */
.brand-mark{flex:none;display:block;width:2.1rem;height:2.1rem}
.brand-text{font-family:var(--font-head);font-weight:900;font-size:1.05rem;text-transform:uppercase;letter-spacing:.01em;color:var(--text);white-space:nowrap}
.nav{display:flex;align-items:center;gap:1.6rem;list-style:none;margin:0;padding:0;flex:none}
.nav li{display:flex}
.nav a{position:relative;color:var(--text);text-decoration:none;font-weight:700;font-size:.92rem;white-space:nowrap;padding:.4rem 0}
.nav a:hover,.nav a:focus-visible{color:var(--cuivre)}
.nav li.current-menu-item>a,.nav li.current_page_item>a,.nav a.is-current{color:var(--cuivre)}
.nav li.current-menu-item>a::after,.nav li.current_page_item>a::after,.nav a.is-current::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:3px;background:var(--cuivre)}
.nav-toggle{display:none;background:none;border:0;color:var(--text);cursor:pointer;padding:.5rem;flex:none}
.nav-toggle-bars,.nav-toggle-bars::before,.nav-toggle-bars::after{display:block;width:1.4rem;height:2px;background:var(--text)}
.nav-toggle-bars{position:relative}
.nav-toggle-bars::before,.nav-toggle-bars::after{content:"";position:absolute;left:0}
.nav-toggle-bars::before{top:-7px}
.nav-toggle-bars::after{top:7px}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars{background:transparent}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before{transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after{transform:translateY(-7px) rotate(-45deg)}
.topbar-actions{display:flex;align-items:center;gap:.6rem;flex:none}
.mobile-nav-panel{display:contents}
.btn.btn--panel-cta{display:none}

/* Sous-menu (ex. "Nos interventions") — depth=2, WP enveloppe les enfants
   dans <ul class="sub-menu"> : on l'affiche au survol/focus sur desktop. */
.nav li.menu-item-has-children{position:relative}
.nav .sub-menu{list-style:none;margin:0;padding:.4rem 0;position:absolute;top:100%;left:0;min-width:280px;
  background:var(--surface);border:1px solid var(--ligne);box-shadow:6px 6px 0 var(--anthracite);
  z-index:60;display:none}
.nav li.menu-item-has-children:hover>.sub-menu,
.nav li.menu-item-has-children:focus-within>.sub-menu{display:block}
.nav .sub-menu a{color:var(--encre);font-weight:500;font-size:.86rem;padding:.6rem 1rem;display:block;white-space:normal}
.nav .sub-menu a::after{display:none}
.nav .sub-menu a:hover,.nav .sub-menu a:focus-visible{color:var(--cuivre)}

/* =========================================================
   Boutons — chanfrein + ombre plate, jamais de radius
   ========================================================= */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.85rem 1.5rem;font-family:var(--font-body);font-weight:800;font-size:.92rem;text-decoration:none;border:2px solid transparent;cursor:pointer;background:var(--surface-1);color:var(--text);transition:transform .12s ease;white-space:nowrap}
.btn:hover,.btn:focus-visible{transform:translate(2px,2px);filter:drop-shadow(2px 2px 0 var(--anthracite))}
.btn--header{padding:.6rem 1.1rem;font-size:.86rem}
.btn--primary{background:var(--cuivre);color:#fff}
.btn--primary:hover,.btn--primary:focus-visible{background:var(--cuivre-sombre)}
.btn--ghost{background:transparent;border-color:var(--text);color:var(--text)}
.btn--ghost:hover{border-color:var(--cuivre);color:var(--cuivre)}
.section--dark .btn--ghost,.hero .btn--ghost{border-color:var(--ivoire);color:var(--ivoire)}
.hero .btn--ghost:hover{border-color:var(--cuivre-vif);color:var(--cuivre-vif)}
.btn--dark{background:var(--anthracite);color:var(--ivoire)}
.btn--block{width:100%}

/* =========================================================
   Héros — 2 colonnes asymétriques, pas de photo obligatoire
   ========================================================= */
.hero{position:relative;background:var(--anthracite);color:var(--ivoire);padding:5.5rem 0 6rem;overflow:hidden}
.hero .wrap{display:grid;grid-template-columns:1.4fr 1fr;gap:3rem;align-items:center}
.hero h1{font-size:clamp(2.1rem,4.6vw,3.4rem);color:var(--ivoire)}
.hero p.lead{color:rgba(242,237,227,.86);font-size:1.08rem;max-width:44ch}
.hero .cta-row{display:flex;gap:.9rem;margin-top:1.8rem;flex-wrap:wrap}
.hero-figure{position:relative;display:flex;flex-direction:column;gap:1.1rem}
.hero-credit{margin:0;font-size:.72rem;color:var(--ivoire);text-align:right;opacity:.75}
/* 14/09/2026 — recette : --encre-doux (pensé pour fond clair) sur le fond --anthracite du héros ne
   faisait que 2,16:1 mesuré ; l'ivoire (14,75:1 sur anthracite, DIRECTION.md) reste lisible même
   assombri par l'opacité réduite. */
.hero-graphic{position:relative;aspect-ratio:4/3;background-color:#141312;border:1px solid rgba(242,237,227,.14);overflow:hidden;clip-path:polygon(var(--chanfrein) 0,100% 0,100% 100%,0 100%,0 var(--chanfrein))}
.hero-graphic::before{content:"";position:absolute;inset:0;background-image:var(--motif-spire);background-repeat:no-repeat;background-position:center;background-size:70%;opacity:.14}
.hero-graphic img{width:100%;height:100%;object-fit:cover;position:relative;z-index:1}
.hero-spec-row{position:absolute;left:0;right:0;bottom:0;display:flex;gap:.5rem;flex-wrap:wrap;padding:.8rem;z-index:2}
.hero-spec-chip{background:rgba(28,27,25,.82);border:1px solid var(--cuivre-vif);color:var(--ivoire);font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:.35rem .6rem}
.badge-row{display:flex;gap:.6rem;margin-top:1.8rem;flex-wrap:wrap}
.mini-badge{display:flex;align-items:center;gap:.5rem;background:rgba(242,237,227,.06);border:1px solid rgba(242,237,227,.2);padding:.5rem .8rem;font-size:.78rem;color:rgba(242,237,227,.9)}
.mini-badge b{color:var(--ivoire)}

/* =========================================================
   Sections & séparateurs (liseré cuivre + traits courts,
   simule un bobinage vu en coupe, tous les ~120px)
   ========================================================= */
.section{position:relative;padding:5.25rem 0}
.section::before{content:"";position:absolute;top:0;left:0;right:0;height:10px;pointer-events:none;
  background:
    repeating-linear-gradient(90deg,var(--cuivre) 0 2px,transparent 2px 120px) top/120px 10px repeat-x,
    linear-gradient(var(--cuivre),var(--cuivre)) top/100% 3px no-repeat;
}
.section--tint{background:color-mix(in srgb, var(--bg) 90%, var(--cuivre) 10%)}
.section--dark{background:var(--anthracite);color:var(--ivoire)}
.section--dark .text-soft,.section--dark .ink-soft{color:rgba(242,237,227,.78)}
.section--dark h2,.section--dark h3{color:var(--ivoire)}
.section-head{max-width:40rem;margin:0 0 2.6rem}
.section-head.center{text-align:center;margin-left:auto;margin-right:auto}
h2{font-size:clamp(1.6rem,3vw,2.2rem)}
.ink-soft{color:var(--text-soft)}

/* =========================================================
   Grilles & cartes
   ========================================================= */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem}
.card{background:var(--surface-1);padding:1.7rem 1.6rem;border-top:4px solid var(--cuivre)}
.card.card--accent{border-top-color:var(--cuivre-vif)}
.card h3{font-size:1.1rem;margin-bottom:.4rem}
.card p{color:var(--text-soft);font-size:.95rem;margin-bottom:.8rem}
.card .card-link{font-weight:800;font-size:.86rem;color:var(--cuivre);text-decoration:none}
.card .card-num{font-size:.75rem;font-weight:800;color:var(--cuivre-sombre);letter-spacing:.08em}

.icon-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;margin-bottom:2.2rem}
.icon-card{background:var(--surface-1);padding:1.6rem 1.3rem;text-align:center}
.icon-card .icon-wrap{width:3.2rem;height:3.2rem;background:color-mix(in srgb, var(--cuivre) 12%, transparent);display:flex;align-items:center;justify-content:center;margin:0 auto 1rem;clip-path:polygon(6px 0,100% 0,100% 100%,0 100%,0 6px)}
.icon-card .icon-wrap svg{width:1.6rem;height:1.6rem;stroke:var(--cuivre)}
.icon-card h3{font-size:1rem;margin-bottom:.35rem}
.icon-card p{color:var(--text-soft);font-size:.9rem;margin:0}

.partner-cta{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;flex-wrap:wrap;background:var(--anthracite);color:var(--ivoire);padding:1.6rem 1.8rem}
.partner-cta .txt strong{display:block;font-size:1.05rem;margin-bottom:.25rem}
.partner-cta .txt span{color:rgba(242,237,227,.8);font-size:.88rem}

/* tuiles de rubrique (accueil, guides par rubrique) */
.rubriques-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem}
.rubrique-tile{display:block;overflow:hidden;text-decoration:none;color:var(--ivoire);background:var(--anthracite)}
.rubrique-tile-img{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;position:relative;background:#141312}
.rubrique-tile-img::before{content:"";position:absolute;inset:0;background-image:var(--motif-spire);background-repeat:no-repeat;background-position:center;background-size:90%;opacity:.14}
.rubrique-tile-img svg{width:2.1rem;height:2.1rem;position:relative;z-index:1;stroke:var(--cuivre-vif)}
.rubrique-tile-body{padding:.9rem 1rem 1.1rem;border-top:3px solid var(--cuivre)}
.rubrique-tile-body h3{font-size:.96rem;margin:0 0 .25rem}
.rubrique-tile-body span{font-size:.78rem;color:rgba(242,237,227,.75)}

/* stats */
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;margin-top:.6rem}
.stat{text-align:center;background:var(--surface-1);padding:1.6rem 1rem}
.stat .num{font-family:var(--font-head);font-size:clamp(1.9rem,4vw,2.6rem);font-weight:900;color:var(--cuivre)}
.stat .lbl{font-size:.82rem;color:var(--text-soft);margin-top:.25rem}
.section--dark .stat{background:rgba(242,237,227,.06);border:1px solid rgba(242,237,227,.14)}
.section--dark .stat .num{color:var(--cuivre-vif)}
.section--dark .stat .lbl{color:rgba(242,237,227,.78)}

/* =========================================================
   Tables (contenu long — bobinage, ampérage, tarifs indicatifs)
   ========================================================= */
.table-clean{width:100%;border-collapse:collapse;background:var(--surface-1)}
.table-clean th,.table-clean td{padding:.85rem 1rem;text-align:left;border-bottom:1px solid var(--ligne-1);font-size:.9rem}
.table-clean th{background:var(--anthracite);color:var(--ivoire);font-weight:800;font-size:.76rem;text-transform:uppercase;letter-spacing:.05em}
.table-clean tr:last-child td{border-bottom:none}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* faq */
.faq details{background:var(--surface-1);margin-bottom:.75rem}
.faq summary{list-style:none;cursor:pointer;padding:1.1rem 1.3rem;font-weight:800;display:flex;justify-content:space-between;align-items:center;gap:.75rem}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.3rem;color:var(--cuivre);font-weight:800}
.faq details[open] summary::after{content:"–"}
.faq .faq-a{padding:0 1.3rem 1.2rem;color:var(--text-soft)}

/* sommaire (single) */
.toc{background:var(--surface-1);border:1px solid var(--ligne-1);padding:1.25rem 1.5rem;margin:0 0 2rem}
.toc-title{font-weight:800;font-size:.82rem;text-transform:uppercase;letter-spacing:.05em;color:var(--cuivre-sombre);margin-bottom:.6rem}
.toc ol{margin:0;padding-left:1.2em}
.toc li{margin-bottom:.4rem}
.toc a{color:var(--cuivre);text-decoration:none;font-size:.92rem}
.toc a:hover{text-decoration:underline}

/* auteur */
.author-box{display:flex;gap:1rem;align-items:flex-start;background:var(--surface-1);padding:1.4rem 1.5rem;margin:2.5rem 0}
.author-box img,.author-box .author-avatar{width:3.5rem;height:3.5rem;flex:none;object-fit:cover}
.author-box .author-logo{flex:0 0 3.5rem;width:3.5rem;height:3.5rem;display:inline-flex}
.author-box .author-logo svg{width:3.5rem;height:3.5rem;display:block}
.author-box h4{margin:0 0 .25rem;font-size:.98rem}
.author-box .author-signature{font-weight:700;color:var(--text);margin:.1rem 0 .25rem}
.author-box p{margin:0;font-size:.88rem;color:var(--text-soft)}

/* =========================================================
   Quiz 5 étapes — pastilles carrées numérotées + barre de
   progression + récap modifiable (comportement identique au
   gabarit de référence interne, habillage propre). Sans JS : toutes les
   étapes restent visibles et empilées (aucun display:none en
   dehors de .js), formulaire réel envoyable.
   ========================================================= */
.quiz{background:var(--surface-1);padding:1.9rem 1.7rem;max-width:40rem;margin:0 auto;border-top:5px solid var(--cuivre)}
.quiz--compact{padding:1.4rem 1.2rem;max-width:100%}

.quiz-steps-indicator{display:flex;align-items:center;justify-content:center;gap:0;margin-bottom:1.1rem}
.quiz-dot{width:1.9rem;height:1.9rem;background:var(--ligne-1);color:var(--text-soft);display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:800;flex:none;clip-path:polygon(4px 0,100% 0,100% 100%,0 100%,0 4px)}
.quiz-dot.is-active{background:var(--cuivre);color:#fff}
.quiz-dot.is-done{background:var(--anthracite);color:var(--ivoire)}
.quiz-dot-line{width:2.6rem;height:2px;background:var(--ligne-1);flex:none}

.quiz-topline{display:none}
.quiz.js .quiz-topline{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:.6rem}
.quiz-back{background:none;border:none;padding:.3rem .2rem;font:inherit;font-size:.82rem;font-weight:700;color:var(--text-soft);cursor:pointer;display:flex;align-items:center;gap:.25rem}
.quiz-back:hover{color:var(--cuivre-sombre)}
.quiz-back::before{content:"←"}
.quiz-back[hidden]{display:none}
.quiz-step-label{margin-left:auto;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--cuivre-sombre)}

.quiz-progress-bar{display:none}
.quiz.js .quiz-progress-bar{display:block;height:6px;background:var(--ligne-1);overflow:hidden;margin-bottom:1.1rem}
.quiz-progress-bar i{display:block;height:100%;width:0;background:var(--cuivre);transition:width .3s ease}

.quiz-recap{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1.1rem}
.quiz-recap[hidden]{display:none}
.quiz-pill{border:1.5px solid var(--ligne-1);background:var(--bg);color:var(--text-soft);font:inherit;font-size:.76rem;font-weight:700;padding:.4rem .7rem .4rem .6rem;cursor:pointer;display:inline-flex;align-items:center;gap:.35rem}
.quiz-pill::after{content:"✎";font-size:.68rem;opacity:.7}
.quiz-pill:hover{border-color:var(--cuivre);color:var(--cuivre-sombre)}

.quiz-step{display:block;margin-bottom:1.6rem;padding-bottom:1.4rem;border-bottom:1px dashed var(--ligne-1)}
.quiz-step:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.quiz.js .quiz-step{display:none;margin:0;padding:0;border:none}
.quiz.js .quiz-step.active{display:block;animation:bpStepIn .2s ease}
@keyframes bpStepIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Qualifié .quiz .quiz-q (au lieu de .quiz-q seul) : sur une page qui pose
   le formulaire dans une bande .section--dark (page-devis.php), le sélecteur
   générique .section--dark h2 (0,1,1) était plus spécifique que .quiz-q seul
   (0,1,0) et repeignait la question du formulaire en ivoire sur son panneau
   blanc — invisible (bug constaté 14/09/2026, recette v2). */
.quiz .quiz-q{font-family:var(--font-body);font-size:1.05rem;font-weight:800;color:var(--text);margin:0 0 .4rem}
.quiz .quiz-success h3{color:var(--text)}
.quiz-aide{font-size:.85rem;color:var(--text-soft);margin:0 0 .9rem}

.opt-grid{display:grid;gap:.6rem;margin-bottom:.4rem}
.opt-grid--cards{grid-template-columns:repeat(2,1fr)}
.opt-grid--pills{grid-template-columns:repeat(2,1fr)}
.opt-grid--stack{grid-template-columns:1fr}
.opt{border:2px solid var(--ligne-1);background:var(--surface-1);padding:1rem .9rem;cursor:pointer;font:inherit;font-size:.92rem;font-weight:700;color:var(--text);text-align:center;min-height:3.25rem;display:flex;align-items:center;justify-content:center;clip-path:polygon(8px 0,100% 0,100% 100%,0 100%,0 8px)}
.opt:hover{border-color:var(--cuivre)}
.opt.selected{border-color:var(--cuivre);background:color-mix(in srgb, var(--cuivre) 10%, var(--surface-1));color:var(--cuivre-sombre)}
.opt--card{flex-direction:column;gap:.6rem;padding:1.25rem .7rem;min-height:7rem;text-align:center}
.opt-ico{width:2.1rem;height:2.1rem;color:var(--anthracite);display:flex;align-items:center;justify-content:center}
.opt-ico svg{width:100%;height:100%;stroke:currentColor}
.opt--card.selected .opt-ico{color:var(--cuivre-sombre)}
.opt-txt{line-height:1.25}
.opt-grid--stack .opt{text-align:left;justify-content:flex-start;padding:1rem 1.1rem}

.field-label{display:block;font-weight:800;font-size:.85rem;color:var(--text);margin-bottom:.4rem}
.field-label .req{color:var(--cuivre-sombre);font-weight:800}
.field-hint{font-weight:600;font-size:.72rem;color:var(--text-soft);text-transform:none;letter-spacing:0}
.field{width:100%;padding:.9rem .85rem;border:2px solid var(--ligne-1);font-size:1rem;margin-bottom:1rem;font-family:inherit;color:var(--text);background:var(--surface)}
.field::placeholder{color:#9a9186}
.field:focus{outline:none;border-color:var(--cuivre)}
.field--area{resize:vertical;min-height:4.6rem}
.quiz-idf-note{background:color-mix(in srgb, var(--cuivre-vif) 16%, var(--surface-1));color:var(--cuivre-sombre);padding:.6rem .85rem;font-size:.82rem;font-weight:700;margin:-.5rem 0 1rem}
.quiz-idf-note[hidden]{display:none}
.quiz-rgpd{font-size:.74rem;color:var(--text-soft);margin:.1rem 0 1rem}
.quiz-nav{display:flex;justify-content:space-between;gap:.75rem;margin-top:.5rem}
.quiz-nav .btn{padding:.95rem 1.6rem;font-size:1rem;min-height:3.25rem}
.quiz-next{width:100%}
.quiz-success{text-align:center;padding:1.2rem 0}
.quiz-success .check{width:3.5rem;height:3.5rem;background:color-mix(in srgb, var(--cuivre) 14%, var(--surface-1));color:var(--cuivre-sombre);display:flex;align-items:center;justify-content:center;margin:0 auto 1rem;font-size:1.6rem;font-weight:800;clip-path:polygon(8px 0,100% 0,100% 100%,0 100%,0 8px)}

@media (max-width:480px){
  .opt-grid--cards,.opt-grid--pills{grid-template-columns:1fr}
  .quiz--compact .opt-grid--cards{grid-template-columns:1fr}
}

/* =========================================================
   Carte Île-de-France (préfixe bp-carte-*, ex. préfixe interne du
   modèle — rename documenté dans NOTES-CLASSES.md)
   ========================================================= */
.bp-carte-layout{display:grid;grid-template-columns:35rem 1fr;gap:1.75rem;align-items:start}
.bp-carte-map-wrap{background:var(--surface-1);padding:1.25rem 1.25rem .9rem}
@media (min-width:901px){.bp-carte-map-wrap{position:sticky;top:1.25rem}}
.bp-carte-svg{display:block;width:100%;height:auto;overflow:visible}
.bp-carte-maps{display:flex;flex-direction:column;gap:1.1rem;align-items:center}
.bp-carte-zoom-block,.bp-carte-main-block{width:100%;min-width:0}
@media (min-width:901px){.bp-carte-main-block{max-width:16rem}}
.bp-carte-mini-titre{margin:0 0 .5rem;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--cuivre-sombre);text-align:center}
.bp-carte-svg-zoom{background:color-mix(in srgb, var(--bg) 92%, var(--cuivre) 8%)}

.bp-carte-dept path{fill:color-mix(in srgb, var(--bg) 88%, var(--cuivre) 12%);stroke:var(--anthracite);stroke-width:1.4;cursor:pointer}
.bp-carte-dept:hover path,.bp-carte-dept:focus path{fill:color-mix(in srgb, var(--cuivre-vif) 24%, var(--bg));stroke:var(--cuivre-sombre);stroke-width:2}
.bp-carte-dept:focus{outline:3px solid var(--cuivre);outline-offset:2px}
.bp-carte-dept-label{font:700 12px var(--font-body);fill:var(--anthracite);text-anchor:middle;pointer-events:none;paint-order:stroke;stroke:var(--bg);stroke-width:4px;stroke-linejoin:round}
.bp-carte-dept-contexte{fill:color-mix(in srgb, var(--bg) 94%, var(--anthracite) 6%);stroke:var(--ligne);stroke-width:1.2;pointer-events:none}
.bp-carte-dept-label--contexte{font:700 10.5px var(--font-body);fill:var(--text-soft);stroke-width:3.5px}

.bp-carte-hit{fill:transparent;pointer-events:all}
.bp-carte-point{fill:var(--cuivre);stroke:var(--surface);stroke-width:1.5;transform-box:fill-box;transform-origin:center;transition:transform .15s ease,fill .15s ease;pointer-events:none}
.bp-carte-commune{cursor:pointer}
.bp-carte-commune:hover .bp-carte-point,.bp-carte-commune:focus .bp-carte-point,.bp-carte-commune:focus-within .bp-carte-point,.bp-carte-commune.bp-carte-open .bp-carte-point{fill:var(--cuivre-sombre);transform:scale(1.7)}
.bp-carte-commune:focus .bp-carte-hit,.bp-carte-commune:focus-within .bp-carte-hit,.bp-carte-commune.bp-carte-open .bp-carte-hit{fill:color-mix(in srgb, var(--cuivre) 16%, transparent);stroke:var(--cuivre);stroke-width:2}
.bp-carte-commune:focus{outline:none}

.bp-carte-bulle{opacity:0;pointer-events:none;transition:opacity .15s ease;overflow:visible}
.bp-carte-bulle-in,.bp-carte-bulle-in *{pointer-events:none}
.bp-carte-commune:hover .bp-carte-bulle,.bp-carte-commune:focus .bp-carte-bulle,.bp-carte-commune:focus-within .bp-carte-bulle,.bp-carte-commune.bp-carte-open .bp-carte-bulle{opacity:1;pointer-events:auto}
.bp-carte-commune:hover .bp-carte-bulle-in,.bp-carte-commune:hover .bp-carte-bulle-in *,
.bp-carte-commune:focus .bp-carte-bulle-in,.bp-carte-commune:focus .bp-carte-bulle-in *,
.bp-carte-commune:focus-within .bp-carte-bulle-in,.bp-carte-commune:focus-within .bp-carte-bulle-in *,
.bp-carte-commune.bp-carte-open .bp-carte-bulle-in,.bp-carte-commune.bp-carte-open .bp-carte-bulle-in *{pointer-events:auto}
.bp-carte-bulle-in{font-family:var(--font-body);background:var(--anthracite);color:var(--ivoire);padding:.55rem .65rem;font-size:13px;line-height:1.35;box-sizing:border-box;width:100%;height:100%;clip-path:polygon(6px 0,100% 0,100% 100%,0 100%,0 6px)}
.bp-carte-bulle-in strong{display:block;color:var(--ivoire);font-size:13px;margin-bottom:.3rem}
.bp-carte-bulle-liens{display:flex;gap:.35rem;flex-wrap:wrap}
.bp-carte-bulle-liens a{display:inline-block;background:var(--cuivre);color:#fff;text-decoration:none;font-weight:700;font-size:11.5px;padding:.25rem .55rem;white-space:nowrap}
.bp-carte-bulle-liens a:hover,.bp-carte-bulle-liens a:focus{background:var(--cuivre-sombre)}

.bp-carte-legende{margin:.75rem .1rem 0;font-size:.8rem;color:var(--text-soft);min-height:1.2em}

.bp-carte-liste{display:flex;flex-direction:column;gap:.75rem}
.bp-carte-liste--renvoi{background:var(--surface-1);padding:1.6rem 1.5rem;text-align:center}
.bp-carte-liste--renvoi p{color:var(--text-soft);margin-bottom:1rem}

.bp-carte-dept-acc{background:var(--surface-1);border:1px solid var(--ligne-1)}
.bp-carte-dept-acc summary{display:flex;align-items:center;gap:.6rem;cursor:pointer;list-style:none;padding:.85rem 1.1rem;font-weight:800;font-size:.94rem;color:var(--text)}
.bp-carte-dept-acc summary::-webkit-details-marker{display:none}
.bp-carte-dept-acc summary::after{content:"–";margin-left:auto;color:var(--cuivre);font-weight:800;font-size:1.1rem}
.bp-carte-dept-acc:not([open]) summary::after{content:"+"}
.bp-carte-dept-num{display:inline-flex;align-items:center;justify-content:center;background:var(--anthracite);color:var(--ivoire);font-size:.7rem;font-weight:800;padding:.25rem .55rem;flex:none}
.bp-carte-villes-liste{list-style:none;margin:0;padding:0 1.1rem .9rem}
.bp-carte-villes-liste li{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;padding:.55rem 0;border-top:1px solid var(--ligne-1)}
.bp-carte-villes-liste li:first-child{border-top:0}
.bp-carte-ville-nom{font-weight:700;font-size:.9rem;color:var(--text)}
.bp-carte-ville-liens{display:flex;gap:.5rem;flex-wrap:wrap}
.bp-carte-ville-liens a{font-size:.82rem;font-weight:700;color:var(--cuivre-sombre);text-decoration:none;border-bottom:2px solid var(--ligne-1)}
.bp-carte-ville-liens a:hover,.bp-carte-ville-liens a:focus{color:var(--cuivre);border-color:var(--cuivre)}
.bp-carte-cta{text-align:center;margin-top:2.1rem}

@media (max-width:900px){
  .bp-carte-layout{grid-template-columns:1fr}
  .bp-carte-map-wrap{padding:1rem .9rem .6rem}
}
@media (max-width:480px){
  .bp-carte-bulle-in{padding:.45rem .55rem;font-size:12px}
  .bp-carte-bulle-in strong{font-size:12px}
  .bp-carte-bulle-liens a{font-size:11px;padding:.2rem .5rem}
  .bp-carte-dept-acc summary{padding:.75rem .9rem;font-size:.88rem}
  .bp-carte-villes-liste{padding:0 .9rem .75rem}
}

/* =========================================================
   Pages locales (LOCAL.tsv : 64 pages ville + 7 département +
   1 hub Île-de-France) — cœur commercial du site
   ========================================================= */
.local-hero{position:relative;background:var(--anthracite);color:var(--ivoire);padding:0 0 4rem;overflow:hidden}
.local-hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:2.75rem;align-items:start;margin-top:1.4rem}
.local-hero-text{padding-top:.5rem}
.local-hero-text h1{font-size:clamp(1.8rem,3.6vw,2.7rem);color:var(--ivoire);margin-bottom:.35em}
.local-badge{display:inline-flex;align-items:center;gap:.5rem;background:rgba(242,237,227,.08);border:1px solid rgba(242,237,227,.2);color:var(--ivoire);font-size:.76rem;font-weight:700;letter-spacing:.03em;padding:.45rem .9rem;margin-bottom:1.1rem}
.local-badge::before{content:"";width:.5rem;height:.5rem;background:var(--cuivre-vif);flex:none}
.local-accroche{color:rgba(242,237,227,.88);font-size:1.05rem;max-width:46ch;margin-bottom:1.4rem}
.local-hero-points{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.6rem}
.local-hero-points li{position:relative;padding-left:1.7rem;color:rgba(242,237,227,.92);font-size:.92rem;line-height:1.5}
.local-hero-points li::before{content:"";position:absolute;left:0;top:.3em;width:1rem;height:1rem;background:var(--cuivre-vif);clip-path:polygon(3px 0,100% 0,100% 100%,0 100%,0 3px)}
.local-hero-points li::after{content:"";position:absolute;left:.32rem;top:.55em;width:.25rem;height:.45rem;border:2px solid var(--anthracite);border-top:0;border-left:0;transform:rotate(45deg)}
.local-hero-form{scroll-margin-top:5.5rem}
.local-hero-form .quiz{max-width:none;margin:0}

.local-section{padding:4rem 0}
.local-section--tight{padding:2.5rem 0}
.local-prose{max-width:70ch;margin:0 auto;font-size:1.02rem}
.local-prose p{line-height:1.75}
.local-prose p:last-child{margin-bottom:0}

.local-signes .card h3{font-size:1.05rem}
.local-signes .card p{margin-bottom:0}

.local-steps{list-style:none;margin:0;padding:0;position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.local-steps::before{content:"";position:absolute;left:9%;right:9%;top:2.6rem;height:2px;z-index:0;background:repeating-linear-gradient(90deg,var(--ligne) 0 9px,transparent 9px 17px)}
.local-step{background:var(--surface-1);padding:1.7rem 1.5rem 1.6rem;text-align:center}
.local-step-num{display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;margin:0 auto 1rem;background:var(--cuivre);color:#fff;font-family:var(--font-head);font-weight:900;font-size:1.05rem;clip-path:polygon(6px 0,100% 0,100% 100%,0 100%,0 6px)}
.local-step h3{font-size:1.06rem;margin-bottom:.5rem}
.local-step p{color:var(--text-soft);font-size:.94rem;margin:0}

.local-ville-panel{max-width:51rem;margin:0 auto;background:var(--surface-1);border-left:4px solid var(--cuivre-vif);padding:1.9rem 2rem}
.local-ville-panel h2{font-size:clamp(1.3rem,2.4vw,1.7rem);margin-bottom:.5em}
.local-ville-panel p{color:var(--text-soft);margin:0;line-height:1.75}

.local-trust{display:grid;grid-template-columns:1.15fr .85fr;gap:2.4rem;align-items:center}
.local-trust h2{color:var(--ivoire)}
.local-trust-txt p{color:rgba(242,237,227,.82);margin-bottom:.9em}
.local-trust-txt p:last-child{margin-bottom:0}
.local-trust-points{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.75rem}
.local-trust-points li{position:relative;background:rgba(242,237,227,.06);border:1px solid rgba(242,237,227,.14);padding:.9rem 1rem .9rem 2.75rem;color:rgba(242,237,227,.92);font-size:.92rem;font-weight:700}
.local-trust-points li::before{content:"";position:absolute;left:1rem;top:50%;margin-top:-.5rem;width:1rem;height:1rem;background:var(--cuivre-vif);clip-path:polygon(3px 0,100% 0,100% 100%,0 100%,0 3px)}
.local-trust-points li::after{content:"";position:absolute;left:1.32rem;top:50%;margin-top:-.32rem;width:.25rem;height:.45rem;border:2px solid var(--anthracite);border-top:0;border-left:0;transform:rotate(45deg)}

.local-faq{max-width:51rem;margin:0 auto}
.local-faq summary{font-size:.98rem}

.local-voisines{max-width:51rem;margin:0 auto;text-align:center}
.local-voisines h2{font-size:clamp(1.2rem,2.2vw,1.5rem)}
.local-voisines-list{list-style:none;margin:0 0 .9rem;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem}
.local-voisines-list--stack{margin-bottom:2.5rem}
.local-voisines-list a{display:inline-block;background:var(--surface-1);border:1px solid var(--ligne-1);padding:.55rem 1.1rem;font-size:.9rem;font-weight:700;color:var(--anthracite);text-decoration:none}
.local-voisines-list a:hover{border-color:var(--cuivre);color:var(--cuivre-sombre)}
.local-voisines-more{margin:0;font-size:.88rem}
.local-voisines-more a{color:var(--cuivre);text-decoration:none;font-weight:700}

.local-cta-final-wrap{padding-top:0}
.local-cta-final{max-width:51rem;margin:0 auto;text-align:center;background:var(--surface-1);border:2px dashed var(--cuivre);padding:2.4rem 1.9rem}
.local-cta-final h2{font-size:clamp(1.3rem,2.4vw,1.8rem);margin-bottom:.3em}
.local-cta-final p{color:var(--text-soft);margin-bottom:1.4rem}
.local-cta-final-btn{padding:1.05rem 2.1rem;font-size:1.02rem;min-height:3.5rem}

.local-depts{display:grid;grid-template-columns:repeat(2,1fr);gap:1.4rem;align-items:start}
.local-dept{background:var(--surface-1);padding:1.4rem 1.5rem .5rem}
.local-dept-titre{display:flex;align-items:center;gap:.6rem;font-size:1rem;margin:0 0 .75rem}
.local-dept-num{display:inline-flex;align-items:center;justify-content:center;background:var(--anthracite);color:var(--ivoire);font-size:.72rem;font-weight:800;letter-spacing:.03em;padding:.3rem .6rem;flex:none}
.local-dept-villes{list-style:none;margin:0;padding:0}
.local-ville-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;padding:.7rem 0;border-top:1px solid var(--ligne-1)}
.local-ville-row:first-child{border-top:0}
.local-ville-nom{font-weight:700;font-size:.94rem;color:var(--text)}
.local-ville-liens{display:flex;gap:.5rem;flex-wrap:wrap}
.local-ville-liens a{display:inline-block;background:color-mix(in srgb, var(--cuivre) 10%, var(--bg));border:1px solid var(--ligne-1);padding:.3rem .75rem;font-size:.78rem;font-weight:700;color:var(--anthracite);text-decoration:none}
.local-ville-liens a:hover{background:color-mix(in srgb, var(--cuivre) 20%, var(--bg));border-color:var(--cuivre);color:var(--cuivre-sombre)}

.capture-dept-panel{max-width:44rem;margin:0 auto}

@media (max-width:900px){
  .local-hero{padding-bottom:2.75rem}
  .local-hero-grid{grid-template-columns:1fr;gap:1.9rem}
  .local-hero-text h1{font-size:clamp(1.6rem,6vw,2.1rem)}
  .local-steps{grid-template-columns:1fr}
  .local-steps::before{display:none}
  .local-trust{grid-template-columns:1fr;gap:1.6rem}
  .local-depts{grid-template-columns:1fr}
  .local-section{padding:3rem 0}
}
@media (max-width:480px){
  .local-hero-form .quiz{padding:1.5rem 1.1rem}
  .local-hero-points li{font-size:.88rem}
  .local-accroche{font-size:1rem}
  .local-ville-panel{padding:1.5rem 1.25rem}
  .local-cta-final{padding:1.75rem 1.25rem}
  .local-cta-final-btn{width:100%;padding:1rem 1.1rem;font-size:.96rem}
  .local-dept{padding:1.1rem 1.1rem .4rem}
  .local-ville-row{align-items:flex-start;flex-direction:column;gap:.5rem}
  .local-voisines-list a{padding:.5rem .9rem;font-size:.86rem}
}

/* =========================================================
   cta band, catégorie, article, sidebar — mêmes noms que le
   modèle, habillage propre
   ========================================================= */
.cta-band{background:var(--cuivre);color:#fff;padding:4rem 0;text-align:center}
.cta-band h2{color:#fff}
.cta-band p{color:rgba(255,255,255,.92)}

footer{background:var(--anthracite);color:rgba(242,237,227,.8);padding:3.5rem 0 1.75rem;font-size:.9rem}
footer .wrap{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2rem}
footer h4{color:var(--ivoire);font-size:.85rem;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.9rem}
footer ul{list-style:none;margin:0;padding:0}
footer li{margin-bottom:.5rem}
footer a{color:rgba(242,237,227,.8);text-decoration:none}
footer a:hover{color:var(--ivoire)}
.footer-discreet{padding-top:1.4rem;font-size:.78rem}
.footer-discreet a{color:rgba(242,237,227,.5)}
.footer-discreet a:hover{color:rgba(242,237,227,.8)}
.footer-bottom{border-top:1px solid rgba(242,237,227,.14);margin-top:.9rem;padding-top:1.25rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.6rem;font-size:.8rem;color:rgba(242,237,227,.55)}
.footer-bottom .discreet-links{display:flex;gap:1rem}
.footer-bottom .discreet-links a{color:rgba(242,237,227,.5);font-size:.76rem}
.footer-bottom .discreet-links a:hover{color:rgba(242,237,227,.8)}
.partner-note{font-size:.78rem;color:rgba(242,237,227,.55)}

.crumb{font-size:.82rem;color:var(--text-soft);padding:1rem 0 0}
.crumb a{color:var(--cuivre);text-decoration:none}
.crumb--ondark{color:rgba(242,237,227,.7)}
.crumb--ondark a{color:rgba(242,237,227,.92)}

.cat-hero{position:relative;background:var(--anthracite);color:var(--ivoire);padding:1.25rem 0 3.25rem}
.cat-hero h1{font-size:clamp(1.8rem,4vw,2.5rem);margin-top:.6rem}
.cat-chapo{color:rgba(242,237,227,.86);font-size:1.02rem;max-width:64ch;margin:.75rem 0 0}
.cat-empty{background:var(--surface-1);padding:2.75rem;text-align:center}
.cat-empty p{color:var(--text-soft);margin-bottom:1.1rem}

.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
.article-grid-cta{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:1.1rem;flex-wrap:wrap;background:var(--anthracite);color:var(--ivoire);padding:1.5rem 1.75rem}
.article-grid-cta strong{display:block;font-size:1.02rem}
.article-grid-cta span{color:rgba(242,237,227,.78);font-size:.88rem}
.article-card{display:flex;flex-direction:column;background:var(--surface-1);overflow:hidden;text-decoration:none;color:inherit}
.article-card-img{aspect-ratio:16/10;overflow:hidden;background:color-mix(in srgb, var(--bg) 88%, var(--cuivre) 12%);position:relative}
.article-card-img::before{content:"";position:absolute;inset:0;background-image:var(--motif-spire);background-repeat:no-repeat;background-position:center;background-size:65%;opacity:.14}
.article-card-img img{width:100%;height:100%;object-fit:cover;position:relative;z-index:1}
.article-card-body{padding:1.25rem 1.35rem 1.5rem;display:flex;flex-direction:column;flex:1;border-top:3px solid var(--cuivre)}
.article-card-meta{display:flex;align-items:center;gap:.6rem;margin-bottom:.6rem}
.article-card-meta .read-time{font-size:.76rem;color:var(--text-soft)}
.article-card h3{font-size:1.04rem;margin-bottom:.5rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.article-card p{color:var(--text-soft);font-size:.9rem;margin-bottom:.9rem;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.article-card .card-link{font-weight:800;font-size:.86rem;color:var(--cuivre)}

.sticky-cta{position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--anthracite);padding:.75rem 1rem;display:none;border-top:3px solid var(--cuivre)}
.site-header.nav-panel-open ~ .sticky-cta,.sticky-cta.qv2-hide{display:none!important}
.sticky-cta .btn{width:100%}

.article-head{max-width:47.5rem;margin:0 auto}
.article-head h1{margin-top:.9rem}
/* Défaut connu (14/09/2026) : une image 16/9 pleine largeur pouvait repousser
   le 1er paragraphe sous la ligne de flottaison (1440x900 et 390x844). Ratio
   plus large + hauteur plafonnée en vh pour garder du texte visible au 1er écran. */
.article-hero-img{aspect-ratio:21/9;max-width:70rem;max-height:34vh;margin:1.2rem auto 0;overflow:hidden;clip-path:polygon(var(--chanfrein) 0,100% 0,100% 100%,0 100%,0 var(--chanfrein))}
.article-hero-img img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:480px){.article-hero-img{aspect-ratio:16/9;max-height:20vh;margin-top:.8rem}}
.article-body{max-width:70ch;margin:0 auto}
.article-body h2{margin-top:2.2em;font-size:1.45rem;padding-left:1rem;border-left:4px solid var(--cuivre);text-transform:none}
.article-body h3{margin-top:1.6em;font-size:1.12rem}
.article-body p{line-height:1.75}
.article-body ul,.article-body ol{padding:1.1rem 1.3rem 1.1rem 2.4rem;background:color-mix(in srgb, var(--bg) 90%, var(--cuivre) 10%);border-left:4px solid var(--cuivre-vif)}
.article-body li{margin-bottom:.5em}
.article-body li:last-child{margin-bottom:0}
.article-body img{box-shadow:var(--shadow-off-sm);margin:.5rem 0 1.9rem}
.article-lead{max-width:70ch;margin:0 auto 1.6em;font-size:1.12rem;line-height:1.6;color:var(--text-soft)}
.article-meta{display:flex;gap:.6rem;align-items:center;color:var(--text-soft);font-size:.85rem;margin:.9rem 0 0;flex-wrap:wrap}

.body-figure{margin:.5rem 0 1.9rem}
.body-figure img{margin:0 0 .6rem}
.body-figure figcaption{font-size:.82rem;color:var(--text-soft);text-align:center;line-height:1.4}

.article-layout{display:grid;grid-template-columns:minmax(0,43.75rem) 20rem;gap:2.5rem;align-items:start;max-width:70rem;margin:0 auto}
.article-main{min-width:0}
.article-main .article-body,.article-main .article-lead,.article-main .cta-end,.article-main .author-box{max-width:100%}
.article-sidebar{display:flex;flex-direction:column;gap:1.4rem}
.sidebar-card{background:var(--surface-1);padding:1.4rem}
.sidebar-card-title{font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--cuivre-sombre);margin:0 0 .9rem}
.sidebar-toc{position:sticky;top:6rem}
.sidebar-toc ol{margin:0;padding-left:1.1em}
.sidebar-toc li{margin-bottom:.45rem;font-size:.88rem}
.sidebar-toc a{color:var(--cuivre);text-decoration:none}
.sidebar-toc a:hover{text-decoration:underline}

.product-list{list-style:none;margin:0 0 1rem;padding:0}
.product-item{padding:.75rem 0;border-top:1px solid var(--ligne-1)}
.product-item:first-child{border-top:none;padding-top:0}
.product-name{font-weight:700;font-size:.92rem;color:var(--text)}
.product-desc{margin:.25rem 0 0;font-size:.82rem;color:var(--text-soft)}

.guide-list{list-style:none;margin:0;padding:0}
.guide-list li{border-top:1px solid var(--ligne-1)}
.guide-list li:first-child{border-top:none}
.guide-list a{display:flex;align-items:center;gap:.75rem;padding:.75rem 0;text-decoration:none;color:inherit}
.guide-list img{width:3.5rem;height:3.5rem;object-fit:cover;flex:none}
.guide-list-title{display:block;font-size:.86rem;font-weight:700;line-height:1.3}
.guide-list-time{display:block;font-size:.74rem;color:var(--text-soft);margin-top:.2rem}

.tag{display:inline-block;background:color-mix(in srgb, var(--cuivre) 12%, var(--bg));color:var(--cuivre-sombre);font-size:.72rem;font-weight:800;padding:.25rem .6rem;letter-spacing:.02em}

.mid-cta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;background:var(--anthracite);color:var(--ivoire);padding:1.5rem 1.75rem;margin:2.4em 0}
.mid-cta p{margin:0;color:rgba(242,237,227,.9);font-weight:600;max-width:46ch}
.cta-end{background:var(--surface-1);border:2px dashed var(--cuivre);padding:1.9rem 1.75rem;text-align:center;margin:2.75rem 0 2.25rem}
.cta-end h3{margin-bottom:.4rem}
.cta-end p{color:var(--text-soft)}

.error-404{text-align:center;padding:7.5rem 0}
.error-404 .code{font-family:var(--font-head);font-size:clamp(3.2rem,10vw,6.5rem);font-weight:900;color:var(--cuivre)}

/* =========================================================
   Mobile-first (390px) — colonne unique, tiroir plein écran,
   burger, sticky-cta visible
   ========================================================= */
@media (max-width:900px){
  .hero .wrap{grid-template-columns:1fr}
  .grid-3,.grid-2,.icon-grid,.article-grid,.article-layout{grid-template-columns:1fr}
  .article-sidebar{position:static;order:3}
  .sidebar-toc{position:static}
  .rubriques-grid{grid-template-columns:1fr 1fr}
  .partner-cta{flex-direction:column;align-items:flex-start;text-align:left}
  .stat-row{grid-template-columns:1fr}
  footer .wrap{grid-template-columns:1fr 1fr}
  .header-inner{height:3.75rem}
  .brand-mark{width:2rem;height:2rem}
  .topbar-actions .btn--header{display:none}
  .nav-toggle{display:flex;align-items:center;justify-content:center}
  .mobile-nav-panel{display:none;position:fixed;inset:3.75rem 0 0 0;background:var(--anthracite);flex-direction:column;z-index:100;overflow-y:auto}
  .mobile-nav-panel.is-open{display:flex}
  .mobile-nav-panel .nav{display:flex;flex-direction:column;gap:0;flex:none;padding:.5rem 1.5rem}
  .mobile-nav-panel .nav li{border-top:1px solid rgba(242,237,227,.12)}
  .mobile-nav-panel .nav a{display:block;padding:1rem .25rem;font-size:1.1rem;color:var(--ivoire);white-space:normal}
  .mobile-nav-panel .nav li.current-menu-item>a::after,.mobile-nav-panel .nav li.current_page_item>a::after{display:none}
  /* 14/09/2026 — recette : .nav li.current-menu-item>a passe en --cuivre (règle desktop, style.css L153)
     y compris dans ce tiroir anthracite, où --cuivre ne fait que 3,1:1 (mesuré) sur ce fond sombre — sous
     le seuil AA 4,5:1 pour un texte de 17,6px. Le tiroir garde l'ivoire (le liseré ::after cuivre suffit
     à marquer la page courante). */
  .mobile-nav-panel .nav li.current-menu-item>a,.mobile-nav-panel .nav li.current_page_item>a,.mobile-nav-panel .nav a.is-current{color:var(--ivoire)}
  .mobile-nav-panel .nav .sub-menu{position:static;display:block;background:none;border:0;box-shadow:none;padding:0 0 .5rem 1rem}
  .mobile-nav-panel .nav .sub-menu li{border-top:0}
  .mobile-nav-panel .nav .sub-menu a{color:var(--ivoire);opacity:.82;padding:.65rem .25rem;font-size:1rem}
  .btn.btn--panel-cta{display:flex;margin:1.25rem 1.5rem 1.75rem;min-height:3.25rem}
  .sticky-cta{display:block}
  .author-box{flex-direction:column;align-items:center;text-align:center}
}
@media (max-width:480px){
  .wrap{padding:0 1.1rem}
  .header-inner{padding:0 1.1rem}
  .brand-mark{width:1.85rem;height:1.85rem}
}
