.nav-main::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    background-color: #a5d061;
    transition: width 0.6s ease;
}

.nav-main:hover::after {
    width: 100%;
}

.nav-main.page-active::after {
    width: 100%;
}

.dropdown-menu {
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    min-width: 350px;
    background: #a5d061;
    color: white;
    border: 1px solid #a5d061;
}

.dropdown-item {
    margin: 4px 0;
    padding: 8px 15px;
    color: white;
}

.dropdown-item:hover {
    background-color: #8bc34a;
    color: white;
}

.carousel-inner img {
    height: 255px;
    object-fit: cover;
}

.carousel-caption {
    bottom: 0;
    text-shadow: 0 0 10px #000;
    background-color: #9b8876cc;
    color: white;
    pointer-events: none;
}

.carousel-caption-left {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background-color: #9b8876cc;
    color: white;
    text-shadow: 0 0 10px #000;
}

@media (max-width: 767px) {
    .carousel-caption-left {
        width: 50%;
        padding: 10px;
    }
}

.carousel-item .carousel-image {
    height: 325px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.carousel-item .carousel-image.no-image {
    background-color: #f0edea;
}

@media (max-width: 767px) {
    .carousel-item .carousel-image {
        height: 225px;
    }
}

.carousel-caption h5 {
    font-size: 1.5rem;
}

.barre-verte {
    width: 65px; 
    background-color: #a5d061; 
    height: 3px; 
    margin-bottom: 1em;
}

.barre-verte.center {
    margin: 0 auto 1em;
}

.barre-marron {
    width: 65px; 
    background-color: #514539; 
    height: 3px; 
    margin-bottom: 1em;
}

  .badge.bg-cepvil {
    text-shadow: 1px 1px 1px #000;
  }

  .youtube-player {
    border: 0; 
    width: 100%; 
    height: 400px;
  }

  .mentionslegales-container {
    position: relative;
  }
  
  .mentionslegales-logo-cuma {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
  }

  .w-10 {
    width: 10%;
  }

  .bg-footer {
    background-color: #514539;
    color: #fff
  }
  .footer2 {
    background-color: #9b8876;
    color: #fff;
    padding-bottom: 1rem;
    padding-top: 1rem;
  }

  .footer2 a {
    color: #fff;
    text-decoration: none;
  }

  .footer2 a:hover {
    color: #ddd;
  }

  .footer a {
    color: #fff;
    text-decoration: none;
  }

  .footer a:hover {
    color: #ddd;
  }

  .btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.3s ease;
  }

  .btn-circle:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }

  figcaption {
    background-color: #514539;
    color: #fff;
    padding: 8px;
  }

  figure {
    position: relative;
  }

  figure figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
  }

  .footer ul {
    list-style: none;
    padding-left: 0;
  }

  .footer ul li {
    margin-bottom: 8px;
  }

  .img-index {
    width: 85% !important;
  }

  .btn-vert {
    background-color: #a5d061;
    color: #000000;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
    font-weight: bold;
    font-size: 1.4rem;
  }

  .btn-vert:hover {
    background-color: #7dc1ee;
    color: #fff;
    transition: background-color 0.3s ease;
  }

  .w-80 {
    width: 80%;
  }

  .carousel-control-prev, .carousel-control-next {
    width: 5%;
  }
  .carousel-control-prev-icon, .carousel-control-next-icon {
    width: 50px;
    height: 50px;
  }

  .rounded-carousel {
    border-radius: 15px;
  }

  .date-position {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

#carouselHeader
{
    position: relative;
}

#carouselHeader:after
{
    content: '' !important;
    background: url(../../assets/img/curve-green.svg) no-repeat transparent bottom center !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -.625rem !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 10px !important;
    background-size: cover !important;
}

#bloc-banner
{
    position: relative;
}

#bloc-banner:after
{
  content: '';
  background: url(../../assets/img/curve-brown.svg) no-repeat transparent bottom center;
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.625rem;
  z-index: 1;
  width: 100%;
  height: 10px;
  background-size: cover;
  border-top: 2px solid #514539;
}

/** MEDIA QUERIES **/
@media (max-width: 767px) {
    .dropdown-menu {
        min-width: 460px;
    }

    .nav-item a.btn {
        width: 100%;
        text-align: center;
    }

    .carousel-img-mobile {
        height: 300px !important;
        object-fit: cover !important;
    }
}

@media (max-width: 499px) {
    .dropdown-menu {
        min-width: 360px;
        overflow-y: auto;
    }
    .dropdown-menu .fs-5 {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 992px) {  /* Ajustez le breakpoint selon vos besoins */
    .navbar-collapse {
      max-height: calc(100vh - 60px);
      overflow-y: auto;
    }
  }

@media (min-width: 992px) and (max-width: 1399px) {
    .navbar-nav.fs-3 {
      font-size: 1.25rem !important;
    }

    .logo-navbar {
        width: 60% !important;
    }
}

@media (min-width: 387px) and (max-width: 574px) {  /* Ajustez le breakpoint selon vos besoins */
    #carouselHeader .carousel-caption h5{
        font-size: 20px;
    }

    #carouselHeader .carousel-caption p{
        font-size: 18px;
    }
}

