/* ====== RESET DE BASE ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Limite le texte à 2 lignes avec des points de suspension */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Défilement fluide */
html { scroll-behavior: smooth; }

/* Supprime la marge haute du premier contenu après le slider */
main > section:first-of-type {
    margin-top: 0;
}

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

/* Apparition par le bas */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Apparition par le haut */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Apparition par la gauche */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Apparition par la droite */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Apparition avec zoom */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* Flottement pour les décorations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Lueur pulsante */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 98, 129, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(0, 98, 129, 0); }
}

/* Rotation lente (loader/décoration) */
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* État initial : caché avant déclenchement */
.anim-hidden {
    opacity: 0;
}

/* Chaque animation attachée à sa keyframe */
.anim-fade-in-up {
    animation: fadeInUp 0.7s ease-out forwards;
}

.anim-fade-in-down {
    animation: fadeInDown 0.7s ease-out forwards;
}

.anim-fade-in-left {
    animation: fadeInLeft 0.7s ease-out forwards;
}

.anim-fade-in-right {
    animation: fadeInRight 0.7s ease-out forwards;
}

.anim-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.anim-float {
    animation: float 3s ease-in-out infinite;
}

.anim-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Décalages progressifs pour les listes d'éléments */
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }
.anim-delay-6 { animation-delay: 0.6s; }
.anim-delay-7 { animation-delay: 0.7s; }
.anim-delay-8 { animation-delay: 0.8s; }

/* ====== EFFETS DE SURVOL ====== */

/* Soulèvement au survol */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Agrandissement léger au survol */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Lueur au survol */
.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 98, 129, 0.3);
}

/* ====== ANIMATION HERO BLOB ====== */
.hero-blob {
    animation: float 4s ease-in-out infinite;
}

.hero-blob:nth-child(2) {
    animation-delay: -1.5s;
    animation-duration: 5s;
}

/* ====== COMPTEUR ANIMÉ ====== */
.counter-value {
    display: inline-block;
}

/* ====== SPINNER DE CHARGEMENT ====== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 98, 129, 0.15);
    border-top-color: #006281;
    border-radius: 50%;
    animation: spinSlow 0.8s linear infinite;
}

/* ====== TRANSITION DE PAGE ====== */
.page-enter {
    animation: fadeInUp 0.6s ease-out;
}

/* ====== RESPONSIVE : cacher la sidebar admin sur mobile ====== */
@media (max-width: 767px) {
    .admin-sidebar {
        display: none;
    }
}