/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes d'animation */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Bouton retour en haut */
.back-to-top-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top-btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

.back-to-top-btn.visible {
    display: flex;
    animation: fadeIn 0.3s ease-out forwards;
}

/* Transitions des liens */
.nav-link {
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Animation de la navbar mobile */
.bottom-navbar {
    transition: transform 0.3s ease-out;
}

/* Animation des sections au scroll */
.content-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation des boutons */
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}