@media (min-width: 344px) and (max-width: 386px) {  /* Ajustez le breakpoint selon vos besoins */
    #carouselHeader .carousel-caption h5{
        font-size: 16px;
    }

    #carouselHeader .carousel-caption p{
        font-size: 14px;
    }
}

@media (max-width: 343px) {  /* Ajustez le breakpoint selon vos besoins */
    #carouselHeader .carousel-caption h5{
        font-size: 14px;
    }

    #carouselHeader .carousel-caption p{
        font-size: 12px;
    }
}

@media (min-width: 1199px) and (max-width: 1399px) { 
  .navbar ul.navbar-nav {
    font-size: 15px !important;
  }
}

@media (min-width: 992px) and (max-width: 1198px) { 
  .navbar ul.navbar-nav {
    font-size: 12px !important;
  }
}

.card-img-top {
  height: 240px;
}

.carousel-height {
  height: 255px;
}

.demarche-qualite {
    background-color: #a2bd2f;
    width: 100%;
    padding: 30px 20px;
    color: #fff;
    position: relative;
    background-image: url(../../assets/img/accueil/logo-mbe-arbre-blanc-qualite.svg);
    background-repeat: no-repeat;
    background-position-x: right;
    background-position-y: bottom;
    min-height: 38.75rem;
}

