/* ============================================================
   6) NEWS / ACTUALITÉS — archive + single (ListingHive posts)
   ============================================================ */

/* A) Largeur lisible sur archives/blog (sans casser le reste) */
body.archive:not(.home) .site-content,
body.blog:not(.home) .site-content{
  max-width:none !important;
  width:100% !important;
}
body.archive:not(.home) .content,
body.archive:not(.home) .content__wrap,
body.blog:not(.home) .content,
body.blog:not(.home) .content__wrap{
  width:min(1400px, calc(100vw - 56px)) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
@media (max-width:720px){
  body.archive:not(.home) .content,
  body.archive:not(.home) .content__wrap,
  body.blog:not(.home) .content,
  body.blog:not(.home) .content__wrap{
    width:calc(100vw - 28px) !important;
  }
}

/* B) Grille 3/2/1 */
body.archive:not(.home) .posts,
body.blog:not(.home) .posts{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:18px !important;
  align-items:stretch !important;
  margin:0 !important;
}
@media (max-width:1024px){
  body.archive:not(.home) .posts,
  body.blog:not(.home) .posts{ grid-template-columns:repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width:640px){
  body.archive:not(.home) .posts,
  body.blog:not(.home) .posts{ grid-template-columns:1fr !important; }
}

/* C) Carte article */
body.archive:not(.home) .posts > article.post--archive,
body.blog:not(.home) .posts > article.post--archive{
  background:var(--spo-surface) !important;
  border:1px solid rgba(15,42,68,.14) !important;
  border-radius:16px !important;
  box-shadow:0 14px 34px rgba(15,42,68,.10) !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
  min-height:100% !important;
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
}

/* Image */
body.archive:not(.home) .post--archive .post__image img.wp-post-image,
body.blog:not(.home) .post--archive .post__image img.wp-post-image{
  width:100% !important;
  height:190px !important;
  object-fit:cover !important;
  display:block !important;
}

/* Fix “titre en overlay” du thème */
body.archive:not(.home) .post--archive .post__header--cover,
body.blog:not(.home) .post--archive .post__header--cover{ position:static !important; }

/* Titre visible, propre */
body.archive:not(.home) .post--archive .post__title,
body.blog:not(.home) .post--archive .post__title{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  margin:0 !important;
  padding:12px 14px 0 14px !important;
  color:var(--spo-primary) !important;
  font-weight:950 !important;
  line-height:1.2 !important;
  letter-spacing:-0.015em !important;
  background:transparent !important;
  text-shadow:none !important;
}
body.archive:not(.home) .post--archive .post__title a,
body.blog:not(.home) .post--archive .post__title a{
  display:block !important;
  color:inherit !important;
  text-decoration:none !important;
  word-break:break-word !important;
  overflow-wrap:anywhere !important;
}
body.archive:not(.home) .post--archive .post__title a:hover,
body.blog:not(.home) .post--archive .post__title a:hover{
  text-decoration:underline !important;
  text-underline-offset:3px !important;
}

/* Extrait */
body.archive:not(.home) .post--archive .post__content,
body.blog:not(.home) .post--archive .post__content{
  padding:10px 14px 14px 14px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  flex:1 1 auto !important;
}
body.archive:not(.home) .post--archive .post__text,
body.blog:not(.home) .post--archive .post__text{
  color:#334155 !important;
  font-size:14px !important;
  line-height:1.45 !important;
}
body.archive:not(.home) .post--archive .post__text p,
body.blog:not(.home) .post--archive .post__text p{ margin:0 !important; }

/* Pagination pleine largeur */
body.archive:not(.home) .posts .navigation,
body.archive:not(.home) .posts .pagination,
body.blog:not(.home) .posts .navigation,
body.blog:not(.home) .posts .pagination{
  grid-column:1 / -1 !important;
}

/* Sidebar archives : largeur raisonnable */
body.archive:not(.home) .site-sidebar,
body.blog:not(.home) .site-sidebar{
  width:auto !important;
  max-width:360px !important;
}
@media (max-width:1024px){
  body.archive:not(.home) .site-sidebar,
  body.blog:not(.home) .site-sidebar{ max-width:none !important; }
}

/* D) SINGLE POST — hero cover + titre dupliqué */
body.single-post{ background:var(--spo-bg) !important; }
body.single-post .site-content{ padding:12px 0 22px !important; }

body.single-post article.post{
  background:var(--spo-surface) !important;
  border:1px solid rgba(15,42,68,.14) !important;
  border-radius:18px !important;
  box-shadow:0 14px 34px rgba(15,42,68,.10) !important;
  overflow:hidden !important;
}

/* Hero cover “court” (même sans image) */
body.single-post .post__header--cover{
  position:relative !important;
  min-height:220px !important;
  max-height:340px !important;
  padding:26px 18px !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
  background-color:var(--spo-navy) !important;
  background-size:cover !important;
  background-position:center !important;
  overflow:hidden !important;
}
body.single-post .post__header--cover::before{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  background:linear-gradient(180deg, rgba(11,31,51,.35) 0%, rgba(11,31,51,.75) 100%) !important;
  pointer-events:none !important;
}
body.single-post .post__header--cover > *{ position:relative !important; z-index:2 !important; }

body.single-post .post__header--cover .post__title{
  max-width:980px !important;
  margin:0 auto !important;
  text-align:center !important;
  color:#fff !important;
  font-weight:950 !important;
  letter-spacing:-0.02em !important;
  line-height:1.12 !important;
  font-size:clamp(26px, 2.6vw, 44px) !important;
  text-shadow:0 6px 22px rgba(0,0,0,.35) !important;
}
@media (max-width:768px){
  body.single-post .post__header--cover{
    min-height:180px !important;
    max-height:260px !important;
    padding:20px 14px !important;
  }
}

/* Contenu lisible */
body.single-post article.post .post__content{
  max-width:920px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:18px 18px 22px !important;
  color:#0B1220 !important;
  line-height:1.75 !important;
  font-size:16px !important;
}

/* Masque uniquement le titre répété après le cover (si présent) */
body.single-post .post__header--cover + .post__header .post__title{
  display:none !important;
}

body.archive:not(.home) .post--archive .post__title,
body.blog:not(.home) .post--archive .post__title{
  position:static !important;
  inset:auto !important;
  transform:none !important;
}

body.archive:not(.home) .post--archive :is(.post__categories,.post__category,.post__tags,.post__tag),
body.blog:not(.home) .post--archive :is(.post__categories,.post__category,.post__tags,.post__tag){
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  padding:10px 14px 0 14px !important;
  margin:0 !important;
}

body.archive:not(.home) .post--archive :is(.post__categories,.post__category,.post__tags,.post__tag) a,
body.blog:not(.home) .post--archive :is(.post__categories,.post__category,.post__tags,.post__tag) a{
  display:inline-flex !important;
  align-items:center !important;
  padding:6px 10px !important;
  border-radius:999px !important;
  background:rgba(46,111,174,.12) !important;
  border:1px solid rgba(46,111,174,.22) !important;
  color:var(--spo-primary,#0F2A44) !important;
  font-weight:900 !important;
  font-size:12px !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
  text-decoration:none !important;
}

body.single-post .post__header--cover .post__title{
  position:static !important;
  inset:auto !important;
  transform:none !important;
}

body.single-post .post__header--cover :is(.post__categories,.post__category,.post__tags,.post__tag){
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  justify-content:center !important;
  margin:0 0 10px 0 !important;
  padding:0 !important;
}

body.single-post .post__header--cover :is(.post__categories,.post__category,.post__tags,.post__tag) a{
  display:inline-flex !important;
  align-items:center !important;
  padding:7px 11px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.92) !important;
  border:1px solid rgba(255,255,255,.28) !important;
  color:var(--spo-primary,#0F2A44) !important;
  font-weight:950 !important;
  font-size:12px !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
  text-decoration:none !important;
}

.post__header--cover + .post__header .post__title{ display:none }


/* ============================================================
   FIX — Catégories WP (rel="category tag") sur archives/posts
   Objectif : chips visibles, propres, pas en overlay, pas hors carte
   ============================================================ */

/* Conteneur catégories: force un bloc normal (pas absolute/overlay) */
body.archive:not(.home) .post--archive :is(.post__categories, .post__category, .post__meta, .post__details),
body.blog:not(.home) .post--archive :is(.post__categories, .post__category, .post__meta, .post__details){
  position:static !important;
}

/* Lien catégorie WP (rel="category tag") en chips */
body.archive:not(.home) .post--archive a[rel~="category"],
body.blog:not(.home) .post--archive a[rel~="category"]{
  display:inline-flex !important;
  align-items:center !important;
  padding:6px 10px !important;
  border-radius:999px !important;

  background:rgba(46,111,174,.14) !important;
  border:1px solid rgba(46,111,174,.26) !important;
  color:var(--spo-primary, #0F2A44) !important;

  font-weight:900 !important;
  font-size:12px !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
  text-decoration:none !important;

  margin:8px 6px 0 0 !important;
  white-space:nowrap !important;
}

body.archive:not(.home) .post--archive a[rel~="category"]:hover,
body.blog:not(.home) .post--archive a[rel~="category"]:hover{
  background:rgba(46,111,174,.22) !important;
}

/* Si le thème affiche ces liens dans une liste, on wrap proprement */
body.archive:not(.home) .post--archive :is(ul, ol):has(a[rel~="category"]),
body.blog:not(.home) .post--archive :is(ul, ol):has(a[rel~="category"]){
  list-style:none !important;
  padding:0 !important;
  margin:0 !important;
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
}
body.archive:not(.home) .post--archive :is(ul, ol):has(a[rel~="category"]) > li,
body.blog:not(.home) .post--archive :is(ul, ol):has(a[rel~="category"]) > li{
  margin:0 !important;
}

/* ============================================================
   UX TITRES — Archives/Blog (posts ListingHive)
   Objectif :
   - Supprimer le soulignement "lien" trop fort
   - Rendre la zone titre plus lisible + confortable
   - Limiter à 3 lignes avec ellipsis (sans casser la carte)
   ============================================================ */

body.archive:not(.home) .post--archive .post__title,
body.blog:not(.home) .post--archive .post__title{
  padding:14px 14px 6px 14px !important;
  font-weight:950 !important;
  letter-spacing:-0.02em !important;
  line-height:1.08 !important;
  font-size:clamp(20px, 1.25vw, 30px) !important;
}

/* Lien du titre : plus "titre" que "lien" */
body.archive:not(.home) .post--archive .post__title a,
body.blog:not(.home) .post--archive .post__title a{
  text-decoration:none !important;
  color:inherit !important;

  /* UX: limite à 3 lignes (avec ...) */
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:3 !important;
  overflow:hidden !important;

  /* évite les cassures moches */
  word-break:normal !important;
  overflow-wrap:anywhere !important;
  hyphens:auto !important;
}

/* Hover : underline léger + couleur accent */
body.archive:not(.home) .post--archive .post__title a:hover,
body.blog:not(.home) .post--archive .post__title a:hover{
  text-decoration:underline !important;
  text-decoration-thickness:2px !important;
  text-underline-offset:4px !important;
}

/* Option UX : rendre aussi l’image "cliquable" visuellement */
body.archive:not(.home) .post--archive .post__image a,
body.blog:not(.home) .post--archive .post__image a{
  display:block !important;
}
body.archive:not(.home) .post--archive:hover,
body.blog:not(.home) .post--archive:hover{
  transform:translateY(-2px) !important;
  transition:transform .18s ease, box-shadow .18s ease !important;
  box-shadow:0 18px 46px rgba(15,42,68,.14) !important;
}

/* ============================================================
   SPO — NEWS/ACTUS (archives/blog) — UX PRO 2026 (SAFE)
   Scope: body.archive:not(.home), body.blog:not(.home)
   Objectifs :
   - Cartes plus premium (hover sobre, focus clavier)
   - Titres lisibles + clamp 3 lignes
   - Extrait clamp 3-4 lignes (grille stable)
   - Chips catégories/tags propres + visibles
   - Image : ratio stable + zoom léger
   - Zéro impact HOME / autres CPT
   ============================================================ */

/* 1) Cartes : micro-interaction + focus visible */
body.archive:not(.home) .post--archive,
body.blog:not(.home) .post--archive{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
  will-change: transform !important;
}
body.archive:not(.home) .post--archive:hover,
body.blog:not(.home) .post--archive:hover{
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 46px rgba(15,42,68,.14) !important;
  border-color: rgba(15,42,68,.20) !important;
}

/* Focus clavier (important pour accessibilité) */
body.archive:not(.home) .post--archive a:focus-visible,
body.blog:not(.home) .post--archive a:focus-visible{
  outline: 3px solid rgba(30,79,122,.35) !important;
  outline-offset: 3px !important;
  border-radius: 10px !important;
}

/* 2) Image : ratio stable + zoom léger */
body.archive:not(.home) .post--archive .post__image,
body.blog:not(.home) .post--archive .post__image{
  overflow:hidden !important;
}
body.archive:not(.home) .post--archive .post__image img.wp-post-image,
body.blog:not(.home) .post--archive .post__image img.wp-post-image{
  height: 200px !important;
  transform: scale(1) !important;
  transition: transform .25s ease !important;
}
body.archive:not(.home) .post--archive:hover .post__image img.wp-post-image,
body.blog:not(.home) .post--archive:hover .post__image img.wp-post-image{
  transform: scale(1.03) !important;
}

/* 3) Titre : hiérarchie + clamp + fin du soulignement agressif */
body.archive:not(.home) .post--archive .post__title,
body.blog:not(.home) .post--archive .post__title{
  padding: 14px 14px 6px 14px !important;
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.06 !important;
  font-size: clamp(20px, 1.25vw, 30px) !important;
}
body.archive:not(.home) .post--archive .post__title a,
body.blog:not(.home) .post--archive .post__title a{
  color: inherit !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
}
body.archive:not(.home) .post--archive .post__title a:hover,
body.blog:not(.home) .post--archive .post__title a:hover{
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
}

/* 4) Extrait : clamp pour cartes plus régulières */
body.archive:not(.home) .post--archive .post__text,
body.blog:not(.home) .post--archive .post__text{
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
  overflow: hidden !important;
  color: #334155 !important;
  line-height: 1.5 !important;
}

/* 5) Chips catégories (fil “étiquettes”) : propres + visibles */
body.archive:not(.home) .post--archive .post__categories,
body.blog:not(.home) .post--archive .post__categories,
body.archive:not(.home) .post--archive .post__category,
body.blog:not(.home) .post--archive .post__category{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  padding: 12px 14px 0 14px !important;
  margin: 0 !important;
}

/* Liens WP natifs category/tag (ton exemple rel="category tag") */
body.archive:not(.home) .post--archive a[rel~="category"],
body.blog:not(.home) .post--archive a[rel~="category"],
body.archive:not(.home) .post--archive a[rel~="tag"],
body.blog:not(.home) .post--archive a[rel~="tag"]{
  display:inline-flex !important;
  align-items:center !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;

  background: rgba(30,79,122,.10) !important;
  border: 1px solid rgba(30,79,122,.18) !important;
  color: var(--spo-primary, #0F2A44) !important;
}
body.archive:not(.home) .post--archive a[rel~="category"]:hover,
body.blog:not(.home) .post--archive a[rel~="category"]:hover,
body.archive:not(.home) .post--archive a[rel~="tag"]:hover,
body.blog:not(.home) .post--archive a[rel~="tag"]:hover{
  background: rgba(30,79,122,.16) !important;
  border-color: rgba(30,79,122,.28) !important;
}

/* 6) Espace contenu : rythme plus net */
body.archive:not(.home) .post--archive .post__content,
body.blog:not(.home) .post--archive .post__content{
  padding: 10px 14px 16px 14px !important;
  gap: 10px !important;
}

/* 7) Motion safe */
@media (prefers-reduced-motion: reduce){
  body.archive:not(.home) .post--archive,
  body.blog:not(.home) .post--archive,
  body.archive:not(.home) .post--archive .post__image img.wp-post-image,
  body.blog:not(.home) .post--archive .post__image img.wp-post-image{
    transition: none !important;
    transform: none !important;
  }
}

/* ============================================================
   SPO — ACTUS (archives/blog) — CARTE ENTIÈREMENT CLIQUABLE (SAFE)
   Pré-requis confirmé : 1 seul lien principal (titre+image), pas de liens secondaires.
   Objectif : clic partout sur la carte, sans casser la grille ni la sidebar.
   ============================================================ */

/* S'assure que le conteneur est le référentiel du pseudo-overlay */
body.archive:not(.home) .post--archive,
body.blog:not(.home) .post--archive{
  position:relative !important;
}

/* Le lien principal devient “bloc”, mais reste sous le titre si thème le veut */
body.archive:not(.home) .post--archive .post__title a,
body.blog:not(.home) .post--archive .post__title a{
  display:block !important;
}

/* Overlay clic : le lien du titre recouvre toute la carte */
body.archive:not(.home) .post--archive .post__title a::after,
body.blog:not(.home) .post--archive .post__title a::after{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  z-index:2 !important;              /* au-dessus des backgrounds */
  cursor:pointer !important;
}

/* Remonte l’image et le contenu au-dessus de l’overlay pour conserver le rendu visuel,
   mais l’overlay reste cliquable via z-index supérieur du ::after */
body.archive:not(.home) .post--archive .post__image,
body.blog:not(.home) .post--archive .post__image,
body.archive:not(.home) .post--archive .post__content,
body.blog:not(.home) .post--archive .post__content,
body.archive:not(.home) .post--archive .post__categories,
body.blog:not(.home) .post--archive .post__categories,
body.archive:not(.home) .post--archive .post__category,
body.blog:not(.home) .post--archive .post__category{
  position:relative !important;
  z-index:1 !important;
}

/* Focus clavier : on l’affiche sur la carte entière */
body.archive:not(.home) .post--archive:has(.post__title a:focus-visible),
body.blog:not(.home) .post--archive:has(.post__title a:focus-visible){
  outline:3px solid rgba(30,79,122,.35) !important;
  outline-offset:3px !important;
  border-radius:16px !important;
}

/* Fallback si :has() n’est pas supporté : focus sur le lien */
@supports not selector(:has(*)){
  body.archive:not(.home) .post--archive .post__title a:focus-visible,
  body.blog:not(.home) .post--archive .post__title a:focus-visible{
    outline:3px solid rgba(30,79,122,.35) !important;
    outline-offset:4px !important;
    border-radius:10px !important;
  }
}

/* Empêche que le pseudo-overlay bloque la sélection de texte (optionnel) */
body.archive:not(.home) .post--archive .post__title a::after,
body.blog:not(.home) .post--archive .post__title a::after{
  user-select:none !important;
}
/* =========================================================
SPO — NEWS/SINGLE — HERO cover modern (fix bande grise)
SAFE: additif uniquement
========================================================= */

/* 1) Réduit l’effet “mur gris” + donne un fond premium */
.single-post .hp-page__header,
.single-post .page__header,
.single-post .entry-header,
.single-post .post__header {
  background: linear-gradient(135deg, rgba(8,18,32,.9), rgba(8,18,32,.6));
}

/* 2) Essaie de cibler l’image de cover la plus fréquente (ListingHive/HivePress) */
.single-post .hp-page__header img,
.single-post .page__header img,
.single-post .entry-header img,
.single-post .post__header img {
  display: block;
  width: 100%;
  height: clamp(240px, 32vw, 420px);
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
}

/* 3) Si le thème met l’image dans un wrapper centré, on “dé-centre” proprement */
.single-post .hp-page__header .hp-page__header-content,
.single-post .page__header .page__header-content,
.single-post .entry-header .entry-header__content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 16px;
}

/* 4) Petit polish: séparation nette entre hero et contenu */
.single-post .site-content,
.single-post .content-area {
  position: relative;
}

/* ============================================================
   FIN
   ============================================================ */


/* Migrated from CSS additionnel.txt - SPO CSS refonte v1.1.0 */
/* =========================================================
   SPO — ACTUS single (single.php + templates/post-single.php)
   CSS additionnel WP (SAFE / no-regression)
   Scope : singles "post" (actu) + compat ListingHive
   ========================================================= */

/* --- Layout container (ton single.php utilise .row + col-*) --- */
body.single-post .row{
  margin-left:auto;
  margin-right:auto;
  max-width:1100px;
}
body.single-post main.col-sm-8{
  float:none;
  margin-left:auto;
  margin-right:auto;
  padding-left:14px;
  padding-right:14px;
}

/* --- Article wrapper --- */
body.single-post .spo-article{
  overflow-wrap:anywhere;
}

/* --- HERO / HEAD --- */
body.single-post .spo-articleHead{
  margin:12px 0 14px;
}
body.single-post .spo-articleHead__inner{
  border-radius:18px;
  padding:16px 16px;
  border:1px solid rgba(15,42,68,.10);
  background:linear-gradient(180deg, rgba(15,42,68,.04), rgba(255,255,255,.92));
  box-shadow:0 14px 34px rgba(15,42,68,.10);
}
@media (min-width:860px){
  body.single-post .spo-articleHead__inner{
    padding:18px 20px;
  }
}

/* Breadcrumbs */
body.single-post .spo-breadcrumbs{
  margin:0 0 10px;
}
body.single-post .spo-breadcrumbs__list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  padding:0;
  margin:0;
}
body.single-post .spo-breadcrumbs__item{
  display:flex;
  align-items:center;
  gap:8px;
}
body.single-post .spo-breadcrumbs__item:not(:last-child)::after{
  content:"›";
  opacity:.55;
}
body.single-post .spo-breadcrumbs__link{
  text-decoration:none;
}
body.single-post .spo-breadcrumbs__link:hover{
  text-decoration:underline;
}

/* Title + kicker badge */
body.single-post .spo-articleHead__kicker{
  margin:0 0 8px;
}
body.single-post .spo-articleHead__title{
  margin:0 0 10px;
  letter-spacing:-0.02em;
  line-height:1.12;
}

/* Meta row */
body.single-post .spo-articleMeta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  align-items:center;
  margin:0 0 12px;
  color:rgba(31,41,55,.90);
}
body.single-post .spo-articleMeta__item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:0.95em;
}
body.single-post .spo-articleMeta__item time{
  font-weight:700;
}

/* --- CTA row (buttons) --- */
body.single-post .spo-articleCtas{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:10px 0 12px;
}
body.single-post .spo-articleCtas .spo-btn{
  min-height:44px;
}
@media (max-width:760px){
  body.single-post .spo-articleCtas{
    flex-direction:column;
    align-items:stretch;
  }
  body.single-post .spo-articleCtas .spo-btn{
    width:100%;
    justify-content:center;
  }
}

/* --- Note (hero) + “À retenir” si présent dans le contenu --- */
body.single-post .spo-note,
body.single-post .spo-softBox{
  border-radius:16px;
}
body.single-post .spo-note--hero{
  margin-top:10px;
}

/* --- Content typography --- */
body.single-post .spo-articleBody{
  margin-top:14px;
}
body.single-post .spo-articleBody p{
  line-height:1.75;
}
body.single-post .spo-articleBody h2{
  margin-top:28px;
  margin-bottom:10px;
  line-height:1.25;
}
body.single-post .spo-articleBody h3{
  margin-top:18px;
  margin-bottom:8px;
  line-height:1.25;
}
body.single-post .spo-articleBody ul,
body.single-post .spo-articleBody ol{
  padding-left:1.2em;
}
body.single-post .spo-articleBody li{
  margin:6px 0;
}
body.single-post .spo-articleBody hr{
  margin:18px 0;
  border:none;
  border-top:1px solid rgba(15,42,68,.12);
}

/* Images */
body.single-post .spo-articleBody img{
  max-width:100%;
  height:auto;
  border-radius:14px;
}
body.single-post .spo-articleBody figure,
body.single-post .spo-articleBody .wp-caption{
  max-width:100%;
}

/* Blockquote */
body.single-post .spo-articleBody blockquote{
  margin:18px 0;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(15,42,68,.10);
  background:rgba(15,42,68,.04);
}
body.single-post .spo-articleBody blockquote p:last-child{
  margin-bottom:0;
}

/* “À retenir” (si tu utilises .spo-note en haut de contenu) */
body.single-post .spo-articleBody .spo-note--hero ul{
  margin-top:8px;
}

/* Tags */
body.single-post .spo-articleTags{
  margin-top:16px;
}
body.single-post .spo-articleTags .tagcloud a{
  display:inline-block;
  margin:0 6px 6px 0;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(15,42,68,.12);
  text-decoration:none;
}
body.single-post .spo-articleTags .tagcloud a:hover{
  text-decoration:underline;
}

/* WP pagination (multi-page posts) */
body.single-post .spo-postPages{
  margin:16px 0 6px;
}
body.single-post .spo-postPages .page-numbers{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(15,42,68,.12);
  margin-right:6px;
}

/* Focus visible */
body.single-post a:focus-visible,
body.single-post button:focus-visible,
body.single-post summary:focus-visible,
body.single-post .spo-btn:focus-visible{
  outline:3px solid rgba(15,42,68,.35);
  outline-offset:3px;
  border-radius:14px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  body.single-post *{
    scroll-behavior:auto !important;
  }
}
/* =========================================================
   SPO — SINGLE POSTS (actus) — PATCH ADDITIONNEL
   Objectifs :
   - "Sources et références" : 2 colonnes desktop / 1 colonne mobile (cards)
   - Accordéon Premium : violet fermé + violet ouvert (carte entière)
   - Bloc CTA "Besoin d’un plan..." : rendu carte propre
   Additif / safe
   ========================================================= */

/* ---------- A) SOURCES & RÉFÉRENCES -> GRID CARDS ---------- */

.spo-article__sources{
  margin: 10px 0 0;
  padding: 0;
  list-style: none;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 760px){
  .spo-article__sources{
    grid-template-columns: 1fr;
  }
}

.spo-article__sources > li{
  margin: 0 !important;
  padding: 12px 12px 12px 14px;

  display: flex;
  gap: 10px;
  align-items: flex-start;

  background: var(--spo-surface, #fff);
  border: 1px solid var(--spo-border, rgba(15,42,68,.12));
  border-radius: 16px;
  box-shadow: var(--spo-shadow, 0 10px 24px rgba(15,42,68,.08));
}

.spo-article__sources > li > i{
  margin-top: 2px;
  opacity: .85;
  flex: 0 0 auto;
}

.spo-article__sources > li a{
  display: inline-block;
  text-decoration: none !important;
  font-weight: 900;
  line-height: 1.35;
  color: var(--spo-primary, #0F2A44);
}

.spo-article__sources > li a:hover{
  text-decoration: underline !important;
}

/* ---------- B) BLOC CTA "Besoin d’un plan..." -> CARTE ---------- */

.spo-article__cta{
  margin: 16px 0;
  padding: 16px;

  border-radius: 16px;
  border: 1px solid var(--spo-border, rgba(15,42,68,.12));
  box-shadow: var(--spo-shadow, 0 10px 24px rgba(15,42,68,.08));
  background: var(--spo-surface, #fff);
}

.spo-article__cta h3{
  margin: 0 0 10px;
  line-height: 1.2;
}

.spo-article__cta p{
  margin: 0 0 10px;
  line-height: 1.65;
  color: rgba(17,24,39,.88);
}

.spo-article__cta .spo-btn{
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spo-article__social{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(15,42,68,.10);
  font-size: 14px;
}

.spo-article__social a{
  font-weight: 900;
  text-decoration: none !important;
}

.spo-article__social a:hover{
  text-decoration: underline !important;
}

/* ---------- C) ACCORDÉON PREMIUM -> VIOLET FERMÉ + OUVERT ---------- */
/* On s’aligne sur l’accent page si dispo (sinon violet fallback). */
:root{
  --spo-violet-accent: var(--spo-page-accent, #6D28D9);
  --spo-violet-bg-weak: rgba(109,40,217,.08);
  --spo-violet-bg-strong: rgba(109,40,217,.12);
  --spo-violet-border: rgba(109,40,217,.22);
}

@supports (color: color-mix(in srgb, #000 10%, #fff)){
  :root{
    --spo-violet-bg-weak: color-mix(in srgb, var(--spo-violet-accent) 9%, #fff);
    --spo-violet-bg-strong: color-mix(in srgb, var(--spo-violet-accent) 14%, #fff);
    --spo-violet-border: color-mix(in srgb, var(--spo-violet-accent) 26%, rgba(15,42,68,.12));
  }
}

/* Carte accordéon (fermée) */
.spo-enterprises__lift .spo-faq__fineprint{
  border: 1px solid var(--spo-violet-border) !important;
  border-radius: 16px;
  background: var(--spo-violet-bg-weak) !important;
  box-shadow: 0 10px 24px rgba(15,42,68,.08);
  overflow: hidden;
}

/* Summary (fermée) = même teinte violet */
.spo-enterprises__lift .spo-faq__q{
  background: var(--spo-violet-bg-weak) !important;
  color: var(--spo-primary, #0F2A44);
  padding: 12px 14px;
}

/* Carte accordéon (ouverte) = violet un peu plus marqué, y compris le contenu */
.spo-enterprises__lift details[open].spo-faq__fineprint{
  background: var(--spo-violet-bg-strong) !important;
  border-color: var(--spo-violet-border) !important;
}

.spo-enterprises__lift details[open] .spo-faq__q{
  background: var(--spo-violet-bg-strong) !important;
}

.spo-enterprises__lift details[open] .spo-faq__a{
  background: var(--spo-violet-bg-strong) !important;
  padding: 0 14px 14px;
}

/* Icônes + chevron */
.spo-enterprises__lift .spo-faq__qLeft .spo-ico{
  color: var(--spo-violet-accent);
}

.spo-enterprises__lift .spo-faq__chev{
  color: var(--spo-violet-accent);
  opacity: .95;
}

/* Boutons dans l’accordéon (visibles sur fond violet clair) */
.spo-enterprises__lift .spo-softCta__actions .spo-btn{
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 12px;
}

/* Mobile : actions full width */
@media (max-width: 760px){
  .spo-article__cta .spo-btn{
    width: 100%;
    justify-content: center;
  }
}
/* =========================================================
   SPO — CTA "Besoin d’un plan..." (single posts uniquement)
   Objectif: meilleur layout + bouton plus visible + réseaux en chips
   Additif / safe : scope .single-post + .spo-articleBody
   ========================================================= */

.single-post .spo-articleBody .spo-article__cta{
  /* conserve l'esprit "carte", mais plus premium */
  padding:18px;
  border-radius:18px;
  border:1px solid var(--spo-border, rgba(15,42,68,.12));
  box-shadow: var(--spo-shadow, 0 10px 24px rgba(15,42,68,.08));
  background:
    radial-gradient(800px 220px at 15% -10%, rgba(30,79,122,.12), transparent 60%),
    radial-gradient(700px 220px at 95% 0%, rgba(15,42,68,.08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
  position:relative;
  overflow:hidden;

  display:grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "head head"
    "lede button"
    "social social";
  gap:12px 14px;
}

.single-post .spo-articleBody .spo-article__cta::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:6px;
  background: linear-gradient(180deg, var(--spo-secondary, #1E4F7A), var(--spo-primary, #0F2A44));
  opacity:.9;
}

.single-post .spo-articleBody .spo-article__cta > h3{
  grid-area: head;
  margin:0;
  line-height:1.15;
  letter-spacing:-.01em;
  font-weight:900;
  font-size: clamp(18px, 2vw, 22px);
  padding-left:10px; /* laisse respirer après le liseré */
}

.single-post .spo-articleBody .spo-article__cta > p{
  margin:0;
  line-height:1.7;
  color: rgba(17,24,39,.86);
  padding-left:10px;
}

/* 1er paragraphe = texte (lede) */
.single-post .spo-articleBody .spo-article__cta > p:first-of-type{
  grid-area: lede;
}

/* 2e paragraphe = bouton */
.single-post .spo-articleBody .spo-article__cta > p:nth-of-type(2){
  grid-area: button;
  align-self:start;
  justify-self:start;
  padding-left:0;
}

/* Bouton : plus contrasté, uniquement dans ce CTA */
.single-post .spo-articleBody .spo-article__cta .spo-btn{
  min-height:46px;
  padding:12px 16px;
  border-radius:14px;
  font-weight:900;
  box-shadow: 0 12px 24px rgba(15,42,68,.14);
}

/* Supporte tes 2 conventions : .spo-btn--ghost et .spo-btn-ghost */
.single-post .spo-articleBody .spo-article__cta :is(.spo-btn--ghost, .spo-btn-ghost){
  background: linear-gradient(180deg, var(--spo-secondary, #1E4F7A), var(--spo-primary, #0F2A44)) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.22) !important;
}

.single-post .spo-articleBody .spo-article__cta :is(.spo-btn--ghost, .spo-btn-ghost):hover{
  filter: brightness(1.03);
  transform: translateY(-1px);
}

/* Réseaux : en "chips" + wrap propre */
.single-post .spo-articleBody .spo-article__social{
  grid-area: social;
  margin-top:2px;
  padding-top:12px;
  border-top:1px solid rgba(15,42,68,.10);
  padding-left:10px;

  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  font-size:14px;
}

.single-post .spo-articleBody .spo-article__social strong{
  margin-right:4px;
}

.single-post .spo-articleBody .spo-article__social a{
  display:inline-flex;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(15,42,68,.14);
  background: rgba(244,246,248,.85);
  font-weight:900;
  text-decoration:none !important;
  line-height:1;
}

.single-post .spo-articleBody .spo-article__social a:hover{
  background: rgba(30,79,122,.10);
  border-color: rgba(30,79,122,.28);
  text-decoration:none !important;
}

/* Mobile : bouton pleine largeur, layout en 1 colonne */
@media (max-width: 760px){
  .single-post .spo-articleBody .spo-article__cta{
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "lede"
      "button"
      "social";
  }
  .single-post .spo-articleBody .spo-article__cta > p:nth-of-type(2){
    justify-self:stretch;
  }
  .single-post .spo-articleBody .spo-article__cta .spo-btn{
    width:100%;
    justify-content:center;
  }
}
/* =========================================================
SPO — SINGLE POST — FIX bande grise (header-hero__content)
SAFE: additif, scope single-post uniquement
========================================================= */

/* 1) Neutralise le fond gris du bloc hero */
body.single-post .header-hero__content{
  background: transparent !important;
}

/* 2) Si la bande vient du conteneur hero (souvent header-hero / page header) */
body.single-post .header-hero{
  background: transparent !important;
}

/* 3) Si le thème ajoute un overlay gris via pseudo-element */
body.single-post .header-hero__content::before,
body.single-post .header-hero__content::after,
body.single-post .header-hero::before,
body.single-post .header-hero::after{
  content: none !important;
  background: transparent !important;
}

/* 4) Option “style agence 2026” : hero premium sans bande (tu peux garder/retirer) */
body.single-post .header-hero{
  padding: 24px 0 !important;
  background: radial-gradient(1200px 420px at 50% 0%,
    rgba(30,79,122,.22), rgba(11,31,51,0) 60%) !important;
}

/* 5) Si l’image est dans un wrapper interne, on la rend plus premium */
body.single-post .header-hero img{
  border-radius: 18px !important;
}






/* =========================================================
SPO — PATCH GLOBAL ARTICLES — AERATION + MOBILE (SAFE / NO-REGRESSION)
Objectif :
- Aérer le texte (padding, line-height, espacements)
- Rendre les tables lisibles sur mobile (scroll horizontal propre)
- Améliorer listes, hr, callouts, ancres, FAQ 
Portée :
- Tous les articles .spo-article (et variantes)
Aucun renommage, uniquement additif.
========================================================= */

/* 1) Conteneur : marges internes + largeur lisible */
.spo-article{
  padding-left: clamp(14px, 3.2vw, 26px);
  padding-right: clamp(14px, 3.2vw, 26px);
  margin-left: auto;
  margin-right: auto;
  max-width: 980px; /* lisibilité “cabinet” */
}

/* Si le thème ajoute déjà un container, on évite le double effet */
.spo-article .spo-container,
.spo-article .spo-wrap{
  max-width: 100%;
}

/* 2) Typo : fluidité + respiration */
.spo-article p,
.spo-article li{
  line-height: 1.62;
}

.spo-article p{
  margin: 0 0 14px 0;
}

.spo-article ul,
.spo-article ol{
  margin: 10px 0 16px 0;
  padding-left: 1.15rem;
}

.spo-article li{
  margin: 6px 0;
}

/* 3) Titres : espacement cohérent */
.spo-article h2{
  margin: 28px 0 12px 0;
  line-height: 1.18;
}
.spo-article h3{
  margin: 18px 0 10px 0;
  line-height: 1.22;
}
.spo-article h2 + p,
.spo-article h3 + p{
  margin-top: 8px;
}

/* 4) Séparateurs : plus “premium”, moins collés */
.spo-article hr{
  margin: 22px 0;
  border: 0;
  height: 1px;
  opacity: .14;
}

/* 5) Sections : breathing room */
.spo-article__section{
  margin: 18px 0;
}

/* 6) Micro textes : lisibilité */
.spo-article__micro{
  margin-top: 10px;
  font-size: .95em;
  line-height: 1.5;
  opacity: .92;
}

/* 7) Callouts : padding + espacement interne */
.spo-article__callout{
  margin: 18px 0;
  padding: 14px 14px;
  border-radius: 14px;
}

.spo-article__callout p:last-child{
  margin-bottom: 0;
}

/* 8) Liens : meilleure ergonomie (sans toucher aux couleurs du thème) */
.spo-article a{
  text-underline-offset: 3px;
}

/* =========================================================
TABLES — MOBILE FRIENDLY
- Scroll horizontal sur mobile
- Entêtes lisibles
- Cellules respirantes
========================================================= */

/* 9) Tables : base */
.spo-article table{
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px 0;
}

/* 10) Wrapper automatique via display:block (safe) */
.spo-article table{
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
}

/* Permet à la table de garder sa largeur “naturelle” */
.spo-article thead,
.spo-article tbody,
.spo-article tr{
  width: 100%;
}

.spo-article th,
.spo-article td{
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
  line-height: 1.45;
  white-space: normal;
}

/* Pour éviter des colonnes trop serrées sur mobile */
.spo-article th{
  font-weight: 700;
  opacity: .95;
}

/* Option : si certaines tables ont trop de colonnes, force un min-width */
.spo-article table{
  min-width: 760px; /* déclenche le scroll sur mobile */
}

/* Sur desktop, on laisse respirer sans scroll visible */
@media (min-width: 980px){
  .spo-article table{
    display: table;
    overflow: visible;
    min-width: 0;
  }
}

/* =========================================================
FAQ — spacing (sans changer ton JS / classes)
========================================================= */
.spo-article .spo-faq{
  margin: 18px 0;
}

.spo-article .spo-faq__item{
  margin: 10px 0;
  border-radius: 14px;
  overflow: hidden;
}

.spo-article .spo-faq__q{
  padding: 12px 14px;
}

.spo-article .spo-faq__a{
  padding: 12px 14px 14px 14px;
}

/* =========================================================
MOBILE — ajustements ciblés
========================================================= */
@media (max-width: 640px){
  .spo-article{
    padding-left: 14px;
    padding-right: 14px;
  }

  .spo-article p{
    margin-bottom: 12px;
  }

  .spo-article h2{
    margin-top: 22px;
  }

  .spo-article__callout{
    padding: 12px;
  }

  /* Tables : scroll plus confortable */
  .spo-article table{
    min-width: 680px;
    border-radius: 12px;
  }

  .spo-article th,
  .spo-article td{
    padding: 10px;
  }
}

/* ============================================================
   SPO - Actualites et articles UX v2.0.0 additions
   Reading-first enhancements for existing .spo-news/.spo-article output.
   ============================================================ */

body:is(.blog, .category, .tag, .single-post) {
  background: #f5f7fa;
}

body.single-post .spo-article {
  --article-ink: #11283f;
  --article-muted: #587086;
  --article-blue: #123e66;
  --article-line: rgba(15, 42, 68, .12);
  --article-soft: #f3f7fb;
  max-width: 860px;
  margin: 0 auto;
  color: var(--article-ink);
}

body.single-post .spo-article :is(.spo-articleHead, .spo-article__cta, .spo-article__callout, .spo-article__section) {
  border-radius: 18px;
}

body.single-post .spo-article :is(p, li) {
  line-height: 1.72;
}

body.single-post .spo-article :is(table, pre) {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--article-line);
  border-radius: 12px;
  background: #fff;
}

body.single-post .spo-article :is(.spo-article__sources, .spo-sources) {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--article-line);
  border-radius: 16px;
  background: var(--article-soft);
}

body:is(.blog, .category, .tag) .spo-news :is(article, .post--archive) {
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 42, 68, .06);
}

body:is(.blog, .category, .tag, .single-post)
  :is(.spo-news, .spo-article) :is(a, button, summary):focus-visible {
  outline: 3px solid #2767b1;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  body.single-post .spo-article {
    padding-inline: 12px;
  }
}
