/* ═══════════════════════════════════════════════════════════════════
   SmartOne — GABARIT D'ARTICLE DE BLOG
   ═══════════════════════════════════════════════════════════════════
   Refonte du 22/08/2026. Modèle de référence : la mise en page des
   articles de passwifi.fr, validée par Cédric.

   Trois partis pris, qui répondent aux défauts constatés :
   1. Le contenu occupe la largeur de la page. Aucune colonne étroite
      centrée, aucune bande blanche à droite du texte.
   2. La largeur est OCCUPÉE, pas étirée : barre d'ancres, tableaux
      pleine largeur, listes en deux colonnes quand elles s'y prêtent.
      Une ligne de texte reste ainsi lisible sans laisser de vide.
   3. Le rythme vertical est contrasté : beaucoup d'air AVANT un titre,
      peu après. C'est ce qui fait lire une page longue.
   ═══════════════════════════════════════════════════════════════════ */

.so-post {
  padding-bottom: var(--so-space-10);
}
.so-post .container-md { max-width: var(--so-container); }

/* ─── Fil d'Ariane ─────────────────────────────────────────────── */
.so-post__breadcrumb { padding: var(--so-space-5) var(--so-space-4) 0; }
.so-post__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--so-muted);
}
.so-post__breadcrumb li + li::before { content: "›"; margin-right: 10px; color: var(--so-muted-soft); }
.so-post__breadcrumb a { color: var(--so-muted); text-decoration: none; }
.so-post__breadcrumb a:hover { color: var(--so-gold-text); text-decoration: underline; }
.so-post__breadcrumb li[aria-current] {
  color: var(--so-ink-2);
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── En-tête éditorial ────────────────────────────────────────── */
.so-post__header {
  padding: var(--so-space-6) var(--so-space-4) var(--so-space-6);
  border-bottom: 1px solid var(--so-border);
  margin-bottom: var(--so-space-8);
}
.so-post__kicker {
  margin: 0 0 var(--so-space-3);
  font-size: 0.74rem;
  font-weight: var(--so-font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--so-gold-text);
}
.so-post__kicker a { color: inherit; text-decoration: none; }
.so-post__kicker a:hover { text-decoration: underline; }

.so-post__title {
  margin: 0 0 var(--so-space-4);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: var(--so-font-weight-bold);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--so-ink);
  /* PAS de `text-wrap: balance` : il répartit le titre sur des lignes de
     largeur égale, donc il n'atteint jamais le bord. La règle du site veut
     que le titre occupe la largeur de la page. */
  text-wrap: pretty;
}
.so-post__lede {
  margin: 0 0 var(--so-space-5);
  font-size: clamp(1.08rem, 1.35vw, 1.24rem);
  line-height: 1.6;
  color: var(--so-ink-2);
}
.so-post__meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--so-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}
.so-post__sep { color: var(--so-muted-soft); }

/* ─── Visuel de couverture ─────────────────────────────────────── */
.so-post__cover {
  margin: 0 auto var(--so-space-8);
  padding: 0 var(--so-space-4);
}
.so-post__cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--so-radius-lg);
  background: var(--so-surface-alt);
}

/* ─── Barre d'ancres ───────────────────────────────────────────── */
.so-post__sommaire {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--so-space-4);
  margin: 0 auto var(--so-space-8);
  padding: var(--so-space-3) var(--so-space-4);
  background: color-mix(in srgb, var(--so-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--so-border);
  border-bottom: 1px solid var(--so-border);
}
.so-post__sommaire[hidden] { display: none; }
.so-post__sommaire-label {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: var(--so-font-weight-bold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--so-muted);
}
.so-post__sommaire ul {
  /* Le défilement horizontal doit se voir : sans ce dégradé, la dernière
     puce paraît simplement tronquée. */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent 100%);
  display: flex;
  gap: var(--so-space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.so-post__sommaire li { flex: 0 0 auto; scroll-snap-align: start; }
.so-post__sommaire a {
  display: block;
  padding: 7px 14px;
  border: 1px solid var(--so-border);
  border-radius: var(--so-radius-pill);
  background: var(--so-surface);
  color: var(--so-ink-2);
  font-size: 0.86rem;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}
.so-post__sommaire a:hover,
.so-post__sommaire a:focus-visible {
  border-color: var(--so-gold-text);
  color: var(--so-gold-text);
  text-decoration: none;
}
.so-post__sommaire a[aria-current="true"] {
  background: var(--so-ink);
  border-color: var(--so-ink);
  color: var(--so-surface);
}

/* ─── Corps de l'article ───────────────────────────────────────── */
.so-post__body {
  padding: 0 var(--so-space-4);
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--so-ink-2);
}
/* RÈGLE (Cédric) : le texte occupe la largeur de la page. Aucun plafond
   en `ch` sur le contenu — c'est ce plafond, remis ici par réflexe, qui
   ramenait les paragraphes à 75 % de la largeur. */
