/* ==========================================================
   V2X Studio — le blog (liste et articles)
   La lecture d'abord : une colonne étroite, un texte confortable, rien au-dessus des titres.
   Les couvertures sont de vraies photos, avec le logo de la marque dont parle l'article
   dans une pastille blanche (voir api/_blog-illustration.js).
   ========================================================== */

/* ---------- Couvertures : une photo, et le logo quand il y en a un ---------- */
.couv { position: relative; display: block; width: 100%; height: 100%; }
.couv-photo { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.couv-logos { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; }
.couv-logo { display: grid; place-items: center; height: 50px; min-width: 50px; padding: 11px; border-radius: 13px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 10px 26px -8px rgba(0, 0, 0, .38); }
.couv-logo img { display: block; width: auto; height: 100%; max-width: 104px; }
.couv--une .couv-logos { left: 22px; bottom: 22px; gap: 10px; }
.couv--une .couv-logo { height: 68px; min-width: 68px; padding: 15px; border-radius: 17px; }
.couv--une .couv-logo img { max-width: 140px; }
.couv--article .couv-logos { left: clamp(14px, 2.6vw, 30px); bottom: clamp(14px, 2.6vw, 30px); gap: 10px; }
.couv--article .couv-logo { height: clamp(52px, 7vw, 84px); min-width: clamp(52px, 7vw, 84px); padding: clamp(11px, 1.5vw, 18px); border-radius: clamp(13px, 1.8vw, 20px); }
.couv--article .couv-logo img { max-width: 170px; }
.b-une-visuel, .b-carte-visuel, .art-couverture { display: block; overflow: hidden; background: var(--bg-3); }
.b-une-carte:hover .couv-photo, .b-carte:hover .couv-photo { transform: scale(1.035); }

/* ---------- Liste ---------- */
.b-tete { padding: clamp(40px, 6vw, 88px) 0 clamp(26px, 3.6vw, 48px); }
.b-tete h1 { font-size: clamp(42px, 7vw, 96px); letter-spacing: -.055em; line-height: .96; }
.b-tete h1 span { display: block; color: var(--muted); }
.b-intro { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 56ch; margin: clamp(18px, 2.6vw, 28px) 0 0; }
.b-vide { color: var(--muted); padding: 24px 0 8px; }

/* Choisir un sujet */
.b-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(24px, 3vw, 36px); }
.b-filtre { appearance: none; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 14px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.b-filtre:hover { border-color: var(--ink); color: var(--ink); }
.b-filtre[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.no-js .b-filtres { display: none; }
@media (max-width: 700px) {
  .b-filtres { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .b-filtres::-webkit-scrollbar { display: none; }
  .b-filtre { flex: none; }
}

/* Ce qu'on sait d'un article en une ligne : le sujet, la date, le temps de lecture */
.b-meta { display: flex; flex-wrap: wrap; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.b-meta > * + *::before { content: "·"; margin: 0 8px; }
.b-meta > span:first-child { color: var(--ink-2); }

.b-lire { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); padding-bottom: 2px; transition: border-color .2s; }
.b-lire svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.b-lire:hover { border-color: currentColor; }
.b-lire:hover svg { transform: translateX(3px); }

/* Le dernier article, en grand */
.b-une[hidden] { display: none; }
.b-une-carte { display: grid; gap: clamp(20px, 3vw, 52px); align-items: center; }
@media (min-width: 900px) { .b-une-carte { grid-template-columns: 1.2fr 1fr; } }
.b-une-visuel { aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
.b-une-texte h2 { font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -.042em; line-height: 1.05; margin: 0 0 16px; text-wrap: balance; }
.b-une-texte h2 a:hover, .b-carte-titre a:hover { color: var(--accent); }
.b-une-chapo { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0 0 14px; max-width: 52ch; }
.b-une-texte .b-meta { margin-bottom: 22px; }

.b-titre-section { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; margin: clamp(56px, 8vw, 104px) 0 clamp(24px, 3vw, 36px); padding-top: 26px; border-top: 1px solid var(--line); }
.b-grille { display: grid; gap: 46px 28px; }
@media (min-width: 700px) { .b-grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .b-grille { grid-template-columns: repeat(3, 1fr); } }
.b-carte { min-width: 0; }
.b-carte[hidden] { display: none; }
.b-carte-visuel { aspect-ratio: 16 / 10; border-radius: var(--r); margin-bottom: 18px; }
.b-carte-titre { font-size: 21px; letter-spacing: -.026em; line-height: 1.2; margin: 0 0 8px; text-wrap: balance; }
.b-carte-texte { margin: 0 0 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.b-pont-liste { list-style: none; margin: 0; padding: 0; }
.b-pont-liste a { display: grid; gap: 4px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.b-pont-liste li:first-child a { padding-top: 0; }
@media (min-width: 760px) { .b-pont-liste a { grid-template-columns: 300px 1fr; align-items: baseline; } }
.b-pont-liste b { font-size: 18px; font-weight: 500; letter-spacing: -.02em; transition: color .2s; }
.b-pont-liste span { color: var(--muted); font-size: 15px; }
.b-pont-liste a:hover b { color: var(--accent); }
.b-pont { margin-bottom: clamp(56px, 8vw, 104px); }

/* ---------- Article ---------- */
/* Où l'on en est de la lecture : un trait sous l'en-tête du site */
.art-progres { position: fixed; z-index: 99; left: 0; right: 0; top: var(--header-h); height: 3px; pointer-events: none; }
.art-progres span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--lu, 0)); }
.no-js .art-progres { display: none; }

.art-tete { padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 3.4vw, 40px); }
.art-tete h1 { font-size: clamp(34px, 5.2vw, 68px); letter-spacing: -.047em; line-height: 1.03; max-width: 20ch; text-wrap: balance; }
.art-chapo { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 62ch; margin: clamp(18px, 2.4vw, 26px) 0 0; }
.art-apercu { display: inline-block; font-size: 13.5px; font-weight: 500; line-height: 1.4; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin: 0 0 18px; }
.art-signature { display: flex; align-items: center; gap: 12px; margin-top: clamp(22px, 3vw, 32px); }
.art-portrait { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg-3); }
.art-signature p { margin: 0; display: grid; font-size: 14.5px; line-height: 1.45; }
.art-signature b { font-weight: 600; }
.art-signature span { color: var(--muted); }

.art-couverture { margin: 0; aspect-ratio: 21 / 8; border-radius: var(--r-lg); }
@media (max-width: 700px) { .art-couverture { aspect-ratio: 16 / 10; border-radius: var(--r); } }

.art-grille { display: grid; gap: 24px; padding-top: clamp(28px, 5vw, 64px); }
@media (min-width: 1000px) {
  .art-grille { grid-template-columns: 240px minmax(0, 680px); gap: 72px; justify-content: center; }
  .art-sommaire { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; max-height: calc(100vh - var(--header-h) - 64px); overflow: auto; }
  .art-sommaire summary { pointer-events: none; }
}
/* Dans cet article : le sommaire suit la lecture */
.art-sommaire summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); }
.art-sommaire summary::-webkit-details-marker { display: none; }
.art-sommaire ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.art-sommaire a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--muted); transition: color .2s, border-color .2s; }
.art-sommaire a:hover { color: var(--ink); }
.art-sommaire a.est-ici { color: var(--ink); border-left-color: var(--accent); font-weight: 500; }
@media (max-width: 999px) {
  .art-sommaire { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
  .art-sommaire summary::after { content: "+"; font-size: 20px; font-weight: 400; line-height: 1; color: var(--muted); }
  .art-sommaire details[open] summary::after { content: "–"; }
}

.art-corps { min-width: 0; font-size: 18.5px; line-height: 1.72; color: var(--ink-2); }
@media (max-width: 600px) { .art-corps { font-size: 17.5px; line-height: 1.68; } }
.art-corps > p { margin: 0 0 1.3em; }
.art-corps h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.036em; line-height: 1.14; color: var(--ink); margin: 2.2em 0 .7em; text-wrap: balance; scroll-margin-top: calc(var(--header-h) + 28px); }
.art-corps h3 { font-size: 21px; letter-spacing: -.022em; line-height: 1.25; color: var(--ink); margin: 1.8em 0 .5em; }
.art-corps strong { color: var(--ink); font-weight: 600; }
.art-corps a:not(.b-lire):not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 65%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.art-corps a:not(.b-lire):not(.btn):hover { text-decoration-color: var(--accent); }

