
/* Global */

a {
 text-decoration: none !important;
}
.pagination .page-item.active .page-link {
    border-color: #FFC107 !important; /* couleur warning */
}


/* Carousel */

/* Desktop par défaut */
.carousel .carousel-item,
.carousel .carousel-item img {
    height: 620px;
    object-fit: cover;
}

.carousel-caption-items h1 {
    font-size: 3.2rem;
    font-weight: 600;
}

.carousel-caption-items p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Tablettes */
@media (min-width: 768px) and (max-width: 991px) {
    .carousel .carousel-item,
    .carousel .carousel-item img {
        height: 450px;
    }

    .carousel-caption-items h1 {
        font-size: 2rem;
    }

    .carousel-caption-items p {
        font-size: 1rem;
    }
}

/* Mobiles */
@media (max-width: 767px) {
    .carousel .carousel-item,
    .carousel .carousel-item img {
        height: 400px;
    }

    .carousel-caption-items h1 {
        font-size: 1.6rem;
    }

    .carousel-caption-items p {
        font-size: 0.95rem;
    }

    /* Boutons côte à côte sur mobile */
    .carousel-caption .d-flex {
        flex-direction: row;
        gap: 10px;
    }

    .carousel-caption .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Style boutons du carousel */
.carousel-caption .btn {
    white-space: nowrap;
}

/* Centrage vertical contenu */
.carousel-item .carousel-caption {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}

/* Actions */

/* Même hauteur pour toutes les cartes */
.action-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Fixer la hauteur des images et les couper proprement */
.action-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Forcer le texte à prendre la place restante */
.action-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Equipe et Temoignages */

.scroll-container {
  overflow: hidden;
  width: 100%;
}

.scroll-content {
  display: flex;
  gap: 1rem;
  animation: scroll-left 40s linear infinite;
}

.scroll-container:hover .scroll-content {
  animation-play-state: paused; /* Pause au survol */
}

.card-partenaire {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  min-width: 200px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.icon {
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.swiper-button-prev {
  color: #FFC107; /* couleur bouton (ex: jaune Bootstrap warning) */
  width: 40px;
  height: 40px;
  left: -9px;
}

.swiper-button-next {
  color: #FFC107; /* couleur bouton (ex: jaune Bootstrap warning) */
  width: 40px;
  height: 40px;
  right: -9px;
}

.equipe-swiper .swiper-slide {
  display: flex; /* permet au contenu de prendre toute la hauteur */
  height: auto !important; /* éviter les contraintes de Swiper */
}

.equipe-swiper .swiper-slide > div {
  flex: 1; /* occupe toute la hauteur disponible */
  display: flex;
  flex-direction: column;
}

/* Preloader et Top */

#preloader {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
#backToTop {
    width: 50px;
    height: 45px;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

/* Pays */

.pays-card.active {
  border: 1px solid #ffc107; /* couleur jaune warning Bootstrap */
  box-shadow: 0 0 5px rgba(255, 193, 7, 0.6);
  transition: box-shadow 0.3s ease;
}

.pays-card:hover {
  border: 1px solid #ffc107; /* couleur jaune warning Bootstrap */
  box-shadow: 0 0 5px rgba(255, 193, 7, 0.6);
  transition: box-shadow 0.3s ease;
}




/*** Project Portfolio ***/
#portfolio-flters {
    display: inline-block;
    background: var(--light);
    padding: 10px 15px;
}

#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--dark);
    border-color: var(--dark);
}

.portfolio-inner {
    position: relative;
    overflow: hidden;
}

.portfolio-inner::before,
.portfolio-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 193, 7, .5);
    transition: .5s;
}

.portfolio-inner::after {
    left: auto;
    right: 0;
}

.portfolio-inner:hover::before,
.portfolio-inner:hover::after {
    width: 50%;
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.portfolio-inner:hover .portfolio-text {
    transition-delay: .3s;
    opacity: 1;
}

.portfolio-inner .portfolio-text .btn {
    background: var(--light);
    color: var(--primary);
}

.portfolio-inner .portfolio-text .btn:hover {
    background: var(--primary);
    color: var(--light);
}

