/* Empan — lecteur vidéo dans la page, à la manière d'une lecture YouTube (14/10/2026).
   La vidéo est servie par ce site : aucun lecteur tiers, aucun cookie, aucune mesure d'audience.
   Sans JavaScript, le lecteur natif du navigateur s'affiche à la place. */

.m-video{--v-accent:#5CCFD6;max-width:1000px;margin:56px auto 0;text-align:left;scroll-margin-top:110px;}
/* la vidéo comme section de la page, juste sous le haut de page */
body.m .m-sec.m-sec-video{padding:0 24px 110px;}
.m-sec-video .m-video{margin:0 auto;}

/* ---------- le cadre ---------- */
.v-lecteur{position:relative;aspect-ratio:16/9;background:#000;border-radius:14px;overflow:hidden;isolation:isolate;
  box-shadow:var(--m-ombre);color:#fff;font-family:var(--m-police);line-height:1.2;outline:none;
  -webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;}
.v-lecteur:focus-visible{box-shadow:0 0 0 3px #fff,0 0 0 6px var(--m-ligne),var(--m-ombre);}
.v-media{display:block;width:100%;height:100%;object-fit:contain;background:#000;}
.v-lecteur svg{display:block;fill:currentColor;}

/* ---------- les calques (ajoutés par empan-video.js) ---------- */
.v-surface{position:absolute;inset:0;z-index:1;cursor:pointer;}
.v-cache .v-surface{cursor:none;}

/* le bandeau du titre ne s'affiche qu'en plein écran : dans la page, le titre est juste sous la vidéo */
.v-haut{position:absolute;left:0;right:0;top:0;z-index:2;display:none;align-items:center;gap:12px;
  padding:14px 18px 46px;background:linear-gradient(rgba(0,0,0,.62),rgba(0,0,0,0));pointer-events:none;transition:opacity .25s;}
.v-avatar{flex:none;width:38px;height:38px;border-radius:50%;background:#fff;display:grid;place-items:center;overflow:hidden;}
.v-avatar img{display:block;width:auto;height:66%;}
.v-titre-court{min-width:0;font-size:18px;font-weight:600;text-shadow:0 1px 2px rgba(0,0,0,.45);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.v-grand{position:absolute;left:50%;top:50%;z-index:3;width:96px;height:68px;margin:-34px 0 0 -48px;padding:0;border:0;
  border-radius:20px;background:#0A6676;color:#fff;display:grid;place-items:center;cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.35);transition:background .15s,transform .15s;}
.v-grand svg{width:38px;height:38px;}
.v-grand:hover{background:#0C7F92;transform:scale(1.06);}
.v-grand:focus-visible{outline:3px solid #fff;outline-offset:3px;}
.v-affiche{position:absolute;inset:0;z-index:2;display:none;flex-direction:column;justify-content:flex-end;gap:4px;padding:24px 28px;
  background:linear-gradient(rgba(12,12,14,.22),rgba(12,12,14,.18) 45%,rgba(12,12,14,.78));pointer-events:none;}
.v-neuf .v-affiche{display:flex;}
.v-affiche b{font-size:clamp(20px,2.6vw,30px);font-weight:800;font-stretch:82%;letter-spacing:-.01em;line-height:1.1;text-shadow:0 1px 3px rgba(0,0,0,.4);}
.v-affiche span{font-size:15px;font-weight:500;opacity:.92;}
.v-lecteur:not(.v-neuf) .v-grand{display:none;}

.v-duree{position:absolute;right:12px;bottom:12px;z-index:3;padding:3px 7px;border-radius:6px;background:rgba(0,0,0,.8);
  font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;pointer-events:none;}
.v-lecteur:not(.v-neuf) .v-duree{display:none;}

.v-attente{position:absolute;left:50%;top:50%;z-index:3;width:54px;height:54px;margin:-27px 0 0 -27px;border-radius:50%;
  border:4px solid rgba(255,255,255,.22);border-top-color:#fff;display:none;pointer-events:none;animation:v-tourne .9s linear infinite;}
.v-charge .v-attente{display:block;}
.v-charge.v-neuf .v-grand{display:none;}
@keyframes v-tourne{to{transform:rotate(360deg);}}

.v-bezel{position:absolute;left:50%;top:50%;z-index:3;min-width:64px;height:64px;margin:-32px 0 0 0;padding:0 16px;
  transform:translateX(-50%);border-radius:32px;background:rgba(0,0,0,.55);display:grid;place-items:center;
  font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;opacity:0;pointer-events:none;}
.v-bezel svg{width:30px;height:30px;}
.v-bezel.joue{animation:v-bezel .6s ease-out;}
@keyframes v-bezel{0%{opacity:.95;transform:translateX(-50%) scale(.92);}100%{opacity:0;transform:translateX(-50%) scale(1.35);}}

/* écran de fin : revoir, ou essayer */
.v-fin{position:absolute;inset:0;z-index:3;display:none;flex-direction:column;align-items:center;justify-content:center;gap:20px;
  padding:20px 20px 70px;background:rgba(24,24,25,.96);text-align:center;}
.v-finie .v-fin{display:flex;}
.v-fin p{margin:0;font-size:clamp(18px,2.6vw,28px);font-weight:800;font-stretch:82%;letter-spacing:-.01em;}
.v-fin-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;}
.v-pilule-fin{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 20px;border:0;border-radius:22px;
  font:600 15px/1 var(--m-police);text-decoration:none;cursor:pointer;white-space:nowrap;}
.v-pilule-fin svg{width:22px;height:22px;}
.v-pilule-fin.blanche{background:#fff;color:#1D1D1F!important;}
.v-pilule-fin.blanche:hover{background:#E8E8EC;}
.v-pilule-fin.sombre{background:rgba(255,255,255,.16);color:#fff!important;}
.v-pilule-fin.sombre:hover{background:rgba(255,255,255,.26);}
.v-pilule-fin:focus-visible{outline:3px solid #fff;outline-offset:3px;}

/* ---------- barre du bas ---------- */
.v-bas{position:absolute;left:0;right:0;bottom:0;z-index:4;padding:0 12px 4px;
  background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.66) 70%);transition:opacity .25s;}
.v-neuf .v-bas{display:none;}
.v-cache .v-haut,.v-cache .v-bas{opacity:0;}
.v-cache .v-bas *{pointer-events:none;}

.v-barre{position:relative;height:22px;display:flex;align-items:center;cursor:pointer;touch-action:none;outline:none;}
.v-piste{position:relative;display:flex;gap:2px;width:100%;height:3px;transition:height .1s;}
.v-barre:hover .v-piste,.v-tire .v-piste,.v-barre:focus-visible .v-piste{height:5px;}
.v-barre:focus-visible{box-shadow:0 0 0 2px #fff;border-radius:4px;}
.v-seg{position:relative;flex:1 1 0;height:100%;background:rgba(255,255,255,.24);overflow:hidden;transition:transform .1s;}
.v-seg.survol{transform:scaleY(1.7);}
.v-seg i{position:absolute;left:0;top:0;bottom:0;width:100%;transform-origin:0 50%;transform:scaleX(var(--f,0));}
.v-seg i.tampon{background:rgba(255,255,255,.42);}
.v-seg i.vise{background:rgba(255,255,255,.5);}
.v-seg i.lu{background:var(--v-accent);}
.v-pastille{position:absolute;left:0;top:50%;width:13px;height:13px;margin:-6.5px 0 0 -6.5px;border-radius:50%;background:var(--v-accent);
  transform:translateX(var(--x,0px)) scale(0);transition:transform .1s;pointer-events:none;}
.v-barre:hover .v-pastille,.v-tire .v-pastille,.v-barre:focus-visible .v-pastille{transform:translateX(var(--x,0px)) scale(1);}

.v-apercu{position:absolute;left:0;bottom:30px;display:none;flex-direction:column;align-items:center;gap:5px;pointer-events:none;
  transform:translateX(var(--ax,0px));}
.v-vise .v-apercu{display:flex;}
.v-vignette{width:160px;height:90px;border-radius:8px;background:#222 no-repeat;box-shadow:0 0 0 2px #fff,0 6px 18px rgba(0,0,0,.45);}
.v-apercu .chap,.v-apercu .tps{padding:2px 7px;border-radius:5px;background:rgba(0,0,0,.66);font-size:13px;font-weight:600;line-height:1.3;}
.v-apercu .chap{max-width:220px;text-align:center;}
.v-apercu .chap:empty{display:none;}
.v-apercu .tps{font-variant-numeric:tabular-nums;}

.v-boutons{display:flex;align-items:center;height:46px;}
.v-b{position:relative;flex:none;width:46px;height:46px;padding:0;border:0;border-radius:10px;background:none;color:#fff;
  display:grid;place-items:center;cursor:pointer;opacity:.92;}
.v-b:hover{opacity:1;}
.v-b:focus-visible{outline:2px solid #fff;outline-offset:-5px;opacity:1;}
.v-b svg{width:26px;height:26px;}
.v-b[hidden]{display:none;}
/* bulles d'aide, comme sur les lecteurs habituels */
@media (hover:hover){
  .v-b[data-bulle]:hover::after{content:attr(data-bulle);position:absolute;bottom:52px;left:50%;transform:translateX(-50%);
    padding:5px 9px;border-radius:6px;background:rgba(28,28,30,.92);color:#fff;font:600 12.5px/1.2 var(--m-police);white-space:nowrap;}
  .v-b.bulle-g[data-bulle]:hover::after{left:0;transform:none;}
  .v-b.bulle-d[data-bulle]:hover::after{left:auto;right:0;transform:none;}
  .v-menu-ouvert .v-b[data-bulle]:hover::after{display:none;}
}

.v-volume{display:flex;align-items:center;}
.v-niveau{width:0;margin:0;opacity:0;transition:width .2s,opacity .2s,margin .2s;}
.v-volume:hover .v-niveau,.v-volume:focus-within .v-niveau{width:64px;margin:0 8px 0 2px;opacity:1;}
input.v-niveau{-webkit-appearance:none;appearance:none;height:18px;background:transparent;cursor:pointer;}
input.v-niveau:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:4px;}
input.v-niveau::-webkit-slider-runnable-track{height:3px;border-radius:2px;
  background:linear-gradient(90deg,#fff calc(var(--v,1) * 100%),rgba(255,255,255,.3) 0);}
input.v-niveau::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;margin-top:-4.5px;border-radius:50%;background:#fff;}
input.v-niveau::-moz-range-track{height:3px;border-radius:2px;background:rgba(255,255,255,.3);}
input.v-niveau::-moz-range-progress{height:3px;border-radius:2px;background:#fff;}
input.v-niveau::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:#fff;}
@media (hover:none){.v-niveau{display:none;}}

.v-temps{flex:none;padding:0 10px 0 6px;font-size:13.5px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap;}
.v-chap-actuel{display:none;flex:0 1 auto;min-width:0;font-size:13.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.92;}
.v-chap-actuel:not(:empty)::before{content:"•";margin-right:8px;}
.v-vide{flex:1 1 8px;min-width:8px;}

.v-menu{position:absolute;right:12px;bottom:60px;z-index:5;min-width:220px;padding:8px 0;border-radius:12px;
  background:rgba(28,28,30,.95);box-shadow:0 8px 24px rgba(0,0,0,.35);display:none;}
.v-menu-ouvert .v-menu{display:block;}
.v-menu p{margin:0;padding:6px 16px 8px;font-size:13px;font-weight:600;opacity:.72;}
.v-menu button{display:flex;align-items:center;gap:12px;width:100%;height:40px;padding:0 16px;border:0;background:none;color:#fff;
  font:500 14px/1 var(--m-police);text-align:left;cursor:pointer;}
.v-menu button:hover,.v-menu button:focus-visible{background:rgba(255,255,255,.12);outline:none;}
.v-menu button::before{content:"";flex:none;width:14px;height:8px;}
.v-menu button[aria-checked="true"]::before{border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-2px) rotate(-45deg);}

/* plein écran */
.v-lecteur:fullscreen{width:100%;height:100%;aspect-ratio:auto;border-radius:0;box-shadow:none;}
.v-lecteur:-webkit-full-screen{width:100%;height:100%;border-radius:0;box-shadow:none;}
.v-plein .v-b{width:54px;height:54px;}
.v-plein .v-b svg{width:30px;height:30px;}
.v-plein .v-temps,.v-plein .v-chap-actuel{font-size:15px;}
/* en plein écran seulement : la place ne manque plus pour le nom du chapitre (ailleurs, il chevaucherait les sous-titres incrustés) */
.v-plein .v-chap-actuel{display:block;}
.v-plein .v-haut{display:flex;}
.v-plein .v-titre-court{font-size:22px;}

.v-erreur{position:absolute;left:0;right:0;bottom:0;z-index:6;margin:0;padding:12px 16px;background:rgba(0,0,0,.82);font-size:14px;}
.v-erreur a{color:#fff;}

/* ---------- sous la vidéo : titre, chaîne, description ---------- */
.v-infos{margin-top:16px;}
.v-titre{margin:0 0 12px;font-family:var(--m-police);font-size:21px;font-weight:700;line-height:1.3;letter-spacing:-.005em;color:var(--m-encre);}
.v-chaine{display:flex;align-items:center;flex-wrap:wrap;gap:12px;}
.v-chaine .v-avatar{width:40px;height:40px;box-shadow:inset 0 0 0 1px var(--m-filet);}
.v-nom{display:flex;flex-direction:column;margin-right:10px;line-height:1.25;}
.v-nom b{font-size:16px;font-weight:700;}
.v-nom span{font-size:13px;color:var(--m-doux);}
.v-droite{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto;}
.v-pilule{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 16px;border:0;border-radius:18px;
  background:rgba(0,0,0,.05);color:var(--m-encre)!important;font:600 14px/1 var(--m-police);text-decoration:none;white-space:nowrap;cursor:pointer;}
.v-pilule:hover{background:rgba(0,0,0,.1);}
.v-pilule.noire{background:var(--m-encre);color:#fff!important;}
.v-pilule.noire:hover{background:#000;}
.v-pilule svg{width:20px;height:20px;fill:currentColor;}
.v-pilule[hidden]{display:none;}

@media (max-width:760px){
  .m-video{margin-top:40px;scroll-margin-top:96px;}
  body.m .m-sec.m-sec-video{padding:0 20px 80px;}
  .v-affiche{padding:14px 16px;}
  .v-affiche b{font-size:18px;}
  .v-affiche span{font-size:13px;}
  .v-lecteur{border-radius:12px;}
  .v-haut{gap:10px;padding:10px 12px 34px;}
  .v-haut .v-avatar{width:32px;height:32px;}
  .v-titre-court{font-size:15px;}
  .v-b{width:42px;height:42px;}
  .v-b svg{width:24px;height:24px;}
  .v-vignette{width:120px;height:68px;}
  .v-titre{font-size:18px;}
  .v-droite{margin-left:0;}
}
@media (max-width:420px){
  .v-bas{padding:0 6px 2px;}
  .v-temps{padding:0 6px 0 2px;font-size:12.5px;}
  .v-menu{right:6px;min-width:190px;}
  .v-grand{width:72px;height:52px;margin:-26px 0 0 -36px;border-radius:16px;}
  .v-grand svg{width:30px;height:30px;}
}
@media (prefers-reduced-motion:reduce){
  .v-bezel.joue{animation:none;}
  .v-attente{animation-duration:2.4s;}
  .v-piste,.v-seg,.v-pastille,.v-niveau,.v-haut,.v-bas,.v-grand{transition:none;}
}
@media print{.v-lecteur{display:none;}}
