/* =========================================================
   STYLES PERSONNALISÉS INFLUO (repris de resources/css/app.css)
   Le thème Tailwind (@theme) est dans le <head> de index.html,
   car Tailwind navigateur le lit dans <style type="text/tailwindcss">.
   ========================================================= */

/* Alpine : cache les éléments x-cloak tant qu'Alpine n'a pas démarré
   (évite que le menu mobile "clignote" au chargement) */
[x-cloak] { display: none !important; }

/* ANIMATION PERMANENTE DE BALANÇOIRE */
@keyframes swingXWithPause {
  0%, 20%   { transform: rotate(-20deg); }
  45%, 65%  { transform: rotate(20deg); }
  90%, 100% { transform: rotate(-20deg); }
}
.animate-swing-x {
  animation: swingXWithPause 15s ease-in-out infinite;
  transform-origin: center center;
}

/* ANIMATION DES CERCLES DE NOTRE VISION (Effet onde/pulsation) */
@keyframes circlePulse {
  0%, 100% { transform: scale(0.85); opacity: 0.4; }
  50%      { transform: scale(1.15); opacity: 0.8; }
}
.animate-circle-pulse {
  animation: circlePulse 4s ease-in-out infinite;
}

/* LOGIQUE DES MARQUEES INFINIS CROISÉS */
@keyframes marqueeLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.animate-marquee-left {
  display: flex;
  width: max-content;
  animation: marqueeLeft 30s linear infinite;
}
.animate-marquee-right {
  display: flex;
  width: max-content;
  animation: marqueeRight 30s linear infinite;
}
.text-glow-white {
  color: #FFFFFF !important;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.8),
               0 0 8px rgba(0, 0, 0, 0.3);
}
/* Pause du défilement au survol */
.animate-marquee-left:hover,
.animate-marquee-right:hover {
  animation-play-state: paused;
}

/* PILE D'IMAGES DES RÉALISATIONS */
.realis-card {
  --out: 9rem;
  transition-property: translate, rotate, scale;
  transition-timing-function: cubic-bezier(.65, 0, .35, 1);
}
@media (min-width: 768px) { .realis-card { --out: 19rem; } }

@keyframes realis-out-back {
  0%   { translate: 0 0; rotate: -2deg; scale: 1; z-index: 35; }
  40%  { translate: var(--out) -1.5rem; rotate: 12deg; z-index: 35; }
  50%  { translate: var(--out) -1.5rem; rotate: 12deg; z-index: 35; }
  51%  { z-index: var(--ez); }
  100% { translate: var(--et); rotate: var(--er); scale: var(--es); z-index: var(--ez); }
}
@keyframes realis-out-front {
  0%   { translate: var(--st); rotate: var(--sr); scale: var(--ss); z-index: var(--sz); }
  45%  { translate: var(--out) -1.5rem; rotate: 12deg; z-index: var(--sz); }
  50%  { translate: var(--out) -1.5rem; rotate: 12deg; z-index: 40; }
  100% { translate: 0 0; rotate: -2deg; scale: 1; z-index: 40; }
}
.realis-out-back  { animation: realis-out-back  1600ms cubic-bezier(.45, 0, .25, 1) both; }
.realis-out-front { animation: realis-out-front 1600ms cubic-bezier(.45, 0, .25, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .realis-out-back, .realis-out-front { animation-duration: 1ms !important; }
}