/* Ce qui gagne à occuper toute la largeur y a droit. */
.so-post__body > table,
.so-post__body > figure,
.so-post__body > img,
.so-post__body > .so-encadre,
.so-post__body > .table-responsive { max-width: none; }

.so-post__body > * + * { margin-top: var(--so-space-4); }

/* Rythme : de l'air AVANT un titre, peu après. C'est ce contraste qui
   découpe visuellement une page longue. */
.so-post__body h2 {
  margin: var(--so-space-10) 0 var(--so-space-4);
  padding-top: var(--so-space-4);
  border-top: 1px solid var(--so-border);
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  font-weight: var(--so-font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--so-ink);
  scroll-margin-top: 88px;
}
.so-post__body > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.so-post__body h3 {
  margin: var(--so-space-6) 0 var(--so-space-3);
  font-size: 1.2rem;
  font-weight: var(--so-font-weight-bold);
  line-height: 1.3;
  color: var(--so-ink);
  scroll-margin-top: 88px;
}
.so-post__body h4 {
  margin: var(--so-space-6) 0 var(--so-space-2);
  font-size: 1.04rem;
  font-weight: var(--so-font-weight-semibold);
  color: var(--so-ink);
}
.so-post__body p { margin: 0; }
.so-post__body strong { color: var(--so-ink); font-weight: var(--so-font-weight-semibold); }

.so-post__body ul,
.so-post__body ol { margin: 0; padding-left: 0; list-style: none; }
.so-post__body li { position: relative; padding-left: var(--so-space-6); }
.so-post__body li + li { margin-top: var(--so-space-3); }
.so-post__body ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--so-gold);
}
.so-post__body ol { counter-reset: so-li; }
.so-post__body ol > li { counter-increment: so-li; }
.so-post__body ol > li::before {
  content: counter(so-li, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.8rem;
  font-weight: var(--so-font-weight-bold);
  color: var(--so-gold-text);
}

.so-post__body a:not(.btn) {
  color: var(--so-ink);
  text-decoration-line: underline;
  text-decoration-color: var(--so-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.so-post__body a:not(.btn):hover { color: var(--so-gold-hover); }

.so-post__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--so-radius-md);
  display: block;
}
.so-post__body blockquote {
  margin: var(--so-space-6) 0;
  padding: var(--so-space-5) var(--so-space-6);
  background: var(--so-surface);
  border: 1px solid var(--so-border);
  border-radius: var(--so-radius-md);
  font-size: 1.08rem;
  color: var(--so-ink);
}
.so-post__body blockquote p + p { margin-top: var(--so-space-3); }

/* Tableaux : pleine largeur, lisibles, et jamais de débordement latéral. */
.so-post__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--so-surface);
  border: 1px solid var(--so-border);
  border-radius: var(--so-radius-md);
  overflow: hidden;
}
.so-post__body th,
.so-post__body td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--so-border);
}
.so-post__body thead th {
  background: var(--so-bg-soft);
  color: var(--so-ink);
  font-weight: var(--so-font-weight-semibold);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}
.so-post__body tbody tr:last-child td { border-bottom: 0; }
.so-post__table-wrap { max-width: none; overflow-x: auto; }

