/* ==========================================================
   Mi-Kode : couche d'animations
   Ajoutée APRÈS style.css. Elle ne remplace aucune règle :
   - classes préfixées « am- »
   - propriétés `translate` / `rotate` (indépendantes de `transform`,
     donc sans conflit avec vos effets data-reveal et :hover)
   Tout est coupé si le visiteur a réduit les animations.
   ========================================================== */

:root {
  --am-lime: #C6FF3D;
  --am-ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-reduced-motion: no-preference) {

  /* 1. Boutons : la flèche avance, le bouton suit légèrement le curseur */
  .btn svg { transition: translate .35s var(--am-ease); }
  .btn:hover svg { translate: 5px 0; }
  .btn.am-magnet { transition: translate .25s var(--am-ease); will-change: translate; }

  /* 2. Cartes : halo lime qui suit le curseur */
  .am-card { position: relative; }
  .am-spot {
    position: absolute; inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(198, 255, 61, .10), transparent 65%);
    -webkit-mask: none;
  }
  .am-card:hover > .am-spot { opacity: 1; }
  .am-card > .am-spot::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(198, 255, 61, .55), transparent 65%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  }

  /* 3. Hero : lueur qui suit la souris */
  .am-glow {
    position: absolute; left: 0; top: 0;
    width: 520px; height: 520px;
    margin: -260px 0 0 -260px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity .6s ease;
    background: radial-gradient(circle, rgba(198, 255, 61, .13), transparent 62%);
    will-change: translate;
  }
  .am-glow.am-on { opacity: 1; }

  /* 4. Terminal : frappe ligne par ligne */
  .am-typing .am-line:not(.am-on) { visibility: hidden; }
  .am-line.am-on { animation: am-type var(--am-dur, .6s) steps(var(--am-steps, 20), end) both; }
  @keyframes am-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -2px 0 0); } }
  .am-caret {
    display: inline-block;
    width: .55em; height: 1.05em;
    margin-left: 2px;
    vertical-align: text-bottom;
    background: var(--am-lime);
    animation: am-caret 1s steps(1) infinite;
  }
  @keyframes am-caret { 50% { opacity: 0; } }

  /* 5. Navigation : lien de la section visible */
  .nav-links a { text-decoration: underline 2px transparent; text-underline-offset: 8px; transition: text-decoration-color .3s ease, color .3s ease; }
  .nav-links a.am-active { text-decoration-color: var(--am-lime); color: var(--am-lime); }

  /* 6. Prix des offres : chiffres stables pendant le décompte */
  .offer-price { font-variant-numeric: tabular-nums; }
}
