/* ══════════════════════════════════════════════════════════════
   ColocManager Blog — thème clair, DA de la landing colocmanager.fr
   Fond sable #f6f4f0, accent bleu ardoise #3d5a80, bandeaux --deep #141b25
   UNE police (texte ET titres) : --cm-font déclarée par /assets/header/cm-header.css = la police
   système (David, 02/10/2026 : « l'autre G », celui de l'accueil) — le même « G » d'une page à
   l'autre. Sora et DM Sans retirées le 02/10 : deux polices = deux sites. Mobile-first, WCAG AA.
   Cloné de la feuille VTComptes (même structure de classes), re-thémé le 2026-09-20.
   v5 (02/10/2026) : heros = VRAIE photo plein écran + carte de verre, mêmes valeurs
   que .hcard de landing.php (« qu'on soit dans le même esprit que la page d'accueil »).
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }

:root {
  /* Couleurs — reprises telles quelles de landing.php (source unique de la DA) */
  --bg:          #ffffff;
  --bg-alt:      #f6f4f0;
  --bg-card:     #ffffff;
  --bg-subtle:   #f0ece5;
  --border:      #e6e1da;
  --border-dark: #d4cfc8;

  /* Texte — échelle mesurée sur la landing : 17,4:1 · 7,96:1 · 5,18:1 */
  --text:        #181614;
  --text-dim:    #3a352f;
  --text-muted:  #5b564f;
  --text-light:  #6f6a62;  /* 5,10:1 sur #faf9f7 — seuil AA tenu pour les dates et mentions 12-13px */

  /* Accent — bleu ardoise de la landing. 7,07:1 sur blanc : utilisable
     directement comme couleur de TEXTE, contrairement à l'orange VTComptes
     qui avait dû recevoir un token --link-text séparé. */
  --accent:      #3d5a80;
  --accent-dark: #2f486a;
  --link-text:   #3d5a80;
  --accent-soft: rgba(61,90,128,.10);
  --accent-text: #ffffff;

  /* Sémantique — teintes de l'app, assombries au même cran (AA sur fond pâle) */
  --success:     #356a50;
  --success-bg:  #eef4f0;
  --warning-bg:  #f6f0e5;
  --info-bg:     #e9eff6;
  --sand:        #b0823f;
  /* Bandeaux sombres — mêmes valeurs que --deep / --deep2 de landing.php :
     le hero d'article et la porte bailleur sont le même territoire visuel. */
  --deep:        #141b25;
  --deep2:       #1c2634;

  /* Axe de mise en page — UNE seule référence pour nav / contenu / footer */
  --wrap:        1080px;   /* = .wrap de la landing, pour que le blog tombe sur le même axe */
  --measure:     720px;    /* largeur de lecture d'un article */
  --gutter:      20px;     /* = padding latéral de .wrap sur la landing */

  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 1px 2px rgba(16,24,40,.05), 0 12px 32px rgba(16,24,40,.07);
  --shadow-md:   0 2px 6px rgba(16,24,40,.06), 0 14px 36px rgba(16,24,40,.09);
  --shadow-lg:   0 2px 6px rgba(16,24,40,.06), 0 24px 60px rgba(16,24,40,.14);
}

