/********** Template CSS **********/
:root {
    --primary: #7AB730;
    --secondary: #FFD33C;
    --light: #F3F3F3;
    --dark: #212121;
}

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

.btn {
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    transition: .5s;
}

.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: 0;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Roboto', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    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: 7px;
        top: -4px;
        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 {
        width: 100%;
        height: 1px;
        top: -1px;
        left: 0;
    }

}


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

}

.hero-header {
    background: url(/assets/user/img/banniereFinal.jpg) center center no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 60vh;

}

@media (max-width: 992px) {
    .hero-header {
        background: url(../img/banniereSmall.jpg) center center no-repeat;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        height: 20vh;

    }
    #categories-row .category-item {
        width: 100%; /* Forcer chaque catégorie à prendre toute la largeur */
        margin-bottom: 20px; /* Ajouter un espace entre les catégories */
    }

    .product-container {
        margin: 0 auto; /* Centrer chaque conteneur de produit */
    }

}

@media (max-width: 768px) {
    .hero-header {
        background-position: center;
        /* Center the image for mobile */
        height: 45vh;
        /* Further reduce height for mobile screens */
    }
    #categories-row .category-item {
        width: 100%; /* Forcer chaque catégorie à prendre toute la largeur */
        margin-bottom: 20px; /* Ajouter un espace entre les catégories */
    }

    .product-container {
        margin: 0 auto; /* Centrer chaque conteneur de produit */
    }
}

/* Adjustments for mobile screens */
@media (max-width: 576px) {
    .hero-header {
        background-size: cover;
        /* Keep it covered */
        height: 40vh;
        /* Reduce height for very small screens */
    }
    #categories-row .category-item {
        width: 100%; /* Forcer chaque catégorie à prendre toute la largeur */
        margin-bottom: 20px; /* Ajouter un espace entre les catégories */
    }

    .product-container {
        margin: 0 auto; /* Centrer chaque conteneur de produit */
    }

}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: #7ab730;
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #7ab730;
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}


.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--primary);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}
.service-item {
    height: 250px; /* Définissez une hauteur fixe ou ajustez selon vos besoins */
    display: flex; /* Pour aligner verticalement le contenu */
    flex-direction: column;
    justify-content: center; /* Centrer verticalement le contenu */
    align-items: center; /* Centrer horizontalement */
}


.product-item {
    padding: 5px;

}

.product-item .btn-action {
    position: absolute;
    width: 100%;
    bottom: -40px;
    left: 0;
    opacity: 0;
    transition: .5s;

}

.product-item:hover .btn-action {
    bottom: -20px;
    opacity: 1;
}

.product-carousel .owl-nav {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

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

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

.bg-offer {
    background: url(../img/site.jpg) top right no-repeat;
    background-size: cover;
}

.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);
}

.team-carousel .owl-nav {
    position: absolute;
    width: 50px;
    height: 160px;
    top: calc(50% - 80px);
    right: 0;
    z-index: 1;
}

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

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

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.2);
}

.team-item .team-overlay {
    position: absolute;
    top: 45px;
    right: 45px;
    bottom: 45px;
    left: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(122, 183, 48, .8);
    transition: .5s;
    opacity: 0;
}

.team-item:hover .team-overlay {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 1;
}

.bg-testimonial {
    background-color: #3d5e14;
    margin: 40px 0;
    height: 280px;
    min-height: 200px;
    padding-top: 1rem !important;
    padding-bottom: .25rem !important;

}

/* Pour les écrans larges (ex. ordinateurs) */

/* Pour les tablettes (ex. largeur entre 768px et 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .bg-testimonial {
        height: 394px;
        margin: 40px 0;
    }

    .animated-img {

        max-width: 33%;
    }
}

/* Pour les mobiles (ex. largeur inférieure à 768px) */
@media (max-width: 767px) {
    .bg-testimonial {
        height: 200px;
        margin: 30px 0;
    }

    .animated-img {
        max-width: 33%;
    }
}


.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 46px;
    top: calc(50% - 23px);
    left: 0;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

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

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


.testimonial-carousel .owl-item img {
    width: 200px;
    height: 200px;

}

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


