:root {
    --primary: #2878EB;
    --secondary: #FC6326;
    --light: #ECF4FF;
    --dark: #120F2D;
}

[class^=flaticon-]:before,
[class*=" flaticon-"]:before,
[class^=flaticon-]:after,
[class*=" flaticon-"]:after {
    font-size: inherit;
    margin-left: 0;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}



h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

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

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

.dropdown-content {
            display: none;
            position: absolute;
            background-color: #333;
            min-width: 160px;
            z-index: 1;
        }

        .dropdown-content a {
            color: white;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
        }

        .dropdown-content a:hover {
            background-color: #575757;
        }

        .nav-item:hover .dropdown-content {
            display: block;
        }

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

.navbar-brand img {
    max-width: 100px; /* Ajustez cette valeur en fonction de la taille souhaitée */
    height: auto; /* Conserve les proportions de l'image */
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: block;
    right: 45px;
    bottom: 45px;
    z-index: 9999; 
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
}

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

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

#header-carousel {
    height: 400px; 
    overflow: hidden; 

.carousel-caption {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(18, 15, 45, .5);
    z-index: 1;
    padding: 1rem;
    height: 50%; 
    min-height: 250px; 
}

.carousel-caption .p-3 {
    margin-top: 10%; 
    margin-bottom: 20px; 
    max-width: 900px;
}

#header-carousel .carousel-item img {
    height: 100%;
    object-fit: cover; 
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h5 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-caption {
    min-height: 200px; 
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.carousel-indicators {
    align-items: flex-end;
}

.carousel-indicators [data-bs-target] {
    width: 4px;
    height: 20px;
}
.carousel-inner,
.carousel-item {
    height: 100vh; /* Assurez-vous que le carrousel prend toute la hauteur de la fenêtre */
}

.carousel-item img {
    object-fit: cover; /* Cela permettra à l'image de couvrir l'espace disponible */
    height: 100%; /* Assurez-vous que l'image remplit toute la hauteur */
    width: 100%; /* Assurez-vous que l'image remplit toute la largeur */
}
.carousel-indicators .active {
    height: 30px;
}

.hero-header {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-1.jpg) top right no-repeat;
    background-size: cover;
}

.service-item div {
    z-index: 1;
}

.service-item div::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 2px 2px 0 0;
    transition: .5s;
    z-index: -1;
}

.service-item div:hover::after {
    width: 100%;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}

.bg-offer {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-2.jpg) top right no-repeat;
    background-size: cover;
}

.testimonial-carousel .owl-dots {
    height: 45px;
    margin-top: 5px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 5px;
    height: 25px;
    background: #DDDDDD;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    height: 45px;
    background: var(--primary);
}

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

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

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.blog-date {
    position: absolute;
    width: 90px;
    height: 65px;
    top: 75px;
    left: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--secondary);
}

.blog-date::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: -25px;
    left: 0;
    border: 13px solid;
    border-color: transparent #fc6326 #fc6326 transparent;
    z-index: -1;
}


.footer-container {
    display: flex;
    justify-content: space-between; /* Distributes space between the columns */
    flex-wrap: wrap; /* Ensures columns wrap on smaller screens */
}

.footer-container .col {
    flex: 1;
    min-width: 200px; /* Ensures columns don't get too small */
}

.footer-container .col:first-child {
    justify-content: flex-start; /* Aligns "Liens populaires" to the left */
}

.footer-container .col:nth-child(2) {
    justify-content: center; /* Centers "Entrer en contact" */
    text-align: center; /* Ensures the text is centered */
}

.footer-container .col:last-child {
    justify-content: flex-end; /* Aligns "Suivez-nous" to the right */
    text-align: right; /* Ensures the text and buttons are aligned to the right */
}

.rule-item img {
    width: 100%; /* L'image prend toute la largeur du conteneur */
    height: auto; /* La hauteur s'ajuste automatiquement pour garder le ratio */
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-container .col {
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-container .col:last-child {
        margin-bottom: 0;
    }
}