/* Listes : une puce ronde ; étapes : un numéro dans un rond plein */
.art-corps > ul, .art-corps > ol.art-etapes { list-style: none; margin: 0 0 1.3em; padding: 0; display: grid; gap: .6em; }
.art-corps > ul > li { position: relative; padding-left: 1.45em; }
.art-corps > ul > li::before { content: ""; position: absolute; left: .2em; top: .68em; width: .4em; height: .4em; border-radius: 50%; background: var(--accent); }
.art-corps > ol.art-etapes { counter-reset: etape; gap: .95em; }
.art-etapes li { counter-increment: etape; position: relative; padding-left: 2.6em; }
.art-etapes li::before { content: counter(etape); position: absolute; left: 0; top: .1em; width: 1.75em; height: 1.75em; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: .78em; font-weight: 600; line-height: 1; }

/* L'essentiel : ce qu'il faut retenir, avant de lire */
.art-essentiel { margin: 0 0 2.4em; padding: 26px 28px 28px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
.art-corps .art-essentiel h2 { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 16px; }
.art-essentiel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75em; font-size: 17px; line-height: 1.55; color: var(--ink); }
.art-essentiel li { position: relative; padding-left: 1.75em; }
.art-essentiel li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.05em; height: 1.05em; border-radius: 50%; background: var(--accent); }
.art-essentiel li::after { content: ""; position: absolute; left: .36em; top: .5em; width: .3em; height: .5em; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 600px) { .art-essentiel { padding: 22px 20px 24px; } }