body {
  font-family: var(--cm-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif); /* LA police du socle (cm-header.css) */
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--link-text); text-decoration: none; }
/* Hover sobre : couleur uniquement, pas de soulignement animé glissant */
a:hover { color: var(--link-text); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Navigation ──────────────────────────────────────────────── */
/* 02/10/2026 — l'ancienne barre du blog (nav.blog-nav, rail repliable) est RETIRÉE.
   Le bandeau est désormais le même que sur la landing : balisage /assets/header/cm-header.html,
   feuille /assets/header/cm-header.css, comportement /assets/header/cm-header.js — fixe,
   transparent sur le hero sombre puis verre liquide dès qu'on défile (David : « un rider
   global qui ne bouge pas, blog compris »). Rien à styler ici : seule la page laisse la
   place au bandeau fixe sur ses heros sombres (règles --cmh-h plus bas). */
/* les ancres du sommaire ne doivent pas finir sous le bandeau fixe */
.article-body h2, .article-body h3, .faq-section { scroll-margin-top: calc(var(--cmh-h, 64px) + 12px); }

/* ── Heros : la photo porte la page, le texte vit dans une carte de verre ──
   Même construction que le hero de landing.php : image en couverture, voile du bas
   (56 %) pour la lisibilité, voile du haut (190 px) pour le bandeau transparent,
   carte .hcard (verre sombre, flou 16 px, rayon 22/24) posée EN BAS (align-items:flex-end).
   Les deux heros partagent ces règles ; seules les hauteurs diffèrent (index 82svh,
   article 100svh — l'article accroche, l'index laisse voir la liste plus vite). */
.article-hero, .index-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  background: var(--deep);
  color: #fff;
  overflow: hidden;
  padding: calc(var(--cmh-h, 64px) + 40px) var(--gutter) clamp(24px, 5vh, 52px);
}
.index-hero { min-height: 82svh; }
.article-hero-img, .index-hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
/* Sans photo (page ancienne) : le dégradé sombre d'avant, rien ne casse. */
.article-hero::before, .index-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -3;
  background: linear-gradient(135deg, #141b25 0%, #1c2634 100%);
}
.article-hero::after, .index-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56%; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(8,12,18,.86) 0%, rgba(8,12,18,.55) 45%, rgba(8,12,18,0) 100%);
}
.hero-top-scrim {
  position: absolute; top: 0; left: 0; right: 0; height: 190px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8,12,18,.62), rgba(8,12,18,0));
}
/* La carte de verre (= .hcard de la landing, valeurs identiques) */
.article-hero-inner, .index-hero-card {
  position: relative;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  background: rgba(10,13,18,.79);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 22px;
  padding: 17px 17px 19px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.index-hero-card { max-width: 690px; margin: 0 auto 0 0; text-align: left; }
/* L'axe du blog : la carte d'index tombe sur la gauche de .wrap, comme sur la landing */
.index-hero > .index-hero-card { margin-left: max(0px, calc((100% - var(--wrap) + var(--gutter) * 2) / 2)); }
/* Téléphone et tablette : la carte devient une « feuille » qui monte du bas de la photo, bord à
   bord, coins hauts arrondis ; son padding = la gouttière, donc le titre tombe sur l'axe du corps
   (garde audit-blog-layout.js : h1 et .article-body à ± 1 px — mesuré 36 vs 18 avec la carte flottante) */
@media (max-width: 859px) {
  .article-hero, .index-hero { padding-left: 0; padding-right: 0; padding-bottom: 0; }
  .article-hero-inner, .index-hero-card {
    /* même boîte que le corps (.article-layout = mesure + 2 gouttières, centrée) : à 768 le corps
       est à 24 px (768 − 760) / 2 + 20, la carte aussi ; sous 760 px elle est bord à bord */
    max-width: calc(var(--measure) + var(--gutter) * 2);
    border-left: 0; border-right: 0; border-bottom: 0;
    border-radius: 24px 24px 0 0;
    padding: 22px var(--gutter) 26px;
    box-shadow: none;
  }
  .index-hero > .index-hero-card { margin: 0 auto; }
}
@media (min-width: 860px) {
  .article-hero-inner, .index-hero-card { padding: 30px 34px 32px; border-radius: 24px; }
  /* Axe unique titre / corps (garde audit-blog-layout.js) : la carte déborde de son padding
     de chaque côté de la mesure, le TEXTE du hero commence donc exactement où commence l'article */
  .article-hero-inner { max-width: calc(var(--measure) + 68px); }
}
.article-hero-overlay { width: 100%; }

/* ── Hero index ──────────────────────────────────────────────── */
.index-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.88);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.index-hero-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #5bbf8a; box-shadow: 0 0 0 3px rgba(91,191,138,.22); }
.index-hero h1 {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.022em;
  color: #ffffff;
  margin: 0 0 12px;
}
.index-hero p {
  font-size: 16px;
  color: rgba(255,255,255,.78);
  max-width: 520px;
  margin: 0;
  line-height: 1.6;
}

