/* =========================================================
   WSL Academy - Hero video en plein fond (nov. 2026, v3)
   La video du hero remplit tout le hero, sur mobile comme sur
   ordinateur. Le texte passe en blanc sur un degrade sombre :
   - mobile (< 980px)   : degrade par le bas, texte en bas ;
   - ordinateur (>= 980px) : degrade par la gauche, texte a gauche.
   Pour revenir en arriere : retirer le <link> et le <script>
   hero-cinema dans index.html.
   ========================================================= */

/* ---------- Commun ---------- */
body .hero.hero-film{
  --hl-ink:#fff;
  --hl-paper:#0b0b0b;
  position:relative;
  overflow:hidden;
  background:#0b0b0b;
  color:#fff;
  box-sizing:border-box;
}
body .hero.hero-film > .film-top{position:relative;z-index:2}

/* La video occupe tout le hero */
body .hero.hero-film > figure.hero-video.film{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  max-width:none;
  height:100%;
  aspect-ratio:auto;
  margin:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:#0b0b0b;
}
body .hero.hero-film > figure.hero-video.film video{object-fit:cover;background:#0b0b0b}
body .hero.hero-film > figure.hero-video.film::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
}

/* Textes en blanc (les span du h1 heritent de sa couleur : premium.css force color:inherit) */
body .hero.hero-film .film-top h1.slogan{color:#fff !important}
body .hero.hero-film .film-top .fb-lead{color:rgba(255,255,255,.8)}
body .hero.hero-film .film-top .hook{color:rgba(255,255,255,.76)}
body .hero.hero-film .film-top .hook b{color:#fff}
body .hero.hero-film .film-top .hook span + span::before{color:rgba(255,255,255,.45)}
body .hero.hero-film .film-top h1.slogan .sl-kw,
body .hero.hero-film .film-top .acts{justify-content:flex-start}
body .hero.hero-film .film-top .fb-lead,
body .hero.hero-film .film-top .hook{text-align:left;margin-left:0;margin-right:0}

/* Boutons (premium.css impose les couleurs de .btn-t en !important) */
body .hero.hero-film .film-top .btn-t{background:#fff !important;color:#0b0b0b !important;border-color:#fff !important}
body .hero.hero-film .film-top .btn-t:hover{background:#ececec !important;border-color:#ececec !important}
body .hero.hero-film .film-top .btn-o{background:rgba(255,255,255,.08) !important;color:#fff !important;border-color:rgba(255,255,255,.4) !important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
body .hero.hero-film .film-top .btn-o:hover{background:rgba(255,255,255,.16) !important;border-color:rgba(255,255,255,.6) !important}
body .hero.hero-film .film-top .btn-o svg{stroke:currentColor}

/* Boutons son / pause au-dessus du degrade */
body .hero.hero-film .hv-toggle,
body .hero.hero-film .hv-sound{z-index:3}

/* ---------- Mobile et tablette ---------- */
@media (max-width:979px){
  body .hero.hero-film{
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    min-height:100svh;
    padding:calc(var(--nav-h) + 24px) 22px 30px;
  }
  body .hero.hero-film > figure.hero-video.film video{object-position:50% 30%}
  body .hero.hero-film > figure.hero-video.film::after{
    background:linear-gradient(0deg,rgba(0,0,0,.97) 0%,rgba(0,0,0,.92) 38%,rgba(0,0,0,.45) 62%,rgba(0,0,0,0) 80%);
  }
  /* son + pause en haut a droite, sous le menu */
  body .hero.hero-film .hv-toggle{top:calc(var(--nav-h) + 14px);bottom:auto;right:16px}
  body .hero.hero-film .hv-sound{top:calc(var(--nav-h) + 14px);bottom:auto;left:auto;right:64px}

  body .hero.hero-film > .film-top{padding:0;margin:0;text-align:left}
  body .hero.hero-film .film-top .fb-lead{font-size:.92rem;line-height:1.5}
  body .hero.hero-film .film-top .acts{display:grid;grid-template-columns:1fr;gap:8px;margin:16px 0 0}
  body .hero.hero-film .film-top .acts .btn{width:100%;min-height:46px;justify-content:center}
}

/* ---------- Ordinateur ---------- */
@media (min-width:980px){
  body .hero.hero-film{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    max-width:none;
    margin:0;
    min-height:min(100svh,900px);
    padding:var(--nav-h) max(32px,calc((100vw - 1180px)/2 + 32px)) 0;
  }
  body .hero.hero-film > figure.hero-video.film video{object-position:50% 38%}
  body .hero.hero-film > figure.hero-video.film::after{
    background:
      linear-gradient(90deg,rgba(0,0,0,.9) 0%,rgba(0,0,0,.74) 42%,rgba(0,0,0,.28) 72%,rgba(0,0,0,.14) 100%),
      linear-gradient(0deg,rgba(0,0,0,.5) 0%,rgba(0,0,0,0) 30%);
  }
  body .hero.hero-film > .film-top{max-width:720px;margin:0;padding:40px 0;text-align:left}
  /* son + pause en bas a droite, alignes sur la grille du site */
  body .hero.hero-film .hv-toggle{bottom:28px;right:max(32px,calc((100vw - 1180px)/2 + 32px))}
  body .hero.hero-film .hv-sound{bottom:28px;left:auto;right:calc(max(32px,calc((100vw - 1180px)/2 + 32px)) + 50px)}
}