/* ─── Étiquettes ───────────────────────────────────────────────── */
.so-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: var(--so-space-8) var(--so-space-4) 0;
}
.so-post__tags a {
  padding: 5px 13px;
  border: 1px solid var(--so-border);
  border-radius: var(--so-radius-pill);
  font-size: 0.82rem;
  color: var(--so-ink-2);
  text-decoration: none;
}
.so-post__tags a:hover { border-color: var(--so-gold-text); color: var(--so-gold-text); }

/* ─── Encadré de fin ───────────────────────────────────────────── */
.so-post__cta-hote { margin-top: var(--so-space-12); padding: 0 var(--so-space-4); }
.so-post__cta {
  margin: var(--so-space-12) auto 0;
  padding: var(--so-space-10) var(--so-space-10);
  background: var(--so-ink);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(217, 119, 6, 0.24), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(217, 119, 6, 0.10), transparent 55%);
  border-radius: var(--so-radius-xl);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: var(--so-space-8);
  align-items: center;
  max-width: var(--so-container);
}
.so-post__cta-texte h2 {
  margin: 0 0 var(--so-space-3);
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  font-weight: var(--so-font-weight-bold);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--so-surface);
}
.so-post__cta-texte p { margin: 0; color: rgba(255, 255, 255, 0.82); line-height: 1.6; }
.so-post__cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--so-space-3); }
a.so-post__cta-tel {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: var(--so-font-weight-semibold);
  text-decoration-line: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}
a.so-post__cta-tel:hover { color: #FBBF24; text-decoration-color: #FBBF24; }

/* ─── Navigation entre articles ────────────────────────────────── */
.so-post__nav {
  display: grid;
  /* Deux colonnes PLEINES, pas `auto-fit` : celui-ci fabriquait quatre
     colonnes de 290 px et laissait la moitié droite de la rangée vide. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--so-space-4);
  padding: var(--so-space-10) var(--so-space-4) 0;
  align-items: stretch;
}
@media (max-width: 720px) { .so-post__nav { grid-template-columns: 1fr; } }
/* « Tous les conseils » n'est pas un troisième article : il passe sous les
   deux cartes, centré, au lieu d'occuper une colonne à moitié vide. */
.so-post__nav-tous { grid-column: 1 / -1; }
.so-post__nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--so-space-5) var(--so-space-6);
  background: var(--so-surface);
  border: 1px solid var(--so-border);
  border-radius: var(--so-radius-md);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.so-post__nav-item:hover {
  transform: translateY(-3px);
  border-color: var(--so-border-strong);
  box-shadow: 0 14px 28px -16px rgba(28, 25, 23, 0.3);
}
.so-post__nav-label {
  font-size: 0.72rem;
  font-weight: var(--so-font-weight-bold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--so-gold-text);
}
.so-post__nav-titre { color: var(--so-ink); font-weight: var(--so-font-weight-semibold); line-height: 1.35; }
.so-post__nav-item--next { text-align: right; }
.so-post__nav-tous {
  justify-self: center;
  margin-top: var(--so-space-4);
  color: var(--so-ink);
  font-weight: var(--so-font-weight-semibold);
  text-decoration-line: underline;
  text-decoration-color: var(--so-gold);
  text-underline-offset: 4px;
}

.so-post__commentaires { padding: var(--so-space-10) var(--so-space-4) 0; }

/* ─── Adaptations ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .so-post__cta { grid-template-columns: 1fr; gap: var(--so-space-5); }
  .so-post__cover img { max-height: 300px; }
  .so-post__sommaire { gap: var(--so-space-3); }
  .so-post__sommaire-label { display: none; }
  .so-post__nav-item--next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .so-post__nav-item { transition: none; }
  .so-post__nav-item:hover { transform: none; }
}

/* ─── Garde-fou : résidus d'interface collés depuis un chat IA ──────
   `deploy/2026-08-22-nettoie-residus-chatgpt.php` les retire de la base.
   Cette règle évite qu'un nouveau collage ne repose une icône orpheline
   et un trou vertical sous chaque tableau en attendant le nettoyage. */
.so-post__body [class*="thread-content-margin"] { display: none !important; }

/* ─── Intitulés de liste ───────────────────────────────────────────
   Les rédactions de ce blog introduisent souvent une liste par un
   paragraphe qui ne contient qu'un intitulé en gras (« Avantages
   majeurs : », « Limitations : »). Sans traitement, il flotte à la même
   distance que n'importe quel paragraphe et n'annonce plus rien.
   On le rapproche de sa liste et on l'éloigne de ce qui précède. */
.so-post__body p:has(> strong:only-child) {
  margin-top: var(--so-space-6);
  color: var(--so-ink);
}
.so-post__body p:has(> strong:only-child) + ul,
.so-post__body p:has(> strong:only-child) + ol {
  margin-top: var(--so-space-2);
}

/* ═══════════════════════════════════════════════════════════════════
   LISTE DU JOURNAL — /conseils.html et les rubriques
   ═══════════════════════════════════════════════════════════════════
   Même famille que le gabarit d'article : un en-tête éditorial qui
   annonce la page, puis la grille. Avant cette refonte, la page
   commençait directement par ses cartes : le `<h1>` existait dans le
   DOM mais son conteneur `.page-header` était masqué en CSS sur toutes
   les pages du blog.                                                 */
.so-blog { padding-bottom: var(--so-space-10); }

.so-blog__header {
  padding: var(--so-space-8) var(--so-space-4) var(--so-space-6);
  border-bottom: 1px solid var(--so-border);
  margin-bottom: var(--so-space-8);
}
.so-blog__kicker {
  margin: 0 0 var(--so-space-3);
  font-size: 0.74rem;
  font-weight: var(--so-font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--so-gold-text);
}
.so-blog__kicker a { color: inherit; text-decoration: none; }
.so-blog__kicker a:hover { text-decoration: underline; }
.so-blog__title {
  margin: 0 0 var(--so-space-4);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: var(--so-font-weight-bold);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--so-ink);
  text-wrap: pretty;
}
.so-blog__lede {
  margin: 0;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--so-ink-2);
}
.so-blog__lede p:last-child { margin-bottom: 0; }
.so-blog__vide { padding: var(--so-space-10) var(--so-space-4); color: var(--so-muted); }
.so-blog__grille { padding: 0 var(--so-space-4); }
.so-blog__pagination { padding: var(--so-space-8) var(--so-space-4) 0; }

