/* ==============================================================================================
   Catégorie « Vidéos » de motion-design.pro (12/11/2026) : page /videos et pages de visionnage /video-…
   S'ajoute à style.css (jetons de :root, boutons, sections .edito). Aucune règle globale modifiée.
   ============================================================================================== */

/* --- Page de visionnage : lecteur à gauche, texte à droite (bureau) ; empilés (téléphone) --- */
.vtete__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.vtete__grille > * {
  min-width: 0;
}

.lecteur__video {
  max-width: 100%;
}

@media (min-width: 900px) {
  .vtete__grille--4-5,
  .vtete__grille--9-16 {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
  .vtete__grille--9-16 {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }
  .vtete__texte {
    position: sticky;
    top: 110px;
  }
}

.vtete__texte h1 {
  margin-bottom: 18px;
}

.vtete__texte p + p {
  margin-top: 12px;
}

.vtete__texte .edito__actions {
  margin-top: 24px;
}

.lecteur {
  position: relative;
  width: 100%;
  max-height: calc(100svh - 150px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--filet-fort);
  border-radius: var(--r-carte);
  background: #000;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}

/* Lecteur vertical : jamais plus haut que l'écran, centré, proportions gardées */
.vtete__grille--4-5 .lecteur,
.vtete__grille--9-16 .lecteur {
  width: min(100%, calc((100svh - 150px) * 0.8));
}
.vtete__grille--9-16 .lecteur {
  width: min(100%, calc((100svh - 150px) * 0.5625));
}

.lecteur__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.lecteur__infos {
  margin-top: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--texte-pale);
  text-align: center;
}

.lecteur__infos a {
  color: var(--teal-clair);
}

/* --- Sections de texte des pages vidéo --- */
.vsection {
  margin-top: clamp(18px, 2vw, 28px);
}

.chapitres,
.parcours,
.vliste,
.vprix,
.vliens {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}

.chapitre {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 16px;
  border: 1px solid var(--filet);
  border-radius: var(--r-petit);
  background: var(--verre);
  color: var(--texte);
  text-decoration: none;
  transition: border-color 0.2s var(--ease-doux), background 0.2s var(--ease-doux);
}

.chapitre:hover,
.chapitre:focus-visible {
  border-color: var(--vif);
  background: var(--verre-fort);
}

.chapitre__temps {
  flex: none;
  min-width: 3.2em;
  color: var(--vif);
  font-size: 0.85rem;
}

.parcours {
  counter-reset: etape;
}

.parcours li {
  position: relative;
  padding: 10px 14px 10px 46px;
  border-left: 2px solid var(--filet-fort);
  color: var(--texte-doux);
}

.parcours li::before {
  counter-increment: etape;
  content: counter(etape, decimal-leading-zero);
  position: absolute;
  left: 12px;
  top: 11px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--teal-clair);
}

.transcription {
  padding: clamp(18px, 2.4vw, 28px);
  border-left: 3px solid var(--vif);
  border-radius: 0 var(--r-petit) var(--r-petit) 0;
  background: var(--verre);
}

.transcription p {
  color: var(--texte-doux);
}

.transcription p + p {
  margin-top: 10px;
}

.vliste li,
.vliens li,
.vprix li {
  position: relative;
  padding-left: 22px;
  color: var(--texte-doux);
}

.vliste li::before,
.vliens li::before,
.vprix li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vif);
}

.vliens a {
  color: var(--teal-clair);
}

/* --- Filtres de la page /videos --- */
.vfiltres {
  position: sticky;
  top: 76px;
  z-index: var(--z-contenu);
  padding-block: 14px;
  background: linear-gradient(180deg, var(--fond-1) 70%, rgba(2, 20, 25, 0));
}

.vfiltres__ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vfiltre {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--filet-fort);
  border-radius: var(--r-pilule);
  background: var(--verre);
  color: var(--texte);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.vfiltre .mono {
  font-size: 0.75rem;
  color: var(--texte-pale);
}

.vfiltre[aria-pressed="true"] {
  border-color: var(--vif);
  background: var(--vif);
  color: var(--encre-vif);
}

.vfiltre[aria-pressed="true"] .mono {
  color: var(--encre-vif);
}

.vcategorie[hidden] {
  display: none;
}

.vcategorie__texte {
  max-width: 760px;
  margin: 6px 0 26px;
  color: var(--texte-doux);
}

/* --- Grille de cartes --- */
.vgrille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.vgrille--trois {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  margin-top: 22px;
}

.vcarte__lien {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--filet);
  border-radius: var(--r-carte);
  background: rgba(3, 30, 37, 0.5);
  color: var(--texte);
  text-decoration: none;
  transition: transform 0.35s var(--ease-sortie), border-color 0.25s var(--ease-doux);
}

.vcarte__lien:hover,
.vcarte__lien:focus-visible {
  transform: translateY(-4px);
  border-color: var(--vif);
}

.vcarte__image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #000;
}

.vcarte__image img,
.vcarte__image video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vcarte__duree {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(1, 16, 15, 0.82);
  font-size: 0.72rem;
  color: var(--texte);
}

.vcarte__lecture {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--vif);
  color: var(--encre-vif);
  transform: translate(-50%, -50%);
  transition: opacity 0.25s var(--ease-doux);
}

.vcarte__lecture svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.vcarte__lien.lit .vcarte__lecture {
  opacity: 0;
}

.vcarte__texte {
  display: grid;
  gap: 6px;
  padding: 16px 18px 20px;
}

.vcarte__surtitre {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-clair);
}

.vcarte__titre {
  margin: 0;
  font-family: var(--f-titre);
  font-size: 1.12rem;
  line-height: 1.25;
}

.vcarte__resume {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--texte-doux);
}

/* --- Questions de la page /videos (12/11/2026) : blocs moins hauts, espacés --- */
.vfaq {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.vfaq .edito-question summary {
  padding: 11px 16px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.vfaq .edito-question summary::after {
  width: 24px;
  height: 24px;
  font-size: 0.95rem;
}

.vfaq .edito-question > p {
  margin: 0;
  padding: 0 16px 14px;
}

/* --- Barre de défilement visible sur les pages vidéo (12/11/2026) : ailleurs, le site la remplace par des repères --- */
@media (min-width: 1180px) {
  html.js {
    scrollbar-width: auto;
    scrollbar-color: rgba(170, 232, 240, 0.45) var(--fond-1);
  }

  html.js::-webkit-scrollbar {
    display: block;
    width: 12px;
  }

  html.js::-webkit-scrollbar-track {
    background: var(--fond-1);
  }

  html.js::-webkit-scrollbar-thumb {
    border: 3px solid var(--fond-1);
    border-radius: 999px;
    background: rgba(170, 232, 240, 0.45);
  }
}

/* --- Première version d'une vidéo refaite (13/11/2026) : repliée, petit lecteur, sous la nouvelle version --- */
.vpremiere {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--filet-fort);
  border-radius: var(--r-carte);
}

.vpremiere__titre {
  cursor: pointer;
  font-weight: 600;
  color: var(--teal-clair);
}

.vpremiere[open] .vpremiere__titre {
  margin-bottom: 16px;
}

.vpremiere__lecteur {
  width: min(100%, 320px);
  margin: 0;
}

.vpremiere .lecteur__infos {
  text-align: left;
}
