/* Footer Behavior - Apparition intelligente */

/* Espacement en bas du body pour le footer fixe uniquement */
body.footer-fixed {
    padding-bottom: 80px; /* Espace pour le footer fixe */
}

/* État initial : Footer fixé en bas de l'écran */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    opacity: 1;
}

/* État caché : Footer disparaît lors du scroll */
footer.footer-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* État sticky : Footer réapparaît en bas du document */
footer.footer-sticky {
    position: static;
    margin-top: 2rem;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.98);
    border-top: 2px solid rgba(0, 123, 255, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* Styles pour le contenu du footer */
footer .footer {
    padding: 1rem 2rem;
    text-align: center;
}

footer .footer p {
    margin: 0;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Animation d'apparition au chargement */
@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation d'apparition initiale - très lente et douce */
footer.footer-initial {
    animation: slideInFromBottom 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s both;
}

/* Responsive */
@media (max-width: 768px) {
    footer .footer {
        padding: 0.8rem 1rem;
    }
    
    footer .footer p {
        font-size: 0.8rem;
    }
}

/* Amélioration de l'accessibilité */
footer:focus-within {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Indicateur visuel pour le scroll - couleur grise */
footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6c757d, transparent);
    opacity: 0.6;
}
