/* ═══════════════════════════════════════════════════════════
   VIZARNE — hero : deux colonnes de photos + faux navigateur.
   La vue bleu nuit (.h-full) est une miniature exacte de l'écran plein :
   JS la pose dans le cadre (translate + scale uniforme), puis GSAP la
   ramène à translate(0) scale(1) pour remplir l'écran.
   Variables posées par app.js : --vx, --vy (coin de la vue), --vw, --vh
   (taille de la vue), --bar (hauteur de la barre).
   ═══════════════════════════════════════════════════════════ */
.s-hero .pin { background: #081320; overflow: hidden; }

/* ── colonnes de photos (moitié gauche) ── */
.h-cols {
  position: absolute; z-index: 1;
  left: var(--gutter); top: 0; bottom: 0; width: calc(50vw - var(--gutter) * 1.5);
  display: flex; justify-content: center; gap: 18px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.h-col { --size: min(25vh, 17vw); width: var(--size); overflow: hidden; }
.h-track { display: flex; flex-direction: column; gap: 18px; will-change: transform; }
.h-track figure { width: var(--size); aspect-ratio: 1; border-radius: 10px; overflow: hidden; flex: none; background: #1b263b; }
.h-track img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* boucle infinie : la piste contient deux fois la série, elle glisse d'une demi-longueur */
.h-col-down .h-track { animation: h-down 46s linear infinite; }
.h-col-up .h-track { animation: h-up 52s linear infinite; }
@keyframes h-down { from { transform: translateY(calc(-50% - 9px)); } to { transform: translateY(0); } }
@keyframes h-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 9px)); } }

/* ── cadre du navigateur ── */
.h-frame {
  position: absolute; z-index: 2;
  left: var(--vx); top: calc(var(--vy) - var(--bar));
  width: var(--vw); height: calc(var(--vh) + var(--bar));
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(203, 225, 248, .22);
  will-change: opacity;
}
.h-bar {
  height: var(--bar); display: flex; align-items: center; gap: 7px; padding: 0 14px;
  background: #e9f0f8; border-bottom: 1px solid rgba(8, 19, 32, .1);
}
.h-bar i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.h-bar i:nth-child(1) { background: #ff3d5a; }
.h-bar i:nth-child(2) { background: #cbe1f8; box-shadow: inset 0 0 0 1px rgba(8, 19, 32, .15); }
.h-bar i:nth-child(3) { background: #3d5afe; }
.h-url {
  flex: 1; max-width: 62%; margin: 0 auto; height: 22px; border-radius: 6px;
  background: #fff; color: #4b5a71; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
}
.h-view { height: var(--vh); background: #cbe1f8; }

/* ── contenu bleu nuit : mis en page à la taille de l'écran ── */
.h-full {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: 100vw; height: 100vh;
  background: #cbe1f8; color: #081320;
  transform-origin: 0 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--gutter);
  will-change: transform;
}
.h-copy { max-width: min(1100px, 86vw); text-align: center; }
.h-title {
  font-weight: 700; font-stretch: 80%; letter-spacing: -0.035em; line-height: .95;
  font-size: clamp(44px, 6.6vw, 112px); text-wrap: balance;
}
.h-text {
  margin: 0.9em auto 0; max-width: 30em;
  font-size: clamp(19px, 2.1vw, 34px); line-height: 1.32; letter-spacing: -0.01em;
  color: rgba(8, 19, 32, .78);
}
/* « sur mesure » : une copie rouge posée dessus, révélée en opacité */
.h-mark { position: relative; display: inline-block; white-space: nowrap; color: #081320; font-weight: 600; }
.h-mark-red { position: absolute; left: 0; top: 0; color: #ff3d5a; opacity: 0; will-change: opacity; }
.h-mark-svg { position: absolute; inset: -0.32em -0.42em; width: calc(100% + 0.84em); height: calc(100% + 0.64em); overflow: visible; pointer-events: none; }
.h-mark-svg path { fill: none; stroke: #ff3d5a; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ── faux curseur ── */
.h-cursor { position: absolute; left: 0; top: 0; z-index: 6; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.h-cursor svg { display: block; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); transform-origin: 4px 3px; }
.h-ripple {
  position: absolute; left: 4px; top: 3px; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; border: 2px solid #ff3d5a; opacity: 0; transform: scale(.2);
}

/* ── mobile : navigateur en haut, une bande de photos horizontale dessous ── */
@media (max-width: 760px) {
  .h-cols {
    left: 0; right: 0; width: auto; top: auto; bottom: 7vh; height: auto;
    display: block;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  }
  .h-col { --size: 92px; width: auto; }
  .h-col-up { display: none; }
  .h-track { flex-direction: row; gap: 12px; width: max-content; }
  .h-col-down .h-track { animation: h-left 40s linear infinite; }
  @keyframes h-left { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 6px)); } }
  .h-title { font-size: clamp(36px, 10.5vw, 52px); }
  .h-text { font-size: clamp(18px, 5vw, 22px); }
}

/* ── mouvements réduits : on montre directement l'état final ── */
@media (prefers-reduced-motion: reduce) {
  .h-track { animation: none !important; }
}
body.static .s-hero .pin { min-height: 100vh; }
body.static .h-cols, body.static .h-frame, body.static .h-cursor { display: none; }
body.static .h-full { position: relative; transform: none !important; min-height: 100vh; }
body.static .h-mark-red { opacity: 1; }
body.static .s-hero .pin { padding: 0 !important; }
