/********** Template CSS **********/
:root {
    --primary: #cf803d;
    --secondary: #cf803d;
    --light: #EFF5F9;
    --dark: #1D2A4D;
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn-primary {
    color: #FFFFFF;
}

.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: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
}

/* --- BLOC NAVBAR RESTRUCTURÉ - MALI-JƐGƐ SUGUBA --- */
.brand-title {
    font-family: 'Jost', sans-serif !important;
    letter-spacing: -0.5px; /* Resserre légèrement pour optimiser l'espace */
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif !important;
    position: relative !important;
    padding: 30px 10px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    outline: none !important;
    transition: .5s !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

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

/* =====================================================================
   CONFIGURATION DESKTOP GLOBALE (À partir de 992px)
   ===================================================================== */
@media (min-width: 992px) {
    /* 1. On annule le décalage du container parent pour coller au bord gauche */
    .brand-container {
        margin-left: -12px !important; /* Annule le padding du container Bootstrap */
        padding-left: 0 !important;
    }

    /* 2. On réduit l'espace forcé à droite du logo par Bootstrap */
    .navbar-brand {
        margin-right: 15px !important;
    }

    /* 3. On réduit très légèrement l'espace entre les liens pour aérer la droite */
    .navbar-light .navbar-nav .nav-link {
        padding: 30px 8px !important;
        font-size: 16px !important; /* Petit ajustement de confort */
    }

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

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 80%;
    }
}
/* Écrans intermédiaires (Petits PC portables, tablettes en paysage) */
@media (min-width: 992px) and (max-width: 1250px) {
    .brand-title {
        font-size: 1.25rem !important;
    }
    .brand-logo {
        height: 50px !important;
    }
    .navbar-light .navbar-nav .nav-link {
        padding: 30px 6px !important; /* Resserre les liens pour éviter les sauts de ligne */
        font-size: 14px !important;
    }
}

/* Grands écrans de bureau (À partir de 1251px) */
@media (min-width: 1251px) {
    .brand-title {
        font-size: 1.75rem !important;
    }
    .navbar-light .navbar-nav .nav-link {
        padding: 30px 14px !important;
        font-size: 18px !important;
    }
}

/* =====================================================================
   CONFIGURATION MOBILE & TABLETTE PORTRAIT
   ===================================================================== */
@media (max-width: 991.98px) {
    .brand-title {
        font-size: 1.2rem !important;
    }
    .brand-logo {
        height: 45px !important;
    }
    .navbar-light .navbar-nav .nav-link {
        margin-left: 0 !important;
        padding: 10px 0 !important;
        white-space: normal !important;
    }
    .brand-container {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}
/* Réduction de la taille du menu déroulant */
.dropdown-menu {
    min-width: 120px !important; /* Réduit la largeur globale du menu */
    padding: 5px 0 !important;   /* Réduit l'espace en haut et en bas du bloc */
}

.dropdown-item {
    padding: 5px 15px !important; /* Réduit l'épaisseur (haut/bas) et l'espace latéral */
    font-size: 14px !important;   /* Optionnel : réduit légèrement la police pour plus de finesse */
    font-weight: 500 !important;  /* Rend le texte un peu moins lourd */
    transition: all 0.3s ease;
}

/* Effet au survol plus doux */
.dropdown-item:hover {
    background-color: var(--light) !important;
    color: var(--primary) !important;
    padding-left: 18px !important; /* Petit effet de décalage au survol */
}
/* --- Fin du BLOC NAVBAR RESTRUCTURÉ --- */
/*
.hero-header {
    background: url(../img/hero2.webp) top right no-repeat;
    background-size: cover;
}
*/
.service-item {
    position: relative;
    height: 350px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

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

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

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

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}
/* HERO CAROUSEL */
.hero-carousel {
    position: relative;
}

.hero-img {
    height: 60vh;
    width: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* Overlay sombre pour lisibilité */
.hero-carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    inset: 0;
    z-index: 2;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-img {
        height: 60vh;
        object-position: center;
    }
    .text-container {
        min-height: 80px; /* Plus petit sur mobile pour éviter de trop descendre les boutons */
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }
}
.carousel-caption .container {
    transform: translateY(0px);
}
/* couleur pour les titres */
.text-mali {
    color: #cf803d;
}
/* couleur pour les bleu */
.text-bleu {
    color: #0a6a3b;
}
/* style pur les boutons */
.btn-bleu {
    background-color: #0a6a3b;
    border-color: #1D2A4D;
    color: #ffffff;
}

