/* Chroniques vidéo parallèle — /chroniques/video/{slug}
   V3 : finition magazine alignée avec Chroniques / Regards.
   - Lora : titres éditoriaux + lecture
   - Montserrat : UI / métas / boutons / labels
   - Orange : accent uniquement
*/

:root {
  --cv4-accent: #ff6233;
  --cv4-bg: #fbfaf7;
  --cv4-surface: #ffffff;
  --cv4-surface-soft: #f7f3ef;
  --cv4-ink: #272422;
  --cv4-text: #34302d;
  --cv4-muted: #776f69;
  --cv4-line: #e8dfd7;
  --cv4-line-strong: #ded2c8;
  --cv4-shadow: 0 16px 42px rgba(38, 32, 27, .06);
  --cv4-shadow-soft: 0 8px 24px rgba(38, 32, 27, .045);
  --cv4-radius: 16px;
  --cv4-font-ui: 'Montserrat', Arial, sans-serif;
  --cv4-font-text: 'Lora', Georgia, 'Times New Roman', serif;
  --cv4-shell: min(1120px, calc(100% - 32px));
}

html[data-theme="dark"],
html.theme-dark {
  --cv4-bg: #11161b;
  --cv4-surface: #171e25;
  --cv4-surface-soft: #1e2730;
  --cv4-ink: #f2eee9;
  --cv4-text: #e7e1da;
  --cv4-muted: #a9a19a;
  --cv4-line: #2d3741;
  --cv4-line-strong: #374553;
  --cv4-shadow: 0 18px 50px rgba(0,0,0,.22);
  --cv4-shadow-soft: 0 10px 28px rgba(0,0,0,.16);
}

body.page-chronique-video-v4 {
  margin: 0;
  background: var(--cv4-bg);
  color: var(--cv4-text);
  font-family: var(--cv4-font-ui);
  font-size: 16px;
}

body.page-chronique-video-v4 *,
body.page-chronique-video-v4 *::before,
body.page-chronique-video-v4 *::after { box-sizing: border-box; }
body.page-chronique-video-v4 img { max-width: 100%; display: block; }
body.page-chronique-video-v4 a { color: inherit; }

.cv4-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,.3), transparent 420px),
    var(--cv4-bg);
}

.cv4-shell {
  width: var(--cv4-shell);
  margin-inline: auto;
}

/* HERO ------------------------------------------------------------------ */
.cv4-hero {
  position: relative;
  min-height: clamp(410px, 44vw, 555px);
  display: flex;
  align-items: end;
  padding: calc(var(--site-header-height, 86px) + 28px) 0 52px;
  color: #fff;
  background: #111827;
  overflow: hidden;
}

.cv4-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cv4-hero-image);
  background-size: cover;
  background-position: var(--cv4-focus, 50% 50%);
  opacity: .72;
  transform: scale(1.015);
}

.cv4-hero__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 98, 51, .16), transparent 26%),
    linear-gradient(90deg, rgba(8, 12, 18, .92), rgba(8, 12, 18, .52) 54%, rgba(8, 12, 18, .83)),
    linear-gradient(180deg, rgba(8, 12, 18, .18), rgba(8, 12, 18, .88));
}

.cv4-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 4vw, 58px);
  align-items: end;
}

.cv4-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: rgba(255,255,255,.70);
  font-family: var(--cv4-font-ui);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cv4-breadcrumbs a { color: rgba(255,255,255,.84); text-decoration: none; }
.cv4-breadcrumbs a:hover { color: #fff; }

.cv4-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.cv4-eyebrow,
.cv4-kicker,
.cv4-section-head span {
  color: var(--cv4-accent);
  font-family: var(--cv4-font-ui);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.cv4-eyebrow { color: rgba(255,255,255,.88); }

.cv4-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255,98,51,.95);
  color: #fff;
  font-family: var(--cv4-font-ui);
  font-size: .66rem;
  font-weight: 750;
}

.cv4-title {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-family: var(--cv4-font-text);
  font-size: clamp(2.25rem, 4.0vw, 4.05rem);
  line-height: 1.02;
  letter-spacing: -.026em;
  text-wrap: balance;
}
.cv4-title::after {
  content: "";
  display: block;
  width: 62px;
  height: 3px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--cv4-accent);
}

.cv4-subtitle,
.cv4-intro {
  max-width: 650px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.84);
  font-family: var(--cv4-font-ui);
  font-size: .96rem;
  line-height: 1.66;
}

.cv4-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}
.cv4-meta li {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  font-family: var(--cv4-font-ui);
  font-size: .72rem;
  font-weight: 550;
}

.cv4-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.cv4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  border: 1px solid var(--cv4-line);
  font-family: var(--cv4-font-ui);
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.cv4-btn:hover { transform: translateY(-1px); }
.cv4-btn--solid { background: var(--cv4-accent); border-color: var(--cv4-accent); color: #fff; box-shadow: 0 8px 22px rgba(255,98,51,.22); }
.cv4-btn--ghost { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.25); color: #fff; }
.cv4-btn--ghost:hover { background: rgba(255,255,255,.16); }

.cv4-hero-card {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 20px 54px rgba(0,0,0,.20);
  backdrop-filter: blur(12px);
}

.cv4-author {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cv4-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(255,255,255,.18);
}
.cv4-author span,
.cv4-share span {
  display: block;
  color: rgba(255,255,255,.70);
  font-family: var(--cv4-font-ui);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cv4-author a,
.cv4-author strong {
  color: #fff;
  font-family: var(--cv4-font-ui);
  font-size: .95rem;
  font-weight: 750;
  text-decoration: none;
}

.cv4-share { margin-top: 17px; }
.cv4-share__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}
.cv4-share__btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-family: var(--cv4-font-ui);
  font-size: .74rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.cv4-share__btn:hover { background: rgba(255,255,255,.20); transform: translateY(-1px); }
.cv4-share small { display: block; margin-top: 8px; color: rgba(255,255,255,.78); font-size: .75rem; }

/* LAYOUT ---------------------------------------------------------------- */
.cv4-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 315px;
  gap: 38px;
  align-items: start;
  padding: 46px 0 96px;
}
.cv4-content,
.cv4-side { min-width: 0; }
.cv4-section { margin-bottom: 34px; }

.cv4-video-section,
.cv4-card,
.cv4-callout,
.cv4-quote {
  border: 1px solid var(--cv4-line);
  border-radius: var(--cv4-radius);
  background: var(--cv4-surface);
  box-shadow: var(--cv4-shadow-soft);
}

.cv4-section-head { margin-bottom: 15px; }
.cv4-section-head h2,
.cv4-card h2,
.cv4-download h2 {
  margin: 4px 0 0;
  color: var(--cv4-ink);
  font-family: var(--cv4-font-text);
  font-size: clamp(1.55rem, 2.0vw, 2rem);
  line-height: 1.16;
  letter-spacing: -.012em;
}

.cv4-video-section { padding: 20px; }
.cv4-video-frame {
  overflow: hidden;
  border-radius: 14px;
  background: #030712;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.cv4-video-frame video,
.cv4-video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #030712;
}
.cv4-credit {
  margin: 10px 2px 0;
  color: var(--cv4-muted);
  font-family: var(--cv4-font-ui);
  font-size: .78rem;
}