/* ── Layout principal ────────────────────────────────────────── */
.blog-container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Le blog ColocManager n'a PAS de colonne latérale : pas de newsletter branchée,
   pas de produits partenaires. Une grille « 1fr 320px » posée d'office laisserait
   320 px de vide à droite de la liste — exactement le défaut d'axe corrigé sur
   VTComptes le 28/08. La 2e colonne n'existe que si une vraie .blog-sidebar existe. */
.blog-layout {
  display: block;
  padding: 56px 0 80px;
}
.blog-layout:has(.blog-sidebar) {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
/* Un item de grille a min-width:auto par défaut : un tableau ou une image large
   élargit la colonne au-delà du viewport et le texte se retrouve coupé.
   min-width:0 rend la colonne réellement compressible. */
.blog-layout > * { min-width: 0; }

@media (max-width: 860px) {
  .blog-layout:has(.blog-sidebar) { grid-template-columns: 1fr; gap: 40px; }
  .blog-sidebar { order: -1; }
  /* Mesuré au rendu à 390px : 84px séparaient la barre de recherche du premier
     libellé de section, soit un dixième de l'écran pour du vide. Ramené à 40. */
  .blog-layout { padding-top: 24px; }
}

/* ── Cards articles ──────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  transition: box-shadow .2s, transform .2s;
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }
.article-card:hover .card-title { color: var(--link-text); }

.article-card.featured {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) { .article-card.featured { grid-template-columns: 1fr; } }

.card-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-subtle);
  flex-shrink: 0;
}
.article-card.featured .card-img-wrap {
  aspect-ratio: auto;
  min-height: 240px;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.article-card:hover .card-img { transform: scale(1.03); }

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
}
.article-card.featured .card-body { padding: 28px 28px 28px; justify-content: center; }

.card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--link-text);
  margin-bottom: 8px;
}
.card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 8px;
  transition: color .15s;
}
.article-card.featured .card-title { font-size: 20px; }
.card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-light);
}
.card-read-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--link-text);
  margin-top: 14px;
}
.card-read-link svg { width: 14px; height: 14px; stroke: currentColor; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.widget-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
  background: var(--bg-alt);
}
.widget-body { padding: 16px 18px; }

/* Produits sidebar */
.product-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.product-item:last-child { border-bottom: none; }
.product-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid rgba(61,90,128,.3);
  color: var(--link-text);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.product-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 2px;
}
.product-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--link-text);
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.product-link:hover { background: rgba(61,90,128,.2); text-decoration: none; }

/* Newsletter widget */
.nwl-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  font-family: inherit;
  margin-bottom: 8px;
  transition: border-color .15s;
}
.nwl-input:focus { outline: none; border-color: var(--accent); }
.nwl-btn {
  width: 100%;
  padding: 9px 12px;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.nwl-btn:hover { background: var(--accent-dark); }
.nwl-sub { font-size: 11px; color: var(--text-light); margin-top: 8px; }

/* ── Produits block (index page) ─────────────────────────────── */
.products-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
}
.products-section .section-inner {
  max-width: var(--wrap);
  margin: 0 auto;
}
.products-section h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.products-section .section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .2s;
}
.product-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.product-card-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid rgba(61,90,128,.25);
  color: var(--link-text);
  align-self: flex-start;
}
.product-card-badge.partner { background: #eff6ff; border-color: rgba(59,130,246,.25); color: #1d4ed8; }
.product-card h3 { font-size: 15px; font-weight: 700; color: var(--text); }
.product-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; flex: 1; }
.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--link-text);
  margin-top: 4px;
}
.product-card-cta svg { width: 13px; height: 13px; stroke: currentColor; }

