/* Footer styles - Solution propre avec balise main */

/* Faire en sorte que body utilise toute la hauteur */
html, body {
    height: 100%;
    margin: 0;
}

/* Le body doit garder ses propriétés navbar ET avoir le flexbox pour le footer */
body {
    /* Propriétés de navbar.css - seulement si navbar présente */
    margin-left: 0;
    
    /* Propriétés pour le sticky footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Padding seulement quand il y a une navbar */
body.has-navbar {
    padding-left: 16rem;
}

/* L'élément main prend tout l'espace disponible */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Le footer reste en bas */
footer {
    flex-shrink: 0;
    background: linear-gradient(135deg, #909e6f 0%, #576e4a 100%);
    color: white;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.1);
	
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

.footer-main {
    font-size: 0.85rem;
    margin-bottom: 2px;
    color: #ffffff;
    font-weight: 600;
}

.footer-credits {
    font-size: 0.8rem;
    color: #e8f4e0;
    margin-bottom: 8px;
    font-weight: 400;
    line-height: 1.4;
}

.footer-contact {
    font-size: 0.75rem;
    margin-bottom: 2px;
    color: #f0f8e8;
    font-weight: 400;
}

.footer-contact span {
    color: #ffffff !important;
    font-weight: 500;
}

.footer-contact a {
    color: #ffffff !important;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #e8f4e0 !important;
    text-decoration: underline;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.4rem;
    font-size: 0.7rem;
    color: #e8f4e0;
    opacity: 0.8;
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.7;
}

/* Support des classes de navbar.css */
body.has-navbar.navbar-hidden {
    padding-left: 0;
}

body.page-loaded {
    transition: padding-left 0.3s ease;
}

/* Ajustements pour les écrans plus petits */
@media (max-width: 768px) {
    body.has-navbar {
        padding-left: 0;
        padding-top: 6.25rem;
    }
    
    footer {
        padding: 1rem 0.8rem 0.6rem;
        border-radius: 25px 25px 0 0;
    }
    
    .footer-main {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .footer-contact {
        font-size: 0.7rem;
    }
    
    .footer-contact span {
        color: #ffffff !important;
        font-weight: 500;
    }
    
    .footer-contact a {
        color: #ffffff !important;
        text-decoration: none;
    }
    
    .footer-contact a:hover {
        color: #e8f4e0 !important;
        text-decoration: underline;
    }
    
    .footer-credits {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    
    .footer-copyright {
        font-size: 0.65rem;
        padding-top: 0.5rem;
    }
    
    .separator {
        margin: 0 0.3rem;
    }
}

/* Ajustements pour les très petits écrans */
@media (max-width: 480px) {
    body.has-navbar {
        padding-left: 0;
        padding-top: 4rem;
    }
    
    footer {
        border-radius: 20px 20px 0 0;
        padding: 0.8rem 0.6rem 0.5rem;
    }
    
    .footer-main {
        font-size: 0.75rem;
    }
    
    .footer-contact {
        font-size: 0.7rem;
    }
    
    .footer-contact span {
        color: #ffffff !important;
        font-weight: 500;
    }
    
    .footer-contact a {
        color: #ffffff !important;
        text-decoration: none;
    }
    
    .footer-contact a:hover {
        color: #e8f4e0 !important;
        text-decoration: underline;
    }
    
    .footer-credits {
        font-size: 0.7rem;
    }
    
    .footer-copyright {
        font-size: 0.6rem;
    }
}
