.header {
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);

}

.topbar {
    font-size: 0.85rem;
    min-height: 28px;
}

.topbar .skip-links a:hover {
    text-decoration: underline !important;
    color: #0049AB !important;
}

.topbar .search-form input {
    transition: all 0.3s ease;
}

.topbar .search-form input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,73,171,0.25);
    border-color: #0049AB;
}


/* Ajustements pour les éléments de la topbar */
.topbar .form-control-sm {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    height: auto;
}

.topbar .btn-sm {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}


/* Personnalisation du focus pour la navigation au clavier */
.topbar .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(179, 10, 10, 0.25);
    border-color: #B30A0A;
}

.topbar .skip-links a:focus {
    text-decoration: underline !important;
    color: #B30A0A !important;
    outline: 2px solid #B30A0A;
    outline-offset: 2px;
}

.topbar .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(179, 10, 10, 0.25);
    border-color: #B30A0A;
}


.navbar {
    min-height: 60px;
}



/* Focus pour la navbar */
.navbar .nav-link:focus {
    color: #B30A0A !important;
    outline: 2px solid #B30A0A;
    outline-offset: 2px;
}

.navbar .dropdown-item:focus {
    background-color: rgba(179, 10, 10, 0.1);
    color: #B30A0A !important;
    outline: 2px solid #B30A0A;
    outline-offset: -2px;
}

.navbar .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(179, 10, 10, 0.25);
    border-color: #B30A0A;
    color: #fff !important;
}

.navbar-brand:focus {
    outline: 2px solid #B30A0A;
    outline-offset: 2px;
}



/* Ajustements du logo pour mobile */
@media (max-width: 767px) {
    .site-logo {
        margin-left: -1rem;
    }
    
    .logo-icon {
        max-height: 50px !important; /* Réduire légèrement la taille sur mobile */
    }
}

/* Assurer que le logo reste aligné avec le contenu sur desktop */
@media (min-width: 768px) {
    .site-logo {
        margin-left: 0;
    }
}



body {
    padding-top: 88px; /* Ajusté pour la nouvelle hauteur totale (32px + 60px) */
}


/* Ajustez selon la taille de votre logo */
/* .navbar-brand img {
    max-height: 40px; 
    width: auto;
} */




