/* Animations de la page d’accueil (ajoutées par le client) — chargées uniquement sur index */
/* ── ANIMATION HERO — Générale Protection ───────────────── */
.hero--fleet { position: relative; overflow: hidden; }

.hero-stack { position: relative; z-index: 3; }

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(64, 140, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 140, 255, 0.09) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 15%, #000 85%);
          mask-image: radial-gradient(ellipse at center, transparent 15%, #000 85%);
  animation: heroGridShift 22s linear infinite;
}

@keyframes heroGridShift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 60px 60px, 60px 60px; }
}

.hero-scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(64, 140, 255, 0.85), transparent);
  box-shadow: 0 0 14px rgba(64, 140, 255, 0.65);
  animation: heroScan 6s ease-in-out infinite;
}

@keyframes heroScan {
  0%   { top: 0%;   opacity: 0; }
  10%  { opacity: 0.85; }
  90%  { opacity: 0.85; }
  100% { top: 100%; opacity: 0; }
}

/* Pulsation douce sur « jour et nuit. » du H1 */
.hero-copy h1 em {
  display: inline-block;
  animation: heroPulse 4.5s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 1;    text-shadow: none; }
  50%      { opacity: 0.78; text-shadow: 0 0 18px rgba(64, 140, 255, 0.55); }
}

/* ── Responsive hero ───────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-canvas { opacity: 0.45; }
  .hero-grid { background-size: 50px 50px; opacity: 0.85; }
  .hero-scan { height: 1.5px; box-shadow: 0 0 10px rgba(64, 140, 255, 0.5); animation-duration: 7s; }
}
@media (max-width: 720px) {
  .hero-canvas { opacity: 0.4; }
  .hero-grid { background-size: 40px 40px; opacity: 0.7; animation-duration: 30s; }
  .hero-scan { height: 1px; box-shadow: 0 0 8px rgba(64, 140, 255, 0.4); animation-duration: 8s; }
  .hero-copy h1 em { animation-duration: 6s; }
}
@media (max-width: 420px) {
  .hero-canvas { opacity: 0.3; }
  .hero-grid { background-size: 34px 34px; opacity: 0.6; }
}

/* ── AJOUT — Compteurs animés dans la rubrique .proof ──── */
.proof strong[data-count] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.proof strong[data-count].is-counted {
  animation: proofSettle 1s cubic-bezier(.2,.7,.3,1) both;
}

@keyframes proofSettle {
  0%   { text-shadow: 0 0 0 rgba(64, 140, 255, 0); }
  35%  { text-shadow: 0 0 16px rgba(64, 140, 255, 0.85); }
  100% { text-shadow: 0 0 0 rgba(64, 140, 255, 0); }
}

/* Accessibilité : tout est désactivé si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  .hero-canvas,
  .hero-grid,
  .hero-scan { display: none !important; }
  .hero-copy h1 em { animation: none !important; }
  .proof strong[data-count].is-counted { animation: none !important; }
}
/* ── FIN ANIMATIONS ─────────────────────────────────────── */
