/********** Chad Volunteers Theme **********/
:root {
    --primary: #128935; /* Vert Chad Volunteers */
    --light: #F5F5F5;   /* Fond clair */
    --dark: #2F1C88;    /* Bleu institutionnel */
}

/*** Font Weights ***/
.fw-medium { font-weight: 500 !important; }
.fw-bold { font-weight: 700 !important; }
.fw-black { font-weight: 900 !important; }

/*** Back To Top ***/
.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;
}

/*** Buttons ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    border: none;
}

.btn.btn-primary:hover {
    background-color: #0F6F2D;
}

.btn.btn-secondary {
    background-color: var(--dark);
    color: #FFFFFF;
    border: none;
}

.btn.btn-secondary:hover {
    background-color: #1e146b;
}

.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

/*** Navbar ***/
.navbar-light {
    background-color: var(--dark);
}

.navbar-light .navbar-brand img {
    height: 60px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color:#2F1C88;
    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.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar-light a.btn {
    height: 75px;
}

/*** Header Carousel ***/
@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-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.active {
    background: var(--primary);
    border-color: var(--primary);
}

/*** 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(--primary);
}

.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);
    }
}

/*** Services ***/
.service-item img { transition: .5s; }
.service-item:hover img { transform: scale(1.1); }

/*** 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); }

.portfolio-item .portfolio-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    bottom: 0;
    left: 50%;
    background: rgba(47, 28, 136, .8);
    transition: .5s;
}

.portfolio-item:hover .portfolio-overlay {
    width: 100%;
    height: 100%;
    left: 0;
}

.portfolio-item .portfolio-overlay .btn {
    opacity: 0;
    transition: .3s;
}

.portfolio-item:hover .portfolio-overlay .btn {
    opacity: 1;
}

/*** Team ***/
.team-item {
    border: 2px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    transition: .3s;
}

.team-item:hover {
    box-shadow: 0 4px 12px rgba(18, 137, 53, 0.2);
}

.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:hover .team-social { left: 0; }

.team-item .team-social .btn {
    color: var(--primary);
    background: #FFFFFF;
    border: 1px solid var(--primary);
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background-color: var(--primary);
}

/*** Testimonials ***/
.testimonial-carousel .owl-item .testimonial-text {
    border: 5px solid var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

/*** Partner Slider ***/
.partner-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #ffffff;
    padding: 10px 0;
}

.partner-slider {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.partner-slide {
    min-width: 150px;
    margin: 0 10px;
}

.partner-slide img {
    max-width: 100%;
    height: 70px;
    display: block;
    border-radius: 10px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/*** Footer ***/
.footer {
    background-color: var(--dark);
    color: var(--light);
}

.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);
    border-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 {
    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;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a {
    color: var(--primary);
}

.footer .copyright a:hover {
    text-decoration: underline;
}

/*** Global Body ***/
body {
    background-color: var(--light);
    color: #333;
    font-family: "Poppins", sans-serif;
}
