/* Définition des polices pour tout le site */
body {
    font-family: 'Poppins', sans-serif;
    color: #212529; /* Couleur de texte noir lisible */
    font-weight: 400; /* Poids normal par défaut */
    line-height: 1.6; /* Hauteur de ligne améliorée pour la lisibilité */
}

/* Style pour les titres avec police plus élégante */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* Texte en gras pour les titres */
    color: #000000; /* Noir pur pour les titres */
    letter-spacing: -0.01em; /* Espacement négatif pour un style plus moderne */
}

/* Style pour les paragraphes avec meilleure lisibilité */
p {
    color: #212529; /* Noir légèrement adouci */
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Style amélioré pour les liens */
a {
    color: #006400; /* Vert pour les liens */
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #004d00; /* Vert plus foncé au survol */
    text-decoration: underline;
}

/* Styles pour les éléments de navigation et structure */
.megamenu {
    display: none;
    position: absolute;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    border-top: 1px solid #006400;
}

.megamenu ul {
    padding-left: 20px;
}

.megamenu ul li {
    list-style: none;
}

/* Style amélioré pour la navigation et le header complet */
.headerafvudg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    background-color: #006400; /* Fond vert foncé pour tout le header */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 100, 0, 0.15);
    color: white;
}

/* Barre supérieure également en vert */
.headerBar {
    background-color: #006400 !important; /* Force le même vert que la navbar */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0 !important; /* Plus compact */
}

/* Texte clair pour contraster avec fond foncé dans tout le header */
.headerBar, .headerBar a:not(.btn) {
    color: white !important;
}

.navbar {
    position: relative;
    z-index: 2000;
    background-color: #006400; /* Garde le même fond vert */
    box-shadow: none; /* Supprime l'ombre pour éviter la séparation visuelle */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 1rem !important; /* Réduction du padding vertical */
    min-height: 50px; /* Hauteur réduite */
}

/* Améliorations des items de menu avec texte clair pour contraster avec fond foncé */
.navbar .nav-link {
    color: #ffffff !important; /* Texte blanc pour contraster avec le fond vert */
    font-weight: 500; /* Un peu moins gras */
    padding: 8px 15px !important; /* Padding réduit */
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem; /* Texte plus petit */
    letter-spacing: 0.5px; /* Légèrement plus d'espacement des lettres */
}

.navbar .nav-link:hover {
    color: #e0ffe0 !important; /* Vert très clair au survol */
    background-color: rgba(255, 255, 255, 0.1); /* Fond légèrement plus clair au survol */
    border-radius: 4px; /* Coins arrondis au survol */
}

/* Effet de soulignement au survol */
.navbar .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #ffffff; /* Soulignement blanc */
    bottom: 4px; /* Position ajustée */
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover:after {
    width: 50%; /* Moins large */
}

/* Style amélioré pour les dropdown menus */
.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    border-top: 2px solid #00a000; /* Bordure plus fine */
    margin-top: 5px; /* Espace réduit */
    min-width: 180px; /* Plus étroit */
    font-size: 0.85rem; /* Texte plus petit */
}

/* Style pour les éléments du dropdown - texte noir et gras */
.dropdown-item {
    color: #000000;
    font-weight: 500;
    padding: 6px 15px; /* Padding réduit */
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: rgba(0, 100, 0, 0.1);
    color: #006400;
    padding-left: 20px; /* Moins de décalage */
}

/* Fixe le header en haut */
.headerafvudg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px; /* Hauteur réduite */
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 100, 0, 0.15);
}

/* Bouton toggle Menu */
.navbar-toggler, .fullmenu-toggler {
    border: none;
    background-color: rgba(240, 248, 240, 0.2);
    color: #ffffff;
    border-radius: 4px;
    width: 35px; /* Plus petit */
    height: 35px; /* Plus petit */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.navbar-toggler:hover, .fullmenu-toggler:hover {
    background-color: rgba(224, 240, 224, 0.3);
    transform: scale(1.05);
}

/* Espace membre button */
.btn-secondary {
    background-color: #006400;
    border: none;
    padding: 0.4rem 1rem; /* Plus petit */
    font-weight: 500;
    border-radius: 4px; /* Coins moins arrondis */
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 100, 0, 0.1);
    font-size: 0.85rem; /* Texte plus petit */
}

.btn-secondary:hover {
    background-color: #008000;
    transform: translateY(-1px); /* Moins de mouvement */
    box-shadow: 0 3px 6px rgba(0, 100, 0, 0.2);
}

/* Pour que le main ne passe pas sous le header */
main {
    margin-top: 70px; /* Ajusté à la nouvelle hauteur du header */
    padding: 1rem;
}

/* Bannière de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 9999;
}

.cookie-banner p {
    margin: 0;
}

.cookie-banner button {
    margin: 5px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Blocs "Restez informé" et "Restez connecté" */
