/* ============================================
   ANIMATIONS S-APPLY CONSULTING
   Animations subtiles et professionnelles
   ============================================ */

/* === ANIMATIONS KEYFRAMES === */

/* Fade in from bottom */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in simple */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale up */
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce subtle */
@keyframes bounceSubtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(184, 149, 106, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(184, 149, 106, 0);
    }
}

/* Shine effect */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Float animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shake animation (for errors) */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Glow animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(184, 149, 106, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(184, 149, 106, 0.8), 0 0 30px rgba(184, 149, 106, 0.6);
    }
}

/* === CLASSES D'ANIMATION === */

/* Fade in up - utilisé pour les cartes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Délais pour animation en cascade */
.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

.animate-delay-6 {
    animation-delay: 0.6s;
}

/* Slide animations */
.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

/* Scale animation */
.animate-scale {
    animation: scaleUp 0.5s ease-out forwards;
    opacity: 0;
}

/* Float animation continue */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation continue */
.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Glow animation continue */
.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Shake animation (pour erreurs formulaire) */
.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* === HOVER EFFECTS === */

/* Lift on hover */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Scale on hover */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Shine effect on hover */
.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.hover-shine:hover::before {
    left: 100%;
}

/* Glow border on hover */
.hover-glow-border {
    transition: box-shadow 0.3s ease;
}

.hover-glow-border:hover {
    box-shadow: 0 0 20px rgba(184, 149, 106, 0.6);
}

/* === ANIMATIONS AU SCROLL === */

/* Classe pour éléments qui apparaissent au scroll */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bounce au scroll */
.scroll-bounce {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.scroll-bounce.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === ANIMATIONS SPÉCIFIQUES === */

/* Animation pour les cartes de domaines d'expertise (Accueil) */
.service-modern-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Animation pour les valeurs philosophiques (À propos) */
.value-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(184, 149, 106, 0.2);
}

/* Animation pour les cartes de formation (Formations) */
.formation-card-premium {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formation-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Animation pour le badge OFFRE LIMITÉE (Produits) */
.product-badge {
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

/* Témoignages : hover subtil uniquement (pas d'animation au scroll) */
.testimonial-card {
    transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 8px 20px rgba(184, 149, 106, 0.15);
}

/* === ANIMATIONS POUR LE COMPTE À REBOURS === */

.countdown-item {
    animation: scaleUp 0.5s ease-out forwards;
    opacity: 0;
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    /* Réduire l'intensité des animations sur mobile */
    .animate-fade-in-up,
    .animate-slide-left,
    .animate-slide-right {
        animation-duration: 0.4s;
    }
    
    .hover-lift:hover {
        transform: translateY(-5px);
    }
    
    .scroll-reveal,
    .scroll-bounce {
        transition-duration: 0.4s;
    }
}

/* === PRÉFÉRENCES UTILISATEUR === */

/* Respecter les préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === ANIMATIONS DE CHARGEMENT === */

/* Skeleton loading (optionnel pour futur) */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}