/* Vignette absente : un aplat tenu plutôt que l'icône d'image cassée
   du navigateur. La carte garde ainsi sa hauteur et son alignement. */
.so-blog-card__media img[src*="/no-"] { display: none; }
.so-blog-card__media {
  background:
    radial-gradient(circle at 30% 30%, rgba(217, 119, 6, 0.14), transparent 60%),
    var(--so-bg-soft);
}

/* ═══════════════════════════════════════════════════════════════════
   COMPOSANTS REPRIS DE LA MISE EN PAGE PASSWIFI
   ═══════════════════════════════════════════════════════════════════
   Référence validée par Cédric : passwifi.fr/ressources/blog/…
   Sa composition est : titre → chapô → H2 → BLOC DEUX COLONNES
   (visuel | encadré « à retenir ») → sections → ACCORDÉONS → bandeau
   d'appel centré. PassWiFi l'écrit à la main en Tailwind ; ici on la
   rend disponible comme composants du thème, dans la palette SmartOne.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Bloc deux colonnes : visuel + panneau ────────────────────── */
.so-post__duo {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 2.6vw, 36px);
  /* Le visuel et le panneau font la MÊME hauteur : c'est la ligne du bas
     qui donne son assise au bloc. Le plus haut des deux commande, l'image
     se recadre. */
  align-items: stretch;
  margin: 0 auto var(--so-space-8);
  padding: 0 var(--so-space-4);
  max-width: var(--so-container);
}
/* Le visuel ne commande plus la hauteur du bloc : il est plafonné, et se
   recadre. Sans ce plafond, son ratio naturel imposait 414 px de haut pour
   un panneau qui n'en demande que 200. */
.so-post__duo-media {
  margin: 0;
  display: flex;
  min-height: 200px;
  max-height: 300px;
}

