/* =========================================================
   📰 WPZ — SINGLE POST (single.php)
   - Layout article + sommaire + hero + share
   - AUCUNE intervention sur les carousels / vignettes
   - Variables WPZ uniquement (tes tokens :root)
   ========================================================= */


/* =========================================================
   ✅ HERO — cinéma / éditorial (ancrage bas gauche)
   ========================================================= */

.wpz-article-hero{
  position: relative;
  width: 100%;
  margin: 0 0 26px;
  overflow: hidden;
  background: var(--bg);
  min-height: clamp(280px, 36vw, 520px);
  display: flex;
  align-items: flex-end;
}

.wpz-article-hero__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* overlay neutre */
.wpz-article-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.18) 60%, rgba(0,0,0,.28) 100%);
  pointer-events:none;
}

.wpz-article-hero__inner{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wpz-container);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) 16px clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
}

.wpz-article-hero__topline{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.wpz-article-hero__title{
  font-size: clamp(1.95rem, 4.2vw, 3.2rem);
  font-weight: 1000;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--text-invert);
  margin: 0;
  max-width: 22ch;
}

.wpz-article-hero__excerpt{
  max-width: 90ch;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.6;
  color: rgba(255,255,255,.95);
  background: rgba(0,0,0,.35);
  border-left: 4px solid rgba(255,255,255,.55);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.wpz-article-hero__meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  color: rgba(255,255,255,.88);
  font-size:.95rem;
  margin-top: 6px;
}

.wpz-article-meta__item{
  color: rgba(255,255,255,.96);
  text-decoration:none;
  font-weight: 900;
}
.wpz-article-meta__item:hover{ text-decoration: underline; }
.wpz-article-meta__dot{ opacity:.75; }

/* pictos meta */
.wpz-article-meta__item::before{
  margin-right:6px;
  opacity:.9;
}
.wpz-article-meta__item[href^="#wpz-article-content"]::before{ content:"▾"; }
.wpz-article-meta__item[href*="related-films"]::before{ content:"🎬"; }
.wpz-article-meta__item[href*="related-actors"]::before{ content:"🎭"; }

/* mobile hero */
@media (max-width: 768px){
  .wpz-article-hero{ min-height: clamp(240px, 72vw, 420px); }
  .wpz-article-hero__title{ max-width: 100%; }
}


/* =========================================================
   ✅ HERO — fallback sans image
   ========================================================= */

.wpz-article-hero.no-hero-bg{
  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.78) 55%, rgba(0,0,0,.88) 100%);
}

.wpz-article-hero.no-hero-bg::before{
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.70) 100%);
}


/* =========================================================
   ✅ HERO — lisibilité images claires (CSS only)
   ========================================================= */

.wpz-article-hero.has-hero-bg::before{
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.42) 55%, rgba(0,0,0,.72) 100%);
}

/* =========================================================
   ✅ BADGES HERO (cat rouge, temps rouge, date noire)
   - IMPORTANT: rouges non transparents (lisibles)
   ========================================================= */

.wpz-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius: var(--radius-pill);
  font-size:.85rem;
  font-weight:1000;
  line-height:1;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text-invert);
}

/* Catégorie : rouge plein */
.wpz-badge--cat{
  background: var(--primary);
}
.wpz-badge--cat a{
  color: var(--text-invert);
  text-decoration:none;
  font-weight:1000;
}
.wpz-badge--cat a:hover{ text-decoration: underline; }

/* Temps : rouge plein (moins agressif que cat) */
.wpz-badge--time{
  background: var(--primary-hover);
}

/* Date : noir lisible */
.wpz-badge--date{
  background: rgba(0,0,0,.70);
}

.wpz-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
}
.wpz-ico svg{ display:block; }


/* =========================================================
   ✅ LAYOUT
   ========================================================= */

.wpz-article-wrap{
  max-width: var(--wpz-container);
  margin: 0 auto;
  padding: 0 16px 54px;
  color: var(--text);
}

.wpz-article-grid{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px){
  .wpz-article-grid{ grid-template-columns: 1fr; }
}


/* =========================================================
   ✅ BODY / CONTENT
   ========================================================= */

.wpz-article-body{
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.6vw, 34px);
  color: var(--text);
}

.wpz-article-content{
  line-height: 1.9;
  font-size: 1.04rem;
  color: var(--text);
}

