/* =========================================================
   Page Déclic · la démonstration en vidéo sur les pages d'HEC Paris (section .hecv)
   Remplace « Comment ça se passe ». Section sombre qui prolonge « Ce que fait Déclic »
   (coins arrondis en bas, comme l'ancienne section), avant la section du prix (claire).

   - Ordinateur : Lucas debout à gauche, tourné vers la vidéo (lucas-regard-droite), le bas du buste fondu dans le noir ;
     à droite la carte vidéo (miniature YouTube), son titre, le lien YouTube, puis la mention sur HEC Paris.
   - Tablette et téléphone (≤ 1100 px) : Lucas, au-dessus de la vidéo, regarde le visiteur (lucas-regard-sourire), le buste caché derrière la carte.
   - La carte ouvre la fenêtre vidéo (assets/video-popup.js) : rien de YouTube n'est chargé avant le clic.
   - Blocs .b construits par les curseurs (assets/agents.js) : aucune transition ni transform posée sur un .b lui-même,
     les effets de survol vivent sur ses enfants.
   ========================================================= */

.hecv{position:relative;padding:20px var(--pad) 128px;border-radius:0 0 20px 20px}
.hecv .label{max-width:600px}
.hecv-head{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:end;margin-top:50px}
.hecv-head h2{max-width:640px}
.hecv-head p{max-width:470px}
.hecv .nw{white-space:nowrap} /* « arrière-plan » ne se coupe pas à son trait d’union */

/* ---------- la scène : Lucas + la vidéo ---------- */
/* ordinateur : Lucas occupe la colonne de gauche sur la hauteur de la carte et de son titre ; la mention se range sous le titre, dans la colonne de la vidéo */
.hecv-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.45fr);grid-template-areas:"lucas card" "lucas info" ". note";
  column-gap:36px;margin-top:74px;align-items:start}

/* Lucas : debout, tourné vers la vidéo, un peu derrière son bord ; une lumière douce derrière lui, le bas du buste fondu dans le fond */
.hecv-lucas{grid-area:lucas;align-self:stretch;position:relative;z-index:0;margin:0}
.hecv-lucas picture{position:absolute;left:-10px;top:-70px;width:calc(100% + 118px)}
.hecv-lucas picture::before{content:"";position:absolute;left:-6%;right:-6%;top:2%;height:70%;pointer-events:none;
  background:radial-gradient(46% 50% at 50% 40%,rgba(255,255,255,.085),rgba(255,255,255,.03) 55%,transparent 75%)}
.hecv-lucas img{position:relative;display:block;width:100%;max-width:none;height:auto;
  -webkit-mask-image:linear-gradient(180deg,#000 50%,rgba(0,0,0,.5) 68%,transparent 86%);mask-image:linear-gradient(180deg,#000 50%,rgba(0,0,0,.5) 68%,transparent 86%)}
/* son nom, à la hauteur du titre de la vidéo */
.hecv-who{position:absolute;left:0;bottom:0;z-index:1;display:flex;flex-direction:column;gap:5px;padding:11px 15px 12px;border-radius:14px;white-space:nowrap;
  background:rgba(26,26,26,.72);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.1)}
.hecv-who b{font-size:14px;line-height:18px;font-weight:500;letter-spacing:-.1px}
.hecv-who span{font:300 10.5px/1.2 var(--gm);letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.58)}

/* ---------- la carte vidéo (un bouton : toute la carte lance la lecture) ---------- */
.hecv-card{grid-area:card;z-index:1;position:relative;display:block;width:100%;aspect-ratio:16/9;padding:0;border:0;border-radius:20px;overflow:hidden;isolation:isolate;cursor:pointer;
  background:#0b0b0b;color:var(--ink);text-align:left;-webkit-tap-highlight-color:transparent;
  box-shadow:0 0 0 1px rgba(255,255,255,.08),0 50px 110px -46px rgba(150,232,92,.3),0 34px 70px -40px rgba(0,0,0,.9)}
.hecv-card:focus-visible{outline:2px solid #fff;outline-offset:4px}
.hecv-img{position:absolute;inset:0;display:block;overflow:hidden}
.hecv-img img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.7,.3,1)}
.hecv-card:hover .hecv-img img{transform:scale(1.03)}
.hecv-img::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.5),rgba(0,0,0,0) 34%);pointer-events:none}
/* lecture : la pastille blanche des boutons du site, son carré sombre et un triangle en pixels */
.hecv-play{position:absolute;left:22px;bottom:22px;z-index:1;display:flex;align-items:center;gap:18px;height:65px;padding:3px 24px 3px 3px;border-radius:16px;background:#fff;color:var(--ink);
  box-shadow:0 14px 34px -14px rgba(0,0,0,.6);transition:transform .3s cubic-bezier(.2,.7,.3,1)}
