@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

/* ==============================
   Palette “Benin Primary”
   ============================== */
:root {
    --b-primary: #006400;
    --b-primary-dark: #004d00;
    --b-primary-darker: #003300;
    --b-primary-light: #d9f2d9;
    --b-primary-border: #80c080;
    --b-primary-text: #fff;
    --b-primary-text-dark: #003300;
}

.text-success {
    color: var(--b-primary) !important;
}

.bg-b-success {
    background-color: var(--b-primary);
}

/* ==============================
   Boutons
   ============================== */

.btn-b-outline-primary {
    color: #006400;
    /* ton vert de base */
    border: 1px solid #006400;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
}

.btn-b-outline-primary:hover,
.btn-b-outline-primary:focus {
    color: #fff;
    background-color: #006400;
    border-color: #006400;
}

.btn-b-outline-violet {
    color: rgb(24, 38, 111);
    border: 1px solid rgb(24, 38, 111);
    background-color: transparent;
    transition: all 0.3s ease-in-out;
}

.btn-b-outline-violet:hover,
.btn-b-outline-violet:focus {
    color: #fff;
    background-color: rgb(24, 38, 111);
    border-color: rgb(24, 38, 111);
}

.btn-b-primary {
    --bs-btn-color: var(--b-primary-text);
    --bs-btn-bg: var(--b-primary);
    --bs-btn-border-color: var(--b-primary);
    color: #fff;
    background-color: #006400;
    border-color: #006400;
}

.btn-b-primary:hover {
    --bs-btn-bg: var(--b-primary-dark);
    --bs-btn-border-color: var(--b-primary-dark);
    color: #fff;
    background-color: #004d00;
    border-color: #004d00;
}

.btn-b-primary:active,
.btn-b-primary.active {
    --bs-btn-bg: var(--b-primary-darker);
    --bs-btn-border-color: var(--b-primary-darker);
    color: #fff;
    background-color: #003300;
    border-color: #003300;
}

.btn-b-primary:disabled {
    --bs-btn-bg: var(--b-primary-light);
    --bs-btn-border-color: var(--b-primary-light);
    color: #fff;
    background-color: #d9f2d9;
    border-color: #d9f2d9;
}

/* ==============================
   Backgrounds
   ============================== */
.b-primary {
    background-color: var(--b-primary) !important;
    color: var(--b-primary-text);
}

.b-primary-light {
    background-color: var(--b-primary-light) !important;
    color: var(--b-primary-text-dark);
}

/* ==============================
   Text
   ============================== */
.text-b-primary {
    color: var(--b-primary) !important;
}

.text-b-primary-dark {
    color: var(--b-primary-dark) !important;
}

/* ==============================
   Borders
   ============================== */
.border-b-primary {
    border-color: var(--b-primary) !important;
}

/* ==============================
   Alerts
   ============================== */
.alert-b-primary {
    color: var(--b-primary-text-dark);
    background-color: var(--b-primary-light);
    border-color: var(--b-primary-border);
}

/* ==============================
   Badges
   ============================== */
.badge-b-primary {
    background-color: var(--b-primary) !important;
    color: var(--b-primary-text);
}

/* ==============================
   Utilities personnalisées
   ============================== */
.bg-b-primary-light {
    background-color: var(--b-primary-light) !important;
}

.text-b-primary-light {
    color: var(--b-primary-light) !important;
}

.border-b-primary-light {
    border-color: var(--b-primary-light) !important;
}

/* ==============================
   Hover Utilities
   ============================== */
.bg-b-primary-hover:hover {
    background-color: var(--b-primary-dark) !important;
}

.text-b-primary-hover:hover {
    color: var(--b-primary-dark) !important;
}

.border-b-primary-hover:hover {
    border-color: var(--b-primary-dark) !important;
}

/* ==============================
   Navbar
   ============================== */

.navbar-scroll {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 1rem 0;
    transition: all 0.2s ease;
}