.wpz-article-content > *:first-child{ margin-top: 0; }

.wpz-article-content h1,
.wpz-article-content h2,
.wpz-article-content h3,
.wpz-article-content h4,
.wpz-article-content h5,
.wpz-article-content h6{
  color: var(--couleur-titres);
}

.wpz-article-content p,
.wpz-article-content li,
.wpz-article-content blockquote,
.wpz-article-content figcaption{
  color: var(--couleur-textes);
}

.wpz-article-content a{
  color: var(--primary);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wpz-article-content a:hover{ color: var(--primary-hover); }

.wpz-article-content img,
.wpz-article-content video,
.wpz-article-content iframe{
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}


/* =========================================================
   ✅ SHARE (inline)
   ========================================================= */

.wpz-article-share{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.wpz-article-share__label{
  font-weight: 1000;
  color: var(--couleur-titres);
}

.wpz-article-share__buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.wpz-share-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  text-decoration:none;
  font-weight: 1000;
  cursor:pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.wpz-share-btn:hover{
  background: var(--bg-muted);
  border-color: var(--border-strong);
}

.wpz-share-ico{
  display:inline-flex;
  width:18px;
  height:18px;
  align-items:center;
  justify-content:center;
}
.wpz-share-ico svg{ display:block; }


/* =========================================================
   ✅ SOMMAIRE DESKTOP (propre, lisible, sans ombres)
   - fond “class” : var(--bg)
   - texte lisible : var(--text)
   - accents rouges discrets
   ========================================================= */

.wpz-sidebox{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  color: var(--text);
  position: sticky;
  top: calc(var(--header-height) + 14px);
  margin-bottom: 14px;
}

@media (max-width: 1024px){
  .wpz-sidebox{ position: static; }
}

.wpz-sidebox__title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin: 0 0 12px;
  font-weight: 1000;
  color: var(--couleur-titres);
  padding-left: 10px;
  border-left: 4px solid var(--primary);
}

/* contenu scroll sans style agressif */
.wpz-sidebox__content{
  color: var(--text);
  max-height: calc(100vh - 160px);
  overflow: auto;
  padding-right: 6px;
}

.wpz-muted{
  margin: 0 0 10px;
  color: var(--text-soft);
}

/* UL TOC */
.wpz-toc{
  list-style: none;
  padding: 0;
  margin: 0;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

/* item lien */
.wpz-toc__item a{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 650;
  color: var(--text);
  border: 1px solid var(--border-soft);
  font-size:.8rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

/* chevron rouge visible */
.wpz-toc__item a::before{
  content: "›";
  display:inline-flex;
  width: 18px;
  height: 18px;
  align-items:center;
  justify-content:center;
  border-radius: 6px;
  color: var(--primary);
  font-weight: 1000;
  line-height: 1;
  flex: 0 0 auto;
}

.wpz-toc__item a:hover{
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--couleur-titres);
}

/* H3 indentation */
.wpz-toc__item--h3{
  padding-left: 14px;
}
.wpz-toc__item--h3 a{
  font-weight: 900;
  background: var(--bg);
}


/* =========================================================
   ✅ TOC MOBILE — accordéon propre (sans ombres)
   - fermé par défaut (géré par ton JS)
   ========================================================= */

.wpz-toc-mobile{
  display:none;
  margin: 0 0 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}

@media (max-width: 1024px){
  .wpz-toc-mobile{ display:block; }
  .wpz-article-sidebar{ display:none; }
}

.wpz-acc-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  background: var(--bg);
  cursor: pointer;
  font-weight: 1000;
  color: var(--couleur-titres);
}

.wpz-acc-btn__label{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* icône + / - en rouge plein (visible) */
.wpz-acc-btn__icon{
  display:inline-flex;
  width: 30px;
  height: 30px;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  background: var(--primary);
  color: var(--text-invert);
  font-size: 18px;
  line-height: 1;
  font-weight: 1000;
}

.wpz-acc-panel{
  border-top: 1px solid var(--border);
}

.wpz-acc-panel__inner{
  padding: 12px 14px;
}

/* TOC list mobile */
#wpz-toc-mobile .wpz-toc{
  gap: 10px;
}
#wpz-toc-mobile .wpz-toc__item a{
  padding: 10px 10px;
  background: var(--bg-soft);
}