.hecv-card:hover .hecv-play{transform:translateY(-2px)}
.hecv-sq{position:relative;flex:none;display:grid;place-items:center;width:65px;height:59px;border-radius:14px;background:var(--ink);color:#fff}
.hecv-pi{display:block;width:13.5px;height:22.5px;margin-left:3px;overflow:visible}
.hecv-pi path{fill:currentColor}
.hecv-card:hover .hecv-pi path,.hecv-card:focus-visible .hecv-pi path{animation:hecv-px .54s steps(1) infinite}
.hecv-card:hover .hecv-pi path:nth-child(2),.hecv-card:focus-visible .hecv-pi path:nth-child(2){animation-delay:.09s}
.hecv-card:hover .hecv-pi path:nth-child(3),.hecv-card:focus-visible .hecv-pi path:nth-child(3){animation-delay:.18s}
@keyframes hecv-px{0%{opacity:.3}34%,100%{opacity:1}}
.hecv-pt{display:flex;flex-direction:column;gap:3px}
.hecv-pt b{font-size:16px;line-height:20px;font-weight:500;letter-spacing:-.1px}
.hecv-pt small{font:300 10.5px/1.2 var(--gm);letter-spacing:.06em;text-transform:uppercase;color:rgba(26,26,26,.55)}

/* ---------- sous la carte : titre de la vidéo et lien YouTube ---------- */
.hecv-info{grid-area:info;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px}
.hecv-vt{font-size:19px;line-height:25px;font-weight:500;letter-spacing:-.4px}
.hecv-vm{margin-top:6px;font:300 11px/1.3 var(--gm);letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.5)}
.hecv-yt{flex:none;display:inline-flex;align-items:center;gap:12px;height:42px;padding:3px 16px 3px 3px;border-radius:12px;background:#fff;color:var(--ink);font-size:14px;letter-spacing:.28px;
  transition:background-color .2s}
.hecv-yt:hover{background:#ebebeb}
.hecv-yt:focus-visible{outline:2px solid #fff;outline-offset:3px}
.hecv-yt .sq{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--ink);color:#fff}
.hecv-yt .sq svg{width:15px;height:15px}

/* la mention sur HEC Paris, discrète */
.hecv-note{grid-area:note;margin-top:26px;padding-top:22px;border-top:1px solid rgba(255,255,255,.1);font-size:12.5px;line-height:19px;font-weight:300;letter-spacing:.25px;color:rgba(255,255,255,.5)}
.hecv-note a{color:rgba(255,255,255,.72);text-decoration:underline;text-decoration-color:rgba(255,255,255,.3);text-underline-offset:3px}
.hecv-note a:hover{color:#fff}

/* ---------- tablette et téléphone : Lucas au-dessus de la vidéo, tourné vers le visiteur, le buste caché derrière la carte ---------- */
@media (max-width:1100px){
  .hecv-head{grid-template-columns:1fr;gap:26px;margin-top:44px}
  .hecv-stage{display:block;margin-top:44px;padding-top:var(--peek,196px)}
  .hecv-lucas{position:absolute;top:0;left:5%;width:var(--pw,320px)} /* au-dessus du titre de la miniature, loin du visage qu’elle montre déjà */
  .hecv-lucas picture{position:relative;left:auto;top:auto;width:100%}
  .hecv-lucas img{-webkit-mask-image:linear-gradient(180deg,#000 60%,transparent 94%);mask-image:linear-gradient(180deg,#000 60%,transparent 94%)}
  .hecv-who{left:calc(50% + 50px);top:var(--who-top,72px);bottom:auto}
}
@media (max-width:700px){
  .hecv{padding:16px var(--pad) 84px}
  .hecv-head{margin-top:38px}
  .hecv-stage{--peek:146px;--pw:228px;--who-top:52px;margin-top:40px}
  .hecv-lucas{left:-14px}
  .hecv-who{left:calc(50% + 38px);padding:9px 12px 10px;border-radius:12px}
  .hecv-who b{font-size:13px;line-height:16px}
  .hecv-who span{font-size:9.5px}
  .hecv-card{border-radius:16px}
  .hecv-play{left:10px;bottom:10px;gap:10px;height:44px;padding:3px 14px 3px 3px;border-radius:12px}
  .hecv-sq{width:42px;height:38px;border-radius:10px}
  .hecv-pi{width:8.1px;height:13.5px;margin-left:2px}
  .hecv-pt b{font-size:13.5px;line-height:16px}
  .hecv-pt small{display:none}
  .hecv-info{flex-direction:column;align-items:flex-start;gap:16px;margin-top:20px}
  .hecv-vt{font-size:17px;line-height:23px}
  .hecv-note{margin-top:24px;padding-top:20px}
}
@media (max-width:370px){
  .hecv-stage{--pw:212px;--peek:136px;--who-top:48px}
  .hecv-who{left:calc(50% + 34px)}
  .hecv-play{gap:10px;padding-right:12px}
}

@media (prefers-reduced-motion:reduce){
  .hecv-img img,.hecv-play,.hecv-yt{transition:none}
  .hecv-card:hover .hecv-img img{transform:none}
  .hecv-card:hover .hecv-play{transform:none}
  .hecv-card:hover .hecv-pi path,.hecv-card:focus-visible .hecv-pi path{animation:none}
}
