/**
 * HAMBURGER AUTONOME - KIM ONLUS CÔTE D'IVOIRE
 * Ce fichier est complet et indépendant, sans aucune dépendance Bootstrap
 */

/* ===========================================
   VARIABLES LOCALES
   =========================================== */
:root {
    --hamburger-bg: #ffffff;
    --hamburger-border: #1a4b8c;
    --hamburger-color: #1a4b8c;
    --hamburger-hover: #1a4b8c;
    --hamburger-line: #1a4b8c;
    --hamburger-line-hover: #ffffff;
    --hamburger-width: 50px;
    --hamburger-height: 50px;
    --hamburger-radius: 12px;
    --menu-width: 300px;
    --menu-bg: #ffffff;
    --menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
}

/* ===========================================
   CONTENEUR PRINCIPAL
   =========================================== */
.custom-hamburger-container {
    display: none;
    position: relative;
    z-index: 1001;
}

/* Afficher seulement sur mobile */
@media (max-width: 991px) {
    .custom-hamburger-container {
        display: flex;
    }
}

/* ===========================================
   BOUTON HAMBURGER
   =========================================== */
.custom-hamburger-btn {
    width: var(--hamburger-width);
    height: var(--hamburger-height);
    background: var(--hamburger-bg);
    border: 2px solid var(--hamburger-border);
    border-radius: var(--hamburger-radius);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 12px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    outline: none;
}

.custom-hamburger-btn:hover {
    background: var(--hamburger-hover);
    border-color: var(--hamburger-hover);
    box-shadow: 0 4px 12px rgba(26, 75, 140, 0.3);
    transform: scale(1.05);
}

.custom-hamburger-btn:focus {
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.3);
}

/* ===========================================
   LIGNES DU HAMBURGER
   =========================================== */
.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--hamburger-line);
    border-radius: 3px;
    transition: all var(--transition-speed) ease;
}

/* Couleur des lignes au survol */
.custom-hamburger-btn:hover .hamburger-line {
    background: var(--hamburger-line-hover);
}

/* ===========================================
   ANIMATION OUVERTURE (X)
   =========================================== */

/* Ligne du haut */
.custom-hamburger-btn.active .line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

/* Ligne du milieu */
.custom-hamburger-btn.active .line-2 {
    opacity: 0;
    transform: scaleX(0);
}

/* Ligne du bas */
.custom-hamburger-btn.active .line-3 {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Couleur des lignes quand actif */
.custom-hamburger-btn.active .hamburger-line {
    background: #ffffff;
}

/* ===========================================
   MENU MOBILE (SLIDE FROM RIGHT)
   =========================================== */
.custom-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: var(--menu-width);
    height: 100vh;
    background: var(--menu-bg);
    z-index: 1000;
    transition: right var(--transition-speed) ease;
    box-shadow: var(--menu-shadow);
    overflow-y: auto;
    padding: 80px 25px 25px;
}

.custom-mobile-menu.active {
    right: 0;
}

/* Overlay sombre */
.custom-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

.custom-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===========================================
   LIENS DU MENU MOBILE
   =========================================== */
.custom-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-nav-menu > li {
    border-bottom: 1px solid #e9ecef;
}