/* =========================================================
   ✅ FULL WIDTH UNDER GRID (sections wrapper only)
   - AUCUN style de carousel/vignette ici
   ========================================================= */

.wpz-article-fullwidth{
  margin-top: 18px;
}

.wpz-article-fullwidth .wpz-related-block,
.wpz-article-fullwidth .wpz-article-related{
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.2vw, 26px);
  margin-top: 30px;
}

.wpz-section-title{
  margin: 0 0 16px;
  color: var(--couleur-titres);
  font-weight: 1000;
  font-size: 1.35rem;
  padding-left: 10px;
  border-left: 4px solid var(--primary);
}


/* =========================================================
   ✅ FLOATING SHARE (FAB) — ROUGE PLEIN (visible)
   - pas de transparence “invisible”
   - pas d’ombres lourdes
   ========================================================= */

.wpz-fshare{
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: var(--z-modal);
  display: block;
}

.wpz-fshare__toggle{
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.18);
  background: var(--primary);
  color: var(--text-invert);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition-fast);
}

.wpz-fshare__toggle:hover{
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.wpz-fshare__toggle:active{ transform: translateY(0); }

.wpz-fshare__toggle:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}

.wpz-fshare__toggle-ico{
  display:inline-flex;
  transition: transform var(--transition-slow);
}
.wpz-fshare.is-open .wpz-fshare__toggle-ico{
  transform: rotate(45deg);
}

.wpz-fshare__menu{
  position: absolute;
  right: 0;
  bottom: 66px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

/* boutons réseaux : fond clair “class”, icône rouge */
.wpz-fshare__btn{
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--primary);
  display: inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  cursor:pointer;

  transform: translateY(14px);
  opacity: 0;
  transition: transform var(--transition-slow), opacity var(--transition-slow), background var(--transition), border-color var(--transition);
}

.wpz-fshare__btn:hover{
  background: var(--bg-soft);
  border-color: var(--border-strong);
}

.wpz-fshare__btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}

.wpz-fshare.is-open .wpz-fshare__menu{ pointer-events: auto; }
.wpz-fshare.is-open .wpz-fshare__btn{ transform: translateY(0); opacity: 1; }

.wpz-fshare__btn:nth-child(1){ transition-delay: 20ms; }
.wpz-fshare__btn:nth-child(2){ transition-delay: 60ms; }
.wpz-fshare__btn:nth-child(3){ transition-delay: 100ms; }
.wpz-fshare__btn:nth-child(4){ transition-delay: 140ms; }

@media (min-width: 1025px){
  .wpz-fshare__toggle{ width: 52px; height: 52px; border-radius: var(--radius); }
  .wpz-fshare__btn{ width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce){
  .wpz-fshare__toggle,
  .wpz-fshare__toggle-ico,
  .wpz-fshare__btn{
    transition: none !important;
    transform: none !important;
  }
}





/* =========================================================
   ✅ PATCH LISIBILITÉ — Sommaire + Floating Share
   - Corrige texte blanc sur blanc (héritage dark)
   - Rend le FAB partage rouge plein (non transparent)
   - AUCUN impact carousels/vignettes
   ========================================================= */

/* =========================
   SOMMAIRE DESKTOP
   ========================= */
.wpz-sidebox{
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;         /* ✅ stop héritage blanc */
}

.wpz-sidebox *{
  color: inherit;                         /* garde la cohérence */
}

.wpz-sidebox__title{
  color: var(--couleur-titres) !important;
  border-left: 4px solid var(--primary) !important;
}

/* Si tu as un pseudo-label (after) qui ressortait pâle */
.wpz-sidebox__title::after{
  background: var(--primary) !important;
  color: var(--text-invert) !important;
  border: 0 !important;
}

/* Liste TOC */
.wpz-toc__item a{
  color: var(--text) !important;         /* ✅ lisible */
}

.wpz-toc__item a:hover{
  background: var(--bg-muted) !important;
  border-color: var(--border) !important;
  color: var(--couleur-titres) !important;
}

/* Chevron rouge visible */
.wpz-toc__item a::before{
  background: var(--text-invert) !important;
  color: var(--primary) !important;
}

/* H3 légèrement plus discret */
.wpz-toc__item--h3 a{
  color: var(--text) !important;
  opacity: .92;
}

/* =========================
   SOMMAIRE MOBILE (accordéon)
   ========================= */
.wpz-toc-mobile{
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}

.wpz-acc-btn{
  background: var(--bg) !important;
  color: var(--couleur-titres) !important;
}

/* Icône +/− rouge plein */
.wpz-acc-btn__icon{
  background: var(--primary) !important;
  color: var(--text-invert) !important;
}

/* Panel */
.wpz-acc-panel{
  border-top: 1px solid var(--border) !important;
}
#wpz-toc-mobile .wpz-toc__item a{
  background: var(--bg-soft) !important;
  border: 1px solid var(--border-soft) !important;
  color: var(--text) !important;
}
#wpz-toc-mobile .wpz-toc__item a::before{
  background: var(--primary) !important;
  color: var(--text-invert) !important;
}