.art-corps blockquote { margin: 2.2em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--accent); }
.art-corps blockquote p { margin: 0; font-size: clamp(21px, 2.3vw, 26px); line-height: 1.4; letter-spacing: -.02em; color: var(--ink); }
.art-corps blockquote footer { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.art-encart { margin: 2.2em 0; padding: 24px 28px 26px; border-radius: var(--r-lg); background: var(--accent-soft); }
.art-encart-titre { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--ink); }
.art-encart p:last-child { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.art-chiffre { margin: 2.4em 0; padding: 28px 0; border-block: 1px solid var(--line); display: grid; gap: 10px; }
.art-chiffre b { font-size: clamp(56px, 9vw, 100px); font-weight: 600; letter-spacing: -.06em; line-height: .95; color: var(--ink); }
.art-chiffre figcaption { font-size: 16.5px; line-height: 1.5; color: var(--ink-2); max-width: 48ch; }
.art-ref { line-height: 0; }
.art-ref a:not(.b-lire) { font-size: 11.5px; font-weight: 600; line-height: 1; color: var(--accent); text-decoration: none; padding: 0 2px; }
.art-ref a:not(.b-lire):hover { text-decoration: underline; }
.art-refs-seules { margin: -.6em 0 1.3em; font-size: 13.5px; color: var(--muted); }

.art-tableau { margin: 1.8em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.art-tableau table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.art-tableau th, .art-tableau td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.art-tableau thead th { font-size: 14px; font-weight: 600; color: var(--ink); background: var(--bg-2); }
.art-tableau tbody th { font-weight: 500; color: var(--ink); }
.art-tableau tr:last-child th, .art-tableau tr:last-child td { border-bottom: 0; }

.art-faq .faq { font-size: 16.5px; }
.art-faq .faq details p { font-size: 16.5px; line-height: 1.6; }
.art-sources ol { margin: 0; padding-left: 1.4em; display: grid; gap: 12px; font-size: 15.5px; line-height: 1.45; }
.art-sources li { scroll-margin-top: calc(var(--header-h) + 24px); }
.art-sources li::marker { font-size: 13px; font-weight: 600; color: var(--accent); }
.art-sources li span { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); }
.art-sources li:target { background: var(--accent-soft); outline: 6px solid var(--accent-soft); border-radius: 4px; }

/* Appel à l'action de l'article : le rendez-vous, et la page de service liée à la rubrique */
.art-appel { margin: 2.4em 0 .4em; padding: 26px 28px 28px; border-radius: var(--r-lg); background: var(--ink); color: var(--bg); }
.art-appel p { margin: 0 0 10px; font-size: 16px; line-height: 1.55; color: color-mix(in srgb, var(--bg) 78%, transparent); max-width: 52ch; }
.art-appel .art-appel-titre { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--bg); }
.art-appel .art-appel-liens { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 18px 0 0; max-width: none; }
.art-appel .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.art-appel .btn svg { width: 14px; height: 14px; }
.art-appel .b-lire { color: var(--bg); border-bottom-color: color-mix(in srgb, var(--bg) 45%, transparent); }

/* Faire passer l'article */
.art-partage { margin: 2.6em 0 0; padding: 22px 0; border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.art-partage p { margin: 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.art-partage ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.art-partage a, .art-copier { appearance: none; display: inline-block; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.art-corps .art-partage a:not(.b-lire):not(.btn) { text-decoration: none; }
.art-partage a:hover, .art-copier:hover { border-color: var(--ink); }
.art-copier.est-copie { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.no-js .art-copier { display: none; }

.art-note { margin: 1.6em 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.art-auteur { margin-top: 2.2em; padding: 24px; display: flex; gap: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); font-size: 15.5px; line-height: 1.55; }
.art-auteur .art-portrait { width: 64px; height: 64px; }
.art-auteur p { margin: 0 0 10px; }
.art-auteur p:last-child { margin: 0; }
.art-auteur-nom { font-size: 17px; font-weight: 600; color: var(--ink); }
@media (max-width: 520px) { .art-auteur { flex-direction: column; gap: 14px; padding: 20px; } }
.art-suite .b-titre-section { margin-top: clamp(64px, 9vw, 120px); }
.art-retour { margin: 36px 0 0; }
.art-suite { margin-bottom: clamp(56px, 8vw, 104px); }

@media (prefers-reduced-motion: reduce) { .couv-photo { transition: none; } .b-une-carte:hover .couv-photo, .b-carte:hover .couv-photo { transform: none; } }
@media print { .art-sommaire, .art-suite, .art-auteur, .art-partage, .art-progres, .art-appel { display: none; } .art-grille { display: block; } }