/* ── Footer ──────────────────────────────────────────────────── */
/* 02/10/2026 — plus de pied de page propre au blog : balisage /assets/header/cm-footer.html,
   styles .cmf dans cm-header.css, les mêmes que la landing (David : « le foot, UN seul »). */

/* ════════════════════════════════════════════════════════════
   ARTICLE TEMPLATE
   ════════════════════════════════════════════════════════════ */

/* Colonne de lecture unique, centrée sur le MÊME axe que le titre du hero.
   Avant : grille `1fr 300px` alors qu'aucun article n'a de sidebar → 348px de vide
   à droite et l'article décalé à gauche. Et le double padding
   (.blog-container 24px + .article-layout 24px) décalait le corps de 24px de plus
   que le fil d'Ariane, avec débordement/texte coupé sur mobile. */
.article-page .blog-container {
  max-width: calc(var(--measure) + var(--gutter) * 2);
}
.article-layout {
  max-width: none;
  margin: 0;
  padding: 32px 0 40px;   /* padding latéral porté par .blog-container uniquement ; bas court : la note légale suit */
  min-width: 0;
}
.article-layout > * { min-width: 0; }

/* Si un article reçoit un jour une vraie sidebar, la grille revient d'elle-même */
.article-page:has(.article-sidebar) .blog-container { max-width: var(--wrap); }
@media (min-width: 861px) {
  .article-layout:has(.article-sidebar) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: start;
  }
}
@media (max-width: 860px) {
  .article-sidebar { order: 1; }
  /* Désactiver le sticky sur mobile/tablette : la sidebar s'affiche sous l'article */
  .toc-sticky {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

/* Hero article — géométrie commune plus haut (section « Heros ») ; ici le contenu de la carte */
.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.article-hero h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.022em;
  color: #ffffff;
  margin-bottom: 14px;
}
.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  align-items: center;
}
.article-hero-meta .sep { opacity: .4; }
.reading-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  color: rgba(255,255,255,.8);
}

/* Breadcrumb */
.article-breadcrumb {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 0;
  padding-top: 20px;
}
.article-breadcrumb a { color: var(--text-muted); }
.article-breadcrumb a:hover { color: var(--text); }

/* Table des matières */
.toc-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 28px 0 32px;
}
.toc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.toc-list {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc-list li { counter-increment: toc; }
.toc-list a {
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.toc-list a::before {
  content: counter(toc);
  font-size: 11px;
  font-weight: 700;
  color: var(--link-text);
  min-width: 18px;
}
.toc-list a:hover { color: var(--link-text); text-decoration: none; }

/* Sticky TOC sidebar — desktop uniquement */
.toc-sticky {
  position: sticky;
  top: 80px;                          /* nav=60px + 20px marge */
  max-height: calc(100vh - 80px - 24px); /* ne dépasse jamais le viewport */
  overflow-y: auto;                   /* scroll interne si sidebar > viewport */
  scrollbar-width: thin;              /* Firefox */
  scrollbar-color: var(--border) transparent;
}
.toc-sticky::-webkit-scrollbar { width: 4px; }
.toc-sticky::-webkit-scrollbar-track { background: transparent; }
.toc-sticky::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.toc-sticky .toc-box { margin: 0 0 16px; }

/* Corps article — la mesure vient du conteneur, pas du bloc : sinon le corps
   se recale à gauche dans un conteneur plus large et « flotte » hors axe. */
.article-body { max-width: none; min-width: 0; }
/* Un mot très long / une URL ne doit jamais être coupé au bord de l'écran */
.article-body p, .article-body li, .article-body h1, .article-body h2,
.article-body h3, .article-body td, .article-body summary, .faq-body {
  overflow-wrap: break-word;
}
.article-body h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 48px 0 16px;
  line-height: 1.25;
  padding-top: 8px;
  border-top: 2px solid var(--border);
}
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
  letter-spacing: -.01em;
}
.article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.article-body p strong { color: var(--text); }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; }
.article-body li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.article-body li strong { color: var(--text); }
.article-body a { color: var(--link-text); text-decoration: underline; text-underline-offset: 2px; }