.blog-item a i {
    position: relative;
    padding-left: 20px;
    transition: .3s;
}

.blog-item a:hover i {
    padding-left: 50px;
}

.blog-item a i::after {
    position: absolute;
    content: "";
    width: 20px;
    height: 2px;
    top: 50%;
    left: 10px;
    margin-top: -1px;
    background: var(--primary);
    transition: .3s;
    background: white ;
}

.blog-item a:hover i::after {
    width: 50px;
}

.blog-item img {
    width: 300px;
    height: 250px;

}

.blog-item .p-4 {
    padding-top: 1rem;
}

.blog-item .description {
    color: black;
    margin-top: auto;
}

.blog-item {
    border: 1px solid #496e1d70;
    border-radius: 2px;
    box-shadow: 1px 1px 3px rgba(198, 255, 130, 1);
    background-color: white;
}

.blog-item .me-3 {
    color: gray;
}

.blog-item .mb-2 {
    color: #7ab730;
}

.service-item a:hover i::after {
    width: 50px;
}



/* Adjust the Swiper container */
/* .promo-carousel {
    width: 100%;
    height: auto;
    max-width: 100%;
}
 */
.swiper-wrapper {
    display: flex;
    /* Ensure slides are displayed in a row */
}

.swiper-slide {
    width: 100%;
    box-sizing: border-box;
}

.dropdown-menu {
    display: none;
    /* Hide all dropdown menus by default */
}

#promo {
    color: white;
    background-color: red;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    animation: bounce 2s infinite, clignote 1s infinite;
}

@keyframes clignote {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

#promoCarousel {
    color: red;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    border: 2px solid red;
    border-radius: 8px;
    background-color: #fff3f3;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    transition: background-color 0.5s ease-in-out;
    animation: glow 2s infinite alternate, pulse 1.5s infinite;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
    }

    100% {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

#promoCarousel:hover {
    background-color: red;
    color: white;
    border-color: white;

}

.zoom-text-container {
    display: flex;
    justify-content: center;
    /* Center the text horizontally */
    align-items: center;
    /* Center the text vertically */
    min-height: 200px;
    /* Minimum height */
    padding: 20px;
    /* Space around the text */
    background-color: #f0f0f0;
    /* Light background color */
    margin: 0 auto;
    /* Center the container */
    width: fit-content;
    /* Adapt width to content */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Shadow for depth effect */
    animation: float 3s ease-in-out infinite;
    /* Floating animation */
}

.zoom-text {
    font-size: 18px;
    /* Smaller text size */
    font-weight: bold;
    /* Bold text */
    color: #333;
    /* Text color */
    opacity: 0;
    /* Start invisible */
    transform: scale(0.5);
    /* Start with reduced size */
    animation: zoomIn 3s ease-in-out infinite;
    /* Zoom and appear animation */
    text-align: center;
    /* Center text within h5 */
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating animation */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.badge {
    position: absolute;
    /* Position the badge relative to its container */
    top: 10px;
    /* Distance from the top */
    left: 10px;
    /* Distance from the left */
    background-color: #7ab730;
    /* Badge background color */
    color: white;
    /* Badge text color */
    padding: 0.5em 1em;
    /* Padding around the text */
    border-radius: 5px;
    /* Rounded corners */
    z-index: 1;
    /* Ensure it is on top of other content */
}

.promotion-title {
    color: red;
    font-weight: bold;
    background-color: rgba(255, 255, 0, 0.8);
    padding: 10px 15px;
    border-radius: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}


.promotion-title:hover {
    transform: scale(1.05);
}

.promotion-title i {
    margin-right: 5px;
    /* Espace à droite de l'icône */
    color: red;
    /* Couleur différente pour les icônes */
}

.promotion-icon {
    transform: scaleX(-1);
    /* Inverse l'icône */
    margin-left: 8px;
    /* Ajoute de l'espace à gauche de l'icône */

}

#promoBanner {
    white-space: nowrap;
    /* Évite le retour à la ligne */
    padding: 20px 0;
    /* Espacement vertical */
}

.promo-scroll {
    display: inline-block;
    /* Affichage en ligne */
    animation: scroll 25s linear infinite;
    /* Vitesse ajustée */
    white-space: nowrap;
    /* Évite le retour à la ligne */
    will-change: transform;


}