.demarche-qualite h2 {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.demarche-qualite p {
    font-size: .95em;
    color: #fff;
    margin-bottom: 30px;
}

.demarche-qualite a {
    display: inline-block;
    background: #514539;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;  
}

.demarche-qualite a:hover {
    color: #9b8876;
}

.actualites-sidebar {
    background-color: #f0edea;
    width: 100%;
    padding: 30px 20px;
    color: #514539;
}

.actualites-sidebar h2,
.actualites-sidebar h3 {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: #514539;
}

.actualites-sidebar p {
    font-size: .95em;
    color: #514539;
    margin-bottom: 10px;
}

.actualites-sidebar .actualite-titre-sidebar {
    font-size: 1em;
    margin-bottom: 5px;
    color: #a2bd2f;
}

.actualites-sidebar .actualite-date-sidebar {
    margin-bottom: 10px;
    color: #514539;
}

.actualites-sidebar .btn {
    display: inline-block;
    background: transparent;
    color: #9b8876;
    border: 2px solid #9b8876;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.actualites-sidebar .btn:hover {
    background: #514539;
    color: #f0edea;
    border-color: #f0edea;
}

.actualites-sidebar ul li a {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 1em;
    font-weight: normal;
    letter-spacing: normal;
    color: #514539;
    border: none;
}

.btn-lire-suite {
    display: inline-block;
    background: #514539;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-left: 0;
    transition: background-color 0.3s ease, color 0.3s ease, margin-left 0.25s ease;
}

.btn-lire-suite::after {
    content: " >";
}

.section-title {
    font-size: 1.3em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles pour les actualités */
.actualite-categorie-date {
    font-size: 0.85em;
    color: #666;
}

.actualite-sous-titre {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    margin: 0 auto 15px auto;
    flex-shrink: 0;
}

/* Conteneur pour centrer le bouton verticalement */
.actualite-col-droite {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.text-large {
    font-size: 1.5em;
    text-transform: uppercase;
    color: #9b8876;
}

.text-extra-large {
    font-size: 2em;
    text-transform: uppercase;
    color: #9b8876;
}

.text-medium {
    font-size: 1.2em;
    color: #9b8876;
}

.text-medium-large {
    font-size: 1.3em;
    color: #9b8876;
}

.btn-lire-suite:hover {
    background: #9b8876;
    color: #fff;
    margin-left: 0.625rem;
}

.card-actualite img {
  width: 100% !important;
}

.btn-decouvrir {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: #9b8876;
    border: 1px solid #9b8876;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-decouvrir:hover {
    background-color: #a2bd2f;
    color: white;
    border-color: #a2bd2f;
}

.btn-actuIndex {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-actuIndex:hover {
    background-color: #a2bd2f;
    color: white;
    border-color: #a2bd2f;
}

.card-brown {
    position: relative;
    background-color: #514539;
    color: white;
    font-size: 1.5rem;
    border: none;
}

.card-brown a {
    color: white;
    text-decoration: none;
}

.card-brown .card-icon {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.bloc-actuIndex {
    background-color: #514539;
    width: 100%;
    padding: 30px 20px;
    color: #fff;
}

.bloc-actuIndex h2 {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.bloc-actuIndex p {
    font-size: .95em;
    color: #fff;
    margin-bottom: 30px;
}

/* Styles pour le bandeau d'actualités */
.bandeau-actu-bg {
    background-color: #9b8876 !important;
}

.bandeau-actu-titre {
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 10px;
    font-size: 1.5rem;
}

.bandeau-actu-sous-titre {
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 10px;
    font-size: 1.2rem;
}

.bandeau-actu-info {
    color: black;
    font-size: .875rem;
    margin-top: 10px;
    padding: 0 10px;
}

/* Bouton du bandeau d'actualités */
.bandeau-actu-btn {
    margin-top: 10px;
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.bandeau-actu-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Styles pour l'actualité unique */

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #9b8876;
}

.actualite-contenu {
    line-height: 1.6;
    font-size: 1.1rem;
}

.actualite-contenu img {
    max-width: 100% !important;
}

/* Fond du bloc carousel */
.bg-partenaires-carrousel {
  width: 100%;
  margin-left: calc(-50vw + 50%);
}

#row-carrousel {
  background: rgba(162,189,47,.15);
}

/* Titre stylisé */
.titre-partenaires {
  color: #a2bd2f;
  font-size: 1.75rem;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 2px;
}
/* Viewport : masque le dépassement, seules les images complètes sont affichées */
#carousel-partenaires-viewport {
  overflow: hidden;
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
/* Container d'images, slide horizontal, aucune image coupée */
#carousel-partenaires-cards {
  display: flex;
  gap: 22px;
  min-height: 220px;
  transition: transform 0.38s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
/* Carte image carrée, centrée, jamais coupée */
.card-partenaires {
  width: 200px;
  height: 200px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto; /* La largeur ne varie jamais, pas d'image coupée */
}
.partenaires-image {
  width: 180px;
  height: 180px;
  object-fit: contain;
  background: #fff;
  border-radius: 1rem;
  padding: 10px;
  box-shadow: 0 4px 18px #a2bd2f1a;
  display: block;
  margin: auto;
}
/* Chevrons stylisés en accord avec le titre */
.bouton-partenaires-prev,
.bouton-partenaires-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.4rem;
  height: 3.4rem;
  z-index: 15;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bouton-partenaires-prev { left: 18px; }
.bouton-partenaires-next { right: 18px; }
.carousel-chevron {
  font-size: 3rem;
  color: #a2bd2f;
  transition: color 0.2s;
  user-select: none;
  line-height: 1;
}
.bouton-partenaires-prev:hover .carousel-chevron,
.bouton-partenaires-next:hover .carousel-chevron {
  color: #7ea022;
}
/* Responsive : grossit ou réduit la taille selon le viewport */
/* 5 images desktop XL */
@media (min-width: 1200px) {
  .card-partenaires { width: 200px; height: 200px; }
  .partenaires-image { width: 180px; height: 180px; }
}
/* 4 images desktop */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .card-partenaires { width: 165px; height: 165px; }
  .partenaires-image { width: 150px; height: 150px; }
  #carousel-partenaires-cards { min-height: 180px; gap:16px;}
}
/* 3 images tablette */
@media (min-width: 768px) and (max-width: 991.98px) {
  .card-partenaires { width: 120px; height: 120px; }
  .partenaires-image { width: 110px; height: 110px; }
  #carousel-partenaires-cards { min-height: 130px;gap:10px;}
}
/* 2 images téléphone : taille encore lisible */
@media (max-width: 767.98px) {
  .card-partenaires { width: 140px; height: 140px; }
  .partenaires-image { width: 130px; height: 130px; }
  #carousel-partenaires-cards { min-height: 150px;gap:10px;}
}

/* Contact form styles */
.contact-form-wrapper {
    background-color: white;
    padding: 20px;
}

.contact-form-special {
    background-color: #a2bd2f;
}

.contact-form-special h2 {
    color: white;
}

.contact-form-special .btn i {
    color: white;
    font-size: 1.5em;
}

.btn-contact-submit {
    display: inline-block;
    padding: 10px 20px;
    background-color: #514539;
    color: white;
    border: 1px solid white;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    cursor: pointer;
}

.btn-contact-submit:hover {
    background-color: #a2bd2f;
    color: white;
    border-color: #a2bd2f;
}

.btn-contact-submit-special {
    background-color: transparent;
}

.btn-contact-submit-special:hover {
    background-color: #514539;
}

/* Custom nav font size - responsive */
.custom-nav-font {
    font-size: 14px !important;
}

@media (min-width: 768px) {
    .custom-nav-font {
        font-size: 15px !important;
    }
}

@media (min-width: 992px) {
    .custom-nav-font {
        font-size: 17px !important;
    }
}

/* Image circle for sidebar */
.img-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 10px 0;
    border: 2px solid #ddd;
    transition: filter 0.3s ease, border-color 0.3s ease;
}

.img-circle:hover {
    filter: blur(1px);
    border-color: #514539;
}

/* Bouton Contact pour les popups */
.btn-popup-contact {
    background-color: #514539 !important;
    color: white !important;
    border: none !important;
    border-radius: 1.875rem !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-weight: bold !important;
    margin-top: 10px !important;
}

.btn-popup-contact:hover {
    background-color: #3d3329 !important;
    color: white !important;
}

.link-green {
    color: #a2bd2f;
    text-decoration: none;
}

.link-green:hover {
    color: #a2bd2f !important;
}

/* Icône + pour dropdowns mobiles */
.fa-plus {
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px 10px;
    margin-left: 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
    
}

.fa-plus:hover {
    background-color: rgba(0,0,0,0.1);
}

/* Styles pour le burger menu : icône à droite des liens */
@media (max-width: 991px) {
    .nav-link {
        display: inline-block;
        width: 50%;
    }
    
    .fa-plus {
        float: right;
    }
}

/* Styles pour le tableau des plateformes */
.table-header {
    background-color: #514539;
    color: white;
}

.table-header td {
    background-color: #514539;
    color: white;
}

.table-row:nth-child(odd) {
    background-color: white;
}

.table-row:nth-child(even) {
    background-color: #f0f0f0; /* gris clair */
}

/* Styles pour blockquote */
blockquote {
    border-left: .3125rem solid #514539;
    background: rgba(155, 136, 118, .15);
    padding: 1.5625rem .9375rem 1.5625rem 2.5rem;
}