/* Table */
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: var(--bg-alt); padding: 12px 16px; text-align: left; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border); white-space: nowrap; font-size: 13px; }
td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text-dim); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-alt); }
td strong { color: var(--text); }
.ok { color: #15803d; font-weight: 700; }
.ko { color: #dc2626; font-weight: 700; }

/* Callouts */
.callout {
  background: #fffbeb;
  border: 1px solid rgba(61,90,128,.35);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.65;
}
.callout strong { color: var(--text); }

.callout.tip {
  background: #f0fdf4;
  border-color: #86efac;
  border-left-color: #15803d;
}
.callout.tip strong { color: #14532d; }

.callout.warning {
  background: #fef2f2;
  border-color: #fca5a5;
  border-left-color: #dc2626;
}
.callout.warning strong { color: #991b1b; }

.callout.stat {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-left-color: #2563eb;
  text-align: center;
  padding: 24px;
}
.stat-num {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #2563eb;
  display: block;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 14px;
  color: #1e40af;
  font-weight: 500;
}

/* Section image */
.section-img {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.section-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.section-img figcaption {
  background: var(--bg-alt);
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* Citation */
blockquote {
  border-left: 4px solid var(--accent);
  margin: 28px 0;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
blockquote p {
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  margin: 0;
  line-height: 1.65;
}
blockquote cite {
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
  display: block;
  margin-top: 8px;
}

/* Séparateur décoratif */
.article-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0;
}
.article-sep::before, .article-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.article-sep-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* FAQ */
.faq-section { margin-top: 48px; }
details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-card);
}
summary {
  padding: 15px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '';
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  transition: transform .2s;
}
details[open] summary::after { transform: rotate(-180deg); }
details[open] summary { border-bottom: 1px solid var(--border); }
.faq-body { padding: 16px 18px; font-size: 15px; color: var(--text-dim); line-height: 1.7; }

/* CTA in-article */
.article-cta {
  background: linear-gradient(135deg, #141b25, #1c2634);
  border-radius: var(--radius);
  padding: 28px;
  margin: 36px 0;
  text-align: center;
  color: #ffffff;
}
.article-cta h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}
.article-cta p {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  margin-bottom: 20px;
  line-height: 1.65;
}
.article-cta a {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s;
}
.article-cta a:hover { background: var(--accent-dark); }
.article-cta-sub {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-top: 10px;
}

/* Partage social */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 36px 0;
  flex-wrap: wrap;
}
.share-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--bg);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  text-decoration: none;
}
.share-btn:hover { background: var(--bg-alt); border-color: var(--border-dark); text-decoration: none; color: var(--text); }
.share-btn svg { width: 14px; height: 14px; stroke: currentColor; }

/* Disclaimer */
.article-disclaimer {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 0 0 40px;        /* 02/10 : plus de trou de 150px entre le CTA et la note ; de l'air avant le pied */
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.65;
}

/* Produits en bas d'article */
.article-products {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}
.article-products-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.article-products-header h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin: 0;
}
.article-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
}
.article-products-grid .product-card {
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.article-products-grid .product-card:last-child { border-right: none; }

/* ── Bloc Amazon affilié inline ──────────────────────────────── */
.amazon-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 40px 0;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.amazon-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.amazon-block-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  flex: 1;
}
.amazon-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .02em;
}
.amazon-affiliate-note {
  font-size: 10px;
  color: var(--text-light);
  margin-left: auto;
  font-style: italic;
}
.amazon-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0;
}
.amazon-product-item {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background .15s;
}
.amazon-product-item:last-child { border-right: none; }
.amazon-product-item:hover { background: var(--bg-alt); text-decoration: none; }
.amazon-product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 5px;
}
.amazon-product-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 10px;
}
.amazon-product-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--link-text);
  margin-bottom: 8px;
}
.amazon-product-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-top: auto;
  transition: background .15s;
}
.amazon-product-item:hover .amazon-product-cta { background: #263c58; }
.amazon-product-cta svg { width: 10px; height: 10px; stroke: #fff; }
/* 02/10/2026 — bloc « Le matériel qui va avec » rendu par la lib (renderProduits) : icône au trait
   (jamais de photo Amazon ni de cercle), AUCUN prix (CGU Associates), mention de transparence
   lisible sous la grille. Le bouton n'avait pas de fond : texte blanc sur blanc. */
.amazon-block { margin: 44px 0 8px; }
.article-body .amazon-product-item, .article-body .amazon-product-item:hover,
.article-body .amazon-product-item span { text-decoration: none; border-bottom: 0; }
.article-body .amazon-product-name { text-decoration: none; }
.article-body p.amazon-disclosure { font-size: 12px; line-height: 1.5; color: var(--text-light); margin: 0; }
.amazon-product-cta { background: var(--accent); }
.amazon-product-cta::after { content: '\2197'; font-size: 11px; line-height: 1; }
.amazon-product-ic { display: block; width: 26px; height: 26px; margin-bottom: 10px; color: var(--accent); }
.amazon-product-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.amazon-product-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.amazon-disclosure { font-size: 12px; line-height: 1.5; color: var(--text-light); padding: 10px 18px 12px; margin: 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.amazon-products-grid .amazon-product-item { border-bottom: none; }
@media (max-width: 600px) {
  .amazon-products-grid { grid-template-columns: 1fr; }
  .amazon-product-item { border-right: none; border-bottom: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 12px; }
  .amazon-products-grid .amazon-product-item { border-bottom: 1px solid var(--border); }
  .amazon-product-item:last-child { border-bottom: none; }
  .amazon-product-ic { margin-bottom: 0; }
  .amazon-product-name { flex: 1; margin-bottom: 0; }
  .amazon-product-desc { flex-basis: 100%; margin: 6px 0 8px; }
}

/* ════════════════════════════════════════════════════════════
   SHOP PRODUITS VTC — style NOSK8 adapté thème clair
   Section séparée, exclu du TOC, rail scroll-snap
   ════════════════════════════════════════════════════════════ */

.vtc-shop {
  padding: 36px 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  margin: 40px 0;
  background: var(--bg-alt);
}

.vtc-shop__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 0 2px;
}

.vtc-shop__title {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  border: none;
  padding: 0;
}

.vtc-shop__title::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}

.vtc-shop__all {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-decoration: none;
}
.vtc-shop__all:hover { color: var(--link-text); text-decoration: none; }

.vtc-shop__affil-note {
  font-size: 10px;
  color: var(--text-light);
  font-style: italic;
}

/* Rail scroll-snap */
.vtc-shop__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 10px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.vtc-shop__rail::-webkit-scrollbar { display: none; }
.vtc-shop__rail > * { scroll-snap-align: start; }

@media (min-width: 720px) {
  .vtc-shop__rail { grid-auto-columns: calc((100% - 36px) / 3.5); }
}
@media (min-width: 1100px) {
  .vtc-shop__rail { grid-auto-columns: calc((100% - 48px) / 4.5); }
}

/* Card */
.vtc-shop-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  color: inherit;
  display: block;
  transition: transform .15s, box-shadow .15s;
}
.vtc-shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
/* Même piège de spécificité que .equip-card : .article-body a{text-decoration:underline}
   passe au-dessus d'une simple classe et soulignait tout le texte des cartes (constaté
   2026-08-29 en corrigeant les icônes de repli). */