/* =========================
   FLOATING SHARE — bouton principal rouge plein
   ========================= */
.wpz-fshare__toggle{
  background: var(--primary) !important;     /* ✅ rouge plein */
  border: 1px solid rgba(255,255,255,.18) !important;
  color: var(--text-invert) !important;
  opacity: 1 !important;                      /* ✅ stop “fade” */
}

.wpz-fshare__toggle:hover{
  background: var(--primary-hover) !important;
}

/* Boutons réseaux : fond blanc “class” (bien visible) + icône rouge */
.wpz-fshare__btn{
  background: var(--bg) !important;           /* ✅ plus de glass */
  border: 1px solid var(--border) !important;
  color: var(--primary) !important;
  opacity: 1 !important;                       /* ✅ pas de fade à l’état ouvert */
}

/* Hover */
.wpz-fshare__btn:hover{
  background: var(--bg-soft) !important;
  border-color: var(--border-strong) !important;
}

/* Focus visible */
.wpz-fshare__toggle:focus-visible,
.wpz-fshare__btn:focus-visible{
  outline: none !important;
  box-shadow: 0 0 0 4px var(--ring) !important;
}
/* =========================================================
   ✅ FIX — FAB share: ne pas rester “ouvert”
   - On respecte l’état fermé (opacity 0 + pointer-events none)
   - Style rouge plein OK
   ========================================================= */

/* Toggle rouge plein */
.wpz-fshare__toggle{
  background: var(--primary) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: var(--text-invert) !important;
  opacity: 1 !important;
}
.wpz-fshare__toggle:hover{
  background: var(--primary-hover) !important;
}

/* ÉTAT FERMÉ (par défaut) : on verrouille */
.wpz-fshare__menu{
  pointer-events: none !important;
}

.wpz-fshare__btn{
  /* on laisse ton anim existante fonctionner */
  opacity: 0 !important;
  transform: translateY(14px) !important;
}

/* ÉTAT OUVERT : seulement là on rend visibles */
.wpz-fshare.is-open .wpz-fshare__menu{
  pointer-events: auto !important;
}

.wpz-fshare.is-open .wpz-fshare__btn{
  opacity: 1 !important;
  transform: translateY(0) !important;

  /* Style “class” visible */
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--primary) !important;
}

.wpz-fshare.is-open .wpz-fshare__btn:hover{
  background: var(--bg-soft) !important;
  border-color: var(--border-strong) !important;
}

/* Focus */
.wpz-fshare__toggle:focus-visible,
.wpz-fshare__btn:focus-visible{
  outline: none !important;
  box-shadow: 0 0 0 4px var(--ring) !important;
}



/* =========================================================
   ✅ HERO BADGES — Catégorie / Temps / Année
   - Même hauteur
   - Fond semi-transparent lisible
   - Couleurs cohérentes
   - Pas de glass excessif
   ========================================================= */

/* Base commune */
.wpz-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  height: 32px;                 /* ✅ même hauteur */
  padding: 0 12px;

  font-size: .78rem;
  font-weight: 600;
  line-height: 1;

  border-radius: var(--radius-pill);
  white-space: nowrap;

  border: 1px solid rgba(255,255,255,.18);
  color: var(--text-on-dark);

  backdrop-filter: none;        /* ❌ pas de glass */
}

/* =========================
   Catégorie
   ========================= */
.wpz-badge--cat{
  background: rgba(0,0,0,.45);  /* neutre, lisible */
}

