/* Global Styles */
/* Importer la police depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Appliquer la police à tout le site */
body {
    font-family: 'Roboto', 'Lato', sans-serif; /* Ajout de guillemets pour 'Lato' */
    overflow-x: hidden;
}

* {
    transition: all 0.7s ease;
    line-height: 1.5em; /* Hauteur de ligne */
}

a {
    text-decoration: none;
}

.container .lead {
    font-size: 18px;
    color: #0007;
}

/* Background Colors */
.bg-dark-custom {
    background-color: rgba(0, 0, 0, 0.6); /* Fond sombre */
}

.bg-light-custom {
    background-color: #f8f9fa; /* Fond clair */
}

.bg-light-custom h1 {
    color: rgba(13, 110, 253, 1.0);
}

.nav-link.btn-dark.active {
    background-color: #0d6efd;
    color: white;
}

.container > h2,
.container-fluid > h2 {
    padding-bottom: 6px;
    text-transform: uppercase;
    font-weight: 500;
    color: #0d6efd;
    line-height: 46px;
    border-bottom: 3px solid #0d6efd;
    max-width: 374px;
    width: 100%;
    margin: 0 auto;
}

.list-unstyled {
    cursor: pointer;
}

/* Shadows */
.shadow-custom {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre personnalisée */
}

/* Positioning */
.absolute {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 1030;
}

/* Navigation Styles */
.nav-link {
    font-size: 17px;
    transition: all 0.5s;
    position: relative;
    padding-bottom: 5px; /* Espace pour le soulignement */
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px; /* Épaisseur du soulignement */
    background-color: #0d6efd; /* Couleur du soulignement */
    transition: all 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.bg-dark-custom .nav-link::after {
    background-color: #0d6efd; /* Couleur du soulignement pour le mode sombre */
}

/* Carousel Styles */
.carousel-item {
    height: 100vh;
}

.carousel-item img {
    object-fit: cover;
    height: 100vh;
}

.carousel-caption {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5); /* Fond optionnel pour les légendes */
    color: white;
}

/* Swiper Styles */
.swiper-container {
    width: 100%;
    overflow: hidden; /* Cacher le débordement */
    padding: 20px 0;
}

.swiper-slide {
    width: calc((100% - 60px) / 3); /* Ajuster la largeur */
    box-sizing: border-box;
    cursor: pointer;
}

#partenaire .swiper-slide img {
    width: 50px;
    height: 50px;
}

/* Card Styles */
.card {
    position: relative;
    float: left;
    overflow: hidden;
    margin: 5px 0;
    width: 100%;
    padding: 0;
    border-radius: 10px;
}

.card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Nombre de lignes avant troncature */
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3em; /* Ajuster la hauteur */
    font-size: 15px;
}

.card-title {
    height: 45px;
    font-size: 17px;
}

.card:hover .card-title {
    color: #0d6efd;
}

.card img {
    position: relative;
    display: block;
    width: calc(100% + 15px);
    transition: transform 0.35s;
    transform: translate3d(-10px, 0, 0) scale(1.1);
    backface-visibility: hidden;
}

.card:hover img {
    transform: translate3d(0, 0, 0) scale(1);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #212529 !important;
    border-radius: 50%;
    display: none; /* Cacher par défaut */
}

.scroll-top.show {
    display: flex; /* Afficher quand nécessaire */
}

/* Counter Styles */
.counter {
    text-align: center;
    margin: 20px;
}

.counter-icon img {
    width: 50px; /* Ajuster si nécessaire */
}

.counter-content {
    font-size: 2rem;
    font-weight: bold;
}

.counter-content small {
    display: block;
    font-size: 1rem;
    color: #666;
}

/* Fade-in Animation */
.fadeInUp {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
#modal-description {
    font-size: 0.9rem; /* Taille du texte réduite */
    font-weight: bold; /* Texte en gras pour visibilité */
    color: #0d6efd;
}

/* Responsive Styles */
@media (max-width: 767px) {
    /* Styles pour les petits écrans (mobiles) */
    body, html {
        overflow-x: hidden;
    }
    .card-img-top {
        height: 100px;
    }
    .card-body {
        height: 120px;
    }
    .card-text {
        font-size: 11px;
        display: none;
    }
    .card-title {
        height: 120px;
        font-size: 16px;
    }
    .container .lead {
        font-size: 15px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Styles pour les écrans moyens (tablettes) */
    .card-img-top {
        height: 150px;
    }
    .card-body {
        height: 120px;
    }
    .card-text {
        font-size: 13px;
    }
    .card-title {
        height: 40px;
        font-size: 15px;
    }
    .container .lead {
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    /* Styles pour les écrans larges (ordinateurs portables) */
    .card-img-top {
        height: 200px;
    }
    .card-body {
        height: 150px;
    }
}
