h1, h2, h3, h4, h5, h6 {
  color: #A82C2C;
}

/* Logo agrandi avec header ajusté */
#header {
    min-height: 120px !important;
}
#header .navbar-section {
    height: auto !important;
    padding: 15px 0 !important;
}
#header img {
    max-height: 90px !important;
    height: auto !important;
    width: auto !important;
}

/* Mobile - version renforcée */
@media (max-width: 840px) {
    #header {
        min-height: 110px !important;
    }
    
    #header .navbar-section {
        height: auto !important;
        padding: 10px 0 !important;
    }
    
    #header img {
        max-height: 90px !important;
        height: 90px !important;
        width: auto !important;
    }
}

/* Pour très petits écrans */
@media (max-width: 480px) {
    #header {
        min-height: 100px !important;
    }
    
    #header img {
        max-height: 80px !important;
        height: 80px !important;
    }
}

/* Menu mobile stylé */
.overlay {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}
.overlay nav a {
    color: #ecf0f1 !important;
    font-size: 1.3rem !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    transition: all 0.3s ease !important;
}
.overlay nav a:hover {
    background: rgba(231, 76, 60, 0.2) !important;
    color: #e74c3c !important;
    padding-left: 30px !important;
}

/* Bouton burger */
.mobile-menu-toggle {
    color: #e74c3c !important;
}

/* Animation d'ouverture plus douce */
.overlay {
    transition: opacity 0.4s ease !important;
}

/* Footer mobile centré */
@media (max-width: 768px) {
    .footer-section {
        text-align: center !important;
    }
    
    .footer-contact-item {
        justify-content: center !important;
    }
    
    .footer-links {
        align-items: center !important;
    }
}

/* ===========================================
   FIX ANCRES : Évite que le header cache le contenu
   =========================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px; /* Hauteur header (120px) + marge (20px) */
}

/* Alternative pour tous les éléments avec ID (ancres) */
[id] {
    scroll-margin-top: 140px; /* Hauteur header (120px) + marge (20px) */
}

/* Ajustement mobile */
@media (max-width: 840px) {
    html {
        scroll-padding-top: 130px; /* Hauteur header mobile (110px) + marge (20px) */
    }
    
    [id] {
        scroll-margin-top: 130px;
    }
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 120px; /* Hauteur header petit écran (100px) + marge (20px) */
    }
    
    [id] {
        scroll-margin-top: 120px;
    }
}