/* TEXTE EDITORIAL ------------------------------------------------------- */
.cv4-article-text {
  margin-top: 2px;
}
.cv4-richtext {
  color: var(--cv4-text);
  font-family: var(--cv4-font-text);
  font-size: 1.09rem;
  line-height: 1.86;
}
.cv4-richtext--article {
  background: var(--cv4-surface);
  border: 1px solid rgba(232,223,215,.76);
  border-radius: 18px;
  padding: clamp(24px, 3.2vw, 36px);
  box-shadow: 0 16px 42px rgba(38,32,27,.045);
}
.cv4-richtext--article p:first-child::first-letter {
  float: left;
  padding: .16rem .5rem 0 0;
  font-family: var(--cv4-font-text);
  font-size: 3.6rem;
  line-height: .8;
  color: var(--cv4-accent);
  font-weight: 700;
}
.cv4-richtext p { margin: 0 0 1.28em; }
.cv4-richtext p:last-child { margin-bottom: 0; }
.cv4-richtext b,
.cv4-richtext strong {
  font-weight: 600;
  color: #2e2925;
}
html[data-theme="dark"] .cv4-richtext b,
html[data-theme="dark"] .cv4-richtext strong,
html.theme-dark .cv4-richtext b,
html.theme-dark .cv4-richtext strong { color: #f3eee8; }
.cv4-richtext a {
  color: #8f321d;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.cv4-richtext a:hover { color: var(--cv4-accent); text-decoration-thickness: 2px; }
.cv4-richtext ul,
.cv4-richtext ol {
  margin: 1rem 0 1.35rem;
  padding-left: 1.35rem;
}
.cv4-richtext li { margin-bottom: .45rem; }

.cv4-heading {
  margin: 0 0 1rem;
  color: var(--cv4-ink);
  font-family: var(--cv4-font-text);
  font-size: clamp(1.72rem, 2.25vw, 2.22rem);
  line-height: 1.15;
}

.cv4-quote {
  margin: 0;
  padding: 22px 26px;
  border-left: 4px solid var(--cv4-accent);
  background: linear-gradient(90deg, rgba(255,98,51,.045), transparent 70%), var(--cv4-surface);
}
.cv4-quote blockquote {
  margin: 0;
  color: var(--cv4-ink);
  font-family: var(--cv4-font-text);
  font-size: 1.04rem;
  line-height: 1.6;
  font-style: italic;
}
.cv4-quote figcaption {
  margin-top: .8rem;
  color: var(--cv4-muted);
  font-family: var(--cv4-font-ui);
  font-size: .78rem;
}

.cv4-callout {
  padding: 24px 28px;
  border-left: 4px solid var(--cv4-accent);
  background: var(--cv4-surface);
}
.cv4-callout .cv4-richtext {
  font-family: var(--cv4-font-ui);
  font-size: .94rem;
  line-height: 1.72;
}
.cv4-callout .cv4-richtext b,
.cv4-callout .cv4-richtext strong { font-weight: 700; }

.cv4-separator {
  border: 0;
  border-top: 1px solid var(--cv4-line);
  margin: 34px 0;
}

/* GALERIE / IMAGES ------------------------------------------------------ */
.cv4-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cv4-gallery__item,
.cv4-figure button {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
  box-shadow: 0 8px 22px rgba(38,32,27,.06);
}
.cv4-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}
.cv4-gallery__item:hover img { transform: scale(1.035); filter: saturate(1.03); }
.cv4-figure { margin: 0; }
.cv4-figure img { display: block; width: 100%; border-radius: 14px; }
.cv4-figure figcaption {
  margin-top: 8px;
  color: var(--cv4-muted);
  font-family: var(--cv4-font-ui);
  font-size: .8rem;
}

/* SIDEBAR --------------------------------------------------------------- */
.cv4-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cv4-side__sticky {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 981px) {
  .cv4-side__sticky {
    position: sticky;
    top: calc(var(--site-header-height, 84px) + 18px);
  }
}

.cv4-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(232,223,215,.92);
  background: linear-gradient(180deg, rgba(255,255,255,.985), rgba(251,247,243,.985));
  box-shadow: 0 10px 26px rgba(38,32,27,.045);
}
.cv4-card h2 {
  font-size: 1.42rem;
  line-height: 1.15;
}
.cv4-card--soft { background: var(--cv4-surface-soft); }

/* Cartes éditoriales du flux principal : rendu plus magazine, moins “bloc admin”. */
.cv4-card--editorial {
  padding: clamp(22px, 3.2vw, 30px);
  border-color: #e5d9cf;
  background: linear-gradient(180deg, rgba(255,255,255,.995), rgba(250,246,241,.985));
  box-shadow: 0 16px 38px rgba(38,32,27,.05);
}
.cv4-card--editorial::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cv4-accent), rgba(255,98,51,.18));
}
.cv4-card--editorial .cv4-section-head {
  margin-bottom: 12px;
  padding-left: 2px;
}
.cv4-card--editorial h2 {
  font-size: clamp(1.52rem, 2.1vw, 1.95rem);
}
.cv4-facts dl { margin: 14px 0 0; }
.cv4-facts dl div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--cv4-line);
}
.cv4-facts dt {
  color: var(--cv4-muted);
  font-family: var(--cv4-font-ui);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.cv4-facts dd {
  margin: 0;
  color: var(--cv4-ink);
  font-family: var(--cv4-font-ui);
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cv4-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}
.cv4-tags li {
  border: 1px solid var(--cv4-line);
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--cv4-surface-soft);
  color: var(--cv4-muted);
  font-family: var(--cv4-font-ui);
  font-size: .70rem;
  font-weight: 650;
}

.cv4-side .cv4-author span { color: var(--cv4-muted); }
.cv4-author--side a {
  display: inline-block;
  margin-top: 5px;
  color: #8f321d;
  font-family: var(--cv4-font-ui);
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
}
.cv4-author--side a:hover { color: var(--cv4-accent); text-decoration: underline; }

.cv4-ad iframe {
  width: 100%;
  min-height: 270px;
  border: 0;
  margin-top: 12px;
  border-radius: 12px;
  background: var(--cv4-surface-soft);
}

