/* Kenza's section 6 ("Everything you need, on the table"), lifted from yalc-rebranding/site/hero.html lines 183-300 unchanged, plus the few base rules it leans on. */
  /* ---- Section vidéo (avant la FAQ) : bords fondus dans le fond, même courbe que la vidéo du hero
     (.hero-fade : 0 → 25 % → 65 % → 92 % → 100 %), via un masque pour que la texture du fond reste visible */
  /* La section 6 se bloque pendant le scroll (centrée sous la nav) : la vidéo démarre à ce moment-là */
  .vid-scene { position: relative; z-index: 1; }
  .vid-sec { position: sticky; top: var(--vid-top, 0px); z-index: 1; padding-bottom: 0; }   /* feutre sous la vidéo, puis fondu vers la FAQ */
  .vid-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("fond-section3.jpg") center / cover fixed;
    opacity: .25;
    pointer-events: none;
  }
  /* Fond feutre bordeaux (image de Kenza, teintée pour avoir exactement la couleur du feutre de la vidéo :
     RGB 54/4/6) : il se fond dans la section d'avant en haut et dans la FAQ en bas, la vidéo se fond dedans */
  .vid-felt {
    position: absolute;
    inset: 0;
    background: url("felt-s6.jpg") 0 0 / 800px 800px repeat;
    -webkit-mask-image: linear-gradient(to bottom,
      transparent 0, rgba(0,0,0,.08) 40px, rgba(0,0,0,.35) 100px, rgba(0,0,0,.75) 180px, #000 260px,
      #000 calc(100% - 150px), rgba(0,0,0,.75) calc(100% - 104px), rgba(0,0,0,.35) calc(100% - 58px), rgba(0,0,0,.08) calc(100% - 22px), transparent 100%);
            mask-image: linear-gradient(to bottom,
      transparent 0, rgba(0,0,0,.08) 40px, rgba(0,0,0,.35) 100px, rgba(0,0,0,.75) 180px, #000 260px,
      #000 calc(100% - 150px), rgba(0,0,0,.75) calc(100% - 104px), rgba(0,0,0,.35) calc(100% - 58px), rgba(0,0,0,.08) calc(100% - 22px), transparent 100%);
    pointer-events: none;
  }
  /* Cartes posées sur la vidéo à la fin : positions mesurées sur la dernière image (1920 × 1080) :
     cartes de 280 × 360 px, haut à 21,85 %, gauches à 6,20 / 24,69 / 42,92 / 61,30 / 79,79 % (vidéo V2). Elles sont dessinées
     à cette taille puis mises à l'échelle de la vidéo (--vs = largeur affichée / 1920). */
  .vid-wrap { position: relative; }
  .vid-cards { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 16 / 9; pointer-events: none; }
  .vcard {
    position: absolute;
    top: 21.85%;
    width: 280px;
    height: 360px;
    transform: scale(var(--vs, .65));
    transform-origin: 0 0;
    opacity: 0;
    transition: opacity 180ms ease-out;   /* bref : on voit à peine la carte filmée passer à la vraie */
  }
  .vcard.is-on { opacity: 1; pointer-events: auto; }
  .vcard .vc-in {
    --ink: #141210;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 15px;
    padding: 0 30px;
    transition: scale 280ms cubic-bezier(.2, .8, .2, 1);
  }
  .vcard .vc-in::before { inset: 12px; border-radius: 9px; }
  .vcard .vc-in::after { inset: 16px; border-radius: 7px; }
  .vcard .idx { left: 22px; top: 18px; }
  .vcard .idx-b { left: auto; top: auto; right: 22px; bottom: 18px; }
  .vcard .idx b { font-size: 34px; line-height: 1; }
  .vcard .idx i { font-size: 22px; margin-top: 6px; }
  .vcard .pip { font-size: 230px; }
  .vc-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .vc-text b { font-family: var(--font-title); font-weight: 500; font-size: 26px; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; color: #141210; text-wrap: balance; }
  .vc-text span { font-size: 16px; line-height: 1.45; color: #5E5750; text-wrap: balance; }
  @media (hover: hover) { .vcard.is-on:hover { z-index: 2; } .vcard.is-on:hover .vc-in { scale: 1.06; } }

  /* titre de la section, à gauche sur la grille du site (comme les autres sections) */
  .vid-head {
    position: relative;
    width: var(--frame-w, min(1224px, 100%));
    margin-inline: auto;
    padding: 64px 0 8px;   /* écart réduit avec le dashboard (section 5) */
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .vid-head .agents-subtitle { color: var(--paper-dim); }
  @media (max-width: 860px) { .vid-head { padding-top: 48px; } }
  @media (max-width: 720px) { .vid-scene { padding-top: 178px; } }   /* mobile : écart dashboard → section 6 doublé (avant la section, pas dans la partie collée) */
  /* Mobile : vidéo verticale ; le titre est posé sur le haut de la vidéo (feutre vide), 40 px au-dessus des cartes */
  @media (max-width: 720px) {
    .vid-head { z-index: 2; padding: 0; }
    .vid-wrap { margin-top: calc(-1 * var(--vid-pull, 0px)); }
    .vid-sec .vid-wrap video {
      aspect-ratio: 9 / 14;   /* recadrée sous les cartes */
      max-height: none;
      -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 6%, #000 15%, #000 82%, rgba(0,0,0,.35) 93%, transparent 100%);
              mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 6%, #000 15%, #000 82%, rgba(0,0,0,.35) 93%, transparent 100%);
    }
    .vid-cards { aspect-ratio: 9 / 16; }
    .vcard:nth-child(1) { left: 8.13% !important; top: 30.55%; }
    .vcard:nth-child(2) { left: 38.06% !important; top: 30.55%; }
    .vcard:nth-child(3) { left: 67.99% !important; top: 30.55%; }
    .vcard:nth-child(4) { left: 23.06% !important; top: 52.03%; }
    .vcard:nth-child(5) { left: 52.99% !important; top: 52.03%; }
    /* pas de vraies cartes par-dessus : la vidéo s'arrête sur sa dernière image, qui montre déjà les 5 cartes
       (le Copperplate du téléphone n'a pas exactement le dessin de celui de la vidéo : le texte ne tomberait pas pile) */
    .vcard { opacity: 0 !important; -webkit-tap-highlight-color: transparent; }   /* zones invisibles au-dessus des cartes filmées */
    .vcard.is-on { cursor: pointer; }
    .vzoom { position: fixed; inset: 0; z-index: 1000; touch-action: none; -webkit-tap-highlight-color: transparent;
      background: rgba(10, 10, 9, 0); -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
      transition: background 320ms var(--ease-out), backdrop-filter 320ms var(--ease-out), -webkit-backdrop-filter 320ms var(--ease-out); }
    .vzoom.is-open { background: rgba(10, 10, 9, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
    .vzoom .vcard { left: 0 !important; top: 0 !important; opacity: 1 !important; pointer-events: auto;
      transition: transform 460ms cubic-bezier(.2, .8, .2, 1); will-change: transform; }
    .vzoom .vcard .vc-in { background-color: #F4EFE6; }
    @media (prefers-reduced-motion: reduce) { .vzoom .vcard { transition: none; } }
  }
  .vid-sec video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7.2;      /* recadrée sous les cartes (80 % de la hauteur) : 195 px entre le bas des cartes et le titre de la FAQ */
    max-height: 110svh;
    object-fit: cover;
    object-position: 50% 0;
    /* haut (18 %, s'arrête avant les cartes) et bas (30 %) fondus ; les côtés sont les bords de l'écran, comme le hero */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.08) 2.7%, rgba(0,0,0,.35) 6.8%, rgba(0,0,0,.75) 12.6%, #000 18%, #000 74%, rgba(0,0,0,.75) 81%, rgba(0,0,0,.35) 89%, rgba(0,0,0,.08) 96%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.08) 2.7%, rgba(0,0,0,.35) 6.8%, rgba(0,0,0,.75) 12.6%, #000 18%, #000 74%, rgba(0,0,0,.75) 81%, rgba(0,0,0,.35) 89%, rgba(0,0,0,.08) 96%, transparent 100%);
  }
  /* --- base rules from her page that the section uses --- */
  .vid-sec .agents-title { margin: 0; max-width: 16ch; font-family: var(--font-title); font-weight: 500; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.02; letter-spacing: .01em; text-wrap: balance; }
  .vid-sec .agents-title em { font: inherit; letter-spacing: inherit; }
  .vid-sec .agents-subtitle { margin: 0; max-width: 40ch; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; }
  .vcard .slip { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 30px; aspect-ratio: auto; border-radius: 15px; }
  .vcard .pip { opacity: .035; }

/* waitlist version: the live cards now carry the same type as the repainted video faces (Geist), so the hand-off at the end is seamless */
.vid-sec .vc-text { gap: 16px; max-width: none; margin-inline: auto; }
.vid-sec .vc-text span { white-space: nowrap; text-wrap: nowrap; }
.vid-sec .vc-text b { font-family: var(--font-sans); font-weight: 500; font-size: 23.5px; line-height: 1.1; letter-spacing: .07em; color: #1d1a18; }
.vid-sec .vc-text span { font-family: var(--font-sans); font-size: 16.5px; line-height: 1.4; color: #5d5751; }