.promo-item {
    display: inline-block;
    /* Affiche les articles en ligne */
    margin: 0 15px;
    /* Espacement entre les articles */
    transition: transform 0.3s;
    /* Animation pour hover */
}

.promo-item:hover {
    transform: translateY(-5px);
    /* Légère élévation au survol */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
        /* Départ de la position initiale */
    }

    100% {
        transform: translateX(-100%);
        /* Fin de la position à la moitié */
    }
}


.animated-notification {
    background-color: #7ab730;
    /* Couleur tomate */
    color: white;
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 18px;
    animation: pulse 1s infinite;
    /* Animation */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* hhhhhhhhh */
.promotions-container {
    display: flex;
    gap: 40px;
    overflow: hidden;
    justify-content: flex-start;
    padding-bottom: 40px;
    position: relative;
    width: 100%;
}

.promotions-wrapper {
    display: flex;

    animation: scrollLeft 30s linear infinite;
    /* Animation continue pour le défilement */
}

.promotion-item {
    min-width: 280px;
    max-width: 350px;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInFromLeft 0.6s ease-out forwards, combined 3s ease-in-out infinite;
    margin-right: 30px;
    border: 1px solid #c6ff82;
    border-radius: 2px;
    box-shadow: 1px 1px 3px rgba(198, 255, 130, 1);
}

.promotion-item:nth-child(odd) {
    animation-delay: 0.3s;
    /* Délai pour les éléments impairs */
}

.promotion-item:nth-child(even) {
    animation-delay: 0.5s;
    /* Délai pour les éléments pairs */
}

.promotion-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.promotion-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.promotion-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.promotion-item:hover .promotion-image {
    transform: scale(1.05);
}

.promotion-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 5px 15px;
    font-size: 14px;
    border-radius: 25px;
    opacity: 1;
    /* Visible par défaut */
    transform: translateY(0);
    /* Position normale */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.promotion-item:hover .promotion-badge {
    opacity: 1;
}

.promotion-details {
    padding: 15px;
    background-color: #fff;
    text-align: center;
    transform: translateX(0);
    /* Position normale */
    opacity: 1;
    /* Visible par défaut */
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Le titre devient plus fluide au survol */
.promotion-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    opacity: 1;
    /* Visible par défaut */
    transform: translateY(0);
    /* Position normale */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.promotion-reference {
    font-size: 1.1rem;
    color: #666;
    opacity: 0;
    /* Invisible par défaut */
    transform: translateY(10px);
    /* Légèrement décalée vers le bas */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.promotion-item:hover .promotion-details {
    transform: translateX(0);
    opacity: 1;
}

.promotion-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.promotion-reference {
    font-size: 1.1rem;
    color: #666;
}

/* Animation d'apparition depuis la gauche */
@keyframes fadeInFromLeft {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animation de combined */

@keyframes combined {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(0)
    }

    75% {
        transform: translateY(10px);
    }
}

/* Défilement continu */
@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }

}

/* Responsiveness améliorée */
@media (max-width: 991px) {
    .promotions-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .promotion-item {
        min-width: 280px;
        max-width: 320px;
        flex-shrink: 0;
        /* Empêche la réduction de la largeur */

    }

    .pt-4-only {
        padding-top: 5.5rem !important;
        padding-bottom: 0 !important; /* Supprime le padding en bas */

    }
}

@media (max-width: 576px) {
    .promotions-container {
        flex-direction: column;
    }

    .promotion-item {
        width: 100%;
    }

    .pt-4-only {
        padding-top: 5.5rem !important;
        padding-bottom: 0 !important; /* Supprime le padding en bas */

    }

}

/* Conteneur principal */
.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
    max-width: 1000px; /* Largeur maximale du formulaire */
    position: relative; /* Nécessaire pour la position absolue de .search-results */
}


/* Groupement des champs */
.input-group {
    position: relative;
    display: flex;
    width: 100%;
    border: 2px solid #7AB730;
    /* Bordure rouge */
    border-radius: 0.5rem;
    /* Coins arrondis */
    overflow: hidden;
}

