.carousel-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
}

.site-navbar .site-navigation .site-menu .has-children .dropdown > li {
    min-width: 400px;
}

/*#007C00  #005500 #004A01 #003500 #011F02*/

.site-navbar .site-navigation .site-menu .active {
    color: #005500 !important;
}

.sticky-wrapper.is-sticky .site-navbar ul li a {
    color: #00aa00 !important;
}

.sticky-wrapper .site-navbar {
    border-bottom: 1px solid #00aa00;
}

.top-bar{
    background-color: #00aa00
}


.card-primary.card-outline {
    border-top: 3px solid #458108;
}

.btn-primary {
    color: #fff;
    background-color: #458108;
    border-color: #458108;
    box-shadow: none;
}

.btn-primary:hover {
    color: #fff;
    background-color: #005500;
    border-color: #005500;
}

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #005500;
    border-color: #005500;
}

.btn-primary.focus, .btn-primary:focus {
    color: #fff;
    background-color: #005500;
    border-color: #005500;
    box-shadow: 0 0 0 0 rgba(38, 143, 255, .5);
}

a {
    color: #458108;
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    color: #005500;
    text-decoration: none;
}


/*.slider-container {*/
/*    max-width: 800px; !* Largeur maximale du slider *!*/
/*    margin: 0 auto; !* Centrer le slider horizontalement *!*/
/*}*/

.carousel-item img {
    max-width: 100%; /* Image ne dépasse pas la largeur du conteneur */
    max-height: 700px; /* Hauteur maximale de l'image */
    margin: 0 auto; /* Centrer l'image horizontalement */
}

.site-navbar .site-navigation .site-menu > li > a {
    font-weight: normal;
    text-transform: capitalize;
}

/*.vertical-center {*/
/*    min-height: 100%;  !* Force le conteneur à prendre toute la hauteur de la page *!*/
/*    display: flex;*/
/*    align-items: center;  !* Centre verticalement le contenu *!*/
/*}*/
.titre {
    /*font-size: 38px;*/
    font-weight: 700;
    color: #7AB529;
    padding-left: 20px;
    border-left: 0.5rem solid #7AB529;
}

footer h5{
    color: #eedd19;
}

.card-primary:not(.card-outline)>.card-header {
    background-color: #005500;
}

.logoPartenaire div img{
    width: 200px;
    height: 150px;

    margin-left: 20px;
}

.car-title{
    font-weight: bolder;
}



