/* Pages vidéo Caast : feuille unique, préfixée « cv- » pour ne jamais déborder sur le site hôte (modes B et C).
   Structure commune à tous les clients ; valeurs neutres ci-dessous, remplacées par le theme.css du client (chargé après). */
:root {
  --cv-ink: #111;
  --cv-quiet: #666;
  --cv-brand: #111;
  --cv-brand-hover: #333;
  --cv-brand-soft: #f0f0f0;
  --cv-discount: #c00;
  --cv-line: #e5e5e5;
  --cv-line-strong: #999;
  --cv-bg: #fff;
  --cv-bg-alt: #f5f5f5;
  --cv-r-s: 8px;
  --cv-r-m: 16px;
  --cv-r-full: 999px;
  --cv-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-gutter: 20px;
  --cv-header-h: 56px;
}

.cv-body { margin: 0; background: var(--cv-bg); color: var(--cv-ink); font: 500 16px/1.5 var(--cv-font); -webkit-font-smoothing: antialiased; }
.cv-body *, .cv-body *::before, .cv-body *::after { box-sizing: border-box; }
.cv a { color: inherit; }
.cv img { display: block; max-width: 100%; }
.cv [hidden], .cv-header [hidden] { display: none !important; }
.cv-skip { position: absolute; left: -9999px; }
.cv-skip:focus { left: 8px; top: 8px; z-index: 50; background: #fff; padding: 16px; color: var(--cv-brand); border: 1px solid var(--cv-line-strong); }
.cv-body :focus-visible { outline: 2px solid var(--cv-brand); outline-offset: 2px; }
.cv svg, .cv-header svg, .cv-footer svg { flex: none; }
.cv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header simplifié (comme un checkout) : retour à gauche, logo centré ---------- */
.cv-header { position: sticky; top: 0; z-index: 30; background: var(--cv-bg); padding-top: env(safe-area-inset-top, 0px); }
.cv-header__in { position: relative; height: var(--cv-header-h); padding: 0 var(--cv-gutter); display: flex; align-items: center; }
.cv-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; }
.cv-logo img { display: block; }
/* Sans dimensions fournies (appearance.logo) : hauteur par défaut ; sinon celles de l'admin, sauf surcharge du thème. */
.cv-logo img:not([height]) { height: 24px; width: auto; }
@media (min-width: 1200px) { .cv-logo img:not([height]) { height: 28px; } }
.cv-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; color: var(--cv-ink); text-decoration: none; font: 500 14px/20px var(--cv-font); }
.cv-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }
.cv-back:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .cv-back { width: 44px; justify-content: center; margin-left: -12px; }
  .cv-back svg { width: 24px; height: 24px; }
  .cv-back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Fil d'Ariane : corps 14 px, gris, chevrons 16 px ---------- */