.article-body .vtc-shop-card,
.article-body .vtc-shop-card:hover,
.article-body .vtc-shop-card *,
.article-body .vtc-shop__all,
.article-body .vtc-shop__all:hover {
  text-decoration: none;
}

.vtc-shop-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--text);
  color: var(--bg-card);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 7px;
  border-radius: 3px;
  z-index: 2;
}

.vtc-shop-card__imgwrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-subtle, #f3f4f6);
}
.vtc-shop-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.vtc-shop-card:hover .vtc-shop-card__img { transform: scale(1.05); }

.vtc-shop-card__body { padding: 10px 12px 12px; }

.vtc-shop-card__src {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin: 0 0 4px;
}

.vtc-shop-card__name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.vtc-shop-card__price {
  font-size: 14px;
  font-weight: 800;
  color: var(--link-text);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vtc-shop-card__cta {
  font-size: 11px;
  font-weight: 700;
  color: #000;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}


/* ── Gouttière mobile : un seul réglage, toutes les zones suivent ──────────── */
@media (max-width: 480px) {
  :root { --gutter: 18px; }
}

/* La recherche du blog a quitté cette page le 02/10/2026 : c'est LA barre du site, sous le bandeau
   (assets/header/cm-header.css, bloc .cms-*). Aucun style ici. */

/* ── Affiliation Amazon — disclosure légale + grille d'équipement (article dédié) ── */
.affiliate-disclosure {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 10px 2px 0;
}
.affiliate-disclosure-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 20px 0 28px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
}
.affiliate-disclosure-box svg { flex-shrink: 0; color: var(--text-muted); margin-top: 2px; }
.affiliate-disclosure-box strong { color: var(--text); }

.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}
.equip-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.equip-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}
/* Spécificité : .article-body a { text-decoration: underline } est plus spécifique
   qu'une simple classe — sans ce sélecteur composé, TOUT le texte des cartes
   (nom, description) ressort souligné (bug constaté 2026-08-29). */