.stay {
    background-color: rgb(235, 41, 93);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.stay2 {
    background-color: rgb(19, 236, 66);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(245, 37, 37, 0.1);
    margin-bottom: 2rem;
}

.bgContent {
    background-size: cover;
    background-position: center;
    min-height: 100%;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

.bgContent2 {
    background-size: cover;
    background-position: center;
    min-height: 100%;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

.pe-5 {
    padding-right: 3rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Titres et textes des blocs footer */
.blocFooterTitle {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.3;
    color: #e4e7ea;
}

.blocFooterExcerpt {
    font-size: 1rem;
    color: #f4f1f1;
}

.blocFooterReseaux {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.blocFooterReseaux li a {
    font-size: 1.5rem;
    color: #f2f6f2;
    transition: color 0.3s;
}

/* Style pour le menu du footer */
#logoFooter {
    max-height: 50px; /* Plus petit */
    margin: 0 10px; /* Espacement horizontal */
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Style du footer */
footer {
    padding-top: 2rem !important;
    padding-bottom: 1rem !important;
    font-size: 0.9rem; /* Texte plus petit */
}

/* Menu principal du footer */
#container-menu-principal-footer ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

#container-menu-principal-footer .nav>li {
    margin: 0 10px; /* Espacement réduit */
    position: relative;
}

/* Liens du menu footer - en noir et gras */
#container-menu-principal-footer .nav>li>a {
    color: #000000;
    font-weight: 600; 
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.85rem;
    padding: 3px 8px;
    border-radius: 3px;
}

#container-menu-principal-footer .nav>li>a:hover {
    color: #006400;
    background-color: rgba(0, 100, 0, 0.05);
}

/* Section copyright du footer */
#socket {
    margin-top: 1rem !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
}

#socket .nav {
    justify-content: center;
    gap: 1.5rem;
}

/* Liens de copyright - texte en noir et semi-gras */
#socket a {
    color: #000000;
    font-weight: 500;
    transition: all 0.2s ease;
}

#socket a:hover {
    color: #006400;
    text-decoration: none;
}

/* Fond gris très clair pour le footer */
.bg-gris_extralight {
    background-color: #f9f9f9;
}

/* Style pour le bouton "Espace membres" */
.couleurs {
    background-color: #940404 !important;
    font-size: 0.85rem; /* Texte plus petit */
    padding: 0.4rem 0.8rem !important; /* Plus compact */
}

/* Style pour les boutons sociaux dans le footer */
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Style pour les cartes dans le contenu */
.card {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
}

/* Style spécifique pour les sections de contenu */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #006400;
}

/* ======= STYLES MODERNES POUR LE FOOTER ======= */
.modern-footer {
    background-color: #f8f9fa;
    position: relative;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #006400, #00a651, #006400);
}

/* Styles pour les frames */
.frame {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Style pour le frame rouge */
.frame-red {
    background: linear-gradient(135deg, #7a0000, #990000);
    color: white;
}

.frame-logo-column {
    position: relative;
    background-color: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.frame-logo-column::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.2), transparent);
    z-index: 2;
}

.frame-logo {
    max-width: 85%;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    transition: transform 0.6s ease;
}

.frame-red:hover .frame-logo {
    transform: scale(1.05);
}

/* Style pour le frame avec image */
.frame-image {
    position: relative;
}

.frame-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.frame-image:hover .frame-bg-image {
    transform: scale(1.08);
}

.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.1) 100%);
    color: white;
}

/* Style pour le frame vert */
.frame-green {
    background: linear-gradient(135deg, #004d00, #00a651);
    color: white;
    position: relative;
    overflow: hidden;
}

.frame-green::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.icon-highlight {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Styles des titres et textes dans les frames */
.frame-title {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 2px 3px rgba(0,0,0,0.2);
}

.frame-text {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.95;
}

/* Style pour les boutons dans les frames */
.btn-frame {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.frame-red .btn-frame {
    background-color: white;
    color: #990000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.frame-red .btn-frame:hover {
    background-color: #f8f8f8;
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.frame-green .btn-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

/* Section de contact */
.contact-section {
    margin-top: 3.5rem;
}

.contact-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-title {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #00a651;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f0f9f2;
    color: #00a651;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover .icon-circle {
    background-color: #00a651;
    color: white;
    transform: scale(1.05);
}

.contact-details h6 {
    margin-bottom: 0.2rem;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.contact-details a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.contact-details a:hover {
    color: #00a651;
}

/* Réseaux sociaux */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background-color: #f0f0f0;
    color: #555;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-link.whatsapp-link:hover {
    background-color: #25D366;
    color: white;
}

.social-link.facebook-link:hover {
    background-color: #3b5998;
    color: white;
}

.social-link.youtube-link:hover {
    background-color: #FF0000;
    color: white;
}

.social-link.linkedin-link:hover {
    background-color: #0077b5;
    color: white;
}

.social-link.instagram-link:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

/* Section copyright */
.copyright-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    color: #555;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: #444;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    font-weight: 500;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00a651;
    transition: width 0.3s ease;
}

.legal-links a:hover {
    color: #00a651;
}

.legal-links a:hover::after {
    width: 100%;
}

/* Bouton retour en haut */
#goToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
}

.go-top-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #00a651;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.go-top-icon:hover {
    background-color: #008a44;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .frame-title {
        font-size: 1.6rem;
    }
    
    .frames-section .col-lg-6:first-child {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .frame-logo-column, .frame-content-column {
        padding: 1.5rem;
    }
    
    .frame-title {
        font-size: 1.5rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .legal-links {
        gap: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .frame-title {
        font-size: 1.4rem;
    }
    
    .contact-card {
        padding: 1.2rem;
    }
    
    .icon-circle {
        width: 40px;
        height: 40px;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

