/* GAO Métha : animations discrètes au scroll.
   L'état initial (invisible) n'est posé que par le JS via .gao-anim / .gao-reveal / .gao-title :
   sans JS, tout reste visible. */

.gao-anim .gao-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--gao-d, 0s);
}
.gao-anim .gao-reveal.is-in { opacity: 1; transform: none; }

/* Titres de section : les lettres apparaissent l'une après l'autre, balayées de gauche à droite,
   puis le trait malt se déploie dessous. Le JS découpe le titre en <span class="gao-ch">. */
.gao-title .gao-w { display: inline-block; white-space: nowrap; }
.gao-anim .gao-title .gao-ch { opacity: 0; }
.gao-anim .gao-title.is-in .gao-ch {
  animation: gao-letter .7s cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: calc(var(--i) * var(--s, .04s));
}
@keyframes gao-letter {
  0%   { opacity: 0; clip-path: inset(-20% 100% -20% 0); }
  15%  { opacity: 1; }
  100% { opacity: 1; clip-path: inset(-20% -5% -20% -5%); }
}
.gao-anim .gao-title::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--t, 0s);
}
.gao-anim .gao-title.is-in::after { transform: scaleX(1); }

/* Cartes : petit soulèvement au survol (souris uniquement) */
@media (hover: hover) {
  .gao-card > .vc_column-inner { transition: transform .3s ease, box-shadow .3s ease; }
  .gao-card:hover > .vc_column-inner { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(28, 31, 32, .08); }
}

/* Mots-clés de l'accroche : un mot mis en avant à la fois */
.gao-anim .gao-keywords li { transition: opacity .6s ease; }
.gao-anim .gao-keywords.is-rotating li { opacity: .45; }
.gao-anim .gao-keywords.is-rotating li.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .gao-reveal, .gao-keywords li, .gao-card > .vc_column-inner { transition: none !important; transform: none !important; }
  .gao-title .gao-ch { animation: none !important; opacity: 1 !important; }
  .gao-title::after { transform: none !important; transition: none !important; }
}