/* Champ de recherche */
.search-input {
    flex: 4 !important;
    /* Le champ de recherche prend plus de place */
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    outline: none;
    /* Retire le contour par défaut au focus */
    margin-right: 0.5rem;
}
.search-result-item {
    border-bottom: 1px solid #ccc; /* Changez la couleur ou l'épaisseur si nécessaire */
    cursor: pointer;

}

/* Menu déroulant */
.search-select {
    flex: 1;
    /* Moins de place que l'input */
    border: none;
    border-left: 1px solid #ccc;
    /* Séparateur vertical */
    padding: 0.75rem;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    /* Curseur en main */

}

/* Bouton de recherche */
.search-button {
    background-color: #7AB730;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button .bi {
    display: none;
}

.search-button .text {
    display: inline;
}


@media (max-width: 576px) {
    .input-group {
        width: 90% !important;
    }

    .search-button .text {
        display: none;
    }

    .search-button .bi {
        display: inline-block;
    }

    .search-button i {
        font-size: 1.5rem;
    }

    .search-results {
        width: 90% !important;
        left: auto;
    }
    .col-sm-6 {
        flex: 0 0 50%; /* Chaque service occupe 50% de la largeur */
        max-width: 50%; /* Ne dépasse pas 50% */
    }

    .service-item {
        width: 90%; /* Réduction de la largeur du service pour un espacement propre */
    }


}

@media (max-width: 768px) {
    .input-group {
        width: 90% !important;
    }

    .search-button .text {
        display: none;
    }

    .search-button i {
        font-size: 1.5rem;
        /* Taille de l'icône */
    }

    .search-button .bi {
        display: inline-block;
        /* L'icône est affichée */
    }

    .search-results {
        width: 90% !important;
        left: auto;

    }

    .search-button .text {
        display: none;
    }

    .pt-4-only {
        padding-top: 5.5rem !important;
        padding-bottom: 0 !important; 

    }

  
    .col-sm-6 {
        flex: 0 0 50%; /* Chaque service occupe 50% de la largeur */
        max-width: 50%; /* Ne dépasse pas 50% */
    }

    .service-item {
        width: 90%; /* Réduction de la largeur du service pour un espacement propre */
    }

  

}

@media (max-width: 991px) {
    .input-group {
        width: 90% !important;
    }

    .search-button .text {
        display: none;
    }

    .search-button i {
        font-size: 1.5rem;
    }

    .search-button .bi {
        display: inline-block;
    }

    .search-results {
        width: 90% !important;
        left: auto;


    }

    .col-sm-6 {
        flex: 0 0 50%; /* Chaque service occupe 50% de la largeur */
        max-width: 50%; /* Ne dépasse pas 50% */
    }

    .service-item {
        width: 90%; /* Réduction de la largeur du service pour un espacement propre */
    }

}

/* Conteneur des résultats */
.search-results {
    z-index: 1050; /* S'assurer qu'il soit devant les autres éléments */
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    background-color: #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    padding: 0;
    max-width: 660px;
    width: 100%;
    display: none;
    top: calc(100% + 5px);
    position: absolute;
    left: 0;}

/* Style des résultats */
/* Style pour les éléments de la liste */
.search-results .list-group-item {
    padding: 10px;
    border: none;
    /* Supprimez les bordures inutiles */
}

.search-results .list-group-item:hover {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    /* Ombre légère au survol */
}

/* Style pour l'image */
.search-results .list-group-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    /* Ajuste l'image pour qu'elle rentre dans les dimensions */
    border-radius: 0.5rem;
    border: 1px solid #ddd;
    /* Bordure légère */
}

/* Style pour les détails */
.result-details {
    flex: 1;
    /* Prend tout l'espace restant */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-title {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.article-title:hover {
    text-decoration: underline;
    /* Souligne le titre au survol */
}

.text-muted {
    font-size: 0.875rem;
    color: #777;
}

/* carousel promo */

.owl-carousel.promo-carousel {
    display: flex;
    overflow: hidden;
    /* Cache tout contenu débordant */
    gap: 30px;
    /* Ajoute un espace entre les items (20px par exemple) */
}

.owl-carousel .promo-item {
    flex: 0 0 auto;
    /* Empêche les éléments de se redimensionner */
    width: 100%;
    /* Ajuste la largeur de chaque élément en tenant compte de l'espace (25% moins le gap) */
    box-sizing: border-box;
    /* Inclut les bordures et marges dans la largeur totale */
}

#promoSpan:hover {
    transform: scale(1.05);
}

#promoSpan {
    font-size: 16px;
    font-weight: bold;
    color: red;
    background-color: yellow;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 5px;
}