/* Liens catégorie */
.wpz-badge--cat a{
  color: var(--text-on-dark);
  text-decoration: none;
}
.wpz-badge--cat a:hover{
  text-decoration: underline;
}

/* =========================
   Temps de lecture
   ========================= */
.wpz-badge--time{
  background: rgba(192,57,43,.22); /* rouge transparent maîtrisé */
  border-color: rgba(192,57,43,.45);
}

/* =========================
   Année
   ========================= */
.wpz-badge--date{
  background: rgba(0,0,0,.38);  /* plus discret que la catégorie */
}

/* Icônes dans les badges */
.wpz-badge .wpz-ico{
  display: inline-flex;
  align-items: center;
  opacity: .9;
}

/* Responsive : légèrement plus compact */
@media (max-width: 768px){
  .wpz-badge{
    height: 30px;
    font-size: .75rem;
    padding: 0 10px;
  }
}


/* =========================================================
   ✅ PATCH — HERO derrière HEADER + BREADCRUMB (sans toucher au header)
   - Remonte l'image du hero sous le header ET sous le fil d'Ariane
   - Descend le contenu du hero pour rester lisible
   - Safe si breadcrumbs absent (ne casse rien)
   ========================================================= */

:root{
  --header-height: 76px;            /* adapte si ton header est plus haut */
  --wpz-breadcrumb-height: 56px;    /* hauteur de ta rangée de “chips” */
}

/* Breadcrumb au-dessus du hero (visuellement) */
.wpz-breadcrumb,
.breadcrumbs,
.yoast-breadcrumb,
.rank-math-breadcrumb,
nav[aria-label="Breadcrumb"],
nav.breadcrumb{
  position: relative;
  z-index: 20;
}

/* Hero remonte sous header + breadcrumb */
body:not(.no-hero) .wpz-article-hero{
  margin-top: calc((var(--header-height) + var(--wpz-breadcrumb-height)) * -1);
}

/* Contenu du hero redescend (pour ne pas passer sous le header) */
body:not(.no-hero) .wpz-article-hero__inner{
  padding-top: calc(var(--header-height) + var(--wpz-breadcrumb-height) + 22px);
}

/* Mobile : si ton header/breadcrumb sont plus hauts */
@media (max-width: 768px){
  :root{
    --header-height: 84px;
    --wpz-breadcrumb-height: 62px;
  }
  body:not(.no-hero) .wpz-article-hero__inner{
    padding-top: calc(var(--header-height) + var(--wpz-breadcrumb-height) + 16px);
  }
}



/* =========================================================
   🧩 WPZ — GUTENBERG MODULES (single.php)
   - Compléments manquants : boutons, citations, tables,
     code, listes, médias, galerie, cover, colonnes, embeds…
   - Respecte tes tokens : --bg, --text, --primary, etc.
   - N’IMPACTE PAS tes carousels / vignettes (aucun sélecteur WPZ block vignettes)
   ========================================================= */


/* =========================================================
   ✅ TYPO & RYTHME (Gutenberg dans .wpz-article-content)
   ========================================================= */

.wpz-article-content{
  --wpz-flow: 14px;
}

.wpz-article-content > *{
  margin-block: var(--wpz-flow);
}

.wpz-article-content h2{
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  line-height: 1.15;
  font-weight: 1000;
  letter-spacing: -0.02em;
}

.wpz-article-content h3{
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.25;
  font-weight: 1000;
}

.wpz-article-content h4{
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 1000;
}

.wpz-article-content p{
  margin-block: 12px;
}

.wpz-article-content strong{
  font-weight: 1000;
}

/* Petits textes / légendes */
.wpz-article-content .has-small-font-size{ font-size: .95rem; }
.wpz-article-content .has-medium-font-size{ font-size: 1.08rem; }
.wpz-article-content .has-large-font-size{ font-size: 1.25rem; }
.wpz-article-content .has-x-large-font-size{ font-size: 1.55rem; }


/* =========================================================
   ✅ LISTES (plus lisibles, mieux espacées)
   ========================================================= */

.wpz-article-content ul,
.wpz-article-content ol{
  padding-left: 1.2rem;
  margin-block: 12px;
}

.wpz-article-content li{
  margin: 8px 0;
}

.wpz-article-content ul li::marker{
  color: var(--primary);
  font-weight: 1000;
}

