




/********** Template CSS **********/
:root {
  --primary:#0d6efd ;
  --secondary: #757575;
  --light: #F3F6F8;
  --dark: #0C2B4B;
}

.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.my-6 {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

/* Bouton retour en haut */
.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;
}

.container-fluid.bg-dark a.btn i.fab {
    color: #fff;
    font-size: 24px; /* ou plus grand selon besoin */
    line-height: 1;
}



/*** Boutons ***/
.btn {
    font-weight: 500;
    transition: all .5s ease;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #fff;
}

/* Tailles carrées */
.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;
    display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem; /* optionnel, selon le style voulu */
  transition: background-color 0.3s, color 0.3s;
}

.btn-square:hover {
  background-color: var(--bs-primary) !important; /* couleur Bootstrap */
  color: #fff !important; /* icône en blanc */
  border-color: var(--bs-primary) !important; /* bordure assortie */
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

/*** Navbar ***/

.navbar.sticky-top {
  top: -100px;
  transition: top 0.5s;
}

/* Correction du sélecteur, .navbar.navbar-brand ne veut rien dire, probablement .navbar-brand ou .navbar a.btn */
.navbar-brand,
.navbar a.btn {
  height: 80px;
}

.navbar .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 25px 0;
  color: var(--dark);
  font-weight: 500;
  text-transform: uppercase;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

/* Correction de la font-family et espace en trop */
.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

@media (max-width: 991.98px) {
  /* Correction du sélecteur .navbar .navbar.navbar .nav-link */
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    border-top: 1px solid #EEEEEE;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, top 0.5s, visibility 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible; /* corrigé de hidden à visible */
    opacity: 1;
    transition: opacity 0.5s, top 0.5s, visibility 0.5s;
  }
}
/*** Header ***/

.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  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(--primary);
  border: 10px solid var(--primary);
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 200px;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
}

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover; /* ajouté pour bien couvrir */
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #999999; /* corrigé "columns" en "color" */
}

/*** Facts ***/

@media (min-width: 991.98px) {
  .facts {
    position: relative;
    margin-top: -75px;
    z-index: 1;
  }
}


/*** Courses ***/

.courses {
   min-height: 100vh;
   background: 
     linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
     url(../img/carousel-1.jpg) center center no-repeat;
   background-attachment: fixed;
   background-size: cover;
   position: relative; /* au cas où tu as des enfants en position absolue */
}

.courses-item {
   position: relative; /* important pour que .courses-overlay se positionne relativement à .courses-item */
   overflow: hidden; /* pour cacher ce qui dépasse, notamment lors de la transition */
}

.courses-item .courses-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 0;
   background: rgba(0, 0, 0, 0.5);
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0; /* ajouter pour que l'overlay soit invisible initialement */
   overflow: hidden;
   transition: height 0.5s ease, opacity 0.5s ease; /* préciser les propriétés */
}

.courses-item:hover .courses-overlay {
   height: 100%;
   opacity: 1;
}


/*** Team ***/

.team-items {
   margin: -0.75rem; /* Pas d'espace entre les items, OK */
   position: relative; /* Ajouté au cas où les enfants utilisent position absolute */
}

.team-item {
  position: relative; /* Nécessaire pour les pseudo-éléments positionnés */
  padding: 0.75rem;
  overflow: hidden; /* Pour éviter que les pseudo-éléments débordent */
}

/* Pseudo-élément utilisé comme fond animé */
.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: height 0.5s ease; /* Correction : on met transition sur la propriété 'height' */
    z-index: -1;
}

.team-item:hover::after {
   height: 100%;
   background: var(--primary);
}

/* Overlay social au-dessus de l'item */
.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    overflow: hidden;
    opacity: 0;
    transition: height 0.5s ease, opacity 0.5s ease; /* Ajouté une transition sur opacity aussi */
}

.team-item:hover .team-social {
   height: 100%;
   opacity: 1;
}


/*** Testimonial ***/

/* Conteneur des points (dots) */
.testimonial-carousel .owl-dots {
  height: 100%;
  opacity: 1;
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* espace entre les points */
}

/* Chaque point */
.testimonial-carousel .owl-dots .owl-dot {
   position: relative;
   display: inline-block;
   margin: 0 5px;
   width: 20px;
   height: 20px;
   background: transparent;
   border: 2px solid var(--primary);
   border-radius: 50%; /* pour faire un cercle */
   cursor: pointer;
   transition: all 0.5s ease;
}

/* Point actif */
.testimonial-carousel .owl-dots .owl-dot.active {
   width: 40px;
   height: 40px;
   background: var(--primary);
}

/* Image dans chaque élément du carousel */
.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
    object-fit: cover; /* pour que l'image garde ses proportions */
    border-radius: 50%; /* image ronde, souvent utilisé pour témoignages */
}

/*** Footer ***/

.footer .btn.btn-link {
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: color 0.3s, letter-spacing 0.3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900; /* correspond au style 'solid' */
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
    cursor: pointer;
}

.copyright {
    background: #092139;
}

.copyright a {
    color: var(--primary);
    text-decoration: none; /* optionnel, selon ton design */
}

.copyright a:hover {
    color: var(--light);
    text-decoration: underline; /* optionnel */
}

.btn-link {
  text-decoration: none !important;  /* removes underline */
}

.btn-link:hover,
.btn-link:focus {
  text-decoration: none !important;  /* keeps it removed on hover/focus */
}


.img-ico {
    width: 100px;
    height: 100px; /* garde les proportions */
}


/*CSS End */