.article-body .equip-card,
.article-body .equip-card:hover,
.article-body .equip-card * {
  text-decoration: none;
}
.equip-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--link-text);
  flex-shrink: 0;
}
.equip-card__cat {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.equip-card__name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}
.equip-card__desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.equip-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--link-text);
  margin-top: 4px;
}
.equip-card__cta svg { width: 13px; height: 13px; transition: transform .15s; }
.equip-card:hover .equip-card__cta svg { transform: translateX(2px); }

@media (max-width: 480px) {
  .equip-grid { grid-template-columns: 1fr; }
}

/* ── Icône de repli pour vtc-shop-card sans photo fiable ──────────────────
   L'image "Support téléphone GPS" (Unsplash 1512054502232-10a0a035d672),
   déjà en place sur 6 articles, montre en réalité un téléphone posé sur un
   bureau — aucune image vérifiée disponible pour un support voiture réel,
   bascule en icône sobre plutôt qu'un visuel trompeur (2026-08-29). */
.vtc-shop-card__iconwrap {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle, #f3f4f6);
}
.vtc-shop-card__iconwrap svg {
  width: 40%;
  height: 40%;
  color: var(--link-text);
}

/* ── Les deux portes, en bas de l'index ───────────────────────────────────
   Reprise de la doctrine de la racine (David 2026-08-02) : deux publics
   arrivent sur le domaine, on ne leur propose JAMAIS un seul bouton ambigu.
   Un compte propriétaire créé par erreur par une locataire a déjà coûté un
   utilisateur. Le blog attire surtout des candidats : la porte « je cherche »
   est la principale, comme sur la landing. */
.index-doors {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 52px 0 60px;
}
.index-doors-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.index-doors h2 {
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.index-doors-grid { display: grid; gap: 12px; }
@media (min-width: 760px) {
  .index-doors-grid { grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: stretch; }
}
.index-door {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.index-door:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.index-door-ic { width: 24px; height: 24px; color: var(--accent); }
.index-door-ic svg { width: 100%; height: 100%; }
.index-door-h {
  font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -.022em;
}
.index-door-p { font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }
.index-door.alt { background: var(--deep, #141b25); border-color: #1c2634; }
.index-door.alt .index-door-h { color: #fff; }
.index-door.alt .index-door-p { color: rgba(255,255,255,.78); }
.index-door.alt .index-door-ic { color: var(--sand); }
@media (prefers-reduced-motion: reduce) { .index-door { transition: none; } .index-door:hover { transform: none; } }