.wpz-article-content ol li::marker{
  color: var(--primary);
  font-weight: 1000;
}


/* =========================================================
   ✅ BOUTONS Gutenberg (wp:buttons / wp:button)
   - Style propre + focus + tailles
   ========================================================= */

.wpz-article-content .wp-block-buttons{
  gap: 10px;
  flex-wrap: wrap;
  margin-block: 16px;
}

.wpz-article-content .wp-block-button{
  margin: 0;
}

.wpz-article-content .wp-block-button__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);

  color: var(--text);
  font-weight: 1000;
  text-decoration: none;
  line-height: 1.1;

  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition-fast);
}

.wpz-article-content .wp-block-button__link:hover{
  background: var(--bg-muted);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.wpz-article-content .wp-block-button__link:active{
  transform: translateY(0);
}

/* Focus visible */
.wpz-article-content .wp-block-button__link:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}

/* Gutenberg styles : fill / outline (support natif) */
.wpz-article-content .wp-block-button.is-style-fill .wp-block-button__link{
  background: var(--primary);
  border-color: rgba(0,0,0,.08);
  color: var(--text-invert);
}

.wpz-article-content .wp-block-button.is-style-fill .wp-block-button__link:hover{
  background: var(--primary-hover);
  border-color: rgba(0,0,0,.12);
  color: var(--text-invert);
}