.article-link {
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.card-article{
    height: 100%;
    color: #0a0e14 !important;
}

p{
    color: #333333;
}

.priorite-text{
    text-align: justify;
}

/* Styles pour le contenu des articles avec formatage HTML */
.article-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-content strong,
.article-content b {
    font-weight: 700 !important;
    color: inherit;
}

.article-content em,
.article-content i {
    font-style: italic;
}

.article-content u {
    text-decoration: underline;
}

.article-content a {
    color: #458108;
    text-decoration: none;
}

.article-content a:hover {
    color: #005500;
    text-decoration: underline;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 0.5rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.article-content blockquote {
    border-left: 4px solid #458108;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #666;
}

.site-navbar .site-navigation .site-menu > li > a {
    color: #00aa00 !important;
    font-weight: normal;
    text-transform: capitalize;
    margin-left: 10px;
    margin-right: 10px;
}

.page-link {
    color: #005500;
}

.page-item.active .page-link {
    background-color: #005500;
    border-color: #005500;
}



/** css slider*/
/* CSS pour rendre le carousel responsive */
.responsive-carousel {
    position: relative;
    width: 100%;
    max-height: 100vh;
    overflow: hidden;
}

.carousel-image-container {
    width: 100%;
    height: 100vh; /* Hauteur adaptative */
    max-height: 650px; /* Hauteur maximale */
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintient le ratio de l'image tout en couvrant l'espace */
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    color: white;
    padding: 20px;
    text-align: center;
}

.car-title {
    font-size: clamp(24px, 5vw, 65px); /* Taille de police responsive */
    margin-bottom: 10px;
    font-weight: bold;
}

.carousel-caption {
    font-size: clamp(14px, 2vw, 20px);
}

/* Media queries pour différentes tailles d'écran */
@media (max-width: 768px) {
    .carousel-image-container {
        height: 60vh; /* Plus petit sur mobile */
    }

    .overlay {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-image-container {
        height: 50vh;
    }

    .car-title {
        margin-bottom: 5px;
    }

    .carousel-indicators {
        margin-bottom: 0.5rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
}

/* Amélioration de l'accessibilité */
.carousel-control-prev,
.carousel-control-next {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators li {
    width: 30px;
    height: 3px;
    margin: 0 3px;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Animation optionnelle pour la transition des slides */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Amélioration du contraste pour l'overlay */
.overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}
/* end css slider*/



/* Style pour la grille d'articles responsive */
.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.article-link:hover {
    text-decoration: none;
    color: inherit;
}

.card-article {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 100%;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.category-tag {
    display: inline-block;
    color: #00aa00;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Media Queries pour différentes tailles d'écran */
@media (max-width: 576px) {
    .card-title {
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .row-cols-sm-2 > * {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .row-cols-md-3 > * {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 992px) {
    .row-cols-lg-4 > * {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Ajustements pour les espaces entre les cartes */
.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Animation du hover */
/*@media (hover: hover) {*/
/*    .card-article {*/
/*        will-change: transform;*/
/*    }*/

/*    .card-article:hover .card-img-top {*/
/*        transform: scale(1.05);*/
/*        transition: transform 0.3s ease-in-out;*/
/*    }*/
/*}*/

/* Optimisation pour le chargement des images */
.card-img-top {
    transition: transform 0.3s ease-in-out;
    backface-visibility: hidden;
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}


/* Recaptcha*/
#g-recaptcha-response {
    display: block !important;
    position: absolute;
    margin: -78px 0 0 0 !important;
    width: 302px !important;
    height: 76px !important;
    z-index: -999999;
    opacity: 0;
}

/* Third-level submenu styles - Desktop */
.site-navbar .site-navigation .site-menu .has-children .dropdown a.has-submenu {
    position: relative;
    font-weight: 500;
    cursor: pointer;
    display: block;
}

.site-navbar .site-navigation .site-menu .has-children .dropdown a.has-submenu:after {
    content: "\e316";
    font-family: 'icomoon';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.site-navbar .site-navigation .site-menu .has-children .dropdown .submenu-container {
    width: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.site-navbar .site-navigation .site-menu .has-children .dropdown a.submenu-item {
    padding: 9px 20px;
    padding-left: 40px;
    display: block;
    font-size: 0.9rem;
    background: #f8f9fa;
    width: 100%;
}

.site-navbar .site-navigation .site-menu .has-children .dropdown a.submenu-item:hover {
    background: #e9ecef;
}

/* Third-level submenu styles - Mobile */
.site-mobile-menu .has-submenu {
    position: relative;
    display: inline-block;
    width: calc(100% - 36px);
}

.site-mobile-menu .submenu-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    text-align: center;
    cursor: pointer;
    border-radius: 50%;
    z-index: 20;
}

.site-mobile-menu .submenu-arrow:hover {
    background: #f8f9fa;
}

.site-mobile-menu .submenu-arrow:before {
    font-size: 12px;
    font-family: "icomoon";
    content: "\f078";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-180deg);
    transition: .3s all ease;
}

.site-mobile-menu .submenu-arrow.collapsed:before {
    transform: translate(-50%, -50%);
}

.site-mobile-menu .submenu-container {
    display: block !important;
    padding-left: 20px;
    background: #f8f9fa;
}

.site-mobile-menu .submenu-container.collapse:not(.show) {
    display: none !important;
}

.site-mobile-menu .submenu-container.collapse.show {
    display: block !important;
}

.site-mobile-menu .submenu-item {
    padding-left: 60px !important;
    font-size: 14px;
    background: #f8f9fa;
}

.site-mobile-menu .submenu-item:hover {
    background: #e9ecef;
}