/* Six articles sur 28 ont moins de trois titres : pas de sommaire, donc une
   demi-largeur vide à droite du visuel. Dans ce cas le visuel prend toute la
   largeur. Le `:has()` couvre le cas sans JavaScript, la classe le cas normal.
   La hauteur reste plafonnée : aucun décalage de mise en page au chargement. */
.so-post__duo:has(> .so-post__toc[hidden]),
.so-post__duo--seul { grid-template-columns: 1fr; }
.so-post__duo:has(> .so-post__toc[hidden]) .so-post__duo-media,
.so-post__duo--seul .so-post__duo-media { max-height: 340px; }
.so-post__duo-media img {
  display: block;
  width: 100%;
  height: auto;
  height: 100%;
  object-fit: cover;
  border-radius: var(--so-radius-lg);
  background: var(--so-surface-alt);
}
.so-post__duo-media figcaption {
  margin-top: var(--so-space-3);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--so-muted);
}

/* ─── Encadré « à retenir » ────────────────────────────────────── */
.so-retenir {
  background: var(--so-gold-soft);
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: var(--so-radius-lg);
  padding: var(--so-space-6) var(--so-space-6);
}
.so-retenir__titre {
  margin: 0 0 var(--so-space-5);
  font-size: 1.02rem;
  font-weight: var(--so-font-weight-bold);
  color: var(--so-ink);
  letter-spacing: -0.015em;
}
.so-retenir dl { margin: 0; }
.so-retenir dt {
  font-size: 0.7rem;
  font-weight: var(--so-font-weight-bold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--so-gold-text);
  margin-bottom: 4px;
}
.so-retenir dd {
  margin: 0 0 var(--so-space-5);
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--so-ink-2);
}
.so-retenir dd:last-child { margin-bottom: 0; }
.so-retenir strong { color: var(--so-ink); }

/* ─── Accordéons ───────────────────────────────────────────────── */
.so-post__body details.so-acc {
  margin-top: var(--so-space-3);
  background: var(--so-surface);
  border: 1px solid var(--so-border);
  border-radius: var(--so-radius-md);
  overflow: hidden;
}
.so-post__body details.so-acc + details.so-acc { margin-top: var(--so-space-2); }
.so-post__body details.so-acc > summary {
  cursor: pointer;
  list-style: none;
  padding: var(--so-space-4) var(--so-space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--so-space-4);
  font-weight: var(--so-font-weight-semibold);
  color: var(--so-ink);
  transition: background-color 150ms ease;
}
.so-post__body details.so-acc > summary::-webkit-details-marker { display: none; }
.so-post__body details.so-acc > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 400;
  color: var(--so-gold-text);
  transition: transform 200ms var(--so-ease-out, ease);
}
.so-post__body details.so-acc[open] > summary::after { transform: rotate(45deg); }
.so-post__body details.so-acc > summary:hover { background: var(--so-bg-soft); }
.so-post__body details.so-acc > summary:focus-visible {
  outline: 2px solid var(--so-gold-text);
  outline-offset: -2px;
}
.so-post__body details.so-acc .so-acc__corps {
  padding: 0 var(--so-space-6) var(--so-space-5);
  border-top: 1px solid var(--so-border);
  padding-top: var(--so-space-4);
}
.so-post__body details.so-acc .so-acc__corps > * { max-width: none; }