.cv4-random-list { margin-top: 12px; }
.cv4-random-list p { margin: 0 0 .7rem; color: var(--cv4-muted); font-size: .82rem; }
.cv4-random-list a,
.cv4-random-link {
  display: block;
  padding: .86rem .9rem;
  border: 1px solid var(--cv4-line);
  border-radius: 12px;
  background: var(--cv4-surface-soft);
  color: var(--cv4-ink);
  font-family: var(--cv4-font-ui);
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.38;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.cv4-random-list a:hover,
.cv4-random-link:hover { border-color: rgba(255,98,51,.38); color: #8f321d; background: #fffaf7; }

/* BLOCS RESSOURCES / LIENS --------------------------------------------- */
.cv4-download {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--cv4-accent);
}
.cv4-download__text { min-width: 0; }
.cv4-download__desc {
  margin: .55rem 0 0;
  color: var(--cv4-muted);
  font-family: var(--cv4-font-ui);
  font-size: .92rem;
  line-height: 1.55;
}
.cv4-download .cv4-btn--solid { flex: 0 0 auto; }
.cv4-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.cv4-link-row .cv4-btn--ghost {
  min-height: 42px;
  color: var(--cv4-ink);
  border-color: #e3d7cc;
  background: #f8f3ee;
  box-shadow: 0 4px 14px rgba(38,32,27,.03);
}
.cv4-link-row .cv4-btn--ghost:hover { border-color: rgba(255,98,51,.35); color: #8f321d; }
.cv4-credit-list {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
  color: var(--cv4-ink);
  font-family: var(--cv4-font-text);
  font-size: 1.02rem;
  line-height: 1.68;
}
.cv4-credit-list li + li { margin-top: .16rem; }
.cv4-credit-list a { color: #8f321d; font-weight: 650; }

/* LIGHTBOX --------------------------------------------------------------- */
.cv4-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(6, 10, 18, .92);
  padding: 26px;
}
.cv4-lightbox[hidden] { display: none; }
.cv4-lightbox figure { margin: 0; width: min(1080px, 92vw); }
.cv4-lightbox img { display: block; width: 100%; max-height: 82vh; object-fit: contain; border-radius: 12px; }
.cv4-lightbox figcaption { margin-top: 12px; color: #fff; text-align: center; font-family: var(--cv4-font-ui); font-size: .9rem; }
.cv4-lightbox button {
  position: fixed;
  border: 0;
  color: #fff;
  background: rgba(255,255,255,.16);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.cv4-lightbox button:hover { background: rgba(255,255,255,.24); }
.cv4-lightbox__close { top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; font-size: 26px; }
.cv4-lightbox__nav { top: 50%; width: 44px; height: 64px; border-radius: 999px; font-size: 34px; transform: translateY(-50%); }
.cv4-lightbox__nav--prev { left: 18px; }
.cv4-lightbox__nav--next { right: 18px; }

@media (max-width: 980px) {
  .cv4-hero__grid,
  .cv4-layout { grid-template-columns: 1fr; }
  .cv4-hero-card { max-width: 480px; }
  .cv4-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .cv4-side__sticky { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv4-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .cv4-shell { width: min(100% - 24px, 1120px); }
  .cv4-hero {
    min-height: auto;
    padding: calc(var(--site-header-height, 76px) + 38px) 0 38px;
  }
  .cv4-hero__grid { gap: 24px; }
  .cv4-title { font-size: clamp(2.15rem, 10vw, 3.1rem); }
  .cv4-intro { font-size: .92rem; }
  .cv4-layout { padding: 30px 0 70px; gap: 28px; }
  .cv4-video-section { padding: 14px; }
  .cv4-section-head h2,
  .cv4-card h2,
  .cv4-download h2 { font-size: 1.45rem; }
  .cv4-richtext { font-size: 1.04rem; line-height: 1.78; }
  .cv4-richtext--article { padding: 21px 18px; border-radius: 16px; }
  .cv4-richtext--article p:first-child::first-letter { font-size: 3rem; }
  .cv4-share__grid { grid-template-columns: 1fr; }
  .cv4-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .cv4-gallery__item { border-radius: 10px; box-shadow: none; }
  .cv4-side,
  .cv4-side__sticky { display: flex; flex-direction: column; }
  .cv4-facts dl div { grid-template-columns: 1fr; gap: 4px; }
  .cv4-download { align-items: stretch; flex-direction: column; }
  .cv4-lightbox { padding: 62px 12px 88px; }
  .cv4-lightbox figure { width: 100%; }
  .cv4-lightbox img { max-height: calc(100vh - 170px); }
  .cv4-lightbox__close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 24px; }
  .cv4-lightbox__nav {
    top: auto;
    bottom: 18px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    transform: none;
    background: rgba(255,255,255,.18);
  }
  .cv4-lightbox__nav--prev { left: calc(50% - 58px); }
  .cv4-lightbox__nav--next { right: calc(50% - 58px); }
}


/* -------------------------------------------------------------------------
 * V4 — Corrections de finition demandées
 * ---------------------------------------------------------------------- */

/* La carte hero sert au partage uniquement : pas de doublon signature ici. */
.cv4-hero-card--share {
  max-width: 280px;
  margin-left: auto;
}

.cv4-share { margin-top: 0; }
.cv4-share span {
  margin-bottom: 10px;
  color: rgba(255,255,255,.76);
}
.cv4-share__grid {
  gap: 9px;
}
.cv4-share__btn {
  min-height: 36px;
  padding: 0 16px;
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.10);
  font-size: .72rem;
}
.cv4-share__btn.is-copied {
  background: #fff;
  border-color: #fff;
  color: #1d1714;
}
.cv4-share [data-cv4-copy-feedback],
.cv4-share [data-cv4-copy-feedback][hidden],
.cv4-share small[hidden] {
  display: none !important;
}

/* Colonne droite : les blocs partenaires + à lire aussi doivent rester visibles. */
.cv4-layout {
  align-items: stretch;
}
.cv4-side {
  align-self: stretch;
  min-height: 100%;
}
.cv4-side__sticky {
  align-self: start;
}
@media (min-width: 981px) {
  .cv4-side__sticky {
    position: sticky;
    top: calc(var(--site-header-height, 84px) + 22px);
    z-index: 2;
  }
}

/* Signature : correction des textes tassés / illisibles. */
.cv4-author--side {
  align-items: center;
}
.cv4-author--side img {
  flex: 0 0 auto;
}
.cv4-author--side div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cv4-author--side strong {
  color: var(--cv4-ink);
  font-size: .92rem;
  line-height: 1.1;
}
.cv4-author--side a {
  margin-top: 0;
  line-height: 1.25;
}

/* Article : lecture plus calme, moins grasse. */
.cv4-richtext--article {
  font-size: 1.075rem;
  line-height: 1.88;
}
.cv4-richtext--article b,
.cv4-richtext--article strong {
  font-weight: 600;
  color: #2f2925;
}
.cv4-article-text .cv4-richtext--article > p:first-child::first-letter {
  font-weight: 700;
}

/* Liens dans les blocs éditoriaux : visibles mais propres. */
.cv4-richtext--article a,
.cv4-callout a {
  color: #8f321d;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.cv4-richtext--article a:hover,
.cv4-callout a:hover {
  color: var(--cv4-accent);
}

/* Galerie : boutons invisibles comme boutons, images propres. */
.cv4-gallery__item {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.cv4-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
  pointer-events: none;
}
.cv4-gallery__item:focus-visible {
  outline: 3px solid rgba(255,98,51,.55);
  outline-offset: 3px;
}

/* À lire aussi : retour des images quand l'API les fournit. */
.cv4-random-list {
  display: grid;
  gap: 10px;
}
.cv4-random-list p {
  margin: 0;
}
.cv4-random-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 8px;
  border-radius: 14px;
}
.cv4-random-link:not(:has(.cv4-random-thumb)) {
  grid-template-columns: 1fr;
  padding: 12px;
}
.cv4-random-thumb {
  width: 58px;
  height: 54px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--cv4-surface-soft);
}
.cv4-random-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cv4-random-text {
  display: block;
  min-width: 0;
}
.cv4-random-text span {
  display: block;
  margin-bottom: 3px;
  color: var(--cv4-accent);
  font-family: var(--cv4-font-ui);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cv4-random-text strong {
  display: block;
  color: var(--cv4-ink);
  font-family: var(--cv4-font-ui);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.28;
}

/* Mobile : la galerie doit rester consultable, pas des énormes boutons qui mangent l'écran. */
@media (max-width: 640px) {
  .cv4-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .cv4-gallery__item {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  .cv4-hero-card--share {
    max-width: none;
    margin-left: 0;
  }
  .cv4-share__grid {
    grid-template-columns: 1fr;
  }
}

/* Lightbox mobile : actions en bas, moins intrusives. */
@media (max-width: 640px) {
  .cv4-lightbox {
    padding: 16px 12px 82px;
  }
  .cv4-lightbox img {
    max-height: 72vh;
  }
  .cv4-lightbox__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
  .cv4-lightbox__nav {
    top: auto;
    bottom: 18px;
    width: 48px;
    height: 44px;
    font-size: 28px;
    transform: none;
  }
  .cv4-lightbox__nav--prev {
    left: calc(50% - 58px);
  }
  .cv4-lightbox__nav--next {
    right: calc(50% - 58px);
  }
}


/* -------------------------------------------------------------------------
 * V5 — Sidebar sticky + À lire aussi compact
 * ---------------------------------------------------------------------- */

/* Le bloc sticky était trop bas car on gardait l'offset du header.
   Sur cette page, le header n'occupe pas l'espace une fois le hero passé. */
@media (min-width: 981px) {
  .cv4-side__sticky {
    position: sticky !important;
    top: 18px !important;
    z-index: 5;
  }
}

/* Suggestions compactes : pas de grandes cartes image dans une sidebar. */
.cv4-random-card-wrap {
  overflow: hidden;
}
.cv4-random-list {
  display: grid !important;
  gap: 10px !important;
}
.cv4-random-list p {
  margin: 0 !important;
}
.cv4-random-link,
.cv4-random-link.has-image {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 74px !important;
  padding: 8px !important;
  border: 1px solid var(--cv4-line) !important;
  border-radius: 14px !important;
  background: var(--cv4-surface-soft) !important;
  color: var(--cv4-ink) !important;
  text-decoration: none !important;
  overflow: hidden !important;
}
.cv4-random-link:not(.has-image) {
  grid-template-columns: 1fr !important;
  min-height: auto !important;
  padding: 12px !important;
}
.cv4-random-thumb {
  display: block !important;
  width: 64px !important;
  height: 58px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  background: var(--cv4-surface) !important;
}
.cv4-random-thumb img {
  display: block !important;
  width: 64px !important;
  height: 58px !important;
  max-width: none !important;
  object-fit: cover !important;
}
.cv4-random-text {
  display: block !important;
  min-width: 0 !important;
}
.cv4-random-text span {
  display: block !important;
  margin-bottom: 3px !important;
  color: var(--cv4-accent) !important;
  font-family: var(--cv4-font-ui) !important;
  font-size: .58rem !important;
  font-weight: 750 !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}
.cv4-random-text strong {
  display: block !important;
  color: var(--cv4-ink) !important;
  font-family: var(--cv4-font-ui) !important;
  font-size: .76rem !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
}

/* Si une ancienne réponse API insère encore une image directe dans le lien,
   on la rabat aussi en miniature pour éviter les cartes énormes. */
.cv4-random-link > img {
  display: block !important;
  width: 64px !important;
  height: 58px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
}

/* Mobile : pas besoin de sticky ni de grosses suggestions. */
@media (max-width: 980px) {
  .cv4-side__sticky {
    position: static !important;
  }
  .cv4-random-link,
  .cv4-random-link.has-image {
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }
  .cv4-random-thumb,
  .cv4-random-thumb img,
  .cv4-random-link > img {
    width: 58px !important;
    height: 54px !important;
    min-width: 58px !important;
    max-width: 58px !important;
  }
}


/* -------------------------------------------------------------------------
 * V6 — Mobile full-width + finition responsive
 * ---------------------------------------------------------------------- */

/* À partir du format tablette étroit, les widgets ne doivent plus former des
   demi-cartes : tout passe en pleine largeur, dans l'ordre naturel. */
@media (max-width: 980px) {
  .cv4-layout {
    display: block !important;
    width: var(--cv4-shell) !important;
  }
  .cv4-content,
  .cv4-side {
    width: 100% !important;
    max-width: none !important;
  }
  .cv4-side {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: 34px !important;
    align-self: stretch !important;
  }
  .cv4-side__sticky {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    grid-column: auto !important;
  }
  .cv4-side > .cv4-card,
  .cv4-side__sticky > .cv4-card,
  .cv4-ad,
  .cv4-random-card-wrap {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Mobile téléphone : rythme plus compact, mais cartes pleine largeur. */
@media (max-width: 640px) {
  .cv4-card--editorial {
    padding: 18px 16px 18px 18px !important;
  }
  .cv4-card--editorial::before {
    top: 14px;
    bottom: 14px;
  }
  .cv4-card--editorial h2 {
    font-size: 1.34rem !important;
  }
  .cv4-credit-list {
    font-size: .98rem;
    line-height: 1.62;
  }
}

@media (max-width: 640px) {
  :root {
    --cv4-shell: min(100% - 24px, 1120px);
  }
  .cv4-layout {
    padding-top: 24px !important;
    padding-bottom: 62px !important;
  }
  .cv4-section {
    margin-bottom: 24px !important;
  }
  .cv4-video-section,
  .cv4-richtext--article,
  .cv4-callout,
  .cv4-quote,
  .cv4-card {
    border-radius: 14px !important;
  }
  .cv4-card {
    padding: 18px !important;
  }
  .cv4-facts dl div {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  .cv4-facts dd {
    text-align: right;
  }
  .cv4-tags {
    gap: 7px !important;
  }
  .cv4-author--side {
    gap: 12px !important;
  }
  .cv4-ad iframe {
    min-height: 230px !important;
  }
  .cv4-random-link,
  .cv4-random-link.has-image {
    min-height: 68px !important;
    border-radius: 12px !important;
  }
}

/* Très petit mobile : éviter les libellés qui cassent la ligne. */
@media (max-width: 380px) {
  .cv4-facts dl div {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }
  .cv4-facts dd {
    text-align: left;
  }
}


/* -------------------------------------------------------------------------
 * V7 — Harmonisation globale des blocs chroniques vidéo
 * ---------------------------------------------------------------------- */

/* Partage : l'état copié vit dans le bouton, pas sous la carte. */
.cv4-share [data-cv4-copy-feedback],
.cv4-share small {
  display: none !important;
}
.cv4-share__btn.is-copied {
  background: #fff;
  border-color: #fff;
  color: #1f1713;
}
.cv4-hero-card--share {
  max-width: 280px;
  margin-left: auto;
}

/* Structure mobile : aucun bloc latéral à mi-largeur. */
@media (max-width: 980px) {
  .cv4-layout,
  .cv4-side,
  .cv4-side__sticky {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
  }
  .cv4-side > *,
  .cv4-side__sticky > *,
  .cv4-card,
  .cv4-ad,
  .cv4-random-card-wrap {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Sticky : sur desktop, on colle plus haut. */
@media (min-width: 981px) {
  .cv4-side__sticky {
    position: sticky;
    top: 18px;
    z-index: 2;
  }
}

/* Intertitres : vrais repères éditoriaux, pas doubles H1. */
.cv4-heading-section {
  margin-top: 2.2rem;
  margin-bottom: .85rem;
}
.cv4-heading {
  margin: 0;
  color: var(--cv4-ink);
  font-family: var(--cv4-font-text);
  font-size: clamp(1.62rem, 2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.012em;
}
.cv4-heading::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: .72rem;
  border-radius: 999px;
  background: var(--cv4-accent);
}
.cv4-heading--sub {
  font-size: clamp(1.18rem, 1.35vw, 1.42rem);
}
.cv4-heading--sub::after {
  width: 34px;
  height: 2px;
}

/* Article : lecture magazine plus douce. */
.cv4-richtext--article {
  font-size: 1.06rem;
  line-height: 1.86;
}
.cv4-richtext--article b,
.cv4-richtext--article strong {
  font-weight: 600;
  color: #2f2925;
}
.cv4-richtext--article a,
.cv4-callout a {
  color: #8f321d;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

/* Bloc téléchargement : visuel + CTA, utilisable par toutes les chroniques. */
.cv4-download {
  display: grid;
  grid-template-columns: minmax(130px, 230px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--cv4-line);
  border-left: 4px solid var(--cv4-accent);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, var(--cv4-surface-soft));
  box-shadow: var(--cv4-shadow-soft);
}
.cv4-download__media {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(38, 32, 27, .08);
}
.cv4-download__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.cv4-download__body h2 {
  margin: .2rem 0 .45rem;
  color: var(--cv4-ink);
  font-family: var(--cv4-font-text);
  font-size: clamp(1.35rem, 2vw, 1.78rem);
  line-height: 1.12;
}
.cv4-download__desc {
  margin: 0 0 .75rem;
  color: var(--cv4-text);
  font-family: var(--cv4-font-text);
  font-size: .98rem;
  line-height: 1.65;
}
.cv4-download__meta {
  margin: 0 0 1rem;
  color: var(--cv4-muted);
  font-family: var(--cv4-font-ui);
  font-size: .78rem;
  font-weight: 650;
}
.cv4-download .cv4-btn {
  width: fit-content;
}

/* À lire aussi : miniatures compactes, jamais de grandes images. */
.cv4-random-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.cv4-random-link {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 8px !important;
  border-radius: 14px;
}
.cv4-random-link:not(.has-image) {
  grid-template-columns: 1fr;
  padding: 12px !important;
}
.cv4-random-thumb {
  display: block;
  width: 58px;
  height: 54px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--cv4-surface-soft);
}
.cv4-random-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cv4-random-text {
  display: block;
  min-width: 0;
}
.cv4-random-text span {
  display: block;
  margin-bottom: 3px;
  color: var(--cv4-accent);
  font-family: var(--cv4-font-ui);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cv4-random-text strong {
  display: block;
  color: var(--cv4-ink);
  font-family: var(--cv4-font-ui);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.28;
}

/* Galerie : boutons discrets et utilisables. */
.cv4-gallery__item {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

/* Mobile download : pleine largeur, image raisonnable. */
@media (max-width: 640px) {
  .cv4-download {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .cv4-download__media img {
    aspect-ratio: 16 / 9;
  }
  .cv4-download .cv4-btn {
    width: 100%;
  }
  .cv4-richtext--article {
    font-size: 1.02rem;
    line-height: 1.78;
  }
}


/* -------------------------------------------------------------------------
 * V8 — Corrections chemin /download et mobile
 * ---------------------------------------------------------------------- */

/* Pas de lettrine automatique sur mobile/desktop : elle cassait le rythme des contenus selon les JSON. */
.cv4-article-text .cv4-richtext--article > p:first-child::first-letter,
.cv4-callout .cv4-richtext--article > p:first-child::first-letter {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

/* Bloc téléchargement : prévisualisation de document depuis /public/download, non rognée. */
.cv4-download__media {
  background: #fff;
}
.cv4-download__media img {
  object-fit: contain !important;
  padding: 8px;
  background: #fff;
}

/* Mobile : réduire les effets, garder toute la largeur utile et éviter les blocs étriqués. */
@media (max-width: 640px) {
  .cv4-shell {
    width: calc(100% - 22px);
  }

  .cv4-hero {
    min-height: auto;
    padding-top: calc(var(--site-header-height, 72px) + 18px);
    padding-bottom: 28px;
  }

  .cv4-hero__grid {
    gap: 18px;
  }

  .cv4-title {
    font-size: clamp(2rem, 10.5vw, 2.55rem);
    line-height: 1.02;
  }

  .cv4-intro {
    max-width: 100%;
    font-size: .88rem;
    line-height: 1.55;
  }

  .cv4-meta {
    gap: 6px;
  }

  .cv4-meta li {
    font-size: .66rem;
    padding: 5px 8px;
  }

  .cv4-hero-card--share {
    width: 100%;
    max-width: none;
    padding: 12px;
  }

  .cv4-share__grid {
    gap: 7px;
  }

  .cv4-video-section,
  .cv4-article-text,
  .cv4-card,
  .cv4-callout,
  .cv4-quote,
  .cv4-download {
    border-radius: 14px;
  }

  .cv4-section-head h2,
  .cv4-heading,
  .cv4-card h2 {
    font-size: 1.35rem;
    line-height: 1.15;
  }

  .cv4-heading-section {
    margin-top: 1.35rem;
    margin-bottom: .6rem;
  }

  .cv4-download {
    grid-template-columns: 1fr !important;
  }

  .cv4-download__media img {
    max-height: 260px;
    aspect-ratio: auto;
  }

  .cv4-facts dl div {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .cv4-side {
    gap: 14px;
  }
}


/* -------------------------------------------------------------------------
 * V9 — Finition mobile : blocs autonomes avec respiration cohérente
 * ---------------------------------------------------------------------- */
@media (max-width: 700px) {
  /* Le shell donne les bords généraux, mais les titres standalone ont besoin
     d'un padding interne pour s'aligner avec les textes des cartes. */
  .cv4-content > .cv4-heading-section {
    padding-inline: 16px !important;
    margin-top: 30px !important;
    margin-bottom: 12px !important;
  }

  .cv4-heading {
    max-width: 100% !important;
    margin: 0 !important;
    font-size: clamp(1.42rem, 6.2vw, 1.72rem) !important;
    line-height: 1.17 !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
  }

  .cv4-heading::after {
    margin-top: .62rem !important;
    width: 42px !important;
    height: 2px !important;
  }

  /* Les titres de galerie / crédits / blocs sans carte ne doivent pas coller au bord. */
  .cv4-gallery-section > .cv4-section-head,
  .cv4-image-section > .cv4-section-head,
  .cv4-content > .cv4-section:not(.cv4-video-section):not(.cv4-article-text):not(.cv4-download-section):not(.cv4-callout-section):not(.cv4-quote-section) > .cv4-section-head {
    padding-inline: 16px !important;
    margin-bottom: 12px !important;
  }

  .cv4-gallery-section > .cv4-section-head h2,
  .cv4-section-head h2,
  .cv4-card h2,
  .cv4-download h2 {
    font-size: clamp(1.32rem, 5.8vw, 1.58rem) !important;
    line-height: 1.14 !important;
    overflow-wrap: break-word !important;
  }

  /* La galerie garde le plein format image, mais son titre respire. */
  .cv4-gallery-section {
    width: 100% !important;
  }

  .cv4-gallery {
    width: 100% !important;
    gap: 8px !important;
  }

  .cv4-gallery__item,
  .cv4-gallery__item img {
    border-radius: 10px !important;
  }

  /* Cartes éditoriales : éviter les contenus collés aux bords et les effets trop lourds. */
  .cv4-richtext--article {
    padding: 22px 18px !important;
    border-radius: 15px !important;
  }

  .cv4-quote {
    padding: 18px 20px !important;
    border-radius: 15px !important;
  }

  .cv4-callout {
    padding: 18px 16px !important;
    border-radius: 15px !important;
  }

  .cv4-download {
    padding: 16px !important;
    border-radius: 15px !important;
  }

  .cv4-download__body h2 {
    font-size: clamp(1.28rem, 5.4vw, 1.52rem) !important;
  }

  /* Le bloc vidéo reste une carte complète ; ses titres ne prennent pas le padding externe. */
  .cv4-video-section > .cv4-section-head {
    padding-inline: 0 !important;
  }
}

@media (max-width: 420px) {
  .cv4-shell {
    width: calc(100% - 22px) !important;
  }

  .cv4-content > .cv4-heading-section,
  .cv4-gallery-section > .cv4-section-head,
  .cv4-content > .cv4-section:not(.cv4-video-section):not(.cv4-article-text):not(.cv4-download-section):not(.cv4-callout-section):not(.cv4-quote-section) > .cv4-section-head {
    padding-inline: 14px !important;
  }
}


/* -------------------------------------------------------------------------
 * V12 — Typographie française + carte contributrice
 * ---------------------------------------------------------------------- */

.cv4-side .cv4-card--soft {
  overflow: hidden;
}
.cv4-author-card__title,
.cv4-side .cv4-card--soft > h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}
.cv4-author--side {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 2px;
}
.cv4-author--side img {
  grid-column: 1;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px;
  border-radius: 50%;
  object-fit: cover;
}
.cv4-author--side > div {
  grid-column: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cv4-author--side strong,
.cv4-author--side a {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.cv4-author--side strong {
  line-height: 1.12;
}
.cv4-author--side a {
  max-width: 100%;
  line-height: 1.25;
}

.cv4-richtext,
.cv4-heading,
.cv4-section-head h2,
.cv4-card h2,
.cv4-download h2,
.cv4-facts dd,
.cv4-tags li {
  overflow-wrap: break-word;
}

.cv4-facts dt,
.cv4-kicker {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cv4-author--side {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 11px;
  }
  .cv4-author--side img {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px;
  }
  .cv4-card h2,
  .cv4-author-card__title {
    margin-bottom: 12px;
  }
}


/* -------------------------------------------------------------------------
 * V16 — Lumière propre + dark mode conservé + hero resserré
 * ---------------------------------------------------------------------- */

/* LIGHT MODE : fond clair, mais sans écraser le dark mode. */
:root {
  --cv4-bg: #ffffff;
  --cv4-surface: #ffffff;
  --cv4-surface-soft: #fbfbfa;
  --cv4-ink: #221f1d;
  --cv4-text: #332f2c;
  --cv4-muted: #746d67;
  --cv4-line: #ebe7e2;
  --cv4-line-strong: #ddd6cf;
  --cv4-shadow: 0 14px 36px rgba(32, 28, 24, .045);
  --cv4-shadow-soft: 0 8px 22px rgba(32, 28, 24, .035);
}

/* DARK MODE : remis APRÈS les variables light, donc il reprend la priorité. */
html[data-theme="dark"],
html.theme-dark {
  --cv4-bg: #11161b;
  --cv4-surface: #171e25;
  --cv4-surface-soft: #1e2730;
  --cv4-ink: #f2eee9;
  --cv4-text: #e7e1da;
  --cv4-muted: #a9a19a;
  --cv4-line: #2d3741;
  --cv4-line-strong: #374553;
  --cv4-shadow: 0 18px 50px rgba(0,0,0,.22);
  --cv4-shadow-soft: 0 10px 28px rgba(0,0,0,.16);
}

body.page-chronique-video-v4 {
  background: var(--cv4-bg);
}

.cv4-page {
  background: var(--cv4-bg);
}

html:not([data-theme="dark"]):not(.theme-dark) body.page-chronique-video-v4,
html:not([data-theme="dark"]):not(.theme-dark) .cv4-page,
html:not([data-theme="dark"]):not(.theme-dark) .cv4-main-wrap {
  background: #ffffff;
}

html[data-theme="dark"] body.page-chronique-video-v4,
html.theme-dark body.page-chronique-video-v4,
html[data-theme="dark"] .cv4-page,
html.theme-dark .cv4-page,
html[data-theme="dark"] .cv4-main-wrap,
html.theme-dark .cv4-main-wrap {
  background: var(--cv4-bg);
}

/* HERO : moins vide, moins noir, et titre long avec taille standard. */
.cv4-hero {
  min-height: clamp(370px, 39vw, 505px);
  align-items: center;
  padding: calc(var(--site-header-height, 86px) + 18px) 0 44px;
}

.cv4-hero::before {
  opacity: .84;
}

.cv4-hero__shade {
  background:
    radial-gradient(circle at 78% 18%, rgba(255,98,51,.18), transparent 30%),
    linear-gradient(90deg, rgba(8,12,18,.78), rgba(8,12,18,.40) 54%, rgba(8,12,18,.70)),
    linear-gradient(180deg, rgba(8,12,18,.10), rgba(8,12,18,.68));
}

.cv4-hero__grid {
  align-items: center;
  min-height: 0;
}

.cv4-hero__content {
  max-width: 760px;
}

.cv4-title {
  max-width: 780px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: .98;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.cv4-title::after {
  margin-top: 16px;
}

.cv4-intro,
.cv4-subtitle {
  max-width: 680px;
  font-size: clamp(.98rem, 1.2vw, 1.08rem);
  line-height: 1.65;
}

.cv4-share-card {
  justify-self: end;
}

/* Contenu : lumineux en light, sans casser le dark. */
.cv4-main-wrap {
  padding-top: clamp(38px, 5vw, 64px);
}

.cv4-layout {
  align-items: start;
  gap: clamp(34px, 4.4vw, 58px);
}

.cv4-section {
  margin-bottom: clamp(30px, 4vw, 48px);
}

html:not([data-theme="dark"]):not(.theme-dark) .cv4-video-section,
html:not([data-theme="dark"]):not(.theme-dark) .cv4-card,
html:not([data-theme="dark"]):not(.theme-dark) .cv4-callout,
html:not([data-theme="dark"]):not(.theme-dark) .cv4-quote,
html:not([data-theme="dark"]):not(.theme-dark) .cv4-download {
  background: #ffffff;
  border-color: #e8e3de;
  box-shadow: 0 12px 30px rgba(31,27,24,.04);
}

/* Article : lecture magazine, pas bloc admin. */
.cv4-richtext--article {
  max-width: 760px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: clamp(1.045rem, 1.13vw, 1.13rem);
  line-height: 1.9;
}

.cv4-richtext--article p {
  margin-bottom: 1.34em;
}

.cv4-richtext--article p:first-child::first-letter {
  float: none !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  font-weight: inherit !important;
}

/* Intertitres propres et lisibles. */
.cv4-heading-section {
  margin-top: clamp(32px, 4vw, 54px);
  margin-bottom: 16px;
}

.cv4-heading {
  max-width: 760px;
  font-size: clamp(1.72rem, 2.2vw, 2.26rem);
}

.cv4-heading::after {
  width: 46px;
  height: 2px;
  margin-top: 12px;
}

/* Cartes éditoriales : encarts, pas grosses boîtes ternes. */
.cv4-card--editorial {
  padding: clamp(22px, 3vw, 30px) !important;
  border-left: 3px solid var(--cv4-accent) !important;
  box-shadow: var(--cv4-shadow-soft) !important;
}

.cv4-card--editorial::before {
  display: none !important;
}

.cv4-card--editorial h2 {
  font-size: clamp(1.45rem, 2vw, 1.88rem);
}

/* Download : plus fort, sans fond orangé. */
.cv4-download {
  grid-template-columns: minmax(180px, 255px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(22px, 3vw, 32px);
  border-left: 4px solid var(--cv4-accent);
}

.cv4-download__media img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 10px;
  background: #fff;
}

html[data-theme="dark"] .cv4-download__media img,
html.theme-dark .cv4-download__media img {
  background: #fff;
}

/* Sidebar claire en light, dark préservé par variables. */
html:not([data-theme="dark"]):not(.theme-dark) .cv4-tags li {
  background: #f7f6f4;
  border-color: #ebe6e1;
}

html:not([data-theme="dark"]):not(.theme-dark) .cv4-random-link,
html:not([data-theme="dark"]):not(.theme-dark) .cv4-random-link.has-image {
  background: #ffffff !important;
  border-color: #ebe6e1 !important;
}

/* Mobile : hero plus compact et titre qui reste lisible. */
@media (max-width: 760px) {
  .cv4-hero {
    min-height: auto;
    padding: calc(var(--site-header-height, 72px) + 18px) 0 34px;
    align-items: end;
  }

  .cv4-hero__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cv4-title {
    font-size: clamp(2rem, 11vw, 3.05rem);
    line-height: 1.02;
  }

  .cv4-intro,
  .cv4-subtitle {
    max-width: 100%;
    font-size: .98rem;
  }

  .cv4-share-card {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --cv4-shell: min(100% - 26px, 1120px);
  }

  .cv4-main-wrap {
    padding-top: 30px;
  }

  .cv4-video-section {
    padding: 12px;
    border-radius: 16px;
  }

  .cv4-richtext--article {
    font-size: 1rem;
    line-height: 1.78;
  }

  .cv4-heading-section {
    padding-inline: 0 !important;
    margin-top: 28px;
  }

  .cv4-heading {
    font-size: 1.42rem !important;
  }

  .cv4-card--editorial,
  .cv4-callout,
  .cv4-quote {
    padding: 18px !important;
    border-radius: 16px;
  }

  .cv4-download {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .cv4-download__media img {
    aspect-ratio: 16 / 10;
  }
}


/* -------------------------------------------------------------------------
 * V17 — Dark mode robuste : ne jamais laisser les cartes light en thème sombre
 * ---------------------------------------------------------------------- */

/*
 * Le thème global du site peut être porté par html, body, une classe .dark,
 * .theme-dark ou un attribut data-theme. On couvre tous les cas pour éviter
 * les cartes blanches avec texte clair en mode sombre.
 */
html[data-theme="dark"],
body[data-theme="dark"],
html.theme-dark,
body.theme-dark,
html.dark,
body.dark,
.theme-dark,
.dark,
[data-theme="dark"],
[data-bs-theme="dark"],
[data-color-scheme="dark"] {
  --cv4-bg: #0f151a;
  --cv4-surface: #161e25;
  --cv4-surface-soft: #1d2730;
  --cv4-ink: #f5f1ec;
  --cv4-text: #e8e1da;
  --cv4-muted: #b4aba4;
  --cv4-line: #313c46;
  --cv4-line-strong: #42505c;
  --cv4-shadow: 0 18px 50px rgba(0,0,0,.28);
  --cv4-shadow-soft: 0 10px 28px rgba(0,0,0,.18);
}

html[data-theme="dark"] body.page-chronique-video-v4,
body[data-theme="dark"].page-chronique-video-v4,
html.theme-dark body.page-chronique-video-v4,
body.theme-dark.page-chronique-video-v4,
html.dark body.page-chronique-video-v4,
body.dark.page-chronique-video-v4,
.theme-dark .page-chronique-video-v4,
.dark .page-chronique-video-v4,
[data-theme="dark"] .page-chronique-video-v4,
[data-bs-theme="dark"] .page-chronique-video-v4,
[data-color-scheme="dark"] .page-chronique-video-v4 {
  background: var(--cv4-bg) !important;
  color: var(--cv4-text) !important;
}

html[data-theme="dark"] .cv4-page,
body[data-theme="dark"] .cv4-page,
html.theme-dark .cv4-page,
body.theme-dark .cv4-page,
html.dark .cv4-page,
body.dark .cv4-page,
.theme-dark .cv4-page,
.dark .cv4-page,
[data-theme="dark"] .cv4-page,
[data-bs-theme="dark"] .cv4-page,
[data-color-scheme="dark"] .cv4-page,
html[data-theme="dark"] .cv4-main-wrap,
body[data-theme="dark"] .cv4-main-wrap,
html.theme-dark .cv4-main-wrap,
body.theme-dark .cv4-main-wrap,
html.dark .cv4-main-wrap,
body.dark .cv4-main-wrap,
.theme-dark .cv4-main-wrap,
.dark .cv4-main-wrap,
[data-theme="dark"] .cv4-main-wrap,
[data-bs-theme="dark"] .cv4-main-wrap,
[data-color-scheme="dark"] .cv4-main-wrap {
  background: var(--cv4-bg) !important;
  color: var(--cv4-text) !important;
}

/* Toutes les cartes doivent redevenir sombres en dark mode, même si une règle light avait !important. */
html[data-theme="dark"] .cv4-card,
body[data-theme="dark"] .cv4-card,
html.theme-dark .cv4-card,
body.theme-dark .cv4-card,
html.dark .cv4-card,
body.dark .cv4-card,
.theme-dark .cv4-card,
.dark .cv4-card,
[data-theme="dark"] .cv4-card,
[data-bs-theme="dark"] .cv4-card,
[data-color-scheme="dark"] .cv4-card,
html[data-theme="dark"] .cv4-video-section,
body[data-theme="dark"] .cv4-video-section,
html.theme-dark .cv4-video-section,
body.theme-dark .cv4-video-section,
html.dark .cv4-video-section,
body.dark .cv4-video-section,
.theme-dark .cv4-video-section,
.dark .cv4-video-section,
[data-theme="dark"] .cv4-video-section,
[data-bs-theme="dark"] .cv4-video-section,
[data-color-scheme="dark"] .cv4-video-section,
html[data-theme="dark"] .cv4-callout,
body[data-theme="dark"] .cv4-callout,
html.theme-dark .cv4-callout,
body.theme-dark .cv4-callout,
html.dark .cv4-callout,
body.dark .cv4-callout,
.theme-dark .cv4-callout,
.dark .cv4-callout,
[data-theme="dark"] .cv4-callout,
[data-bs-theme="dark"] .cv4-callout,
[data-color-scheme="dark"] .cv4-callout,
html[data-theme="dark"] .cv4-quote,
body[data-theme="dark"] .cv4-quote,
html.theme-dark .cv4-quote,
body.theme-dark .cv4-quote,
html.dark .cv4-quote,
body.dark .cv4-quote,
.theme-dark .cv4-quote,
.dark .cv4-quote,
[data-theme="dark"] .cv4-quote,
[data-bs-theme="dark"] .cv4-quote,
[data-color-scheme="dark"] .cv4-quote,
html[data-theme="dark"] .cv4-download,
body[data-theme="dark"] .cv4-download,
html.theme-dark .cv4-download,
body.theme-dark .cv4-download,
html.dark .cv4-download,
body.dark .cv4-download,
.theme-dark .cv4-download,
.dark .cv4-download,
[data-theme="dark"] .cv4-download,
[data-bs-theme="dark"] .cv4-download,
[data-color-scheme="dark"] .cv4-download {
  background: var(--cv4-surface) !important;
  color: var(--cv4-text) !important;
  border-color: var(--cv4-line) !important;
  box-shadow: var(--cv4-shadow-soft) !important;
}

html[data-theme="dark"] .cv4-side .cv4-card,
body[data-theme="dark"] .cv4-side .cv4-card,
html.theme-dark .cv4-side .cv4-card,
body.theme-dark .cv4-side .cv4-card,
html.dark .cv4-side .cv4-card,
body.dark .cv4-side .cv4-card,
.theme-dark .cv4-side .cv4-card,
.dark .cv4-side .cv4-card,
[data-theme="dark"] .cv4-side .cv4-card,
[data-bs-theme="dark"] .cv4-side .cv4-card,
[data-color-scheme="dark"] .cv4-side .cv4-card {
  background: var(--cv4-surface) !important;
  border-color: var(--cv4-line) !important;
}

/* Titres et textes sidebar : jamais blanc sur blanc. */
html[data-theme="dark"] .cv4-card h2,
body[data-theme="dark"] .cv4-card h2,
html.theme-dark .cv4-card h2,
body.theme-dark .cv4-card h2,
html.dark .cv4-card h2,
body.dark .cv4-card h2,
.theme-dark .cv4-card h2,
.dark .cv4-card h2,
[data-theme="dark"] .cv4-card h2,
[data-bs-theme="dark"] .cv4-card h2,
[data-color-scheme="dark"] .cv4-card h2,
html[data-theme="dark"] .cv4-facts dd,
body[data-theme="dark"] .cv4-facts dd,
html.theme-dark .cv4-facts dd,
body.theme-dark .cv4-facts dd,
html.dark .cv4-facts dd,
body.dark .cv4-facts dd,
.theme-dark .cv4-facts dd,
.dark .cv4-facts dd,
[data-theme="dark"] .cv4-facts dd,
[data-bs-theme="dark"] .cv4-facts dd,
[data-color-scheme="dark"] .cv4-facts dd,
html[data-theme="dark"] .cv4-author--side strong,
body[data-theme="dark"] .cv4-author--side strong,
html.theme-dark .cv4-author--side strong,
body.theme-dark .cv4-author--side strong,
html.dark .cv4-author--side strong,
body.dark .cv4-author--side strong,
.theme-dark .cv4-author--side strong,
.dark .cv4-author--side strong,
[data-theme="dark"] .cv4-author--side strong,
[data-bs-theme="dark"] .cv4-author--side strong,
[data-color-scheme="dark"] .cv4-author--side strong {
  color: var(--cv4-ink) !important;
}

html[data-theme="dark"] .cv4-facts dl > div,
body[data-theme="dark"] .cv4-facts dl > div,
html.theme-dark .cv4-facts dl > div,
body.theme-dark .cv4-facts dl > div,
html.dark .cv4-facts dl > div,
body.dark .cv4-facts dl > div,
.theme-dark .cv4-facts dl > div,
.dark .cv4-facts dl > div,
[data-theme="dark"] .cv4-facts dl > div,
[data-bs-theme="dark"] .cv4-facts dl > div,
[data-color-scheme="dark"] .cv4-facts dl > div {
  border-color: var(--cv4-line) !important;
}

html[data-theme="dark"] .cv4-tags li,
body[data-theme="dark"] .cv4-tags li,
html.theme-dark .cv4-tags li,
body.theme-dark .cv4-tags li,
html.dark .cv4-tags li,
body.dark .cv4-tags li,
.theme-dark .cv4-tags li,
.dark .cv4-tags li,
[data-theme="dark"] .cv4-tags li,
[data-bs-theme="dark"] .cv4-tags li,
[data-color-scheme="dark"] .cv4-tags li {
  background: var(--cv4-surface-soft) !important;
  border-color: var(--cv4-line) !important;
  color: var(--cv4-ink) !important;
}

html[data-theme="dark"] .cv4-random-link,
body[data-theme="dark"] .cv4-random-link,
html.theme-dark .cv4-random-link,
body.theme-dark .cv4-random-link,
html.dark .cv4-random-link,
body.dark .cv4-random-link,
.theme-dark .cv4-random-link,
.dark .cv4-random-link,
[data-theme="dark"] .cv4-random-link,
[data-bs-theme="dark"] .cv4-random-link,
[data-color-scheme="dark"] .cv4-random-link {
  background: var(--cv4-surface-soft) !important;
  border-color: var(--cv4-line) !important;
  color: var(--cv4-ink) !important;
}

/* L'image de pub reste normale, mais le titre du bloc doit être lisible. */
html[data-theme="dark"] .cv4-ad h2,
body[data-theme="dark"] .cv4-ad h2,
html.theme-dark .cv4-ad h2,
body.theme-dark .cv4-ad h2,
html.dark .cv4-ad h2,
body.dark .cv4-ad h2,
.theme-dark .cv4-ad h2,
.dark .cv4-ad h2,
[data-theme="dark"] .cv4-ad h2,
[data-bs-theme="dark"] .cv4-ad h2,
[data-color-scheme="dark"] .cv4-ad h2 {
  color: var(--cv4-ink) !important;
}


/* -------------------------------------------------------------------------
 * V18 — Mobile : breadcrumb sous le header
 * ---------------------------------------------------------------------- */

/*
 * Sur mobile, le header global est en overlay sur le hero. Le fil d'Ariane
 * doit donc démarrer sous la zone réelle du header, pas sous la valeur trop
 * courte de --site-header-height.
 */
@media (max-width: 760px) {
  .cv4-hero {
    padding-top: calc(var(--site-header-height, 74px) + 72px) !important;
  }

  .cv4-hero__grid,
  .cv4-hero__content {
    position: relative;
    z-index: 2;
  }

  .cv4-breadcrumb,
  .cv4-breadcrumbs {
    position: relative;
    z-index: 3;
    margin-top: 0 !important;
  }
}

@media (max-width: 420px) {
  .cv4-hero {
    padding-top: calc(var(--site-header-height, 74px) + 82px) !important;
  }
}


/* -------------------------------------------------------------------------
 * V19 — Alignement charte Pépites : blanc, noir, orange, rythme magazine
 * ---------------------------------------------------------------------- */

:root {
  --cv4-accent: #ff6233;
  --cv4-accent-strong: #ff4f28;
  --cv4-bg: #ffffff;
  --cv4-surface: #ffffff;
  --cv4-surface-soft: #fbfaf8;
  --cv4-ink: #141414;
  --cv4-text: #2f2b28;
  --cv4-muted: #6f6862;
  --cv4-line: #ded8d2;
  --cv4-line-soft: #efebe7;
}

html:not([data-theme="dark"]):not(.theme-dark) body.page-chronique-video-v4,
html:not([data-theme="dark"]):not(.theme-dark) .cv4-page,
html:not([data-theme="dark"]):not(.theme-dark) .cv4-main-wrap {
  background: #ffffff !important;
  color: var(--cv4-text) !important;
}

/* Le hero garde l'impact photo, mais reprend l'énergie Pépites. */
.cv4-hero {
  min-height: clamp(390px, 42vw, 540px) !important;
  padding-bottom: clamp(42px, 6vw, 76px) !important;
}
.cv4-hero__shade {
  background:
    radial-gradient(circle at 74% 20%, rgba(255,98,51,.22), transparent 30%),
    linear-gradient(90deg, rgba(5,8,12,.82), rgba(5,8,12,.46) 52%, rgba(5,8,12,.72)),
    linear-gradient(180deg, rgba(5,8,12,.04), rgba(5,8,12,.64)) !important;
}
.cv4-title {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  line-height: .98 !important;
  letter-spacing: -.035em !important;
  max-width: 760px !important;
  text-wrap: balance;
}
.cv4-title::after,
.cv4-heading::after {
  background: var(--cv4-accent) !important;
  height: 3px !important;
}
.cv4-hero .cv4-kicker,
.cv4-hero .cv4-eyebrow,
.cv4-hero__eyebrow {
  color: #ffffff !important;
}
.cv4-hero .cv4-badge,
.cv4-badge {
  background: var(--cv4-accent) !important;
  color: #ffffff !important;
  border: 0 !important;
}
.cv4-hero .cv4-btn--solid,
.cv4-btn--solid {
  background: var(--cv4-accent) !important;
  border-color: var(--cv4-accent) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(255,98,51,.24) !important;
}
.cv4-hero .cv4-btn--solid:hover,
.cv4-btn--solid:hover {
  background: var(--cv4-accent-strong) !important;
  border-color: var(--cv4-accent-strong) !important;
}

/* Structure proche accueil : titres forts, filets, orange assumé. */
.cv4-section-head span,
.cv4-kicker,
.cv4-card .cv4-section-head span,
.cv4-side .cv4-section-head span {
  color: var(--cv4-accent) !important;
  font-family: var(--cv4-font-ui);
  font-weight: 850 !important;
  letter-spacing: .105em !important;
  text-transform: uppercase;
}
.cv4-section-head span::after,
.cv4-kicker::after {
  content: " //";
  color: var(--cv4-accent);
}
.cv4-video-section .cv4-section-head span::after,
.cv4-download .cv4-kicker::after,
.cv4-side .cv4-kicker::after,
.cv4-card .cv4-section-head span::after {
  content: "";
}

.cv4-heading {
  color: var(--cv4-ink) !important;
  font-family: var(--cv4-font-text);
  font-weight: 760 !important;
  line-height: 1.08 !important;
  margin-bottom: 18px !important;
}
.cv4-heading-section {
  margin-top: clamp(34px, 4.2vw, 60px) !important;
  margin-bottom: 12px !important;
}

/* Article : blanc, lisible, plus Pépites magazine. */
.cv4-richtext--article {
  max-width: 770px !important;
  color: #272320 !important;
  font-family: var(--cv4-font-text);
  font-size: clamp(1.04rem, 1.08vw, 1.12rem) !important;
  line-height: 1.88 !important;
}
.cv4-richtext--article p { margin-bottom: 1.35em !important; }
.cv4-richtext--article strong,
.cv4-richtext--article b {
  font-weight: 720 !important;
  color: #151515 !important;
}
.cv4-richtext--article a,
.cv4-callout a,
.cv4-credit-list a {
  color: #141414 !important;
  font-weight: 760 !important;
  text-decoration-color: var(--cv4-accent) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: .17em !important;
}

/* Cartes : blanches et nettes, pas beige triste. */
html:not([data-theme="dark"]):not(.theme-dark) .cv4-card,
html:not([data-theme="dark"]):not(.theme-dark) .cv4-video-section,
html:not([data-theme="dark"]):not(.theme-dark) .cv4-download,
html:not([data-theme="dark"]):not(.theme-dark) .cv4-callout,
html:not([data-theme="dark"]):not(.theme-dark) .cv4-quote {
  background: #ffffff !important;
  border-color: var(--cv4-line) !important;
  box-shadow: 0 12px 28px rgba(20,20,20,.045) !important;
}
.cv4-video-section {
  border-radius: 14px !important;
  border-top: 3px solid var(--cv4-accent) !important;
}
.cv4-video-section h2,
.cv4-card h2,
.cv4-download h2 {
  color: var(--cv4-ink) !important;
  font-weight: 760 !important;
}
.cv4-card--editorial,
.cv4-callout,
.cv4-quote {
  border-left: 4px solid var(--cv4-accent) !important;
}

/* Galerie : aucun faux blanc si une image manque. */
.cv4-gallery__item.is-broken,
.cv4-gallery__item:empty {
  display: none !important;
}
.cv4-gallery__item {
  background: #f5f3f1 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}
.cv4-gallery__item img {
  transform: none !important;
  transition: transform .22s ease, filter .22s ease;
}
.cv4-gallery__item:hover img {
  transform: scale(1.025) !important;
}

/* Sidebar : même langage que l'accueil, avec blocs utiles. */
.cv4-side .cv4-card {
  border-radius: 14px !important;
}
.cv4-facts dt {
  color: #4b4540 !important;
  font-weight: 850 !important;
}
.cv4-facts dd {
  color: #171717 !important;
  font-weight: 720 !important;
}
.cv4-tags li {
  background: #f6f3f0 !important;
  border-color: #e9e1da !important;
  color: #2a2521 !important;
  font-weight: 720 !important;
}
.cv4-random-text span {
  color: var(--cv4-accent) !important;
  font-weight: 900 !important;
}
.cv4-random-text strong {
  color: #161616 !important;
  font-weight: 780 !important;
}

/* Download : plus proche bannière ressource Pépites. */
.cv4-download {
  border-radius: 12px !important;
  border-left: 5px solid var(--cv4-accent) !important;
  background:
    linear-gradient(90deg, rgba(255,98,51,.045), rgba(255,255,255,1) 38%) !important;
}
.cv4-download__body h2 {
  font-size: clamp(1.56rem, 2.2vw, 2.05rem) !important;
}
.cv4-download .cv4-btn {
  border-radius: 999px !important;
  font-weight: 850 !important;
}

/* Dark mode : après le light, pour éviter blanc sur blanc. */
html[data-theme="dark"] .cv4-card,
body[data-theme="dark"] .cv4-card,
html.theme-dark .cv4-card,
body.theme-dark .cv4-card,
html.dark .cv4-card,
body.dark .cv4-card,
.theme-dark .cv4-card,
.dark .cv4-card,
[data-theme="dark"] .cv4-card,
html[data-theme="dark"] .cv4-video-section,
body[data-theme="dark"] .cv4-video-section,
html.theme-dark .cv4-video-section,
body.theme-dark .cv4-video-section,
html.dark .cv4-video-section,
body.dark .cv4-video-section,
.theme-dark .cv4-video-section,
.dark .cv4-video-section,
[data-theme="dark"] .cv4-video-section,
html[data-theme="dark"] .cv4-download,
body[data-theme="dark"] .cv4-download,
html.theme-dark .cv4-download,
body.theme-dark .cv4-download,
html.dark .cv4-download,
body.dark .cv4-download,
.theme-dark .cv4-download,
.dark .cv4-download,
[data-theme="dark"] .cv4-download,
html[data-theme="dark"] .cv4-callout,
body[data-theme="dark"] .cv4-callout,
html.theme-dark .cv4-callout,
body.theme-dark .cv4-callout,
html.dark .cv4-callout,
body.dark .cv4-callout,
.theme-dark .cv4-callout,
.dark .cv4-callout,
[data-theme="dark"] .cv4-callout,
html[data-theme="dark"] .cv4-quote,
body[data-theme="dark"] .cv4-quote,
html.theme-dark .cv4-quote,
body.theme-dark .cv4-quote,
html.dark .cv4-quote,
body.dark .cv4-quote,
.theme-dark .cv4-quote,
.dark .cv4-quote,
[data-theme="dark"] .cv4-quote {
  background: var(--cv4-surface) !important;
  color: var(--cv4-text) !important;
  border-color: var(--cv4-line) !important;
}
html[data-theme="dark"] .cv4-heading,
html[data-theme="dark"] .cv4-card h2,
html[data-theme="dark"] .cv4-richtext--article,
html[data-theme="dark"] .cv4-richtext--article b,
html[data-theme="dark"] .cv4-richtext--article strong,
html[data-theme="dark"] .cv4-random-text strong,
html[data-theme="dark"] .cv4-facts dd,
.theme-dark .cv4-heading,
.theme-dark .cv4-card h2,
.theme-dark .cv4-richtext--article,
.theme-dark .cv4-richtext--article b,
.theme-dark .cv4-richtext--article strong,
.theme-dark .cv4-random-text strong,
.theme-dark .cv4-facts dd,
.dark .cv4-heading,
.dark .cv4-card h2,
.dark .cv4-richtext--article,
.dark .cv4-richtext--article b,
.dark .cv4-richtext--article strong,
.dark .cv4-random-text strong,
.dark .cv4-facts dd {
  color: var(--cv4-ink) !important;
}
html[data-theme="dark"] .cv4-tags li,
.theme-dark .cv4-tags li,
.dark .cv4-tags li {
  background: var(--cv4-surface-soft) !important;
  border-color: var(--cv4-line) !important;
  color: var(--cv4-ink) !important;
}

@media (max-width: 760px) {
  .cv4-hero { padding-top: calc(var(--site-header-height, 74px) + 78px) !important; }
  .cv4-title { font-size: clamp(2rem, 10.5vw, 3.1rem) !important; }
  .cv4-share-card { border-color: rgba(255,255,255,.28) !important; }
}