.navbar-scroll.scrolled {
    padding: 0.5rem 0;
    background-color: #ffffffcc;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767.98px) {
    .navbar-scroll {
        padding: 0.5rem 0;
    }

    .navbar-scroll.scrolled {
        padding: 0;
    }
}

.navbar-toggler:focus {
    box-shadow: 0px 0px 4px 0rem !important;
}


.nav_link {
    position: relative;
    display: inline-block;
}

.nav_link:after {
    bottom: 0;
    height: 2px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 0;
    --tw-bg-opacity: 1;
    background-color: rgb(25 135 84/var(--tw-bg-opacity));
    transition-duration: .3s;
    transition-property: width;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --tw-content: "";
    content: var(--tw-content);
}

.nav_link:hover:after {
    height: 2px;
    width: 80%;
}

@media (max-width: 767.98px) {
    /* Sur mobile, limiter le nav-link à la largeur de son contenu */
    .navbar-nav .nav-item {
        display: inline-block;
        width: auto;
    }
    
    .navbar-nav .nav-item .nav-link.nav_link {
        display: inline-block;
        width: auto;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .nav_link:after {
        left: 0;
        transform: none;
        width: 0;
    }
    
    .nav_link:hover:after {
        width: 100%;
    }
}


/* Par défaut */
.navbar-nav {
  gap: 0.25rem;
}

/* Grand écran */
@media (min-width: 998px) {
  .navbar-nav {
    gap: 1.5rem;
  }
}


/* Cartes mission/valeurs */
.card-mv {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
}

.card-mv:hover {
    transform: translateY(-8px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 100, 0, 0.12) !important;
}

/* Encart à gauche vert (border-start) - déjà appliqué via classes bootstrap */
.encart-mv {
    background-color: #fff;
}

/* Ajustements responsives si besoin */
@media (max-width: 767.98px) {
    .card-mv .rounded-circle {
        width: 44px;
        height: 44px;
    }
}

.card-cta {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
}

.card-cta:hover {
    transform: translateY(-8px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 100, 0, 0.15) !important;
}


/* ==============================
   Cards améliorées
   ============================== */
.news-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: none !important;
}

.news-card:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 100, 0, 0.15) !important;
    transform: translateY(-8px);
}

.news-card:hover .card-img-top {
    transform: scale(1.05);
}

.news-card img {
    object-fit: cover;
    height: 200px;
    transition: transform 0.3s ease;
}

.card-hover {
    transition: all 0.3s ease;
    border: none !important;
}

.card-hover:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 100, 0, 0.15) !important;
    transform: translateY(-5px);
}

#newsletter input.form-control-lg {
    border-radius: 0.25rem;
}

#newsletter button {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#newsletter button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(22, 28, 37, 0.15);
}

.carousel-caption {
    position: absolute;
    top: 0;
    bottom: 3rem;
    border-radius: 0px !important;
    left: 0%;
    background-color: rgba(0, 0, 0, 0.4) !important;
    height: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #fff;
    width: 100%;
    text-align: center;
}

/* ==============================
   Footer amélioré
   ============================== */
footer {
    background: #171717;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500;
}

footer,
footer>div.row>div>ul li a {
    color: #d1d1d1 !important;
}

footer,
footer>div.row>div>div>span a {
    color: #d1d1d1 !important;
}

footer,
footer>div.row>div>ul li a:hover {
    color: #ffffff !important;
}

/* Effets hover pour les liens du footer */
footer .hover-link {
    transition: all 0.3s ease;
    position: relative;
}

footer .hover-link:hover {
    color: #ffffff !important;
    padding-left: 5px;
    text-decoration: none;
}

footer .hover-link i.bi-chevron-right {
    transition: transform 0.3s ease;
}

footer .hover-link:hover i.bi-chevron-right {
    transform: translateX(3px);
}

/* Réseaux sociaux dans le footer */
footer a[aria-label] {
    transition: all 0.3s ease;
    display: inline-block;
}

