/********** Template CSS **********/

/* Mon CSS*/

@media (max-width: 768px) {

    .slogan {
        display: none;
    }


    .img-word.img-sm-word {
        width: 100%;
        height: 330px;
        margin-top: 15px;
        border-radius: 20px;
    }

    .map {
        scroll-margin-top: 110px;
    }
}

/* ACTIVITES */
.text-activity * {
    text-align: justify;
}


/* NOS MISSIONS */
.wrapper-mission {
    position: relative;
}

.wrapper-mission::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url(/img/MUNAP_DGB.png) center/52% no-repeat;
    opacity: 0.4;
    z-index: -1;
}

@media screen and (max-width: 767px) {
    .wrapper-mission::before {
        background: url(/img/MUNAP_DGB.png) center/150% no-repeat;
    }
}

.mission {
    color: #000;
    z-index: 10;
}

.star-list>li {
    position: relative;
    padding-left: 1.5em;
}


.star-list>li::before {
    content: '\2605';
    position: absolute;
    left: 0;
    color: gold;
}

/* CSS ACTUS TABS */

/* CSS carte */

.map__image path {
    fill: #b2beae;
    stroke: #FFF;
    stroke-width: 1px;
    transition: fill 0.3s;
}

.map__image path:hover {
    fill: var(--primary);
}

.bo {
    border-radius: 20px;
}

.decalage-haut {
    scroll-margin-top: 100px;
}

.allo-text {
    text-align: justify;
}

.img-word {
    width: 34%;
    height: 330px;
    border-radius: 20px;
}

.nested-paragraph {
    margin-left: 30px;
}

.underline-hover {
    position: relative;
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.underline-hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.underline-hover:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* CSS DOCUMENTATION */

.article {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.title-article {
    color: var(--primary);
}

.title-section {
    color: #cc6608;
}

.title-paragraph {
    color: #1b1108;
}

/* CSS TABLEAU */

.title-history {
    font-family: 'Poppins', sans-serif;
    font-size: larger;
    font-weight: 900;
}

ul.fleche-puce {
    list-style-type: none;
    padding-left: 0.5rem;
}

ul.fleche-puce li::before {
    content: "➙";
    margin-right: 0.5em;
}


/* Prestations / Allowances Cards */
.card-allowance {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-allowance .card-header-custom {
    height: 110px;
    max-height: 110px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.card-allowance .img-allowance {
    height: 250px;
    object-fit: cover;
}

.card-allowance .card-conditions-custom {
    height: 90px;
    max-height: 90px;
    overflow: hidden;
}

.card-allowance .card-pieces-custom {
    height: 220px;
    max-height: 220px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-allowance .list-group-custom {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-allowance .card-footer-custom {
    margin-top: auto;
}

/* Fin de Mon CSS*/

:root {
    /*--primary: #AB7442; */
    --primary: #0A58CA;
    --secondary: #F6C834;
    --light: #F8F9FA;
    --dark: #0F172A;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* CSS Toast Bus */
#toastContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    /* Ajoutez cette ligne pour définir une position relative */
}

#busToast {
    width: 300px;
    z-index: 1050;
    position: absolute;
    top: 20%;
    left: 28%;
    transform: translate(-50%, -50%);
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

/* Retirer l'effet Bootstap sur les bouttons */
.btn,
.btn.btn-primary,
.btn.btn-outline-light,
.btn.btn-link:focus {
    box-shadow: none;
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: none;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: transparent;
    border: 1px solid #FFFFFF;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header-docu {
    background: linear-gradient(rgba(53, 53, 53, .5), rgba(53, 53, 53, .6)), url(/img/header/docu.avif) center center no-repeat;
    background-size: cover;
}

.page-header-team {
    background: linear-gradient(rgba(53, 53, 53, .5), rgba(53, 53, 53, .6)), url(/img/header/team_members.jpg) center center no-repeat;
    background-size: cover;
}

.page-header-team-ca {
    background: linear-gradient(rgba(53, 53, 53, .5), rgba(53, 53, 53, .6)), url(/img/header/team_CA.jpg) center center no-repeat;
    background-size: cover;
}

.page-header-team-be {
    background: linear-gradient(rgba(53, 53, 53, .5), rgba(53, 53, 53, .6)), url(/img/header/team_BE.jpg) center center no-repeat;
    background-size: cover;
}

.page-header-team-cf {
    background: linear-gradient(rgba(53, 53, 53, .5), rgba(53, 53, 53, .6)), url(/img/header/team_CF.jpg) center center no-repeat;
    background-size: cover;
}

.page-header-team-stats {
    background: linear-gradient(rgba(53, 53, 53, .5), rgba(53, 53, 53, .6)), url(/img/header/team_stats.png) center center no-repeat;
    background-size: cover;
}

.page-header-team-predecessors {
    background: linear-gradient(rgba(53, 53, 53, .5), rgba(53, 53, 53, .6)), url(/img/header/predecessors.jpg) center center no-repeat;
    background-size: cover;
}

.page-header-news {
    background: linear-gradient(rgba(53, 53, 53, .5), rgba(53, 53, 53, .4)), url(/img/header/actus.jpg) center center no-repeat;
    background-size: cover;
}

.page-header-profile {
    background: linear-gradient(rgba(121, 65, 14, 0.719), rgba(121, 65, 14, 0.6));
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title h1 {
    position: relative;
    display: inline-block;
    padding: 0 60px;
}

.section-title.text-start h1 {
    padding-left: 0;
}

.section-title h1::before,
.section-title h1::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 5px;
    bottom: 0;
    background: var(--dark);
}

.section-title h1::before {
    left: 0;
}

.section-title h1::after {
    right: 0;
}

.section-title.text-start h1::before {
    display: none;
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}






/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-item img {
    transition: .5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Enhanced Portfolio Card Dynamic Effects */
.portfolio-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}




/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-social {
    position: absolute;
    width: 38px;
    top: 50%;
    left: -38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item:hover .team-social {
    left: 0;
}






/*** Footer ***/
.footer {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7));
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* --- MODERNIZATION REDESIGN --- */
body {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn,
.slogan {
    font-family: 'Poppins', sans-serif;
}

/* Buttons */
.btn {
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Login/Logout button in navbar: keep square */
.navbar .btn.btn-primary {
    border-radius: 0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -2px rgba(0, 0, 0, 0.1);
}

/* Remove button styles from plain links */
.btn-link {
    box-shadow: none !important;
    transform: none !important;
}

/* Navbar */
.navbar-light {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.navbar-light .navbar-nav .nav-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    transform: translateY(-1px);
}

/* Stats Section fieldset */
fieldset.bg-light {
    border: none !important;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    background-color: #ffffff !important;
}

fieldset.bg-light .m-3 {
    transition: transform 0.3s ease;
}

fieldset.bg-light .m-3:hover {
    transform: translateY(-5px);
}

/* Images & Cards */
.imgshadow {
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Partner Logos */
.wow.zoomIn img {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wow.zoomIn:hover img {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Tools Cards */
.wrapper-tools {
    position: relative;
}

.wrapper-tools::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url(/img/MUNAP_DGB.png) center/40% no-repeat;
    opacity: 0.08;
    z-index: 0;
}

.wrapper-tools>.container {
    position: relative;
    z-index: 1;
}

.tools-card {
    border-radius: 0 !important;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tools-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15);
}

.tools-card .card-img-top {
    height: 14rem;
    object-fit: cover;
    border-radius: 0 !important;
}

.tools-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Carousel Overlay (Glassmorphism) */
.owl-carousel-item .position-absolute {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Portfolio items hover (Activities Page) */
.portfolio-item>div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover>div {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
}