/********** Template CSS **********/
:root {
    --primary: #F1C152;
    --secondary: #FFF0E6;
    --light: #F8F8F9;
    --dark: #001D23;
}
p{
    text-align:justify;
        color: black;
}
.text-dark{
    font-style: italic;
}
.mb-5{
    color: black;
    text-align: justify;
}
.titre{
    font-size: 25px;
}
.notepad{
    font-size:10px;
}


.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-primary {
    background-color: #F1C152;
    border-color: #F1C152;
}
.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 ***/
 .btn {
    color: var(--contrast-color);
    font-size: 13px;
    padding: 7px 25px;
    margin: 0 0 0 30px;
    border-radius: 4px;
    transition: 0.3s;
    text-transform: uppercase;
    border: 2px solid var(--contrast-color);
    background-color: rgba(241, 193, 82, 1);
}

.btn:hover{
    border: 2px solid #f1c152;
}

.fixed-top {
    transition: .5s;
    background-color: #490183;
}
.navbar{
    background-color: #490183;
}


.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: #f1c152;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .fw-bold{
        margin-top: 15px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: var(--dark);
    }

    .navbar .navbar-nav .nav-link {
        padding: 5px 0;
    }
     #navbarCollapse{
     font-size: 15px;
    }
}

@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;
    }
    .fw-bold{
     font-size: 30px;
    }
    #navbarCollapse{
     font-size: 15px;
    }
}


/*** Header ***/
.carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  padding-left: 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(to right, rgba(26, 0, 51, 0.6), rgba(26, 0, 51, 0.3), transparent);
}

/* --- Titre principal --- */
.titre-bienvenue {
  font-size: 6vw;  /* taille fluide selon l’écran */
  font-weight: 800;
  color: #f1c152;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 10px;
}

/* --- Sous-titre --- */
.soustitre {
  font-size: 2vw;
  font-weight: 600;
  color: #f1c152;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}
.w-100{
 width: 100%;
 height: auto;
}
/* --- Ajustements pour tablettes --- */
@media (max-width: 992px) {
  .carousel-caption {
    align-items: center;
    text-align: center;
    padding-left: 0;
    background: rgba(0, 0, 0, 0.4);
  }
  .titre-bienvenue {
    font-size: 9vw;
  }
  .soustitre {
    font-size: 3.5vw;
  }
}

/* --- Ajustements pour petits écrans (smartphones) --- */
@media (max-width: 576px) {
  .carousel-caption {
    padding: 15px;
    background: rgba(0, 0, 0, 0.45);
  }
  .titre-bienvenue {
    font-size: 10vw;
    line-height: 1.1;
  }
  .soustitre {
    font-size: 4vw;
  }
}


/* ======================
   STYLES POUR GRAND ÉCRAN
====================== */
.w-100 {
  width: 100% !important;
  padding-top: 100px;
}

.display-1 {
  font-size: 120px;
  font-weight: 800;
  color: #f1c152;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 2px;
  animation: backcolor 5s linear infinite;
  background-image: linear-gradient(to right, #f1c152, #f7e8a2);
  -webkit-background-clip: text;
  color: transparent;
  background-size: 200%;
}

/* Animation plus fluide */
@keyframes backcolor {
  0% { background-position: 200% 0; }
  100% { background-position: 0 0; }
}

/* Sous-titre */
.soustitre {
  font-size: 28px;
  font-weight: 600;
  color: #f1c152;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

/* ======================
   STYLES POUR ÉCRANS ≤ 768px
====================== */
@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;
    padding-top: 0;
  }

  /* On recentre le texte et réduit les tailles */
  .carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    padding: 30px 15px;
    text-align: center;
    left: 0;
    right: 0;
  }

  .display-1 {
    font-size: 10vw; /* devient proportionnel à la largeur d'écran */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    animation: backcolor 8s linear infinite; /* plus lente sur mobile */
  }

  .soustitre {
    font-size: 4.5vw;
    line-height: 1.3;
    color: #ffe9a3;
  }
}

/* ======================
   PAGE HEADER
====================== */
.page-header {
  padding-top: 12rem;
  padding-bottom: 6rem;
  background: linear-gradient(rgba(0, 29, 35, .8), rgba(0, 29, 35, .8)), 
              url(../img/cover-privert2.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);
}

.center {
  text-align: center;
}

.pagination {
  display: inline-block;
}

.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
  border: 1px solid #ddd;
  margin: 0 4px;
}

.pagination a.active {
  background-color:  #FF6F0F;
  color: white;
  border: 1px solid #4CAF50;
}