.cv-crumbs { padding: 16px var(--cv-gutter) 16px; }
@media (min-width: 1200px) { .cv-crumbs { padding-top: 24px; } }
.cv-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font: 500 14px/1.4286 var(--cv-font); color: var(--cv-quiet); }
.cv-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.cv-crumbs li + li::before { content: ""; width: 16px; height: 16px; margin: 0 8px; flex: none;
  background: currentColor; color: var(--cv-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M9.5 5.5 16 12l-6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M9.5 5.5 16 12l-6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.cv-crumbs a { color: var(--cv-quiet); text-decoration: none; }
.cv-crumbs a:hover { color: var(--cv-ink); text-decoration: underline; text-underline-offset: 3px; }
.cv-crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52ch; }
@media (max-width: 899px) {
  /* Mobile : une seule ligne défilable, le dernier élément tronqué. */
  .cv-crumbs ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cv-crumbs ol::-webkit-scrollbar { display: none; }
  .cv-crumbs li { flex: none; white-space: nowrap; }
  .cv-crumbs li:last-child { flex: 0 1 auto; min-width: 12ch; }
  .cv-crumbs [aria-current] { max-width: 70vw; }
}

/* ---------- Structure de la page de visionnage ---------- */
.cv { display: flex; flex-direction: column; }
.cv-layout { display: flex; flex-direction: column; }
.cv-stage { background: #000; }

/* ---------- Lecteur (surimpressions du lecteur de shorts Caast) ---------- */
.cv-player { position: relative; overflow: hidden; background: #000; color: #fff; width: 100%;
  height: calc(100svh - var(--cv-header-h) - env(safe-area-inset-top, 0px)); min-height: 480px; transition: height .35s cubic-bezier(.16, 1, .3, 1); }
.cv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.js .cv-video { cursor: pointer; }
.cv-shade { position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.7) 97%), linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 11%); }
.cv-top { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; }
.cv-ibtn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.cv-ibtn svg { width: 24px; height: 24px; fill: currentColor; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.cv-sound .i-on { display: none; }
.cv-sound[aria-pressed="true"] .i-on { display: block; }
.cv-sound[aria-pressed="true"] .i-off { display: none; }
.cv-unmute { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border: 0; border-radius: var(--cv-r-full); background: rgba(16,16,16,.6); color: #fff; font: 600 14px/20px var(--cv-font);
  backdrop-filter: blur(6px); cursor: pointer; white-space: nowrap; }
.cv-unmute svg { width: 20px; height: 20px; fill: currentColor; }
.cv-playpause { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; width: 72px; height: 72px; border: 0; border-radius: 50%;
  background: rgba(16,16,16,.5); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cv-playpause svg { width: 36px; height: 36px; fill: currentColor; margin-left: 4px; }
.cv-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 20px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.cv-bottom__row { display: flex; align-items: flex-end; gap: 12px; }
.cv-bottom a, .cv-bottom button, .cv-progress { pointer-events: auto; }
.cv-pcard { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.cv-pcard__img { flex: none; width: 72px; height: 82px; padding: 5px; background: #fff; border-radius: var(--cv-r-s); }
.cv-pcard__img img { width: 100%; height: 100%; object-fit: contain; }
.cv-pcard__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cv-pcard__name { font: 500 14px/1.3 var(--cv-font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.cv-pcard__price b { font: 700 16px/1 var(--cv-font); }
.cv-pcard__price s { font-size: 12px; opacity: .5; margin-left: 4px; }
.cv-side { display: flex; flex-direction: column; gap: 8px; }
.cv-rbtn { width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); backdrop-filter: blur(4px); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: .9; }
.cv-rbtn svg { width: 26px; height: 26px; fill: currentColor; }
.cv-progress { position: relative; height: 21px; padding: 8px 0; cursor: pointer; }
.cv-progress::before, .cv-progress span { content: ""; position: absolute; left: 0; top: 8px; height: 5px; border-radius: 2px; }
.cv-progress::before { right: 0; background: rgb(255 255 255 / 40%); backdrop-filter: blur(2px); }
.cv-progress span { width: 0; background: #fff; }
/* Précédent / suivant : sur mobile, dans le lecteur au-dessus du partage ; sur desktop, à droite du lecteur. */
.cv-nav { position: absolute; z-index: 3; right: 20px; bottom: calc(112px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 899px) {
  .cv .cv-player .cv-nav__btn { width: 50px; height: 50px; background: rgba(255,255,255,.2); backdrop-filter: blur(4px); color: #fff; }
  .cv .cv-player .cv-nav__btn:hover { background: rgba(255,255,255,.3); }
}
html:not(.js) .cv-nav { display: none; }
.cv .cv-nav__btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--cv-bg-alt); color: var(--cv-ink); transition: background .2s; }
.cv .cv-nav__btn:hover { background: var(--cv-line); }
.cv-nav__btn svg { width: 24px; height: 24px; fill: currentColor; }
html:not(.js) .cv-top, html:not(.js) .cv-progress, html:not(.js) .cv-side, html:not(.js) .cv-shade, html:not(.js) [data-cv-replay] { display: none; }
html:not(.js) .cv-bottom { position: static; background: #000; }
.js .cv-player[data-state="loading"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: cv-spin .8s linear infinite; z-index: 2; }
@keyframes cv-spin { to { transform: rotate(360deg); } }

/* ---------- Contenu ---------- */
.cv-content { padding: 32px var(--cv-gutter) 8px; max-width: 800px; }
.cv-h1 { margin: 0 0 12px; font: 600 26px/1.2308 var(--cv-font); text-wrap: balance; }   /* title-m écran S */
.cv-h2 { margin: 0; font: 600 22px/1.1818 var(--cv-font); text-wrap: balance; }         /* title-s */
.cv-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 28px; font: 500 14px/20px var(--cv-font); color: var(--cv-quiet); }
.cv-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.cv-meta__item svg { width: 16px; height: 16px; fill: currentColor; }
.cv-meta a { color: var(--cv-brand); text-decoration: none; }
.cv-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Intervenants : discrets, sous la ligne d'informations. */
.cv-speakers { list-style: none; margin: -16px 0 28px; padding: 0; font: 400 14px/20px var(--cv-font); color: var(--cv-quiet); }
.cv-speakers li + li { margin-top: 4px; }
.cv-speakers__name { font-weight: 600; color: var(--cv-ink); }
a.cv-speakers__name { text-decoration: underline; text-underline-offset: 3px; }
.cv-speakers__topics { display: block; }

/* Réponse : le bloc qui répond à la question, mis en avant et actionnable. */
.cv-answer { margin: 0 0 48px; padding: 24px; border-radius: var(--cv-r-m); background: var(--cv-brand-soft); }
@media (min-width: 600px) { .cv-answer { padding: 32px; } }
.cv-answer__title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 16px/24px var(--cv-font); color: var(--cv-brand); }
.cv-answer__title svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.cv-answer__text { margin: 0 0 24px; font: 500 20px/1.5 var(--cv-font); color: var(--cv-ink); max-width: 60ch; text-wrap: pretty; }
@media (min-width: 1200px) { .cv-answer__text { font-size: 22px; line-height: 1.45; } }
.cv-answer__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Boutons : pilule, 600 16px. */
.cv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--cv-r-full);
  font: 600 16px/24px var(--cv-font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.cv-btn svg { width: 20px; height: 20px; }
.cv .cv-btn--primary { background: var(--cv-brand); color: #fff; } /* .cv : un lien (<a>) garde le blanc malgré .cv a */
.cv-btn--primary:hover { background: var(--cv-brand-hover); }
.cv .cv-btn--ghost { background: transparent; color: var(--cv-brand); border-color: var(--cv-brand); }
.cv .cv-btn--ghost:hover { background: #fff; }
@media (max-width: 459px) { .cv-btn { flex: 1 1 100%; } }

/* Produits : fiches à grande image, comme les listes produits du site. */
.cv-section { margin: 0 0 48px; }
.cv-section .cv-h2 { margin-bottom: 20px; }
.cv-products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
@media (min-width: 600px) { .cv-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
/* Au-delà de 6 produits : « Voir plus » (details natif, sans JS) ; ouvert, la grille continue sans le bouton. */
.cv-products-more > summary { margin-top: 28px; list-style: none; }
.cv-products-more > summary::-webkit-details-marker { display: none; }
.cv-products-more[open] > summary { display: none; }
.cv-products-more > .cv-products { margin-top: 28px; }
@media (min-width: 600px) { .cv-products-more > summary, .cv-products-more > .cv-products { margin-top: 32px; } }
@media (max-width: 459px) { .cv-products-more > summary { display: flex; } }
.cv-prod { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--cv-ink); }
.cv-prod__img { aspect-ratio: 1; background: var(--cv-bg-alt); display: block; overflow: hidden; margin-bottom: 4px; }
.cv-prod__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.cv-prod:hover .cv-prod__img img { transform: scale(1.04); }
.cv-prod__name { font: 500 14px/1.4286 var(--cv-font); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cv-prod:hover .cv-prod__name { text-decoration: underline; text-underline-offset: 3px; }
.cv-prod__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.cv-prod__price b { font: 700 20px/1.2 var(--cv-font); }
.cv-prod__price b.is-discount { color: var(--cv-discount); }
.cv-prod__price s { font-size: 14px; color: var(--cv-quiet); }
.cv-prod__stock { font-size: 14px; color: var(--cv-quiet); }

/* Transcription repliée. */
.cv-transcript { margin: 0 0 24px; border-top: 1px solid var(--cv-line); border-bottom: 1px solid var(--cv-line); scroll-margin-top: calc(var(--cv-header-h) + 16px); }
.cv-transcript summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; cursor: pointer; list-style: none; font: 600 18px/1.3 var(--cv-font); }
.cv-transcript summary::-webkit-details-marker { display: none; }
.cv-transcript summary svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .25s; }
.cv-transcript[open] summary svg { transform: rotate(180deg); }
.cv-transcript div { padding: 0 0 20px; color: var(--cv-quiet); max-width: 68ch; }
.cv-transcript p { margin: 0 0 12px; }

/* ---------- Vignettes de shorts (autres questions, pages de liste) ---------- */
.cv-more { padding: 48px 0 56px; }
.cv-rowhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 var(--cv-gutter) 20px; }
.cv-rowhead .cv-h2 a { color: var(--cv-ink); text-decoration: none; }
.cv-rowhead .cv-h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cv .cv-all { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 16px/24px var(--cv-font); color: var(--cv-brand); text-decoration: none; }
.cv-all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cv .cv-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.cv-rail { list-style: none; margin: 0; padding: 0 var(--cv-gutter); display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--cv-gutter); scrollbar-width: none; }
.cv-rail::-webkit-scrollbar { display: none; }
.cv-rail > li { scroll-snap-align: start; }
@media (min-width: 600px) { .cv-rail { grid-auto-columns: 29%; gap: 20px; } }
@media (min-width: 900px) { .cv-rail { grid-auto-columns: calc((100% - 4 * 20px) / 5.4); } }
@media (min-width: 1200px) { .cv-rail { grid-auto-columns: calc((100% - 5 * 24px) / 6); gap: 24px; } }
.cv-grid { list-style: none; margin: 0; padding: 0 var(--cv-gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
@media (min-width: 600px) { .cv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; } }
@media (min-width: 900px) { .cv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cv-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 24px; } }

.cv-tile { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--cv-ink); }
.cv-tile__img { position: relative; aspect-ratio: 9 / 16; border-radius: var(--cv-r-s); overflow: hidden; background: var(--cv-bg-alt); }
.cv-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.cv-tile__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 58%, rgba(0,0,0,.5)); }
.cv-tile:hover .cv-tile__img img { transform: scale(1.04); }
.cv-tile__play { position: absolute; left: 12px; bottom: 12px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--cv-ink); display: grid; place-items: center; transition: transform .25s; }
.cv-tile__play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }
.cv-tile:hover .cv-tile__play { transform: scale(1.08); }
.cv-tile__d { position: absolute; right: 12px; bottom: 20px; z-index: 1; color: #fff; font: 600 14px/20px var(--cv-font); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.cv-tile__t { font: 600 16px/1.375 var(--cv-font); text-wrap: pretty; }
.cv-tile:hover .cv-tile__t { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mobile : le lecteur est le haut de page ---------- */
@media (max-width: 899px) {
  .cv[data-caast-page="video"] .cv-layout { order: 1; }
  .cv[data-caast-page="video"] .cv-more { order: 2; }
  .cv[data-caast-page="video"] .cv-crumbs { order: 3; border-top: 1px solid var(--cv-line); }
}

/* ---------- Tablette : lecteur 9:16 centré ---------- */
@media (min-width: 600px) and (max-width: 899px) {
  .cv-player { width: min(100%, calc((100svh - var(--cv-header-h)) * .5625)); margin: 0 auto; }
  .cv-video { object-fit: contain; }
  .cv-content { margin: 0 auto; }
}

/* ---------- Desktop : lecteur 9:16 collant à gauche, contenu à droite ---------- */
@media (min-width: 900px) {
  .cv-h1 { font-size: 32px; line-height: 1.1875; }  /* title-m écran L */
  .cv-layout { flex-direction: row; gap: 104px; padding: 0 var(--cv-gutter); }
  .cv-stage { background: none; flex: none; position: relative; }
  .cv-player { position: sticky; top: calc(var(--cv-header-h) + 16px); height: calc(100vh - var(--cv-header-h) - 96px); max-height: 860px; min-height: 0;
    aspect-ratio: 9 / 16; width: auto; border-radius: var(--cv-r-m); overflow: visible; }
  .cv-video, .cv-shade { border-radius: var(--cv-r-m); }
  .cv-video { object-fit: contain; }
  .cv-nav { right: -76px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .cv-close { display: none !important; }
  .cv-content { padding: 0; }
  .cv-more { margin-top: 24px; border-top: 1px solid var(--cv-line); }
}

/* ---------- Vidéo paysage (replays de lives, vidéos 16:9) : lecteur 16:9, jamais la colonne 9:16 ---------- */
.cv--landscape .cv-player { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
.cv--landscape .cv-video { object-fit: contain; }
.cv--landscape .cv-nav { display: none; }   /* flèches haut / bas propres au fil vertical ; clavier et vignettes restent */
@media (max-width: 899px) {
  /* Mobile et tablette : 16:9 pleine largeur en haut ; le produit est juste sous le lecteur. */
  .cv--landscape .cv-player { width: 100%; }
  .cv--landscape .cv-pcard { display: none; }
  .cv--landscape .cv-bottom { padding: 12px; gap: 8px; }
  .cv--landscape .cv-bottom__row { justify-content: flex-end; }
  .cv--landscape .cv-rbtn { width: 40px; height: 40px; }
}
@media (min-width: 900px) {
  /* Desktop : lecteur large en tête de colonne, contenu dessous ; hauteur bornée par l'écran. */
  .cv--landscape .cv-layout { flex-direction: column; gap: 32px; }
  .cv--landscape .cv-player { position: relative; top: auto; max-height: none;
    width: min(100%, 1280px, calc((100vh - var(--cv-header-h) - 96px) * 16 / 9)); }
}
@media (min-width: 1200px) {
  /* Grand écran : lecteur 16:9 collant à gauche (≈ 60 %), question et réponse à droite, visibles sans défiler. */
  .cv--landscape .cv-layout { flex-direction: row; align-items: flex-start; gap: 48px; }
  .cv--landscape .cv-stage { flex: 0 0 min(60%, calc((100vh - var(--cv-header-h) - 96px) * 16 / 9)); position: sticky; top: calc(var(--cv-header-h) + 24px); }
  .cv--landscape .cv-player { position: relative; top: auto; width: 100%; }
  .cv--landscape .cv-content { flex: 1; min-width: 0; padding-top: 0; }
}

/* ---------- Pages de liste (/videos, /videos/<gamme>) ---------- */
.cv--hub { padding: 0 0 72px; }
.cv-hero { margin: 0 var(--cv-gutter); padding: 32px 24px; border-radius: var(--cv-r-m); background: var(--cv-brand); color: #fff; display: grid; gap: 24px; overflow: hidden; }
@media (min-width: 900px) { .cv-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 48px; } }
.cv-hero h1 { margin: 0 0 12px; font: 600 36px/1.1111 var(--cv-font); text-wrap: balance; }            /* title-l écran S */
@media (min-width: 1200px) { .cv-hero h1 { font-size: 48px; line-height: 1.1667; } }                 /* title-l écran L */
.cv-hero p { margin: 0; max-width: 52ch; font: 500 18px/1.5 var(--cv-font); color: var(--cv-brand-soft); }
.cv-hero__mosaic { display: none; }
@media (min-width: 900px) {
  /* Trois vignettes entières, centrées sur le texte, la centrale plus grande : rien n'est rogné par le bloc. */
  .cv-hero__mosaic { display: flex; gap: 14px; align-items: center; }
  .cv-hero__mosaic img { width: 104px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--cv-r-s); background: rgba(255,255,255,.12); box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 12px 32px rgba(0,0,0,.28); }
  .cv-hero__mosaic img:nth-child(2) { width: 128px; }
}
.cv-chips { display: flex; gap: 8px; padding: 24px var(--cv-gutter) 0; overflow-x: auto; scrollbar-width: none; }
.cv-chips::-webkit-scrollbar { display: none; }
.cv-chipbar { position: relative; }
/* Une seule ligne, comme les pastilles de YouTube ou Google : la suite défile, signalée par un fondu et, à la souris, un bouton. */
.cv-chips--more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--cv-gutter) - 140px), transparent calc(100% - var(--cv-gutter) - 44px)); mask-image: linear-gradient(to right, #000 calc(100% - var(--cv-gutter) - 140px), transparent calc(100% - var(--cv-gutter) - 44px)); }
.cv-chips__more { position: absolute; right: var(--cv-gutter); bottom: 0; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--cv-line-strong); border-radius: var(--cv-r-full); background: var(--cv-bg); color: var(--cv-ink); cursor: pointer; }
.cv-chips__more:hover { border-color: var(--cv-ink); }
.cv-chips__more svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (hover: none) { .cv-chips__more { display: none; } } /* au doigt, la ligne défile d'elle-même */
.cv-chips a { flex: none; padding: 10px 18px; border: 1px solid var(--cv-line-strong); border-radius: var(--cv-r-full); font: 500 14px/20px var(--cv-font); text-decoration: none; white-space: nowrap; transition: border-color .2s; }
.cv-chips a:hover { border-color: var(--cv-ink); }
.cv-chips a[aria-current] { background: var(--cv-ink); border-color: var(--cv-ink); color: #fff; }
.cv-chips b { font-weight: 600; margin-left: 6px; color: var(--cv-quiet); }
.cv-chips a[aria-current] b { color: #bfbfbf; }
.cv-hub__g { padding-top: 48px; }
.cv-hub__head { padding: 0 var(--cv-gutter); }
.cv-hub__head .cv-h1 { margin: 0 0 8px; }
.cv-hub__head p { margin: 0; color: var(--cv-quiet); max-width: 60ch; }
.cv-links { line-height: 2; padding: 0 var(--cv-gutter); }
.cv-links a { color: var(--cv-brand); }

/* ---------- Page d'attente : bibliothèque sans vidéo publiée ---------- */
/* Annonce centrée : titre en deux graisses, phrase, sortie vers le site. */
.cv-soon { box-sizing: content-box; max-width: 46rem; margin: 0 auto; padding: clamp(56px, 9vw, 128px) var(--cv-gutter) clamp(56px, 8vw, 104px); text-align: center; }
.cv-soon__title { margin: 0; font: 400 clamp(2.25rem, 1.3rem + 3.8vw, 3.75rem)/1.08 var(--cv-font); letter-spacing: -0.02em; color: var(--cv-ink); text-wrap: balance; }
.cv-soon__title strong { display: block; font-weight: 700; }
.cv-soon__lead { margin: 28px auto 0; max-width: 34ch; font: 400 clamp(1.125rem, 1rem + .45vw, 1.375rem)/1.5 var(--cv-font); color: var(--cv-ink); text-wrap: pretty; }
.cv-soon__wait { margin: 44px 0 16px; font: 400 15px/1.5 var(--cv-font); color: var(--cv-quiet); text-wrap: balance; }
.cv--soon { background: var(--cv-bg); }
.cv-body ::selection { background: var(--cv-brand); color: #fff; }

/* ---------- Footer : liens légaux du marchand ---------- */
.cv-footer { padding: 48px var(--cv-gutter) calc(48px + env(safe-area-inset-bottom, 0px)); }
.cv-footer__in { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 40px; }
.cv-footer a { display: inline-flex; align-items: center; gap: 6px; color: var(--cv-brand); text-decoration: none; font: 500 16px/24px var(--cv-font); }
.cv-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cv-footer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .cv-body *, .cv-body *::before, .cv-body *::after { transition: none !important; animation: none !important; }
}

/* ---------- Recherche des pages de liste ---------- */
.cv-qsearch { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 28px; max-width: 640px; height: 56px; padding: 0 6px 0 52px; border-radius: var(--cv-r-full); background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cv-qsearch svg { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: var(--cv-ink); stroke-width: 1.5; }
.cv-qsearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: 500 16px/1 var(--cv-font); color: var(--cv-ink); text-overflow: ellipsis; }
.cv-qsearch input::placeholder { color: var(--cv-quiet); }
.cv-qsearch input::-webkit-search-cancel-button { cursor: pointer; }
.cv-qsearch button { flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: var(--cv-r-full); background: var(--cv-brand); color: #fff; font: 600 15px/1 var(--cv-font); cursor: pointer; transition: background .2s; }
.cv-qsearch button:hover { background: var(--cv-brand-hover); }
/* Focus discret mais visible : halo blanc translucide sur le bandeau bleu, sans le contour bleu global. */
.cv-qsearch input:focus, .cv-qsearch input:focus-visible { outline: none; }
.cv-qsearch { transition: box-shadow .2s; }
.cv-qsearch:focus-within { box-shadow: 0 10px 30px rgba(0,0,0,.22), 0 0 0 4px rgba(255,255,255,.35); }
.js .cv-qsearch button { display: none; } /* recherche instantanée : bouton inutile (Entrée valide toujours le formulaire) */
.js .cv-qsearch { padding-right: 20px; }
@media (max-width: 599px) { .cv-qsearch { height: 52px; } .cv-qsearch input { font-size: 16px; } }

.cv-results:empty { display: none; }
.cv-hits { list-style: none; margin: 0; padding: 0 var(--cv-gutter); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px 32px; }
.cv-hit { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding: 12px; margin: -12px; border-radius: var(--cv-r-m); text-decoration: none; color: var(--cv-ink); transition: background .2s; }
.cv-hit:hover { background: var(--cv-bg-alt); }
.cv-hit__img { position: relative; aspect-ratio: 9 / 16; border-radius: var(--cv-r-s); overflow: hidden; background: var(--cv-bg-alt); }
.cv-hit__img img { width: 100%; height: 100%; object-fit: cover; }
.cv-hit__img .cv-tile__d { right: 6px; bottom: 6px; font-size: 12px; }
.cv-hit__txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 2px; }
.cv-hit__t { font: 600 17px/1.35 var(--cv-font); text-wrap: pretty; }
.cv-hit:hover .cv-hit__t { text-decoration: underline; text-underline-offset: 3px; }
.cv-hit__snip { font: 500 14px/1.5 var(--cv-font); color: var(--cv-quiet); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cv-hit__snip b { color: var(--cv-ink); font-weight: 600; margin-right: 4px; }
.cv-hit__meta { font: 500 13px/1.4 var(--cv-font); color: var(--cv-brand); }
.cv-hit mark { --cv-mark: color-mix(in srgb, var(--cv-brand) 16%, #fff); background: var(--cv-mark); color: inherit; border-radius: 2px; box-shadow: 0 0 0 2px var(--cv-mark); } /* halo sans padding : les espaces du titre ne bougent pas */
.cv-hits__empty { padding: 0 var(--cv-gutter); color: var(--cv-quiet); }

/* Index A–Z de l'accueil : toutes les gammes, en colonnes. */
.cv-chips a { max-width: 22em; overflow: hidden; text-overflow: ellipsis; }
.cv-az .cv-h2 { padding: 0 var(--cv-gutter) 20px; }
.cv-az ul { list-style: none; margin: 0; padding: 0 var(--cv-gutter); columns: 3 18rem; column-gap: 40px; }
.cv-az li { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--cv-line); break-inside: avoid; }
.cv-az a { flex: 1; min-width: 0; color: var(--cv-ink); font: 400 15px/22px var(--cv-font); text-decoration: none; }
.cv-az a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cv-az b { flex: none; font: 600 13px/22px var(--cv-font); color: var(--cv-quiet); }