footer a[aria-label]:hover {
    color: var(--b-primary) !important;
    transform: translateY(-3px);
}

/* Amélioration de la lisibilité */
footer .text-white-50 {
    opacity: 0.8;
}

footer h5, footer h6 {
    letter-spacing: 0.5px;
}

footer .border-bottom {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

footer hr.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Responsive footer */
@media (max-width: 991.98px) {
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 2rem;
    }
}

.breadcrumb-hero{
    height: 250px; 
    max-height: 300px; 
    overflow: hidden;
}

@media (max-width: 767.98px) { 
    .breadcrumb-hero{
        height: 150px;
    }
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #fff;
}

.overlay{
    background: rgba(0, 40, 20, 0.6);
}

/* Contact-form */

#contact input.form-control,
#contact textarea.form-control {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
}

#contact button {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#contact button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(22, 28, 37, 0.15);
}

@media (max-width:991.98px) {
    #contact .row.g-0 {
        flex-direction: column;
    }

    #contact .col-lg-5 {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 0.5rem;
        border-bottom-right-radius: 0.5rem;
        text-align: center;
    }
}

/* Contact form */

.mh-120 {

    min-height: 120px !important;
}

.text-justify {
  text-align: justify !important;
}
.cursor-pointer{
    cursor: pointer;
}
.wh-60{
    height: 60px;
    width: 60px;
}
.wh-50{
    height: 50px;
    width: 50px;
}
.wh-40{
    height: 40px;
    width: 40px;
}
.bg-azure-white{
    background-color:#f2f6f5;
}

.flag{
height:5px; width:100%;
}

.flag .bg-green{
background-color: green;
}

.flag .bg-yellow{
    background-color: yellow;
}

.flag .bg-red{
    background-color: red;
}

/* ==============================
   Page Article
   ============================== */
.article-content {
    color: #333;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 1.5rem 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--b-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--b-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.article-content a {
    color: var(--b-primary);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--b-primary-dark);
}

/* Hover link pour sidebar */
.hover-link {
    transition: all 0.3s ease;
}

.hover-link:hover {
    background-color: var(--b-primary-light) !important;
    color: var(--b-primary) !important;
    padding-left: 1rem !important;
}

/* ==============================
   Améliorations générales UI
   ============================== */

/* Bordures arrondies cohérentes */
.card {
    border-radius: 0.375rem !important;
}

.rounded {
    border-radius: 0.375rem !important;
}

/* Ombres améliorées */
.shadow-sm {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08) !important;
}

/* Badges améliorés */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.badge.rounded-pill {
    padding: 0.35em 0.75em;
}

/* Pagination améliorée */
.pagination .btn {
    min-width: 40px;
    transition: all 0.3s ease;
}

.pagination .btn:hover:not(.active) {
    background-color: var(--b-primary-light);
    border-color: var(--b-primary);
    color: var(--b-primary);
}

.pagination .btn.active {
    background-color: var(--b-primary);
    border-color: var(--b-primary);
}

/* Sections avec background alterné */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Espacements améliorés */
section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (max-width: 767.98px) {
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Titres avec séparateur */
.border-start {
    border-left-width: 4px !important;
}

/* Z-index pour icônes de catégorie */
.z-1 {
    z-index: 1;
}

/* Transitions fluides */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Amélioration des boutons */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 100, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

/* Amélioration des cartes de ressources */
.card .bg-light {
    background-color: #f8f9fa !important;
    border-radius: 0.375rem 0 0 0.375rem;
}

/* Responsive améliorations */
@media (max-width: 767.98px) {
    .card-body {
        padding: 1rem !important;
    }
    
    .wh-50, .wh-60 {
        width: 40px !important;
        height: 40px !important;
    }
}

/* ==============================
   Page Ressources
   ============================== */
.card-hover.resource-card {
    border: 1px solid transparent !important;
    transition: border-color 0.3s ease;
}

.card-hover.resource-card:hover {
    border: 1px solid #006400 !important;
}