/* ─── Le bandeau de fin, centré comme celui de la référence ────── */
.so-post__cta {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.so-post__cta-texte { max-width: 92ch; }
.so-post__cta-actions { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; }

@media (max-width: 860px) {
  .so-post__duo { grid-template-columns: 1fr; }
  .so-post__body details.so-acc > summary { padding: var(--so-space-4); }
}

/* ─── Sommaire en panneau (colonne de droite du bloc deux colonnes) ─ */
.so-post__toc {
  display: flex;
  flex-direction: column;
  background: var(--so-surface);
  border: 1px solid var(--so-border);
  border-radius: var(--so-radius-lg);
  padding: var(--so-space-4) var(--so-space-5);
}
.so-post__toc[hidden] { display: none; }
.so-post__toc-titre {
  margin: 0 0 var(--so-space-3);
  font-size: 0.72rem;
  font-weight: var(--so-font-weight-bold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--so-muted);
}
.so-post__toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: so-toc;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.so-post__toc li { counter-increment: so-toc; }
.so-post__toc li + li { margin-top: 2px; }
.so-post__toc a {
  display: flex;
  gap: var(--so-space-3);
  padding: 6px 0;
  font-size: 0.88rem;
  line-height: 1.32;
  color: var(--so-ink-2);
  text-decoration: none;
  border-top: 1px solid var(--so-border);
  transition: color 150ms ease;
}
.so-post__toc li:first-child a { border-top: 0; }
.so-post__toc a::before {
  content: counter(so-toc, decimal-leading-zero);
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: var(--so-font-weight-bold);
  color: var(--so-gold-text);
  padding-top: 2px;
}
.so-post__toc a:hover,
.so-post__toc a:focus-visible { color: var(--so-gold-hover); text-decoration: none; }
.so-post__toc a[aria-current="true"] { color: var(--so-ink); font-weight: var(--so-font-weight-semibold); }

/* ─── Carte de schéma dans le fil du texte ─────────────────────────
   L'équivalent de la carte blanche à schéma de l'article de référence :
   elle casse le mur de texte par une image qui APPREND quelque chose,
   pas par une photo décorative. Géométrie vectorielle, donc nette à
   toutes les tailles et sans poids de chargement. */
.so-post__body .so-schema {
  max-width: none;
  margin: var(--so-space-8) 0;
  padding: var(--so-space-7, 28px) var(--so-space-8) var(--so-space-6);
  background: var(--so-surface);
  border: 1px solid var(--so-border);
  border-radius: var(--so-radius-lg);
  box-shadow: 0 14px 30px -22px rgba(28, 25, 23, 0.28);
  overflow-x: auto;
}
.so-schema__svg {
  display: block;
  width: 100%;
  min-width: 700px;
  height: auto;
}
.so-post__body .so-schema figcaption {
  margin: var(--so-space-5) 0 0;
  padding-top: var(--so-space-4);
  border-top: 1px solid var(--so-border);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--so-muted);
}
@media (max-width: 780px) {
  .so-post__body .so-schema { padding: var(--so-space-5) var(--so-space-4); }
}

/* ── Encadré « ce que nous avons à l'atelier » ───────────────────────────────
   Posé dans le contenu par deploy/2026-09-05-articles-liens-catalogue.php.
   Les deux articles qui portent 96 % des clics du blog n'avaient aucun lien
   vers le catalogue : le trafic arrivait et repartait. */

.so-post__body .so-offre {
  list-style: none;
  margin: var(--so-space-4) 0;
  padding: 0;
  display: grid;
  gap: var(--so-space-2);
}
/* `.so-post__body ul > li::before` pose une puce ronde en absolu sur toutes
   les listes du contenu, et `list-style: none` ne l'atteint pas : elle
   flottait au-dessus de chaque ligne. Ici la liste est un tableau d'offres,
   pas une énumération — on retire la puce et son retrait. */
.so-post__body .so-offre li::before { content: none; }
.so-post__body .so-offre li + li { margin-top: 0; }
.so-post__body .so-offre li {
  margin: 0;
  padding: var(--so-space-3) 0;
  padding-left: 0;
  border-top: 1px solid rgba(217, 119, 6, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--so-space-2);
}
.so-post__body .so-offre li:first-child { border-top: 0; padding-top: 0; }

/* Deux règles du thème battent une classe seule sur les liens de contenu :
   `a:not(.alert-link)` (0,1,1) et `.so-section p a:not(.btn)` (0,3,1).
   On qualifie donc par l'élément, comme ailleurs sur ce site. */
.so-post__body .so-offre a.so-offre__lien,
.so-post__body .so-offre li > a {
  font-weight: 600;
  color: var(--so-ink);
  text-decoration: underline;
  text-decoration-color: var(--so-gold-cta);
  text-underline-offset: 3px;
}
.so-post__body .so-offre li > a:hover { color: var(--so-gold-text); }
.so-post__body .so-offre li > a:focus-visible {
  outline: 2px solid var(--so-gold-cta);
  outline-offset: 3px;
}

