/* ─────────────────────────────────────────────
   VISEON · animations (validées le 06/11/2026)
   1 compteurs · 2 photos qui s'allument · 3 barre signature
   4 titre qui s'allume · 5 profondeur hero · 6 deux moitiés
   Tout est désactivé si l'utilisateur a choisi « réduire les animations ».
   ───────────────────────────────────────────── */

/* 2 · Les photos s'allument (survol sur ordinateur, au centre de l'écran sur téléphone) */
.cov img, .enquete-photo img, .enq-ph img { transition: transform .9s cubic-bezier(.22,1,.36,1), filter .9s ease !important; }
.cov:hover img, .cov.lit img,
.enquete-photo:hover img, .enquete-photo.lit img,
.enq-ph:hover img, .enq-ph.lit img { filter: grayscale(0) contrast(1.05) brightness(1) !important; transform: scale(1.05); }
.cov::before { content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
  background: linear-gradient(105deg, transparent 35%, rgba(242,237,228,.22) 50%, transparent 65%);
  transform: translateX(-120%); }
.cov:hover::before, .cov.lit::before { transition: transform 1.1s cubic-bezier(.22,1,.36,1); transform: translateX(120%); }

/* 3 · Barre signature orange/bleu sous les titres */
.sig-bar.sig-bar { display:block; width:96px; height:5px; margin-top:20px;
  background: linear-gradient(90deg, #E8500A 50%, #4A7AB5 50%);
  transform-origin: left center; }
.sig-bar.sig-bar.c { margin-left:auto; margin-right:auto; transform-origin:center; }

@media (prefers-reduced-motion: no-preference) {
  .sig-bar { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.22,1,.36,1) .25s; }
  .sig-bar.in { transform: scaleX(1); }

  /* 4 · Titre d'accueil mot par mot, puis le mot en couleur s'allume */
  .wd { display:inline-block; opacity:0; transform: translateY(.45em); filter: blur(6px);
    animation: wd-in .8s cubic-bezier(.22,1,.36,1) forwards; animation-delay: var(--d); }
  @keyframes wd-in { to { opacity:1; transform:none; filter:none; } }
  .hb-t em.glow, .hb-t i.glow { animation: glow-on 1.4s ease forwards; animation-delay: var(--d); color: var(--ivoire); }
  .hb-t em.glow { --glow: #E8500A; } .hb-t i.glow { --glow: #4A7AB5; }
  @keyframes glow-on {
    0%   { color: var(--ivoire); text-shadow: none; }
    35%  { color: #fff; text-shadow: 0 0 28px rgba(255,255,255,.55); }
    100% { color: var(--glow); text-shadow: 0 0 22px color-mix(in srgb, var(--glow) 45%, transparent); }
  }

  /* 6 · Deux moitiés : l'orange et le bleu se rejoignent, la ligne se trace */
  .split-band .sb-l { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s cubic-bezier(.22,1,.36,1); }
  .split-band .sb-r { clip-path: inset(0 0 0 100%); transition: clip-path 1.3s cubic-bezier(.22,1,.36,1); }
  .split-band .sb-cut { transform: translateX(-50%) scaleY(0); transform-origin: top; transition: transform 1s cubic-bezier(.22,1,.36,1) .9s; }
  .split-band .sb-lab { opacity:0; transition: opacity .9s ease 1.1s, transform .9s cubic-bezier(.22,1,.36,1) 1.1s; }
  .split-band .sb-lab-l { transform: translateX(-40px); }
  .split-band .sb-lab-r { transform: translateX(40px); }
  .split-band.in .sb-l { clip-path: inset(0 50% 0 0); }
  .split-band.in .sb-r { clip-path: inset(0 0 0 50%); }
  .split-band.in .sb-cut { transform: translateX(-50%) scaleY(1); }
  .split-band.in .sb-lab { opacity:1; transform:none; }
}

/* 5 · Profondeur : la photo du haut défile plus lentement */
.hero { overflow: hidden; }
.hero-bg { will-change: transform; }
@media (prefers-reduced-motion: no-preference) { .hero-bg { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  .cov img, .enquete-photo img, .enq-ph img { transition: none !important; }
  .cov::before { display:none; }
}