.promo-message {
    font-size: 20px;
    background-color: #fca202;
    color: white;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    /* Pour garantir un alignement centré */
    animation: pulseText 2s ease-in-out infinite;
    /* Animation en boucle */

}

@keyframes pulseText {
    0% {
        transform: scale(1);
        /* Taille normale */
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        /* Légèrement plus grand */
        opacity: 1;
        /* Légèrement transparent pour l'effet */
    }

    100% {
        transform: scale(1);
        /* Retour à la taille normale */
        opacity: 1;
        /* Opacité finale */
    }
}

@keyframes bounceIn {
    0% {
        opacity: 1;
        transform: scale(0.9) rotate(-15deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.1) rotate(15deg);
    }

    70% {
        opacity: 1;
        transform: scale(1.05) rotate(-5deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.animated-img {
    animation: bounceIn 1.5s ease-in-out forwards infinite;
    animation-delay: 0.5s;
    max-width: 40%;
}

.promo-btn {
    display: none;
    /* Le bouton est caché par défaut */
    position: absolute;
    bottom: 50%;
    /* Ajuste la position du bouton */
    left: 50%;
    transform: translateX(-50%);
    background-color: #7ab730;
    /* Couleur du bouton */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    /* Animation pour la transition de visibilité */
}

.testimonial-item:hover .promo-btn {
    display: block;
    /* Affiche le bouton lorsqu'on survole le div */
}

.testimonial-item {
    position: relative;
    overflow: hidden;
    /* Masque le bouton en dehors de la zone */
}

.sousCategorie small {
    display: block;
    /* Affiche sur une nouvelle ligne */
    margin-bottom: 5px;
    /* Espacement avec le libellé */
    color: #6c757d;
    /* Texte gris pour la catégorie */
    margin-left: 10px;
}

.lib h6 {
    margin-bottom: 0;
    text-transform: uppercase;
    /* Texte en majuscules */
    font-weight: bold;
    margin-left: 10px;
    margin-bottom: 5px;
    /* Espacement avec le libellé */
}

.custom-border {
    border-color: #fff !important;
    /* Replace #ff5733 with your desired color */
}

/* Container styles */
.product-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    font-family: Arial, sans-serif;
}

/* Header with title and arrows */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.title {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
}

.arrows {
    display: flex;
    gap: 5px;
}

.arrow-btn {
    background-color: #ccc;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.arrow-btn:hover {
    background-color: #bbb;
}

.arrow-btn i {
    font-size: 14px;
}

/* Product list */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.product-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
}

.product-item h5 {
    font-size: 14px;
    margin: 0;
    flex: 1;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
}

.new-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 14px;
}
/* Affichage vertical pour écrans de moins de 768px */
@media (max-width: 992px) {
    #categories-row .category-item {
        margin-bottom: 20px; /* Espacement entre les catégories */
    }

    .product-container {
        margin: 0 auto; /* Centrer chaque conteneur */
    }
        .pt-4-only {
        padding-top: 5.5rem !important;
        padding-bottom: 0 !important; /* Supprime le padding en bas */

    }
}

@media (max-width: 768px) {
    .product-container {
        padding: 10px; /* Réduire le padding pour les petits écrans */
    }
}
.pt-5-only {
    padding-top: 3rem ; /* Correspond à py-5 (3rem) */
    padding-bottom: 0 ; /* Supprime le padding en bas */
}
.pt-4-only {
    padding-top: 1.5rem ; /* Correspond à py-5 (3rem) */
    padding-bottom: 0 ; /* Supprime le padding en bas */
}
.centered-border {
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #7ab730;
    display: flex;
    height: 50px; /* Ajustez la hauteur selon vos besoins */
}