/* Style pour le bouton don */
.btn-primary.btn-sm {
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

/* Style de focus global pour tous les boutons btn-primary */
.btn-primary:focus,
.btn-primary.focus {
    color: #fff !important;
    background-color: #0049AB !important;
    border-color: #B30A0A !important;
    box-shadow: 0 0 0 0.2rem rgba(179, 10, 10, 0.25) !important;
    outline: none !important;
}

/* Style au survol et focus */
.btn-primary:hover:focus {
    color: #fff !important;
    background-color: #003d8f !important;
    border-color: #B30A0A !important;
    box-shadow: 0 0 0 0.2rem rgba(179, 10, 10, 0.25) !important;
}

/* Style actif et focus */
.btn-primary:active:focus,
.btn-primary.active:focus {
    color: #fff !important;
    background-color: #003d8f !important;
    border-color: #B30A0A !important;
    box-shadow: 0 0 0 0.2rem rgba(179, 10, 10, 0.25) !important;
}



/* Style global pour tous les boutons avec fond bleu */
.btn[style*="background-color: #0049AB"],
.btn-primary {
    background-color: #0049AB !important;
    color: white !important;
    border-color: #0049AB !important;
}

/* Style de focus global pour tous les boutons */
.btn[style*="background-color: #0049AB"]:focus,
.btn-primary:focus,
.btn[style*="background-color: #0049AB"].focus,
.btn-primary.focus {
    color: #fff !important;
    background-color: #0049AB !important;
    border-color: #B30A0A !important;
    box-shadow: 0 0 0 0.25rem rgba(179, 10, 10, 0.5) !important; /* Plus épais et plus opaque */
    outline: 3px solid #B30A0A !important; /* Ajout d'un outline plus épais */
    outline-offset: 2px !important;
    position: relative !important;
    z-index: 1 !important; /* Assure que le focus est toujours visible */
}

/* Style au survol et focus */
.btn[style*="background-color: #0049AB"]:hover:focus,
.btn-primary:hover:focus {
    color: #fff !important;
    background-color: #003d8f !important;
    border-color: #B30A0A !important;
    box-shadow: 0 0 0 0.25rem rgba(179, 10, 10, 0.5) !important;
    outline: 3px solid #B30A0A !important;
    outline-offset: 2px !important;
}

/* Style actif et focus */
.btn[style*="background-color: #0049AB"]:active:focus,
.btn-primary:active:focus,
.btn[style*="background-color: #0049AB"].active:focus,
.btn-primary.active:focus {
    color: #fff !important;
    background-color: #003d8f !important;
    border-color: #B30A0A !important;
    box-shadow: 0 0 0 0.25rem rgba(179, 10, 10, 0.5) !important;
    outline: 3px solid #B30A0A !important;
    outline-offset: 2px !important;
}



/* Style de focus pour les skip-links */
.skip-link:focus {
    position: static !important;
    width: auto !important;
    height: auto !important;
    /* padding: 15px 20px !important;
    margin: 10px 0 !important;
    font-size: 1rem !important; */
    font-weight: bold !important;
    color: white !important;
    background-color: #003d8f !important; /* bleu au lieu du rouge */
    text-decoration: none !important;
    border: 3px solid #fff !important;
    outline: 3px solid #B30A0A !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 0.25rem rgba(179, 10, 10, 0.5) !important;
    z-index: 9999 !important; /* S'assure que le lien est toujours au-dessus des autres éléments */
    display: inline-block !important;
    border-radius: 4px !important;
}

.skip-link:focus:hover {
    background-color: #8f0808 !important; /* Version plus foncée au survol */
    text-decoration: underline !important;
}


/* Style de focus pour le lien "Devenir Membre" */
.nav-link:focus {
    color: #B30A0A !important;
    background-color: rgba(179, 10, 10, 0.1) !important;
    /* background-color: #003d8f !important;  */

    outline: 3px solid #B30A0A !important;
    outline-offset: 2px !important;
    border-radius: 4px !important;
    text-decoration: underline !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Style au survol avec focus */
.nav-link:hover:focus {
    color: #8f0808 !important;
    background-color: rgba(179, 10, 10, 0.15) !important;
}




/* Style de focus pour les boutons btn-light */
.btn-light:focus {
    color: #0049AB !important;
    background-color: #fff !important;
    border-color: #B30A0A !important;
    box-shadow: 0 0 0 0.25rem rgba(179, 10, 10, 0.5) !important;
    outline: 3px solid #B30A0A !important;
    outline-offset: 2px !important;
    position: relative !important;
    z-index: 2 !important;
    text-decoration: underline !important;
}

/* Style au survol avec focus */
.btn-light:hover:focus {
    color: #003d8f !important;
    background-color: #f8f9fa !important;
    border-color: #B30A0A !important;
    box-shadow: 0 0 0 0.25rem rgba(179, 10, 10, 0.5) !important;
    outline: 3px solid #B30A0A !important;
}

/* Style actif avec focus */
.btn-light:active:focus {
    color: #003d8f !important;
    background-color: #e9ecef !important;
    border-color: #B30A0A !important;
    box-shadow: 0 0 0 0.25rem rgba(179, 10, 10, 0.5) !important;
    outline: 3px solid #B30A0A !important;
}




/* Style pour la section des logos */
.logos-row .logo-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logos-row .logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .logos-row {
        margin-bottom: -1rem;
    }
    
    .logos-row .col-6 {
        margin-bottom: 1rem;
    }
    
    .logos-row .logo-item {
        padding: 10px;
    }
    
    .logos-row img {
        max-height: 60px !important;
    }
}

/* Pour assurer une meilleure accessibilité */
.logo-item:focus-within {
    outline: 3px solid #B30A0A;
    outline-offset: 2px;
}







/* Styles pour le hero */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
}

