/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Initialisation */
    *{
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        list-style: none;
        text-decoration: none;
        /* font-family: "Poppins", sans-serif; */
    }
    
    /* Declaration des variables */
    :root {
        --primary-color: #df6e12; 
        /* --primary-color: #e74c3c; */
        --secondary-color: #f8f8f8; /* Gris très clair */
        --text-color: #333;
        --light-text-color: #fff;
        --text-color-secondary:#e6eaec;
        --text-color-black:#000;
        --dark-grey: #555;
        --border-color: #eee;
        --hover-orange: #e69500; /* Orange légèrement plus foncé au survol */
        --input-bg-color: #f7f7f7;
        --input-placeholder-color: #aaa;

        --box-shadow:2px 2px 10px 4px rgb(14 55 54 / 15%);


/* Declaration des variables pour le swiper 3D */
        --active-width: 50vw; /* Largeur de l'image active, en % de la largeur de la fenêtre */
        --active-height: 70vh; /* Hauteur de l'image active, en % de la hauteur de la fenêtre */
        --inactive-width: 10vw;
        --inactive-height-1: 30vh;
        --inactive-height-2: 40vh;
        --inactive-height-3: 50vh;
        --gap: 21px;
    }
    

    /* GÉNÉRAL pour toutes les pages*/
    .section-inner {
        padding: 50px 100px;
    }
    .heading {
        text-align: center;
    }
    .heading h1 {
        font-size: 2.8rem;
        color: var(--text-color);
        font-weight: 700;
        text-transform: capitalize;
    }
    .heading span {
        /* padding: 0.5rem 1.5rem; */
        color: var(--primary-color);
        /* background: var(--primary-color); */
        font-weight: 600;
        display: inline-block;
        text-transform: uppercase;
        /* clip-path: polygon(100% 0, 93% 50%, 86% 99%, 0% 100%, 7% 47%, 13% 0%); */
    }


    /* Général pour les produits */
    .promotion-product {
        position: absolute;
        top: 10px;
        left: 10px;
        background: var(--primary-color);
        padding: 5px 10px;
        color: #fff;
        border-radius: 5px;
        font-size: .89em;
        font-weight: bold;
        z-index: 100;
    }
    .product-title {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 5px;
    }
    .product-country {
        font-size: .9rem;
        font-weight: 500;
        color: var(--dark-grey);
        margin-bottom: 12px;
    }
    .product-description {
        font-size: .8em;
        margin-bottom: 5px;
    }
    .price-container {
        margin-bottom: 10px;
        margin-top: 10px;
    }
    .price-container .old-price{
        font-size: .9rem;
        color: var(--dark-grey);
        text-decoration: line-through;
        margin-right: 5px;
    }
    
    .price-container .new-price{
        font-size: 1.3rem;
        color: var(--text-color-black);
        margin-left: 5px;
        font-weight: 700;
        letter-spacing: 0.2px;
    }
    .add-to-cart-btn {
        width: 100%;
        padding: 10px;
        background: var(--primary-color);
        border: none;
        color: var(--text-color-secondary);
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.6;
        cursor: pointer;
        transition: background 0.3s ease;
    }
    .add-to-cart-btn:hover {
        background: var(--hover-orange);
    }

    /* ===================================================== */
    /* =====----- Styles de la page d'accueil DEBUT -----===== */
    /* ===================================================== */


    /* ===== LA SECTION home ===== */
    .home {
        width: 100%;
        min-height: 100vh;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(18rem,1fr));
        align-items: center;
        gap: 1.5rem;
        /* font-family: "Poppins", sans-serif; */
        padding: 18px 25px;
        background: var(--secondary-color);
    }

    /* Home text */
    
    .home .home-text p {
        font-size: 2.2rem;
        font-weight: bold;
    }
    /* Home image */
    .home img {
        width: 100%;
    }
    

    /* Home button */
    .home .btn {
        font-size: 1.1rem;
        padding: 0.7rem 1.2rem;
        background: var(--primary-color);
        color: var(--light-text-color);
        font-weight: 600;
        display: inline-block;
        text-transform: uppercase;
        margin-top: 2rem;
        transition: all 0.5s ease-in-out;
        border-radius: 25px;
    }
    .home .btn:hover {
        background: var(--hover-orange);
        transform: translate3d(2px, 2px, 2px);
        letter-spacing: 0.1px;
    }



    /* LA SECTION produit-vue */
    /* #product-view {
        position: relative;
    } */
    .product-view-swiper {
        margin-top: 2rem;
    }
     
    
    .product-view-swiper .box {
        position: relative;
        overflow: hidden;
        background: var(--secondary-color);
    }
    .product-view-swiper .box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: var(--secondary-color);
    }
    .product-view-swiper .box .content {
        position: absolute;
        top: -100%;
        right: 0;
        width: 100%;
        height: 100%;
        background: hsl(0, 0%, 91%, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        /* overflow: hidden; */
    }
    .product-view-swiper .box:hover .content {
        top: 0;
        transition: 0.3s;
    }
    .product-view-swiper .box .content a{
        padding: 0.7rem 1.5rem;
        color: var(--light-text-color);
        background: var(--primary-color);
        font-weight: 500;
        display: inline-block;
        text-transform: uppercase;
        clip-path: polygon(100% 0, 93% 50%, 86% 99%, 0% 100%, 7% 47%, 13% 0%);
    }
    .product-view-swiper .box .content a:hover {
        background: var(--hover-orange);
        letter-spacing: 2px;
    }
    .box .btn-defilement {
        color: var(--primary-color);
        font-size: 10px;
        padding: 5px;
        border-radius: 50%;
    }

    /* LA  SECTION produit-new*/
    .produit-new-swiper {
        margin-top: 2rem;
    }
    .produit-new-swiper .box {
        position: relative;
        padding: 10px;
        box-shadow: var(--box-shadow);
    }
    .produit-new-swiper .box img{
        width: 100%;
        object-fit: cover
    }
    .produit-new-swiper .box h2 {
        font-size: 1.2em;
        font-weight: 640;
        color: var(--text-color-black);
        letter-spacing: 1px;
    }
    .stars .fa-star, .stars .fa-star-half-stroke {
        color: var(--primary-color);
    }
    .produit-new-swiper .box span {
        font-size: 1em;
        font-weight: 400;
    }
    .produit-new-swiper .fa-cart-shopping {
        background: var(--primary-color);
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50px;
        position: absolute;
        right: 0;
        bottom: 0;
        padding: 10px;
        font-size: 24px;
        color: #fff;
        cursor: pointer;
    }

    .produit-new-swiper .fa-cart-shopping:hover {
        background: var(--dark-grey);
        transition: 0.3s;
    }


    /* LA SECTION NOS CREATION */
    .slider-container {
        position: relative;
        width: 100%;
        height: 80vh;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        margin-top: 2rem;
    }
    .slider-images {
        display: flex;
        align-items: center;
        gap: var(--gap);
        transition: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        /* ajout du padding pour le centrage */
        padding-left: calc(50% - var(--active-width) / 2);
        padding-right: calc(50% - var(--active-width) / 2);
    }
    .slider-img {
        width: var(--inactive-width);
        height: var(--inactive-height-3);
        border-radius: 6px;
        cursor: pointer;
        position: relative;
        transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow: hidden;
        flex-shrink: 0; /* Empêche les images de rétrécir lors du défilement */
    }
    .slider-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }
    /* Logique du redimensionnement */
    .slider-img[data-index="0"], .slider-img[data-index="6"] {
        height: var(--inactive-height-1);
    }
    .slider-img[data-index="1"], .slider-img[data-index="5"] {
        height: var(--inactive-height-2);
    }
    .slider-img[data-index="2"], .slider-img[data-index="4"] {
        height: var(--inactive-height-3);
    }
    .slider-img.active {
        width: var(--active-width);
        height: var(--active-height);
    }
    .slider-img h1 {
        font-size: 25px;
        font-weight: 700;
        text-align: left;
        text-transform: uppercase;
        color: #fff;
        position: absolute;
        top: 50%;
        left: 30px;
        transform: translateY(-10%) rotate(-90deg);
        transform-origin: top left;
        transition: transform 0.7s ease, opacity 0.7s ease;
        opacity: 1;
        z-index: 10;
    }
    .slider-img.active h1 {
        opacity: 0;
        transform: translateY(-50%);
    }
    .slider-img .text {
        position: absolute;
        bottom: 15px;
        left: 15px;
        opacity: 0;
        transition: opacity 0.7s ease;
    }
    .slider-img.active .text {
        opacity: 1;
        transition-delay: 0.3s;
    }
    .slider-img .text h2 {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
        text-transform: uppercase;
    }
    .slider-img .text p{
        font-size: 12px;
        font-weight: 600;
        color: #fff;
        line-height: 1.4;
    }
    /* Boutons de navigation */
    .slider-container .nav-button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: #999;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 20;
        transition: background 0.3s ease;
    }
    .slider-container .nav-button:hover {
        background: var(--primary-color);
    }
    .slider-container .nav-button.prev-button {
        left: 10px;
    }
    .slider-container .nav-button.next-button {
        right: 10px;
    }


    /* La section Avis client */
    .testimonials-section {
        /* padding: 60px 20px; */
        text-align: center;
        background: #f8f8f8;
    }
    

    /* ===================================================== */
    /* =====----- Styles de la page d'accueil FIN -----===== */
    /* ===================================================== */


    

    /* ===================================================== */
    /* =====----- Styles de la page produits DEBUT -----===== */
    /* ===================================================== */
    .product-hero {
        width: 100%;
        height: 100vh;
        /* margin-top: 2rem; */
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .img-home {
        position: absolute;
        left: 0;
        top: 0;
        z-index: -100;
        width: 100%;
        height: 100%;
        object-fit: cover;
        flex-shrink: 0;
    }

    .product-hero .container {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* gap: 2rem; */
    }

    .product-hero .container .text {
        color: var(--primary-color);
        margin-bottom: 1em;
    }
    .product-hero .container .text h1 {
        font-size: 2.5rem;
        font-weight: 800;
        text-align: center;
        /* margin-bottom: 1em; */
    }
    .product-hero .container .text p {
        font-size: 1.3em;
        font-weight: 500;
        color: var(--primary-color);
    }

    /* La barre de recherche */
    .product-hero .container .search {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .product-hero .search form{
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        width: 90%;
        max-width: 800px;
        display: flex;
        /* justify-content: space-between;
        align-items: center; */
        border-radius: 50px;
        overflow: hidden;
    }
    .product-hero .search form #search {
        width: 100%;
        padding: .7rem 1.2rem;
        font-size: 1.1rem;
        border: none;
        outline: none;
        /* border-radius: 50px; */
        background: transparent;
        font-size: 1rem;
        color: var(--text-color);
    }
    .product-hero .search form #search::placeholder {
        color: var(--input-placeholder-color);
    }

    .product-hero .search form #submit {
        padding: 1rem 1.5rem;
        background: var(--primary-color);
        border: none;
        font-size: 1em;
        font-weight: bold;
        text-transform: uppercase;
        color: var(--light-text-color);
        cursor: pointer;
        transition: background 0.3s ease;
    }
    .product-hero .search form .fa-magnifying-glass {
        padding: 1.2rem;
        /* background: var(--primary-color); */
        border: none;
        font-size: 1.2em;
        font-weight: bold;
        text-transform: uppercase;
        color: var(--primary-color);
        cursor: pointer;
        transition: background 0.3s ease;
    }
    .product-hero .search form #submit:hover {
        background: var(--hover-orange);
    }
    #products-section {
        padding: 20px 25px;
    } 

    #products-section .product-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, auto));
        gap: 1rem;
        margin-top: 2rem;
    }

    #products-section .product-container .box {
        position: relative;
        padding: 10px;
        box-shadow: var(--box-shadow);
    }

    #products-section .product-container .box img{
        width: 100%;
        border-radius: 2px;
    }

    .product-container .box .content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

   
    .product-container .box:hover img{
        -webkit-transform: scaleX(-1);
        transform: scaleX(-1);
        transition: 0.5s;
    }
    

    /* ===================================================== */
    /* =====----- Styles de la page produits FIN -----===== */
    /* ===================================================== */





    /* ===================================================== */
    /* =====----- Styles de la page express DEBUT -----===== */
    /* ===================================================== */

    #express-hero h1 {
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 1em;
        line-height: 1.4;
    }

    #express-hero p {
        font-size: 1em;
        line-height: 1.6;
    }

    .delivery-section .container{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .delivery-section .container .box {
        display: flex;
        /* flex-direction: column; */
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
        width: 100%;
        max-width: 1000px;
        border-radius: 10px;
        /* box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2); */

    }

    .delivery-section .box .box-child {
        flex: 1;
        padding: 2rem;
        min-width: 300px;
    }

    .delivery-section .box .box-child.left {
        order: 1;
    }
    .delivery-section .box .box-child.right {
        order: 2;
    }
    .delivery-section .box img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }
    


    /* ===================================================== */
    /* =====----- Styles de la page express FIN -----===== */
    /* ===================================================== */


    


    /* ===================================================== */
    /* =====----- Styles de la page promotion DEBUT  -----===== */
    /* ===================================================== */
    #promotion-hero h1 {
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 1em;
        line-height: 1.4;
    }

    #promotion-hero p {
        font-size: 1em;
        line-height: 1.6;
    }

    .promotion-page {
        padding: 60px 20px;
        text-align: center;
    }
    .promotion-page .promotion-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        justify-content: center;
        margin-top: 2rem;
    }
    .promotion-grid .promotion-item {
        position: relative;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 7px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    .promotion-grid .promotion-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 4px 7px rgba(0, 0, 0, 0.2);
    }
    .promotion-item .promotion-percentage {
        position: absolute;
        top: 10px;
        left: 10px;
        background: var(--primary-color);
        padding: 5px 10px;
        color: #fff;
        border-radius: 5px;
        font-size: .89em;
        font-weight: bold;
    }
    .promotion-item img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }
    .product-info {
        padding: 20px;
        text-align: left;
    }
    



    


    /* ===================================================== */
    /* =====----- Styles de la page promotion FIN -----===== */
    /* ===================================================== */


    






    /* ===================================================== */
    /* =====----- Responsive -----===== */
    /* ===================================================== */

    /* Pour les ecrans de tailles moyenne  */
    @media screen and (max-width : 992px) {
        .delivery-section .box .box-child {
            padding: 1rem;
        }

        .section-inner {
            padding: 30px 50px;
        }

        .delivery-section .container .box {
            box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);

        }
        .heading h1 {
            font-size: 2.3rem;
            
        }
        

      }

      /* Pour les petits ecrans */
    @media screen and (max-width: 768px){
        .slider-container {
            height: 60vh;
        }

        .slider-img.active {
            width: 70vw;
            height: 50vh;
        }

        .slider-img {
            height: 25vh;
        }

        .slider-images {
            padding-left: calc(50% - 70vw / 2);
            padding-right: calc(50% - 70vw / 2);
        }

        .product-hero .search form{
            max-width: 500px;
        }
        .product-hero .search form #search {
            width: 100%;
            padding: .2rem 1rem;
        }
        .product-hero .search form #submit {
            padding: .8rem 1.2rem;
        }
        .product-hero .search form .fa-magnifying-glass {
            padding: 1rem;
        }
        .product-hero .container .text h1 {
            font-size: 2.1rem;
        }
        .product-hero .container .text p {
            font-size: 1.1em;
        }


    }
    









    /* ===================================================== */
    /* =====----- Styles de la page d'accueil FIN -----===== */
    /* ===================================================== */
    /* ===================================================== */
    /* =====----- Styles de la page d'accueil FIN -----===== */
    /* ===================================================== */