/* ========== PHASE 1 - ANIMATIONS BASIQUES ========== */

/* ========== 1. TRANSITIONS HOVER - COULEURS ========== */
@keyframes colorShift {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(10deg);
    }
}

/* Navigation links hover */
nav a {
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
    color: var(--green);
    text-shadow: 0 0 8px rgba(239, 218, 85, 0.3);
}

/* Value cards hover */
.value {
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
}

.value:hover {
    background: linear-gradient(135deg, var(--light), #f0f8ff);
    box-shadow: 0 12px 24px rgba(76, 46, 178, 0.12);
    transform: translateY(-4px);
}

.value:hover .icon {
    animation: colorShift 0.6s ease;
}

/* Card hover transitions */
.card {
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
}

.card:hover {
    background: linear-gradient(135deg, #f0f8ff, var(--light));
    box-shadow: 0 12px 28px rgba(76, 46, 178, 0.14);
    transform: translateY(-4px);
}

/* Member card hover */
.member {
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
}

.member:hover {
    background: linear-gradient(135deg, #f0f8ff, var(--light));
    box-shadow: 0 12px 24px rgba(76, 46, 178, 0.12);
    transform: translateY(-4px);
}

.member:hover .avatar {
    animation: avatarGlow 0.6s ease;
}

@keyframes avatarGlow {
    0% {
        box-shadow: 0 6px 16px rgba(76, 46, 178, 0.12);
    }
    50% {
        box-shadow: 0 8px 24px rgba(239, 218, 85, 0.25);
    }
    100% {
        box-shadow: 0 6px 16px rgba(76, 46, 178, 0.12);
    }
}

/* ========== 2. SCALE EFFECTS - BOUTONS ========== */
@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(239, 218, 85, 0.18);
    }
    50% {
        box-shadow: 0 12px 28px rgba(239, 218, 85, 0.28);
    }
}

.btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    transform-origin: center;
}

.btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 12px 28px rgba(239, 218, 85, 0.28) !important;
}

.btn:active {
    transform: scale(0.95) !important;
}

.btn-primary:hover {
    animation: buttonPulse 0.6s ease infinite;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.08);
}

.btn-submit {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    transform-origin: center;
}

.btn-submit:hover {
    transform: scale(1.06) !important;
    box-shadow: 0 8px 20px rgba(76, 46, 178, 0.25) !important;
}

/* ========== 3. FADE-IN DES IMAGES ========== */
@keyframes fadeInImage {
    0% {
        opacity: 0;
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

img {
    animation: fadeInImage 0.8s ease-out forwards;
    opacity: 0;
}

/* Avatar specific fade */
.avatar img {
    animation: fadeInImage 0.8s ease-out 0.2s forwards;
}

/* ========== UTILITY ANIMATIONS ========== */

/* Fade in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Slide in animation */
@keyframes slideIn {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

.bounce {
    animation: bounce 1s infinite;
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .btn:hover,
    .card:hover,
    .value:hover,
    .member:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
}