.site-headline {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.site-tagline {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a4a4a;
}

.hero-image-wrapper {
    padding: 1rem;
}

.hero-image {
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.cta-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .site-headline {
        font-size: 2rem;
        text-align: center;
    }
    
    .site-tagline {
        text-align: center;
    }
    
    .cta-buttons {
        text-align: center;
    }
    
    .hero-image {
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (min-width: 992px) {
    .hero-section {
        min-height: 600px;
        display: flex;
        align-items: center;
    }
    
    .hero-image-wrapper {
        transform: translateY(-20px);
    }
}

/* Animation au chargement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-headline,
.site-tagline,
.cta-buttons {
    animation: fadeInUp 0.6s ease-out forwards;
}

.site-tagline {
    animation-delay: 0.2s;
}

.cta-buttons {
    animation-delay: 0.4s;
}





/* Style pour les formulaires - pages contact, demande d'informations, demande de devis */
/* Style pour le select amélioré */
.form-select {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select:focus {
    border-color: #0049AB;
    box-shadow: 0 0 0 0.2rem rgba(0, 73, 171, 0.25);
}

/* Style pour les groupes d'options */
optgroup {
    font-weight: 600;
    color: #0049AB;
    background-color: #f8f9fa;
}

option {
    padding: 8px;
    color: #212529;
}

/* Style pour le texte d'aide */
.form-text {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Style pour le label */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-label .text-muted {
    font-weight: normal;
    font-size: 0.875rem;
}


/* Styles d'accessibilité */
.form-control:focus,
.form-select:focus {
    border-color: #0049AB;
    box-shadow: 0 0 0 0.25rem rgba(0, 73, 171, 0.25);
    outline: 2px solid #0049AB;
    outline-offset: 2px;
}

/* Style pour les champs invalides */
.form-control:invalid:not(:focus),
.form-select:invalid:not(:focus) {
    border-color: #dc3545;
}

/* Style pour les messages d'aide */
.form-text {
    color: #495057;
    margin-top: 0.25rem;
}

/* Style pour les labels */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Amélioration du contraste */
.alert-info {
    background-color: #e9ecef;
    border-color: #0049AB;
    color: #000;
}

/* Focus visible pour le bouton */
.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 73, 171, 0.5);
    outline: 2px solid #0049AB;
    outline-offset: 2px;
}




/* Styles pour la politique de confidentialité */
.policy-content {
    font-size: 1.1rem;
    line-height: 1.6;
}

.section-title {
    color: #0049AB;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.rights-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.right-item {
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.right-item:hover {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .policy-content {
        font-size: 1rem;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
    }
}




/* Fix pour les menus déroulants lors de la navigation au clavier */

/* Assurer que le menu déroulant s'affiche correctement pendant la navigation au clavier */
.dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    min-width: 100% !important; /* Assure la largeur minimale */
    transform: none !important; /* Empêche les transformations qui pourraient causer des problèmes */
    margin: 0 !important;
    border-radius: 0.375rem !important;
    overflow: visible !important; /* Empêche le découpage du contenu */
    height: auto !important;
    position: absolute !important;
    z-index: 1000 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

/* Assurer que les éléments du menu déroulant s'affichent correctement */
.dropdown-menu.show .dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 1rem !important;
    clear: both !important;
    text-align: inherit !important;
    white-space: normal !important; /* Permettre le retour à la ligne si nécessaire */
    background: none !important;
    border: 0 !important;
}

/* Style de focus amélioré pour les éléments de menu */
.dropdown-menu .dropdown-item:focus {
    color: #212529 !important;
    text-decoration: none !important;
    background-color: #f8f9fa !important;
    outline: 3px solid #B30A0A !important;
    outline-offset: -3px !important;
    position: relative !important;
    z-index: 1001 !important; /* S'assurer qu'il apparaît au-dessus des autres éléments */
}

/* Correction pour les animations qui pourraient causer des problèmes */
.menu-animate.slideIn {
    animation: none !important;
    transform: none !important;
}

/* Empêcher le découpage du menu déroulant sur les petits écrans */
@media (max-width: 767.98px) {
    .dropdown-menu.show {
        position: static !important;
        float: none !important;
        width: auto !important;
        margin-top: 0.5rem !important;
        box-shadow: none !important;
        border: 1px solid rgba(0, 0, 0, 0.15) !important;
        background-color: #fff !important;
    }
}

/* S'assurer que les liens dropdown s'affichent correctement lorsqu'ils ont le focus */
.navbar .dropdown-toggle:focus + .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Correction spécifique pour le focus dans la navigation */
.navbar .nav-item.dropdown:focus-within .dropdown-menu {
    display: block !important; 
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    min-width: 100% !important;
}

/* Assurer que le dropdown s'affiche avec le focus */
.dropdown-toggle:focus {
    outline: 3px solid #B30A0A !important;
}