/* ==========================================================================
   MGP MOTO — « NOUVELLE GARDE » · VIDÉOS (/videos/)
   ========================================================================== */
.vid-head { overflow: hidden; padding-top: calc(var(--nav-h) + clamp(1.5rem, 1rem + 1.5vw, 2.5rem)); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); background: var(--ink-950); }
.vid-head__star { position: absolute; z-index: 0; width: min(44rem, 90vw); right: -8%; top: 6%; --star-color: rgba(245,197,24,.14); --star-stroke: 1px; pointer-events: none; }
.vid-head__title { margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); max-width: 16ch; font-size: clamp(2.7rem, 1rem + 6.4vw, 8.5rem); }
.vid-head__foot { margin-top: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.vid-head__foot .lead { max-width: 32em; }

.vid-filters { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); display: grid; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.vid-filters__row { display: grid; gap: .6rem; align-items: center; }
@media (min-width: 900px) { .vid-filters__row { grid-template-columns: 6.5rem 1fr; } }

/* --- La une : format cinéma ------------------------------------------------ */
.vid-une-section { background: var(--ink-950); padding-bottom: clamp(3rem, 2rem + 5vw, 7rem); }
.vid-une__link { display: block; color: inherit; }
.vid-une__media { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 9; border-radius: var(--radius-m); background: var(--ink-850); }
.vid-une__media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: transform var(--dur-5) var(--ease-out), opacity var(--dur-3); }
.vid-une__link:hover .vid-une__media img { transform: scale(1.03); opacity: 1; }
.vid-une__media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(7,7,9,.15) 0%, transparent 30%, rgba(7,7,9,.78) 100%); }
.vid-une__fallback { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: clamp(1.25rem, 3vw, 3rem); font: 900 clamp(1.8rem, 1rem + 4vw, 5rem)/.92 var(--font-display); font-stretch: var(--wdth-display); text-transform: uppercase; letter-spacing: -.03em; color: var(--ink-600); background: linear-gradient(160deg, var(--ink-800), var(--ink-900)); }
.vid-une__play { position: absolute; z-index: 3; left: 50%; top: 50%; width: clamp(4.5rem, 3rem + 5vw, 7.5rem); aspect-ratio: 1; margin: calc(clamp(4.5rem, 3rem + 5vw, 7.5rem) / -2) 0 0 calc(clamp(4.5rem, 3rem + 5vw, 7.5rem) / -2); display: grid; place-items: center; border-radius: 50%; background: rgba(7,7,9,.45); color: var(--paper); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(243,239,231,.35); transition: transform .7s var(--ease-out), background var(--dur-2), color var(--dur-2); }
.vid-une__play svg { width: 34%; height: 34%; margin-left: 4%; }
.vid-une__link:hover .vid-une__play { transform: scale(1.1); background: var(--ember); color: var(--ink-950); box-shadow: none; }
.vid-une__duree { position: absolute; z-index: 3; right: 1rem; top: 1rem; padding: .35rem .6rem; border-radius: var(--radius-xs); background: rgba(7,7,9,.75); color: var(--paper); }
.vid-une__text { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: grid; gap: 1rem; }
.vid-une__badge { color: var(--paper); }
.vid-une__title { max-width: 22ch; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3.6rem); line-height: .98; }
.vid-une__desc { max-width: 30em; }
.vid-une__fiche { margin-top: 1.25rem; }
@media (min-width: 1000px) {
  .vid-une__text { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: var(--grid-gap); align-items: end; }
  .vid-une__meta { grid-column: 1 / -1; }
  .vid-une__desc { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
  .vid-une__credit { grid-column: 1; }
}

/* --- Grille ---------------------------------------------------------------- */
.vid-grid-section { background: var(--ink-900); }
.vid-grid { --card-min: 21rem; }
.vid-item { min-width: 0; }
.vid-item__fiche { margin-top: .6rem; }
.vid-fiche { display: inline-flex; align-items: center; gap: .6em; color: var(--mute); border-bottom: 1px solid var(--line-strong); padding-bottom: .15rem; transition: color var(--dur-2), border-color var(--dur-2); }
.vid-fiche svg { width: 1rem; height: 1rem; transition: transform .5s var(--ease-out); }
.vid-fiche:hover { color: var(--paper); border-color: var(--ember); }
.vid-fiche:hover svg { transform: translateX(.2rem); }

.vid-note { background: var(--ink-950); padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); border-top: 1px solid var(--line); }
.vid-note__text { max-width: 54em; text-transform: none; letter-spacing: .04em; line-height: 1.7; font-size: .76rem; }

/* Le titre de la vidéo est écrit une fois : le repli typographique ne transparaît pas sous la vignette. */
.vid-grid .card-video__media img { opacity: 1; }
.vid-grid-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.vid-grid-head__n { color: var(--ember); font-variant-numeric: tabular-nums; margin-left: .6em; }
.vid-grid-rule { display: block; height: 1px; background: var(--line-strong); margin: 1rem 0 clamp(2rem, 1.5rem + 2.5vw, 4rem); }
.vid-grid .card-video__fallback { font-size: 0; } /* hors ligne : un fond sobre, le titre figure déjà sous la vignette */
.vid-grid--typed .card-video__type, .vid-grid--typed .card-video__type + span { display: none; } /* type déjà filtré : inutile de le répéter */
