/********** Template CSS **********/
:root {
    --primary: #84EA0B;
    --secondary: #FFF0E6;
    --light: #F8F8F9;
    --dark: #001D23;
}



.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    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;
}


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

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn.btn-primary:hover {
    color: var(--primary);
    background: transparent;
}

.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 ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: var(--dark);
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 29, 35, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: linear-gradient(rgba(0, 29, 35, .8), rgba(0, 29, 35, .8)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Causes ***/
.causes-item .progress {
    height: 5px;
    border-radius: 0;
    overflow: visible;
}

.causes-item .progress .progress-bar {
    position: relative;
    overflow: visible;
    width: 0px;
    border-radius: 0;
    transition: 5s;
}

.causes-item .progress .progress-bar span {
    position: absolute;
    top: -7px;
    right: 0;
    width: 40px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: var(--primary);
    color: #FFFFFF;
}

.causes-item .causes-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.causes-item:hover .causes-overlay {
    height: 100%;
    opacity: 1;
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
}


/*** Donate ***/
.donate {
    background: rgba(0, 29, 35, .8);
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked+label {
    color: var(--primary);
    border-color: var(--primary);
}


/*** Team ***/
.team-item img {
    position: relative;
    top: 0;
    transition: .5s;
}

.team-item:hover img {
    top: -30px;
}

.team-item .team-text {
    position: relative;
    height: 100px;
    transition: .5s;
}

.team-item:hover .team-text {
    margin-top: -60px;
    height: 160px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
}

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


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

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

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    background: var(--primary) !important;
} 

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    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);
}


/*** Footer ***/

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,0.5);
    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;
    color: rgba(255,255,255,0.5);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-square {
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.5);
}

.footer .btn.btn-square:hover {
    color: var(--secondary);
    border-color: var(--light);
}

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

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

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


   .mexeo-hover {
        transition: background-color 0.3s, box-shadow 0.3s;
    }
    .mexeo-hover:hover {
        background-color: #f0f8ff; /* Couleur de fond au survol */
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

.position-relative {
    position: relative;
}

.causes-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Couleur semi-transparente pour l'overlay */
    display: none; /* Caché par défaut */
    z-index: 1;
}

.position-relative:hover .causes-overlay {
    display: flex; /* Affiche l'overlay et le bouton en survol */
}


.cover-image {
    object-fit: cover; /* Permet à l'image de couvrir toute la zone */
    border-radius: 0.5rem; /* Ajoute un léger arrondi aux coins de l'image */
}


.donate-btn {
    z-index: 2; /* Assure que le bouton est au-dessus de l'overlay */
}

.card{border:none!important;border-radius:25px;}


 .card img {
            width: 100%;
            height: auto;
            object-fit: cover;
            filter: brightness(70%);
            transition: transform 0.3s ease, filter 0.3s ease;
        }

      .work  .card:hover img {
            transform: scale(1.1);
            filter: brightness(50%);
        }

        .card-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            text-align: center;
            z-index: 2;
        }

       

        .card-content p {
            font-size: 1rem;
            margin: 10px 0;
            text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
        }

        .card-content a {
            text-decoration: none;
            padding: 10px 20px;
            color: white;
            border: 2px solid white;
            border-radius: 50px;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .card-content a:hover {
            background-color: white;
            color: black;
        }


.work img, .work video{
    border-radius:  15px;
}



/* Largeur 100% sur les petits écrans (moins de 576px) */
@media (max-width: 575px) {
     .card-content h5 {
            font-size: 1.5rem;
            font-weight: bold;
            text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
            color:white;
            font-weight:bold;
        }
}

@media (min-width: 576px) and (max-width: 767px) {
     .card-content h5 {
            font-size: 1rem;
            font-weight: bold;
            text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
            color:white;
            font-weight:bold;
        }
}

@media (min-width: 768px) and (max-width: 991px) {
     .card-content h5 {
            font-size: 1rem;
            font-weight: bold;
            text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
            color:white;
            font-weight:bold;
        }
}

@media (min-width: 992px) and (max-width: 1199px) {
     .card-content h5 {
            font-size: 1.5rem;
            font-weight: bold;
            text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
            color:white;
            font-weight:bold;
        }
}

@media (min-width: 1200px) {
     .card-content h5 {
            font-size: 1.5rem;
            font-weight: bold;
            text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
            color:white;
            font-weight:bold;
        }
}


   .hero4-section {
      position: relative;
      background: url('https://vemm-reunion.org/uploads/Volunteer.jpg') no-repeat center center/cover;
      height: 90vh;
      color: white;
    }
    .hero4-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
    }
    .hero4-content {
      position: relative;
      z-index: 2;
    }
    .hero4-button {
      background-color: #ffc107;
      border: none;
      font-weight: bold;
    }
    
    
    .article-card {
      border: none;
      overflow: hidden;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      border-radius: 8px;
    }
    
    
    .article-card img {
      object-fit: cover;
        height: 400px !important;
    }
    
    .article-card video {
      object-fit: cover;
        height: 400px !important;
    }
    .article-date {
      position: absolute;
      top: 15px;
      left: 15px;
      background-color: #28a745;
      color: white;
      font-weight: bold;
      padding: 10px 15px;
      border-radius: 5px;
    }
    .article-date span {
      display: block;
      text-align: center;
    }
    .article-meta {
      color: gray;
      font-size: 14px;
    }
    .article-title {
      font-size: 1.5rem;
      font-weight: bold;
    }

    .text-left{text-align:left;}
    
    
        
.parallax {
    position: relative;
    background-image: url("https://vemm-reunion.org/uploads/Background.jpg");
    background-attachment: fixed; /* Image fixée */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
      /* Flexbox centering */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
}

.parallax::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Overlay semi-transparent noir */
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2; /* Ensure content is above the overlay */
    color: white; /* White text for contrast */
    font-weight:bold;
    text-align: center;
}




.about .card-header{border:none!important;background:green;color:white;font-weight:bold;}
.about .card{border:none!important}







 #cookiePopup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
    display: none; /* Caché par défaut */
}

#cookiePopup.show {
    display: block; /* Affiché lorsque la classe "show" est ajoutée */
}

#cookiePopup p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #333;
}

#cookiePopup button {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#cookiePopup .accept {
    background-color: #28a745;
    color: white;
}

#cookiePopup .reject {
    background-color: #dc3545;
    color: white;
}