/* ======================================================================
   AJOUTS au front du webmaster (chargé en dernier, après mobile.css)
   1. vidéo dans le héros (ordinateur)   2. bandeau d'atouts défilant
   3. agrandissement des photos des salles
   ====================================================================== */

/* ---------- 1. vidéo dans le héros : ordinateur uniquement, la photo reste sur mobile ---------- */
.h3-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%;
  opacity:0;transition:opacity .9s ease;pointer-events:none}
.hero3.has-video .h3-video{opacity:1}
.hero3 .vid-sound{position:absolute;z-index:6;right:24px;bottom:24px;display:flex;align-items:center;gap:8px;padding:9px 15px;
  border-radius:999px;border:1px solid rgba(120,180,255,.34);background:rgba(4,7,14,.72);color:#EAF1FB;
  font:inherit;font-size:13px;font-weight:600;cursor:pointer;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.hero3 .vid-sound:hover{border-color:#66BAFF}
.hero3:not(.has-video) .vid-sound{display:none}
@media (max-width:640px){.h3-video,.hero3 .vid-sound{display:none!important}}

/* ---------- 2. bandeau d'atouts : défilement continu, fond de la carte « Offre partenaire IG » ---------- */
.h3-feats{position:relative;overflow:hidden;
  background:linear-gradient(180deg,var(--gold-bg,rgba(201,164,92,.08)),rgba(201,164,92,.02)),var(--c-card2,#162031)!important;
  border-block:1px solid var(--gold-line,rgba(214,180,110,.45))!important;box-shadow:0 26px 60px -44px rgba(201,164,92,.55)}
.h3-feats::before{content:"";position:absolute;z-index:2;left:0;right:0;top:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,rgba(255,236,190,0),#FFF6DE,rgba(255,236,190,0));box-shadow:0 0 10px 1px rgba(255,220,150,.4)}
.h3-feats::after{content:"";position:absolute;z-index:0;left:50%;top:50%;width:min(900px,80%);height:240%;transform:translate(-50%,-50%);
  pointer-events:none;background:radial-gradient(closest-side,rgba(255,210,140,.22),transparent)}
.h3-feats-in{position:relative;z-index:1;display:block!important;width:100%!important;max-width:none!important;padding:0!important;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.h3-track{display:flex;width:max-content;animation:h3feat var(--feat-dur,40s) linear infinite;will-change:transform}
.h3-list{display:flex;flex:none}
.h3-feats .h3-feat{display:flex!important;align-items:center;gap:14px;flex:none!important;width:auto!important;max-width:none!important;
  padding:20px 44px!important;border:0!important;border-right:1px solid rgba(214,180,110,.22)!important;
  opacity:1!important;transform:none!important;filter:none!important}
.h3-feats .h3-feat > div{white-space:nowrap}
@keyframes h3feat{to{transform:translate3d(-50%,0,0)}}
@media (hover:hover){.h3-feats:hover .h3-track{animation-play-state:paused}}
@media (max-width:640px){.h3-feats .h3-feat{padding:16px 28px!important}}
@media (prefers-reduced-motion:reduce){
  .h3-track{animation:none;width:auto}
  .h3-list{flex-wrap:wrap;justify-content:center}
  .h3-list.clone,.h3-feat[data-clone]{display:none!important}
}

/* ---------- 3. photos des salles : agrandissement dans une fenêtre ---------- */
.rooms5 .salle.lb-zoom{cursor:zoom-in}
.lb-hint{position:absolute;z-index:3;top:12px;right:12px;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;
  background:rgba(4,7,14,.6);border:1px solid rgba(255,255,255,.22);color:#fff;pointer-events:none;
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:opacity .25s,transform .25s}
.lb-hint svg{width:16px;height:16px}
@media (hover:hover){.lb-hint{opacity:0;transform:scale(.9)}.rooms5 .salle:hover .lb-hint,.rooms5 .salle:focus-visible .lb-hint{opacity:1;transform:none}}
.rooms5 .salle:focus-visible{outline:2px solid #8CCBFF;outline-offset:3px}

.lb{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#fff;overflow:hidden}
.lb[open]{display:flex;align-items:center;justify-content:center}
.lb::backdrop{background:rgba(4,7,14,.92);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.lb-fig{display:flex;flex-direction:column;align-items:center;gap:14px;max-width:min(1400px,90vw);margin:0}
.lb-fig img{display:block;max-width:100%;max-height:calc(100dvh - 160px);object-fit:contain;border-radius:14px;
  box-shadow:0 30px 80px -30px #000;animation:lbIn .25s ease}
.lb-fig figcaption{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:6px 14px;text-align:center}
.lb-fig b{font-family:Lora,Georgia,serif;font-size:22px;font-weight:500}
.lb-fig span{color:#AEBBCE}
.lb-fig em{font-style:normal;font-size:13px;color:#7F8FA6}
.lb-x,.lb-nav{position:fixed;z-index:2;display:grid;place-items:center;border-radius:50%;cursor:pointer;color:#fff;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2);transition:background .2s,border-color .2s}
.lb-x{top:18px;right:18px;width:46px;height:46px;font-size:26px;line-height:1}
.lb-nav{top:50%;width:52px;height:52px;transform:translateY(-50%)}
.lb-nav svg{width:22px;height:22px}
.lb-prev{left:18px}
.lb-next{right:18px}
.lb-x:hover,.lb-nav:hover{background:rgba(46,155,255,.35);border-color:rgba(140,203,255,.6)}
.lb-x:focus-visible,.lb-nav:focus-visible{outline:2px solid #8CCBFF;outline-offset:2px}
@keyframes lbIn{from{opacity:0;transform:scale(.98)}}
html.lb-open{overflow:hidden}
@media (max-width:640px){
  .lb-fig{max-width:94vw}
  .lb-fig img{max-height:calc(100dvh - 210px);border-radius:10px}
  .lb-nav{top:auto;bottom:24px;transform:none}
  .lb-prev{left:calc(50% - 66px)}
  .lb-next{right:calc(50% - 66px)}
}
@media (prefers-reduced-motion:reduce){.lb-fig img{animation:none}}

/* ---------- 4. bloc « Programme sur candidature » : séparation par un fin filet, comme « Visite » / « Réservation de poste » ---------- */
.funded .fund-r{position:relative;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.funded .fund-r::before{content:"";position:absolute;left:0;top:28px;bottom:28px;width:1px;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,180,120,0),rgba(255,180,120,.55),rgba(255,180,120,0))}
@media (max-width:900px){
  .funded .fund-r::before{left:20px;right:20px;top:0;bottom:auto;width:auto;height:1px;
    background:linear-gradient(90deg,rgba(255,180,120,0),rgba(255,180,120,.55),rgba(255,180,120,0))}
}

/* ---------- 5. badge « Recommandé » : droit, centré, le texte tient dans le cercle ---------- */
.seal{width:78px!important;height:78px!important;top:-26px!important;transform:none!important;animation:none!important;padding-bottom:2px!important}
.seal svg{width:22px!important;height:22px!important}
.seal small{font-size:7.5px!important;letter-spacing:.05em!important;line-height:1!important;white-space:nowrap;margin-top:2px!important;
  text-indent:.05em}                               /* compense l'espace laissé après la dernière lettre */
@media (max-width:640px){.trio.m-rail .seal{transform:scale(.85)!important}}

/* ---------- 6. « Venir au centre » : Visite et Réservation de poste, présentation sobre ---------- */
.come-ways{column-gap:28px!important;row-gap:12px!important}
.come .way{position:relative;padding:4px 0 4px 20px!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
.come .way::before{content:"";position:absolute;left:0;top:0;bottom:0;width:1px;pointer-events:none;
  background:linear-gradient(180deg,rgba(214,180,110,0),rgba(214,180,110,.6),rgba(214,180,110,0))}
.come .way b{display:block!important;margin-bottom:4px;font-size:14.5px!important;font-weight:600;color:#F4EBDD}
.come .way b::after{content:none!important}
.come .way span{display:block;font-size:13.5px!important;line-height:1.5!important;color:#BDB3A2}
@media (max-width:640px){
  .come .way{padding:2px 0 2px 14px!important}
  .come .way b{font-size:14px!important;margin-bottom:2px}
  .come .way span{font-size:13px!important}
}

/* ---------- 7. badge : la ligne « Notre courtier partenaire » ne passe plus dessous ---------- */
.trio .offer.ig .tagline{padding-right:72px}

/* ---------- 8. une journée au centre : sans pictogrammes ni trait de liaison ---------- */
.day5::before{content:none!important;display:none!important}

/* ---------- 9. fenêtre de rendez-vous : le bandeau « appeler maintenant » reprend les marges du contenu ---------- */
.rdv-direct{margin:4px 20px 16px!important}
@media (min-width:900px){.rdv-direct{margin:4px 26px 16px!important}}
@media (max-width:640px){
  .day5 li{grid-template-columns:1fr!important;column-gap:0!important}
  .day5 li > *{grid-column:1!important}
}

/* ---------- 10. une journée au centre : de l'air entre la photo et l'heure ---------- */
@media (min-width:641px){.day5 li time{display:block;margin-top:16px}}

/* ---------- 11. liens vers les pages légales ---------- */
.foot-legal{display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px;margin-top:22px;padding-top:18px;padding-bottom:22px;
  border-top:1px solid rgba(120,180,255,.12);font-size:13px;color:#8394AB}
.foot-legal a{color:#AEBBCE;text-decoration:none}
.foot-legal a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.rdv-legal a{color:inherit;text-decoration:underline;text-underline-offset:2px}

/* ---------- 12. carrousels mobiles (formations, suivi) : glissement fluide ----------
   Sur téléphone, le reflet animé (« glass ») et le flou d'arrière-plan des cartes étaient recalculés à chaque image
   pendant le glissement : défilement saccadé et reflet qui bouge avec le doigt. On les fige sur mobile seulement. */
@media (max-width:640px){
  .m-rail > .offer{animation:none!important;background-position:50% 0,0 0!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}

/* ---------- 13. carrousels mobiles : un geste vertical fait défiler la page, jamais le carrousel ----------
   Le contenu des carrousels dépassait de quelques pixels en hauteur : le carrousel devenait défilable verticalement,
   les cartes glissaient et se faisaient couper pendant qu'on faisait défiler la page. */
@media (max-width:640px){
  .m-rail{overflow-y:hidden!important;padding-bottom:18px!important}
}
@media (max-width:640px){.trio .offer.ig .tagline{padding-right:60px}}