.custom-nav-menu > li > a {
    display: block;
    padding: 15px 0;
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.custom-nav-menu > li > a:hover {
    color: #1a4b8c;
    padding-left: 10px;
}

/* Sous-menu mobile */
.mobile-has-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.mobile-dropdown-toggle:hover {
    color: #1a4b8c;
}

.mobile-dropdown-toggle .fa-chevron-down,
.mobile-dropdown-toggle .fa-chevron-up {
    transition: transform 0.3s ease;
}

.mobile-dropdown {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(26, 75, 140, 0.03);
    border-left: 3px solid #2c7be5;
}

.mobile-dropdown.active {
    display: block;
}

.mobile-dropdown li {
    border-bottom: 1px solid rgba(26, 75, 140, 0.1);
}

.mobile-dropdown li:last-child {
    border-bottom: none;
}

.mobile-dropdown li a {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mobile-dropdown li a:hover {
    color: #1a4b8c;
    padding-left: 25px;
    background: rgba(26, 75, 140, 0.05);
}

/* ===========================================
   BOUTON FERMER
   =========================================== */
.custom-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: #1a4b8c;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.custom-menu-close:hover {
    background: #0d3a6e;
    transform: scale(1.1);
}

/* ===========================================
   VERSION PETIT ÉCRAN
   =========================================== */
@media (max-width: 480px) {
    .custom-hamburger-btn {
        width: 44px;
        height: 44px;
        padding: 10px;
        border-radius: 10px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    .custom-mobile-menu {
        width: 85%;
        right: -85%;
    }
}

/* ===========================================
   BOUTON DON DANS LE MENU
   =========================================== */
.custom-donate-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 25px;
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.custom-donate-btn:hover {
    background: linear-gradient(135deg, #e76f51, #f4a261);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
    color: white;
}

/* ===========================================
   ACCESSIBILITÉ
   =========================================== */
.custom-hamburger-btn[aria-expanded="true"] {
    background: #1a4b8c;
    border-color: #1a4b8c;
}

.custom-hamburger-btn[aria-expanded="true"] .hamburger-line {
    background: #ffffff;
}

/* ===========================================
   STYLES POUR LE MENU DESKTOP
   =========================================== */
.desktop-menu {
    display: block;
    flex-grow: 1;
}

.desktop-menu .nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-menu .nav-item {
    position: relative;
}

.desktop-menu .nav-link {
    padding: 10px 15px;
    font-weight: 500;
    font-size: 14px;
    color: #333 !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}

.desktop-menu .nav-link:hover {
    color: #1a4b8c !important;
    background: rgba(26, 75, 140, 0.05);
}

.desktop-menu .nav-item.active > .nav-link {
    color: #1a4b8c !important;
    background: rgba(26, 75, 140, 0.1);
}

/* Sous-menu desktop */
.desktop-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 10px 0;
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.desktop-menu .nav-item.has-dropdown:hover > .dropdown-menu {
    display: block;
}

.desktop-menu .dropdown-menu li {
    position: relative;
}

.desktop-menu .dropdown-menu .dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.desktop-menu .dropdown-menu .dropdown-item:hover {
    background: #f8f9fa;
    padding-left: 25px;
    color: #1a4b8c;
}

@media (max-width: 991px) {
    .desktop-menu {
        display: none !important;
    }
}

/* ===========================================
   HEADER TOP STYLES (intégrés)
   =========================================== */
.header-top {
    background: #1a4b8c;
    padding: 10px 0;
}

.header-top-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #fff;
}

.contact-info a i {
    margin-right: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-donate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-donate:hover {
    background: linear-gradient(135deg, #e76f51, #f4a261);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: #fff;
    color: #1a4b8c;
}

/* ===========================================
   MAIN NAVBAR STYLES (intégrés)
   =========================================== */
.main-navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a4b8c;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 12px;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===========================================
   FOOTER STYLES (intégrés)
   =========================================== */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
}

.footer-about,
.footer-links-section,
.footer-contact-section {
    min-width: 0;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-contact-section {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.footer-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 20px;
}

.btn-outline-light {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-light:hover {
    background: #fff;
    color: #1a4b8c;
    border-color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: #f4a261;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: #f4a261;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact li a:hover {
    color: #f4a261;
}

.newsletter-box {
    margin-top: 25px;
}

.newsletter-box h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-input-group {
    display: flex;
    flex: 1;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.newsletter-btn {
    padding: 12px 18px;
    background: linear-gradient(135deg, #f4a261, #e76f51);
    border: none;
    border-radius: 0 8px 8px 0;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #e76f51, #f4a261);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}

.footer-legal li a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal li a:hover {
    color: #f4a261;
}

@media (max-width: 576px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* Footer bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal li a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal li a:hover {
    color: #f4a261;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a4b8c, #0d3a6e);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(26, 75, 140, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #0d3a6e, #1a4b8c);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 75, 140, 0.4);
}

/* Don Modal */
.don-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.don-modal-overlay.active {
    display: flex;
}

.don-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.don-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #1a4b8c, #0d3a6e);
    color: #fff;
}

.don-modal-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.don-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.don-modal-close:hover {
    opacity: 1;
}

.don-modal-body {
    padding: 25px;
}

.don-modal-body > p {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
}

.don-amounts {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.amount-btn {
    padding: 12px 20px;
    border: 2px solid #1a4b8c;
    background: transparent;
    color: #1a4b8c;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-btn:hover,
.amount-btn.active {
    background: #1a4b8c;
    color: #fff;
}

.don-quick-form .form-group {
    margin-bottom: 20px;
}

.don-quick-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-with-euro {
    display: flex;
    align-items: center;
}

.input-with-euro input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e8ecef;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.input-with-euro input:focus {
    border-color: #1a4b8c;
}

.euro-symbol {
    padding: 14px 18px;
    background: #f8f9fa;
    border: 2px solid #e8ecef;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    color: #555;
}

.don-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f4a261, #e76f51);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.don-submit-btn:hover {
    background: linear-gradient(135deg, #e76f51, #f4a261);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
}

.don-submit-btn i {
    margin-right: 8px;
}

/* ===========================================
   STYLES DU HEADER (HEADER TOP)
   =========================================== */
.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top .contact-info a {
    font-size: 13px;
}

@media (max-width: 768px) {
    .header-top-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}
