/* ==========================================================================
   AXOLOTL — home-video.css : bloc vidéo « Qu'est-ce qu'une agence 360 ? » (sous le héros)
   Bureau : texte à gauche, vidéo 16:9 à droite (~55 % de la largeur).
   Mobile : vidéo verticale 9:16 qui grandit au scroll (de ~64 % à ~88 % de la hauteur d'écran), la page continue de défiler.
   ========================================================================== */
.hv{position:relative;padding:34px 0 84px;background:var(--bg)}
.hv-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:56px;align-items:center}
.hv-copy{display:flex;flex-direction:column;gap:20px}
.hv-copy h2{font-family:var(--f-display);font-weight:800;font-variation-settings:"wdth" 80;font-size:clamp(2.1rem,3.8vw,3.4rem);line-height:.98;letter-spacing:-.02em;color:var(--ink)}
.hv-copy h2 em{font-style:normal;color:var(--framboise)}
.hv-copy p{font-size:1.06rem;line-height:1.55;color:var(--ink);max-width:46ch}
.hv-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.hv-meta span{padding:7px 14px;border-radius:999px;border:1.5px solid var(--ink);font-weight:700;font-size:.86rem;background:#fff}

/* cadre : mêmes cartes empilées que la carte du héros */
.hv-stage{position:relative;isolation:isolate}
.hv-stage::before,.hv-stage::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:28px;border:2px solid var(--ink);transition:transform .6s var(--ease)}
.hv-stage::before{background:#F4C542;transform:rotate(-2.4deg)}
.hv-stage::after{background:#B9A6D9;transform:rotate(2deg)}
.hv-stage:hover::before{transform:rotate(-3.6deg) translate(-5px,2px)}
.hv-stage:hover::after{transform:rotate(3.2deg) translate(5px,2px)}
.hv-frame{position:relative;aspect-ratio:16/9;border-radius:28px;overflow:hidden;border:2px solid var(--ink);background:var(--rose);box-shadow:var(--shadow-lg)}
.hv-frame video,.hv-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.hv-poster{transition:opacity .5s var(--ease)}
.hv-poster picture,.hv-poster img{display:block;width:100%;height:100%;object-fit:cover}
.hv-play{z-index:2;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:12px;min-height:56px;padding:14px 28px;border:0;border-radius:999px;background:var(--rose);color:var(--ink);font:700 1.02rem/1 var(--f-body);cursor:pointer;box-shadow:0 14px 30px rgba(27,18,51,.28),0 0 0 2px var(--ink);transition:transform .3s var(--ease),gap .3s var(--ease)}
.hv-play:hover,.hv-play:focus-visible{transform:translate(-50%,calc(-50% - 3px));gap:18px}
.hv-play:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.hv-play i{width:0;height:0;border-left:13px solid currentColor;border-top:8px solid transparent;border-bottom:8px solid transparent}
.hv-play small{font-weight:600;opacity:.7;white-space:nowrap}
.hv-play{white-space:nowrap}
.hv-frame.is-playing .hv-poster{opacity:0;pointer-events:none}
.hv-frame.is-playing:not(.is-paused) .hv-play{opacity:0;pointer-events:none}
.hv-frame video{cursor:pointer}
.hv-pause{position:absolute;right:14px;top:14px;z-index:2;width:44px;height:44px;border-radius:50%;border:2px solid var(--ink);background:var(--rose);color:var(--ink);cursor:pointer;display:none;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(27,18,51,.25)}
.hv-pause:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.hv-pause i{width:12px;height:14px;border-left:4px solid currentColor;border-right:4px solid currentColor}
.hv-frame.is-playing:not(.is-paused) .hv-pause{display:flex}

/* mobile : vidéo verticale, la hauteur suit --p (0→1) posé par le JS au scroll */
@media (max-width:760px){
  .hv{padding:20px 0 56px}
  .hv-grid{grid-template-columns:1fr;gap:26px}
  .hv-copy{text-align:center;align-items:center}
  .hv-meta{justify-content:center}
  .hv-stage{width:fit-content;margin:0 auto;max-width:94vw}
  .hv-stage::before,.hv-stage::after{border-radius:22px}
  .hv-frame{aspect-ratio:9/16;height:calc(64svh + var(--p,.5) * 24svh);max-height:calc(94vw * 16 / 9);border-radius:calc(28px - var(--p,.5) * 10px)}
  .hv-play{padding:12px 22px;min-height:52px}
  .hv-play small{display:none}
}
@media (max-width:760px){.hv-nov .hv-stage{width:100%}.hv-nov .hv-frame{aspect-ratio:16/9;height:auto;max-height:none}}
@media (min-width:761px) and (max-width:1024px){.hv-grid{grid-template-columns:1fr;gap:34px}.hv-copy{max-width:640px}}
@media (prefers-reduced-motion:reduce){.hv-stage::before,.hv-stage::after,.hv-poster,.hv-play{transition:none}}

/* variante compacte (page contact) : le formulaire reste vite accessible */
.hv-compact{padding:6px 0 30px}
.hv-compact .hv-grid{grid-template-columns:1fr 1fr;gap:40px}
.hv-compact .hv-copy h2{font-size:clamp(1.7rem,2.8vw,2.5rem)}
.hv-compact .hv-copy p{font-size:1rem}
.hv-compact .hv-stage{max-width:520px;justify-self:end;width:100%}
@media (max-width:1024px){.hv-compact .hv-grid{grid-template-columns:1fr}.hv-compact .hv-stage{justify-self:center}}
@media (max-width:760px){.hv-compact{padding:0 0 30px}.hv-compact .hv-stage{width:fit-content}}

/* intégré dans le héros d'une page SEO : sur mobile juste après le texte (avant la carte), sur bureau sous les deux colonnes */
.hv-in{grid-column:1/-1;order:3;padding:10px 0 0;background:transparent}
.hv-in>.wrap{padding-left:0;padding-right:0;max-width:none}
@media (max-width:1024px){.hv-in{order:0}}
/* dans un héros coloré : textes dans la couleur de premier plan du héros */
.hv-in{color:var(--hf,var(--ink))}
.hv-in .hv-copy h2,.hv-in .hv-copy p{color:var(--hf,var(--ink))}
.hv-in .hv-copy h2 em{color:var(--rose)}
.hv-in .hv-meta span{color:var(--ink);border-color:var(--hf,var(--ink))}
.hv-in .hv-stage::before{border-color:var(--hf,var(--ink))}