.wpz-article-content .wp-block-button.is-style-outline .wp-block-button__link{
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.wpz-article-content .wp-block-button.is-style-outline .wp-block-button__link:hover{
  background: var(--primary-soft);
  color: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* Petites tailles */
.wpz-article-content .wp-block-button.has-small-font-size .wp-block-button__link{
  padding: 9px 12px;
  border-radius: calc(var(--radius) - 2px);
}

/* Large */
.wpz-article-content .wp-block-button.has-large-font-size .wp-block-button__link{
  padding: 12px 16px;
  border-radius: var(--radius-lg);
}


/* =========================================================
   ✅ CITATIONS (blockquote) + PULLQUOTE
   - Utilise tes tokens, rendu “cinéma éditorial”
   ========================================================= */

.wpz-article-content .wp-block-quote{
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--primary);
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.wpz-article-content .wp-block-quote p{
  margin: 0;
  color: var(--couleur-textes);
  font-weight: 700;
  line-height: 1.7;
}

.wpz-article-content .wp-block-quote cite{
  display:block;
  margin-top: 10px;
  font-size: .92rem;
  color: var(--text-soft);
  font-style: normal;
  font-weight: 900;
}

/* Pullquote (wp:pullquote) */
.wpz-article-content .wp-block-pullquote{
  margin: 22px 0;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: radial-gradient(900px 260px at 10% 0%, rgba(192,57,43,.10), transparent 60%), var(--bg);
}

.wpz-article-content .wp-block-pullquote blockquote{
  margin: 0;
  padding: 0;
  border-left: 0;
  background: transparent;
}

.wpz-article-content .wp-block-pullquote p{
  font-size: 1.25rem;
  font-weight: 1000;
  line-height: 1.35;
  color: var(--couleur-titres);
}

.wpz-article-content .wp-block-pullquote cite{
  display:block;
  margin-top: 10px;
  font-size: .92rem;
  color: var(--text-soft);
  font-style: normal;
  font-weight: 900;
}


/* =========================================================
   ✅ IMAGE / FIGURE / LÉGENDES
   ========================================================= */

.wpz-article-content figure{
  margin: 18px 0;
}

.wpz-article-content figcaption{
  margin-top: 8px;
  font-size: .92rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Images align */
.wpz-article-content .alignwide{
  margin-left: -10px;
  margin-right: -10px;
}

@media (min-width: 1025px){
  .wpz-article-content .alignfull{
    width: calc(100vw - 32px);
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}


/* =========================================================
   ✅ GALLERY (wp:gallery)
   ========================================================= */

.wpz-article-content .wp-block-gallery{
  gap: 10px;
  margin: 18px 0;
}

.wpz-article-content .wp-block-gallery .wp-block-image img{
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}


/* =========================================================
   ✅ COVER (wp:cover)
   - utile si tu fais des bannières dans l’article
   ========================================================= */

.wpz-article-content .wp-block-cover{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.wpz-article-content .wp-block-cover__inner-container{
  padding: clamp(18px, 2.6vw, 28px);
}

.wpz-article-content .wp-block-cover p,
.wpz-article-content .wp-block-cover h2,
.wpz-article-content .wp-block-cover h3{
  color: var(--text-invert);
}


/* =========================================================
   ✅ COLONNES / GROUP (wp:columns / wp:group)
   - évite les blocs “collés”
   ========================================================= */

.wpz-article-content .wp-block-columns{
  gap: 16px;
  margin: 18px 0;
}

.wpz-article-content .wp-block-column{
  min-width: 0;
}

.wpz-article-content .wp-block-group{
  margin: 18px 0;
}


/* =========================================================
   ✅ TABLES (wp:table) — très important en blog
   ========================================================= */

.wpz-article-content .wp-block-table{
  margin: 18px 0;
  overflow-x: auto;
}

.wpz-article-content table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}

.wpz-article-content th,
.wpz-article-content td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
  color: var(--text);
}

.wpz-article-content th{
  background: var(--bg-soft);
  color: var(--couleur-titres);
  font-weight: 1000;
}

.wpz-article-content tr:last-child td{
  border-bottom: 0;
}

.wpz-article-content td:last-child,
.wpz-article-content th:last-child{
  border-right: 0;
}


/* =========================================================
   ✅ CODE / PRE / INLINE CODE
   ========================================================= */

.wpz-article-content code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .95em;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  padding: 2px 6px;
  border-radius: 8px;
  color: var(--couleur-titres);
}

.wpz-article-content pre{
  margin: 18px 0;
  padding: 14px 14px;
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  line-height: 1.6;
}

.wpz-article-content pre code{
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}


/* =========================================================
   ✅ EMBEDS / IFRAME / VIDEO (wp:embed)
   ========================================================= */

.wpz-article-content .wp-block-embed{
  margin: 18px 0;
}

.wpz-article-content .wp-block-embed__wrapper{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--bg);
}

.wpz-article-content iframe{
  width: 100%;
}


/* =========================================================
   ✅ DETAILS / SUMMARY (wp:details) — très utile en FAQ
   ========================================================= */

.wpz-article-content details{
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  overflow: hidden;
}

.wpz-article-content details > summary{
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 1000;
  color: var(--couleur-titres);
  background: var(--bg);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.wpz-article-content details > summary::-webkit-details-marker{
  display:none;
}

.wpz-article-content details > summary::after{
  content: "＋";
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: var(--primary);
  color: var(--text-invert);
  font-weight: 1000;
  flex: 0 0 auto;
}

.wpz-article-content details[open] > summary::after{
  content: "－";
  background: var(--primary-hover);
}

.wpz-article-content details > *:not(summary){
  padding: 0 14px 14px;
  color: var(--text);
}


/* =========================================================
   ✅ HR / SEPARATOR (même si tu n’en veux pas : rendu propre si présent)
   ========================================================= */

.wpz-article-content hr{
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}


/* =========================================================
   ✅ CTA BLOCS WPZ (ceux que tu utilises dans l’article)
   - Harmonise les sections .wpz-cta dans Gutenberg
   ========================================================= */

.wpz-article-content .wpz-cta{
  border: 1px solid var(--border);
  background: radial-gradient(900px 220px at 10% 0%, rgba(192,57,43,.10), transparent 60%), var(--bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 18px 0;
}

.wpz-article-content .wpz-cta .wp-block-heading{
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 1000;
  color: var(--couleur-titres);
  padding-left: 10px;
  border-left: 4px solid var(--primary);
}

.wpz-article-content .wpz-cta p{
  margin: 0 0 12px;
  color: var(--couleur-textes);
}

/* Variante légère selon type (optionnel mais utile) */
.wpz-article-content .wpz-cta--final{
  background: radial-gradient(900px 260px at 30% 0%, rgba(192,57,43,.14), transparent 60%), var(--bg);
  border-color: var(--border-strong);
}

/* CTA : espace boutons */
.wpz-article-content .wpz-cta .wp-block-buttons{
  margin: 0;
}


/* =========================================================
   ✅ ACCESSIBILITÉ / ANCRAGES
   ========================================================= */

.wpz-article-content :target{
  scroll-margin-top: calc(var(--header-height, 76px) + 18px);
}