.pagination a:hover:not(.active) {background-color: #ddd;}

#footer {
    position: relative;
    padding: 30px 0 25px 0;
    text-align: center;
    background-color: #490183;
}

#footer .social {
    position: relative;
    margin-bottom: 20px;
    
}

#footer a {
    color: #ffffff;
}

#footer a:hover {
    color: #FF6F0F;
}

#footer .social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    padding: 5px 5px;
    background: #FF6F0F;
    color: #222222;
    font-size: 20px;
    border-radius: 30px;
    background-color: #ffffff;
}

#footer .social a:hover {
    background: #ffffff;
    color: #FF6F0F;
}

#footer ul {
    margin: 0 0 5px 0;
    padding: 0;
    width: 100%;
    text-align: center;
}

#footer ul li {
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    display: inline-block;
    list-style-type: none;
    padding: 0 10px 0 0px;
    line-height: 15px;
    border-right: 1px solid #ffffff;
}

/* Footer responsive : écrans < 600px */
@media (max-width: 600px) {
    #footer .social a {
        width: 32px;
        height: 32px;
        font-size: 16px;
        padding: 4px;
        margin: 4px; /* petit espace entre les boutons */
    }

    #footer .social {
        display: flex;
        justify-content: center;
        flex-wrap: wrap; /* permet retour à la ligne */
        gap: 10px; /* espace uniforme */
    }

    #footer ul li {
        display: block; /* éléments en colonne */
        border-right: none;
        padding: 5px 0;
    }

    #footer {
        padding: 20px 0;
    }
}


#footer ul li:last-child {
    border-right: none;
}

#footer p {
    margin: 0;
    font-size: 18px;
}
.text-primary {
    color: #F1C152 !important;
}

.display-1{
 font-size: 120px;
 font-weight: 100px;
 color: transparent;
 background-image: linear-gradient(#F1C152,#F1C152);
 background-repeat: no-repeat;
 -webkit-background-clip: text;
 background-position: -750px 0px;
 animation: backcolor 5s linear infinite;
 color: #F1C152;
 text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}
@keyframes backcolor{
 100%{
  background-position: 0 0;
 }
}

.box-wrapper {
    width: 400px;
    margin: 0 auto;
}
.box.box-border
Specificity: (0,2,0)
 {
    box-shadow: none;
    border: 1px solid #f2f2f2;
}

.box {
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}
.box .box-body {
    padding: 30px;
}
.article{
 display: flex;
}

* ======================
   Boutons du carousel
====================== */
.carousel-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-carousel {
  display: inline-block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  
}

/* Bouton Accueil */
.btn-accueil {
  background-color: #f1c152;
  color: #3a0066;
  border: 2px solid #f1c152;
}

.btn-accueil:hover {
  background-color: transparent;
  color: #f1c152;
  border-color: #f1c152;
}

/* Bouton Galerie */
.btn-galerie {
  background-color: transparent;
  color: #f1c152;
  border: 2px solid #f1c152;
}

.btn-galerie:hover {
  background-color: #f1c152;
  color: #3a0066;
}

/* ======================
   Responsive (mobile)
====================== */
@media (max-width: 768px) {
  .carousel-buttons {
    justify-content: center;
  }

  .btn-carousel {
    font-size: 4vw;
    padding: 5px 18px;
  }
}


@media (max-width: 768px) {
  /* --- IMAGE DU CARROUSEL --- */
  #header-carousel .carousel-item {
    position: relative;
    min-height: 520px; /* un peu plus d’espace pour tout afficher */
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center; /* focus sur le président */
  }

  /* --- CAPTION (texte + boutons) --- */
  .carousel-caption {
   transform: none !important;    /* évite tout décalage Bootstrap */
    position: absolute;
    margin-bottom: 100px !important; /* 🔽 déplace le texte plus bas */
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
   
    border-radius: 0;
    background-color: rgba(0,0,0,0.55);
  }

  /* --- TITRE PRINCIPAL --- */
  .titre-bienvenue {
   
    font-size: 9vw;
    line-height: 1.1;
    color: #f1c152;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.8);
    margin-bottom: 10px;
  }

  /* --- SOUS-TITRE --- */
  .soustitre {
    font-size: 4.5vw;
    line-height: 1.3;
    color: #ffe9a3;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
  }

  /* --- BOUTONS --- */
  .carousel-buttons {
    justify-content: center;
    margin-top: 18px;
  }

  .btn-carousel {
    font-size: 4vw;
    padding: 10px 24px;
    border-radius: 10px;
  }
}
.pagination {
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    margin: 20px auto;
}
.img-fluid {
    max-width: 100%;
    height: auto;
}
