/* =========================================================
   KADRO TALENTS — hero-mur.css
   Hero « mur de vidéos » : « Les bons talents, dans le bon cadre. »
   Un mur de vignettes ; un cadre rouge en choisit une, zoom jusqu'au plein écran,
   plusieurs vidéos s'enchaînent en fondu, puis retour au mur (voir hero-mur.js).
   ========================================================= */
.hero--wall {
  position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr auto;
  min-height: clamp(600px, 100svh, 1000px); padding: calc(var(--header-h) + 40px) 0 0;
  color: #fff; background: #0a1f38; overflow: hidden; overflow: clip;
}
.hwall { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #0a1f38; }

/* La grille de vignettes : elle zoome vers la vignette choisie */
.hwall__grid {
  position: absolute; left: 0; display: grid; gap: 3px;
  transform-origin: 0 0; will-change: transform;
  transition: transform 1.4s cubic-bezier(.65, 0, .35, 1);
}
.hwall__tile { position: relative; overflow: hidden; background: #13304f; transition: filter .6s ease; }
.hwall__tile img, .hwall__tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hwall__tile img { opacity: 0; transition: opacity .8s ease; animation: hwall-drift 16s ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
.hwall__tile img.is-loaded { opacity: 1; }
.hwall__tile video { transform: scale(1.02); }
@keyframes hwall-drift { from { transform: scale(1.03) translate(0, 0); } to { transform: scale(1.14) translate(-3%, -2%); } }
.hwall__grid.is-zoomed .hwall__tile img { animation-play-state: paused; }

/* Les autres vignettes s'assombrissent : la vignette choisie ressort */
.hwall__grid.is-picking .hwall__tile { filter: brightness(.45) saturate(.7); }
.hwall__grid.is-picking .hwall__tile.is-picked { filter: none; }
/* Le cadre rouge : il se pose sur une vignette, puis zoome avec elle */
.hwall__frame {
  position: absolute; z-index: 2; pointer-events: none; border: 4px solid var(--red);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 0 28px rgba(215, 37, 61, .55), 0 12px 34px rgba(0, 0, 0, .5);
  opacity: 0; transform: scale(1.25); transition: opacity .45s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}
.hwall__frame.is-on { opacity: 1; transform: none; }
.hwall__frame.is-out { opacity: 0; transition-duration: .5s; }

/* Les vidéos plein écran, qui prennent le relais à la fin du zoom :
   deux vidéos superposées, celle qui arrive passe au-dessus et apparaît en fondu enchaîné */
.hwall__feature { position: absolute; inset: 0; z-index: 3; opacity: 0; transition: opacity .9s ease-in-out; pointer-events: none; overflow: hidden; }
.hwall__feature.is-on { opacity: 1; }
.hwall__feature video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease-in-out; }
.hwall__feature video.is-on { opacity: 1; }

/* Voile : plus sombre à gauche pour le texte, le mur reste visible à droite */
.hwall__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 31, 56, .9) 0%, rgba(10, 31, 56, .72) 34%, rgba(10, 31, 56, .3) 66%, rgba(10, 31, 56, .18) 100%),
    linear-gradient(180deg, rgba(10, 31, 56, .35) 0%, rgba(10, 31, 56, 0) 28%, rgba(10, 31, 56, 0) 72%, rgba(10, 31, 56, .55) 100%);
}

/* Texte : le titre et les deux boutons */
.hero--wall .hwall__inner { align-self: center; display: grid; justify-items: start; gap: 0; padding-block: clamp(32px, 6vh, 72px); will-change: transform, opacity; }
.hwall__title {
  margin: 0; font-size: clamp(52px, 6.4vw, 108px); line-height: .98; letter-spacing: -.02em;
  text-shadow: 0 2px 40px rgba(10, 31, 56, .5);
}
.hero--wall .hero__title em { color: #fff; }
.hwall__ctas { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: clamp(34px, 4vw, 54px); }
.hwall__cta { min-width: 300px; justify-content: space-between; padding: 22px 26px 22px 30px; font-size: 13px; }
.hwall__cta2 { --bd: rgba(255, 255, 255, .9); background-color: rgba(10, 31, 56, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Pause : petit bouton rond, discret (obligatoire pour des vidéos qui défilent seules) */
.hwall__pause {
  position: absolute; z-index: 3; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); bottom: 28px;
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0; cursor: pointer;
  background: rgba(10, 31, 56, .35); border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .3s;
}
.hwall__pause:hover { border-color: #fff; }
.hwall__pause span { display: block; width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hwall__pause.is-paused span { width: 0; height: 0; margin-left: 3px; border-left: 10px solid #fff; border-right: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* Mobile : le mur en haut, le titre et les boutons en bas, à portée de pouce */
@media (max-width: 760px) {
  .hero--wall { min-height: clamp(560px, 100svh, 860px); }
  .hwall__veil { background: linear-gradient(180deg, rgba(10, 31, 56, .45) 0%, rgba(10, 31, 56, .6) 45%, rgba(10, 31, 56, .85) 100%); }
  .hero--wall .hwall__inner { align-self: end; padding-bottom: 36px; }
  .hwall__title { font-size: clamp(40px, 11.5vw, 54px); line-height: 1.02; }
  .hwall__ctas { flex-direction: column; align-self: stretch; justify-self: stretch; width: 100%; margin-top: 28px; gap: 12px; }
  .hwall__cta { min-width: 0; width: 100%; padding: 20px 22px; }
  .hwall__pause { top: calc(var(--header-h) + 14px); bottom: auto; right: 16px; width: 38px; height: 38px; }
}
