@import url('https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Spartan',sans-serif;
}

h1 {
    font-size: 50px;
    line-height: 48px;
    color: #222;
}

h2 {
    font-size: 46px;
    line-height: 40px;
    color: #222;
}

h4 {
    font-size: 20px;
    color: #222;
}

h6 {
    font-weight: 700;
    font-size: 12px;
}

p {
    font-size: 16px;
    color: #465b52;
    margin: 8px 0 10px 0;
}

.section-p1 {
    padding: 25px 50px;
}

.section-m1 {
    margin: 25px 0;
}

button.normal {
    font-size: 14px;
    font-weight: 600;
    padding: 12px 25px;
    color: #000;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: 0.2s ease;
}

button.white {
    font-size: 13px;
    font-weight: 600;
    padding: 9px 15px;
    color: #fff;
    background-color: transparent;
    cursor: pointer;
    border: 1px solid #fff;
    outline: none;
    transition: 0.2s ease;
}

body {
    width: 100%;
}

/* Header Start */

/* Styles de base */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Correction de l'erreur ici */
    position: relative;
}

/* Menu principal */
#navbar {
    display: flex;
    list-style: none;
    gap: 20px;
}

/* Style des éléments du menu */
#navbar li {
    position: relative;
}

#navbar a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

/* Menu sur mobile */
@media (max-width: 768px) {
    /* Cacher le menu sur mobile par défaut */
    #navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Ajustez selon la hauteur de votre header */
        right: 0;
        background: white;
        width: 200px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        padding: 10px;
    }

    /* Lorsqu'on active le menu (via JavaScript) */
    #navbar.active {
        display: flex;
    }

    /* Style du bouton hamburger sur mobile */
    #mobile {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
    }

    #bar {
        background: none;
        border: none;
        font-size: 24px;
        outline: none; /* Enlevez outline pour le style, mais pensez à l'accessibilité */
    }
}

/* Menu principal sur desktop */
#navbar {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style des éléments du menu */
#navbar li {
    list-style: none;
    padding: 0 20px;
    position: relative;
}

#navbar li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    transition: 0.3s ease;
}

#navbar li a:hover,
#navbar li a.active {
    color: #088178;
}

/* Effet de soulignement au survol */
#navbar li a:hover::after,
#navbar li a.active::after {
    content: "";
    width: 30%;
    height: 2px;
    background: #088178;
    position: absolute;
    bottom: -4px;
    left: 20px;
}

/* Pour masquer le bouton de fermeture */
#close {
    display: none;
}

#mobile {
    display: none;
    align-items: center;
}

/* Si vous avez un bouton pour ouvrir le menu, vous devrez l'afficher ici (exemple) */
#mobile.open {
    display: flex;
}

#hero {
    background-image: url(images/hero.jpg);
    width: 100%;
    height: 90vh;
    background-size: cover;
    background-position: top 25% right 0;
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

#hero h4 {
    padding-bottom: 15px;
}

#hero h1 {
    color: #088178;
}

#hero button {
    background-image: url(images/button.png);
    background-color: transparent;
    color: #088178;
    border: 0;
    padding: 14px 80px 14px 65px;
    background-repeat: no-repeat;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
}

#feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#feature .fe-box {
    width: 180px;
    text-align: center;
    padding: 25px 15px;
    box-shadow: 20px 20px 34px rgba(0, 0, 0, 0.03);
    border: 1px solid #cce7d0;
    border-radius: 4px;
    margin: 15px 0;
}

#feature .fe-box:hover {
    box-shadow: 10px 10px 54px rgba(70, 62, 221, 0.1);
}

#feature .fe-box img{
    width: 100%;
    margin-bottom: 10px;
}
/* Ensure feature images have consistent ratio and cover area */
.feature img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

#feature .fe-box h6 {
    display: inline-block;
    padding: 9px 8px 6px 8px;
    line-height: 1;
    border-radius: 4px;
    color: #088178;
    background-color: #93da41;
    color: white;
}

#feature .fe-box:nth-child(2) h6 {
    background-color: #93da41;
    color: white;
}

#feature .fe-box:nth-child(3) h6 {
    background-color: #93da41;
    color: white;
}

#feature .fe-box:nth-child(4) h6 {
    background-color: #93da41;
    color: white;
}

#feature .fe-box:nth-child(5) h6 {
    background-color: #93da41;
    color: white;
}

#feature .fe-box:nth-child(6) h6 {
    background-color: #93da41
    ;
    color: white;
}

#product1 {
    text-align: center;
}

#product1 .pro-container {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    flex-wrap: wrap;
}

#product1 .pro {
    /* Use flex-basis instead of fixed percent + min-width to avoid overflow on small screens */
    flex: 1 1 220px;
    max-width: 320px;
    padding: 10px 12px;
    border: 1px solid #cce7d0;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.02);
    margin: 15px 0;
    transition: 0.2s ease;
    position: relative;
}

#product1 .pro:hover {
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.06);
}

#product1 .pro img {
    width: 100%;
    border-radius: 20px;   
}

#product1 .pro .des {
    text-align: start;
    padding: 10px 0;
}

#product1 .pro .des span {
    color: #606063;
    font-size: 12px;
}

#product1 .pro .des h5 {
    padding-top: 7px;
    color: #1a1a1a;
    font-size: 14px;
}

#product1 .pro .des i {
    font-size: 12px;
    color: rgb(243, 181, 25);
}

#product1 .pro .des h4 {
    padding-top: 7px;
    font-size: 15px;
    font-weight: 700;
    color: #088178;
}

#product1 .pro .cart {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50px;
    background-color: #e8f6ea;
    font-weight: 500;
    color: #088178;
    border: 1px solid #cce7d0;
    position: absolute;
    bottom: 20px;
    right: 10px;
}

#banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url(images/banner/b2.webp);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 40vh;
}

#banner h4 {
    color: #fff;
    font-size: 16px;
}

#banner h2 {
    color: #fff;
    font-size: 30px;
    padding: 10px 0;
}

#banner h2 span {
    color: #ef3636;
}

#banner button:hover {
    background-color: #088178;
    color: #fff;
}

#sm-banner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#sm-banner .banner-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    background-image: url(images/banner/b17.webp);
    background-size: cover;
    background-position: center;
        /* make banner responsive */
        min-width: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 20px;
}

#sm-banner h4{
    color: #fff;
    font-size: 20px;
    font-weight: 300;
}

#sm-banner h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

#sm-banner span  {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding-bottom: 15px;
}

#sm-banner .banner-box:hover button{
    background-color: #088178;
    border: 1px solid #088178;
}

#sm-banner .banner-box:nth-child(2) {
    background-image: url(images/banner/b10.jpg);
}

#banner3 .banner-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    background-image: url(images/banner/b7.jpg);
    background-size: cover;
    background-position: center;
    min-width: 30%;
    height: 30vh;
    padding: 30px;
    margin-bottom: 20px;
}

#banner3 .banner-box:nth-child(2) {
    background-image: url(images/banner/b4.webp);
}

#banner3 .banner-box:nth-child(3) {
    background-image: url(images/banner/b18.avif);
}

#banner3 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 80px;   
}

#banner3 h2 {
    color: #fff;
    font-weight: 900;
    font-size: 22px;
}

#banner3 h3 {
    color: #ec544e;
    font-weight: 800;
    font-size: 15px;
}

#newsletter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-image: url(images/banner/b14.png);
    background-repeat: no-repeat;
    background-position: 20% 30%;
    background-color: #041e42;
}

#newsletter h4 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

#newsletter p {
    font-size: 14px;
    font-weight: 600;
    color: #818EA0;
}

#newsletter p span{ 
    color: #ffbd27;
}

#newsletter .form {
    display: flex;
    width: 40%;
}

#newsletter input {
    height: 3.125rem;
    padding: 0 1.25rem;
    font-size: 14px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 4px;
    outline: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#newsletter button {
    background-color: #088178;
    color: #fff;
    white-space: nowrap;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

footer .col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 5px;
}

footer .logo {
    margin-bottom: 8px;
}

footer h4 {
    font-size: 14px;
    padding-bottom: 6px;
    margin-bottom: 3px;
}

footer p {
    font-size: 13px;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

footer a {
    font-size: 13px;
    text-decoration: none;
    color: #222;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

footer .follow {
    margin-top: 8px;
}

footer .follow i{
    color: #465b52;
    padding-right: 4px;
    cursor: pointer;
    font-size: 18px;
}

footer .install .row img{
    border: 1px solid #088178;
    border-radius: 6px;
    margin: 5px 0 6px 0;
}

footer .follow i:hover,
footer a:hover {
    color: #088178;
}

footer .copyright {
    width: 100%;
    text-align: center;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e8e8e8;
}

/* Shop Page */

#page-header {
    background-image: url(images/banner/b33.jpg);
    width: 100%;
    height: 40vh;
    background-size: cover;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 14px;
}

#page-header h2,
#page-header p {
    color: #fff;
}

#pagination {
    text-align: center;
}

#pagination a {
    text-decoration: none;
    background-color: #088178;
    padding: 15px 20px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
}

#pagination a i {
    font-size: 16px;
    font-weight: 600;
}

/* Single Product Page */

#productdetails {
    display: flex;
    margin-top: 20px;
}

#productdetails .single-pro-image{
    width: 40%;
    margin-right: 50px;
}

.small-image-group {
    display: flex;
    justify-content: space-between;
}

.small-img-col {
    flex-basis: 24%;
    cursor: pointer;
}

#productdetails .single-pro-details {
    width: 50%;
    padding-top: 30px;
}

#productdetails .single-pro-details h4 {
    padding: 40px 0 20px 0;
}

#productdetails .single-pro-details h2 {
    font-size: 26px;
}

#productdetails .single-pro-details select {
    display: block;
    padding: 5px 10px;
    margin-bottom: 10px;
}

#productdetails .single-pro-details input {
    width: 50px;
    height: 47px;
    padding-left: 10px;
    font-size: 16px;
    margin-right: 10px;
}

#productdetails .single-pro-details button {
    background-color: #088178;
    color: #fff;
}

#productdetails .single-pro-details input:focus {
    outline: none;
}

#productdetails .single-pro-details span {
    line-height: 25px;
}

/* Blog Page */

#page-header.blog-header {
    background-image: url(images/banner/b23.jpg);
}

#blog {
    padding: 150px 150px 0 150px;
}

#blog .blog-box {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    padding-bottom: 90px;
}

#blog .blog-img {
    width: 50%;
    margin-right: 40px;
}

#blog img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

#blog .blog-details {
    width: 50%;
}

#blog .blog-details a {
    text-decoration: none;
    font-size: 11px;
    color: #000;
    font-weight: 700;
    position: relative;
    transition: 0.3s;
}

#blog .blog-details a::after {
    content: "";
    width: 50px;
    height: 1px;
    background-color: #000;
    position: absolute;
    top: 4px;
    right: -60px;
}

#blog .blog-details a:hover {
    color: #088178;
}

#blog .blog-details a:hover::after {
    background-color: #088178;
}

#blog .blog-box h1 {
    position: absolute;
    top: -40px;
    left: 0;
    font-size: 70px;
    font-weight: 700;
    color: #c9cbce;
    z-index: -9;
}

/* About Page */

#page-header.about-header {
    background-image: url(images/about/banner.jpg);
}

#about-head {
    display: flex;
    align-items: center;
}

#about-head img {
    width: 50%;
    height: auto;
}

#about-head div {
    padding-left: 40px;
}


#about-app {
    text-align: center;
}

#about-app .video {
    width: 70%;
    height: 100%;
    margin: 30px auto 0 auto;
} 

#about-app .video video {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Contact Page */

#contact-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#contact-details .details {
    width: 40%;
}

#contact-details .details span,
#form-details form span {
    font-size: 12px;
}

#contact-details .details h2,
#form-details form h2 {
    font-size: 26px;
    line-height: 30px;
    padding: 12px 0;
}

#contact-details .details h3 {
    font-size: 16px;
    padding-bottom: 8px;
}

#contact-details .details li {
    list-style: none;
    display: flex;
    padding: 6px 0;
    align-items: center;
}

#contact-details .details li i {
    font-size: 14px;
    padding-right: 15px;
}

#contact-details .details li p {
    margin: 0;
    font-size: 14px;
}

#contact-details .map {
    width: 55%;
    height: 400px;
}

#contact-details .map iframe {
    width: 100%;
    height: 100%;
}

#form-details {
    display: flex;
    justify-content: space-between;
    margin: 30px;
    padding: 80px;
    border: 1px solid #e1e1e1;
}

#form-details form {
    width: 65%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#form-details form input,
#form-details form textarea {
    width: 100%;
    padding: 12px 15px;
    outline: none;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
}

#form-details form button {
    background-color: #088178;
    color: #fff;
}

#form-details .people div {
    padding-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

#form-details .people div img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    margin-right: 15px;
}

#form-details .people div p {
    margin: 0;
    font-size: 13px;
    line-height: 25px;
}

#form-details .people div span {
    display: block;
    color: #000;
    font-size: 16px;
    font-weight: 600;
}

/* Cart Page */

#cart {
    overflow-x: auto;
}

#cart table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    white-space: nowrap;
}

#cart table img {
    width: 70px;
}

#cart table td:nth-child(1) {
    width: 100px;
    text-align: center;
}

#cart table td:nth-child(2) {
    width: 150px;
    text-align: center;
}

#cart table td:nth-child(3) {
    width: 250px;
    text-align: center;
}

#cart table td:nth-child(4),
#cart table td:nth-child(5),
#cart table td:nth-child(6) {
    width: 150px;
    text-align: center;
}

#cart table td:nth-child(5) input{
    width: 70px;
    padding: 10px 5px 10px 15px;
}

#cart table thead {
    border: 1px solid #e2e9e1;
    border-left: none;
    border-right: none;
}

#cart table thead td {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    padding: 18px 0;
}

#cart table tbody tr td {
    padding-top: 15px;
}

#cart table tbody td {
    font-size: 13px;
}

#cart-add {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#cart-add .coupon {
    width: 50%;
    margin-bottom: 30px;
}

#cart-add .coupon h3,
#cart-add .subtotal h3 {
    padding-bottom: 15px;
}
 
#cart-add .coupon input {
    padding: 10px 20px;
    outline: none;
    width: 60%;
    margin-right: 10px;
    border: 1px solid #e2e9e1;
}

#cart-add .coupon button,
#cart-add .subtotal button {
    background-color: #088178;
    color: #fff;
    padding: 12px 20px;
}

#cart-add .subtotal {
    width: 50%;
    margin-bottom: 30px;
    border: 1px solid #e2e9e1;
    padding: 30px;
}

#cart-add .subtotal table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

#cart-add .subtotal table td {
    width: 50%;
    border: 1px solid #e2e9e1;
    padding: 10px;
    font-size: 13px;
}

/* Media Query */

@media (max-width: 799px) {
    .section-p1 {
        padding: 40px 40px;
    } 

    #navbar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 300px;
        background-color: #E3E6F3;
        box-shadow: 0 40px 60px rgba(0, 0, 0, 0.1);
        padding: 80px 0 0 10px;
        transition: 0.3s;
    }

    #navbar.active {
        right: 0px;
    }

    #navbar li {
        margin-bottom: 25px;
    }

    #mobile {
        display: flex;
        align-items: center;
    }

    #mobile i {
        color: #1a1a1a;
        font-size: 24px;
        padding-left: 20px;
    }

    #close {
        display: initial;
        position: absolute;
        top: 30px;
        left: 30px;
        color: #222;
        font-size: 24px;
    }

    #lg-bag {
        display: none;
    }

    #hero {
        height: 70vh;
        padding: 0 80px;
        background-position: top 30% right 30%;
    }

    #feature {
        justify-content: center;
    }

    #feature .fe-box {
        margin: 15px 15px;
    }

    #product1 .pro-container {
        justify-content: center;
    }

    #product1 .pro {
        margin: 15px;
    }

    #banner {
        height: 20vh;
    }
    
    #sm-banner .banner-box {
        min-height: 100%;
        height: 30vh;
    }
    
    #banner3 {
        padding: 0 40px;
    }
    
    #banner3 .banner-box {
        width: 28%;
    }
    
    #newsletter .form {
        width: 70%;
    }
    
    /* Contact Page */
    #form-details {
        padding: 40px;
    }
    
    #form-details form {
        width: 50%;
    }
    
    @media (max-width: 477px) {
        .section-p1 {
            padding: 20px;
        }
    
        #header {
            padding: 10px 30px;
        }
    
        h1 {
            font-size: 38px;
        }
    
        h2 {
            font-size: 32px;
        }
    
        #hero {
            padding: 0 20px;
            background-position: 55%;
        }
    
        #feature {
            justify-content: space-between;
        }
    
        #feature .fe-box {
            width: 155px;
            margin: 0 0 15px 0;
        }
    
        #product .pro {
            width: 100%;
        }
    
        #banner {
            height: 40vh;
        }
    
        #sm-banner .banner-box {
            height: 40vh;
            margin-bottom: 20px;
        }
    
        #banner3 {
            padding: 0 20px;
        }
    
        #banner3 .banner-box {
            width: 100%;
        }
    }
    

    #newsletter {
        padding: 40px 20px;
    }

    #newsletter .form {
        width: 100%;
    }

    footer .copyright {
        text-align: start;
    }

    /* Single Product */
    #productdetails {
        display: flex;
        flex-direction: column;
    }

    #productdetails .single-pro-image {
        width: 100%;
        margin-right: 0px;
    }

    #productdetails .single-pro-details {
        width: 100%;
    }

    /* Blog Page */
    #blog {
        padding: 100px 20px 0 20px;
    }

    #blog .blog-box {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    #blog .blog-img {
        width: 100%;
        margin-right: 0px;
        margin-bottom: 30px;
    }

    #blog .blog-details {
        width: 100%;
    }

    /* About Page */
    
    #about-head {
        flex-direction: column;
    }

    #about-head img {
        width: 100%;
        margin-bottom: 20px;
    }

    #about-head div {
        padding-left: 0px;
    }

    #about-app .video {
        width: 100%;
    }

    /* Contact Page */

    #contact-details {
        flex-direction: column;
    }

    #contact-details .details {
        width: 100%;
        margin-bottom: 30px;
    }

    #contact-details .map {
        width: 100%;
    }

    #form-details {
        margin: 10px;
        padding: 30px 10px;
        flex-wrap: wrap;
    }

    #form-details form {
        width: 100%;
        margin-bottom: 30px;
    }

    /* Cart Page */

    #cart-add {
        flex-direction: column;
    }

    #cart-add .coupon {
        width: 100%;
    }

    #cart-add .subtotal {
        width: 100%;
        padding: 20px;
    }
}
















#header {
    height: 60px; /* Réduit la hauteur de la barre */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px; /* Réduit le padding pour un aspect compact */
    background-color: #fff; /* Couleur de fond, à ajuster si nécessaire */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optionnel : ombre pour le style */
}

#navbar {
    display: flex;
    list-style: none;
    gap: 15px; /* Réduit l'écart entre les liens */
    font-size: 14px; /* Réduit la taille de la police */
}

#navbar li a {
    text-decoration: none;
    color: #000; /* Couleur du texte */
    padding: 5px 10px; /* Ajuste le padding autour des liens */
    transition: color 0.3s ease;
}

#navbar li a:hover {
    color: green; /* Couleur au survol */
}

#mobile {
    display: none; /* À activer si nécessaire pour la version mobile */
}

/* Exemple pour les icônes ou affichage mobile */
@media (max-width: 768px) {
    #mobile {
        display: block;
    }
    #navbar {
        display: none;
    }
}



#product1 .pro-container {
    display: flex;
    justify-content: space-between; /* Espacement entre les cartes */
    padding-top: 20px;
    flex-wrap: wrap; /* Permet de passer à la ligne si nécessaire */
    gap: 20px; /* Ajoute un écart entre les articles */
}

#product1 .pro-container .product-card {
    flex: 1 1 calc(33.33% - 20px); /* Chaque carte occupe 1/3 de la largeur moins l'écart */
    max-width: calc(33.33% - 20px); /* Limite la largeur maximum */
    box-sizing: border-box; /* Inclut le padding et la bordure dans la largeur */
}

/* Ensure product cards stack nicely on small screens */
@media (max-width: 768px) {
    #product1 .pro-container .product-card {
        flex: 1 1 calc(48% - 20px);
        max-width: calc(48% - 20px);
    }
}

@media (max-width: 480px) {
    #product1 .pro-container .product-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}




.large-button {
    padding: 12px 24px;       /* Taille du bouton */
    font-size: 16px;          /* Taille du texte */
    background-color: green; /* Couleur de fond */
    color: white;             /* Couleur du texte */
    border: none;             /* Supprime la bordure */
    border-radius: 5px;       /* Coins arrondis */
    cursor: pointer;          /* Curseur pointeur */
    transition: background-color 0.3s; /* Transition pour effet hover */
}

.large-button:hover {
    background-color: green; /* Couleur de fond au survol */
}















/* Style du conteneur principal */
.product-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

/* Style des cartes produits */
.product-card {
    width: 300px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    border-radius: 8px;
}

/* Style du bloc actions (quantité + bouton) */
.product-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.product-actions input {
    width: 50px;
    padding: 5px;
    text-align: center;
}

/* Style du bouton "Ajouter au panier" */
.product-actions button {
    padding: 10px 15px;
    font-size: 14px;
    background-color: green;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.product-actions button:hover {
    background-color: green;
}

/* Espacement général pour la section */
#product-range {
    padding: 50px 0;
}

/* Espacement du titre */
#product-range h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

/* Conteneur des produits */
.product-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px; /* Augmente l'espace entre les produits */
    padding: 0 20px;
}

/* Cartes produits */
.product-card {
    width: 320px;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

/* Effet de zoom au survol */
.product-card:hover {
    transform: translateY(-5px);
}

/* Images des produits */
.product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Actions (quantité + bouton) */
.product-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.product-actions input {
    width: 60px;
    padding: 6px;
    text-align: center;
    margin-bottom: 10px;
}

/* Bouton "Ajouter au panier" */
.product-actions button {
    padding: 12px 18px;
    font-size: 14px;
    background-color: green;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.product-actions button:hover {
    background-color: green;
}

.section-p1 .form form {
    display: flex;
    gap: 0; /* Assure-toi qu'il n'y a pas d'espace entre le champ et le bouton */
}

.section-p1 .form input[type="email"] {
    flex: 1; /* Pour que le champ de texte occupe tout l'espace disponible */
    border-top-right-radius: 0; /* Enlève le coin arrondi à droite */
    border-bottom-right-radius: 0;
}

.section-p1 .form button {
    border-top-left-radius: 0; /* Enlève le coin arrondi à gauche */
    border-bottom-left-radius: 0;
}
/* Cacher le menu par défaut */
#navbar {
    display: flex;
    list-style: none;
    gap: 20px;
  }
  
  /* Sur mobile, cacher le menu */
  @media (max-width: 768px) {
    #navbar {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px; /* Ajustez selon la hauteur de votre header */
      right: 0;
      background: white;
      width: 200px;
      box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
      padding: 10px;
    }
  
    /* Lorsque le menu a la classe "active", il doit être visible */
    #navbar.active {
      display: flex;
    }
  
    /* Le bouton hamburger */
    #bar {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 24px;
    }
  }
  
    #sm-banner {
        font-family: 'Arial', sans-serif;
        padding: 40px;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        max-width: 900px;
        margin: 0 auto;
        color: #333;
        background-color: grey; /* Ajout d'un fond pour correspondre au style */
    }

    #sm-banner .banner-box {
        text-align: center;
    }

    #sm-banner h4 {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    #sm-banner .white {
        background-color: #fff;
        color: #333;
        border: 1px solid #333;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1rem;
        transition: background-color 0.3s, color 0.3s;
    }

    #sm-banner .white:hover {
        background-color: #333;
        color: #fff;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        #sm-banner {
            padding: 20px;
        }

        #sm-banner h4 {
            font-size: 1rem;
        }

        #sm-banner .white {
            padding: 8px 16px;
            font-size: 0.9rem;
        }
    }

    @media (max-width: 480px) {
        #sm-banner {
            padding: 15px;
        }

        #sm-banner h4 {
            font-size: 0.9rem;
        }

        #sm-banner .white {
            padding: 6px 12px;
            font-size: 0.8rem;
        }
    }
    #sm-banner {
        padding: 20px;
    }
    
    .content-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .content-box h4 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .content-box button.white {
        padding: 10px 20px;
        font-size: 1rem;
        cursor: pointer;
        border: none;
        background-color: white;
        color: #333;
        border-radius: 5px;
    }
    
    @media screen and (max-width: 768px) {
        .content-box h4 {
            font-size: 1rem;
        }
    
        .content-box button.white {
            padding: 10px 15px;
            font-size: 0.9rem;
        }
    }
    #videos {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Centrer les vidéos horizontalement */
        gap: 10px; /* Espace réduit entre les vidéos */
        padding: 10px 0; /* Padding réduit */
        max-width: 100%; /* Empêcher le débordement */
        margin: 0 auto; /* Centrer la section */
    }
    
    .video-container {
        flex: 1 1 calc(50% - 10px); /* Largeur réduite avec moins d'espace */
        position: relative;
        padding-bottom: 25%; /* Ratio 16:9 réduit */
        height: 0;
        overflow: hidden;
        border: 1px solid #ddd; /* Bordure optionnelle pour mieux voir les conteneurs */
        max-width: 100%; /* Empêcher le débordement */
    }
    
    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    /* Responsive pour mobile */
    @media (max-width: 768px) {
        #videos {
            flex-direction: column;
            gap: 10px; /* Espace réduit sur mobile */
            padding: 10px; /* Ajouter un padding pour éviter le débordement */
        }
    
        .video-container {
            flex: 1 1 100%;
            padding-bottom: 50%; /* Ratio 16:9 plus petit pour mobile */
        }
    }
    .logo {
        max-width: 280px;
        width: 100%;
        height: auto;
    }
    /* Styles de base pour les cartes de service */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Espace entre les cartes */
    justify-content: center;
}

.service-card {
    flex: 1 1 calc(25% - 40px); /* 4 cartes par ligne sur desktop */
    max-width: 300px; /* Largeur maximale des cartes */
    text-align: center;
    border: 1px solid #ddd;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Styles pour les images */
.service-image {
    width: 100%; /* Largeur responsive */
    height: 150px; /* Hauteur fixe pour toutes les images */
    object-fit: cover; /* Assure que l'image couvre la zone sans déformation */
    border-radius: 8px; /* Coins arrondis */
}

/* Styles pour les liens "En savoir plus" */
.learn-more {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: green;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.learn-more:hover {
    background-color: green;
}

/* Responsive design pour mobile */
@media (max-width: 768px) {
    .service-card {
        flex: 1 1 calc(50% - 40px); /* 2 cartes par ligne sur tablette */
    }
}

@media (max-width: 480px) {
    .service-card {
        flex: 1 1 100%; /* 1 carte par ligne sur mobile */
    }

    .service-image {
        height: 120px; /* Hauteur réduite pour mobile */
    }
}
/* Styles pour la section des vidéos */
#videos {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9; /* Couleur de fond optionnelle */
}

.video-wrapper {
    display: flex;
    flex-wrap: nowrap; /* Garde les vidéos côte à côte */
    gap: 20px; /* Espace entre les vidéos */
    max-width: 1200px; /* Largeur maximale pour les vidéos */
    width: 100%;
    justify-content: center;
}

.video-container {
    flex: 1; /* Les vidéos partagent l'espace disponible */
    max-width: 400px; /* Largeur maximale de chaque conteneur de vidéo */
    position: relative;
    padding-bottom: 25%; /* Ratio personnalisé pour une hauteur réduite */
    height: 0;
    overflow: hidden;
    border-radius: 10px; /* Bordures arrondies */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre optionnelle */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajuste la vidéo pour remplir le cadre */
}

/* Styles pour les écrans mobiles */
@media (max-width: 768px) {
    .video-wrapper {
        flex-wrap: wrap; /* Les vidéos passent à la ligne sur mobile */
    }

    .video-container {
        flex: 1 1 100%; /* Une vidéo par ligne sur mobile */
        max-width: 100%; /* Pleine largeur sur mobile */
        padding-bottom: 56.25%; /* Ratio 16:9 pour les mobiles */
    }
}
/* Style général de la section */
#all-products {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

#all-products h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

/* Grille des produits */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Style des cartes de produits */
.product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h4 {
    font-size: 1.25rem;
    margin: 15px 15px 10px;
    color: green;
}

.product-card p {
    font-size: 0.9rem;
    margin: 0 15px 15px;
    color: #666;
    line-height: 1.5;
}

/* Style du bouton "Demander un devis" */
.devis-btn {
    display: block;
    width: calc(100% - 30px);
    margin: 15px;
    padding: 10px;
    font-size: 1rem;
    background-color: green;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.devis-btn:hover {
    background-color: green;
}

/* Responsive Design */
@media (max-width: 768px) {
    #all-products h2 {
        font-size: 1.75rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .product-card img {
        height: 150px;
    }

    .product-card h4 {
        font-size: 1.1rem;
    }

    .product-card p {
        font-size: 0.85rem;
    }

    .devis-btn {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #all-products {
        padding: 20px 10px;
    }

    #all-products h2 {
        font-size: 1.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 180px;
    }

    .product-card h4 {
        font-size: 1rem;
    }

    .product-card p {
        font-size: 0.8rem;
    }

    .devis-btn {
        font-size: 0.85rem;
    }
}
/* Small-screen fixes for cart table to improve readability */
@media (max-width: 480px) {
    #cart table {
        table-layout: auto;
        font-size: 13px;
    }
    #cart table td, #cart table th {
        white-space: normal;
    }
}

/* Ensure media (images/videos) are always fluid */
img, picture, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}
section {
    margin-bottom: 50px; /* Ajoute 50px d'espace en bas de chaque section */
}
.banner {
    margin-bottom: 50px; /* Ajoute 50px d'espace en bas de la bannière */
}
/* Style général de la section */
.produits-services {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
  }
  
  .section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
  }
  
  /* Grille pour les cartes */
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

/* ======================= */
/* Améliorations responsive */
/* ======================= */

/* Defaults mobile-friendly */
img, picture, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Touch targets & buttons */
button, .large-button, .devis-btn, .product-actions button {
    min-height: 44px; /* cible tap-friendly */
    padding: 12px 18px;
}

/* Ensure text wraps nicely on small screens */
/* Use safe wrapping: avoid breaking inside words (which produced single-letter lines).
   Use overflow-wrap to allow breaking long words only when necessary. */
body, p, li, a {
    word-break: normal;
    overflow-wrap: break-word;
}

/* Prevent headings/titles from breaking mid-word or into single letters
   (fixes issues like "Concep\ntion" or "Universel\nle"). */
.feature h3,
.card-title,
.product-card h4,
.section-title,
.service-card h4,
.feature h2,
.product-range h2 {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    white-space: normal !important;
    line-height: 1.15;
}

/* Reduce large heading size slightly on small screens to avoid forced breaks */
@media (max-width: 480px) {
    .feature h3, .card-title, .product-card h4 { font-size: 1.1rem !important; }
}

/* Header / navbar improvements */
#header {
    padding: 10px 16px;
}

/* Make layout mobile-first tweaks at common breakpoints */
@media (max-width: 1024px) {
    h1 { font-size: 40px; line-height: 48px; }
    h2 { font-size: 34px; line-height: 40px; }
    #product1 .pro { width: 48%; min-width: 0; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .section-p1 { padding: 20px; }
    #hero { padding: 0 16px; height: auto; background-position: center; }
    #feature .fe-box { width: 45%; }
    #product1 .pro { width: 48%; border-radius: 12px; }
    #sm-banner .banner-box { min-width: 100%; height: auto; padding: 20px; }
    #newsletter .form { width: 100%; flex-direction: column; gap: 10px; }
    #newsletter input { width: 100%; }
    footer { padding: 24px 16px; }
    #cart table { font-size: 13px; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    h1 { font-size: 28px; line-height: 36px; }
    h2 { font-size: 22px; }
    #navbar { right: -320px; width: 320px; }
    #product1 .pro { width: 100%; min-width: 0; }
    .service-card, .product-card { margin: 0 auto; width: 100%; }
    .product-card img { height: auto; }
    #form-details { padding: 12px; margin: 8px; }
    #about-head { padding: 20px 8px; }
    /* Reduce large paddings that cause horizontal scroll */
    .section-p1, #blog, #banner3 { padding-left: 12px; padding-right: 12px; }
}

/* Small cosmetic fix: ensure hero button doesn't overflow */
#hero button { max-width: 100%; white-space: normal; }

  
  /* Style des cartes */
  .card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .card-title {
    font-size: 1.5rem;
    color: #222;
    margin: 20px 0 10px;
  }
  
  .card-description {
    font-size: 1rem;
    color: #555;
    padding: 0 20px 20px;
  }
  .service-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.learn-more {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: green;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.learn-more:hover {
    background-color: #0056b3;
}


#menu-container {
    position: relative;
    z-index: 1000; /* Assure que le menu est au-dessus de la bannière */
}
.quokka-zebra-section {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
  }
  
  .flamingo-pineapple-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
  }
  
  .narwhal-mango-title {
    font-size: 2rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .platypus-kiwi-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .axolotl-banana-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .jellyfish-durian-label {
    font-size: 1rem;
    color: #555;
  }
  
  .octopus-guava-select,
  .toucan-papaya-input,
  .toucan-papaya-textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
  }
  
  .toucan-papaya-textarea {
    resize: vertical;
  }
  
  .penguin-lychee-button {
    padding: 10px 20px;
    background-color: green;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .penguin-lychee-button:hover {
    background-color: #0056b3;
  }

/* ========================= */
/* Navbar consolidation (overrides duplicate rules) */
/* ========================= */

/* Desktop: show nav inline */
#navbar {
    display: flex !important;
    gap: 16px;
    align-items: center;
}

/* Prevent navbar labels from breaking into multiple lines/characters */
#navbar, #navbar ul {
    white-space: nowrap;
}

#navbar li {
    list-style: none;
    min-width: 0; /* allow flex to size items */
}

#navbar li a {
    display: inline-block;
    padding: 8px 12px;
    white-space: nowrap;      /* keep text on one line */
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-decoration: none;
    color: inherit;
}

/* Prevent nav items from breaking into characters when container is tight */
#navbar {
    flex-wrap: nowrap;
}

#navbar li {
    flex: 0 0 auto;
    min-width: 0;
}

/* Truncate long nav labels with ellipsis instead of wrapping */
#navbar li a {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hide desktop menu button by default; show only on mobile */
#menu-button { display: none; }
@media (max-width: 768px) {
    #menu-button { display: inline-flex; }
}

/* Mobile: hide nav and show menu button (#menu-button) */
@media (max-width: 768px) {
    #navbar {
        display: none !important;
        position: fixed;
        top: 0;
        right: -320px;
        height: 100vh;
        width: 320px;
        background: #fff;
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        padding: 80px 16px 16px 16px;
        transition: right 0.28s ease;
        z-index: 9999;
        overflow-y: auto;
    }

    #navbar.active {
        right: 0 !important;
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Ensure list items are readable */
    #navbar li { margin-bottom: 16px; padding: 6px 0; }
    #navbar li a { font-size: 18px; }

    /* show menu button */
    #menu-button, #mobile, #bar { display: inline-flex !important; }
}

/* style for the close button injected by script.js */
.close-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

/* ========================= */
/* Responsive cart/table stacking */
/* ========================= */

@media (max-width: 640px) {
    #cart table { display: block; width: 100%; }
    #cart thead { display: none; }
    #cart tbody tr { display: block; border: 1px solid #e2e9e1; margin-bottom: 12px; padding: 10px; border-radius: 8px; }
    #cart tbody td { display: flex; justify-content: space-between; padding: 8px 6px; border: none; }
    /* Labels using nth-child - adjust to your table columns */
    #cart tbody td:nth-child(1)::before { content: "Article"; font-weight:700; margin-right:8px; }
    #cart tbody td:nth-child(2)::before { content: "Description"; font-weight:700; margin-right:8px; }
    #cart tbody td:nth-child(3)::before { content: "Prix"; font-weight:700; margin-right:8px; }
    #cart tbody td:nth-child(4)::before { content: "Quantité"; font-weight:700; margin-right:8px; }
    #cart tbody td:nth-child(5)::before { content: "Total"; font-weight:700; margin-right:8px; }
    #cart table img { width: 60px; height: auto; }
}

/* ========================= */
/* Touch targets, focus outlines and small polish */
/* ========================= */
button, .large-button, .devis-btn, .product-actions button, a.button {
    min-height: 44px;
    padding: 10px 14px;
}

a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid rgba(8,129,120,0.25);
    outline-offset: 2px;
}

/* Fix vertical/stacked letters on some CTA buttons (force horizontal writing) */
.buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
}

button, .devis-btn, .download-pdf, .cta-button, .quote-btn, a.cta-button {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    line-height: 1 !important;
}

/* Ensure long labels truncate instead of stacking */
button span, .devis-btn span, .download-pdf span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   RESPONSIVE GLOBAL — CONSOLIDATION FINALE
   Breakpoints : 1024px | 768px | 480px | 360px
   ============================================================ */

/* --- Logo responsive --- */
.logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo { max-width: 160px; }
}

@media (max-width: 480px) {
    .logo { max-width: 130px; }
}

/* --- Grille produits/services : 250px → 150px sur petit mobile --- */
@media (max-width: 480px) {
    .grid-container,
    .product-grid {
        grid-template-columns: 1fr !important;
    }

    .section-title {
        font-size: 1.6rem !important;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.9rem;
    }
}

/* --- Produits-services section --- */
@media (max-width: 768px) {
    .produits-services {
        padding: 32px 16px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 14px;
    }
}

/* --- Contact form : stack sur mobile --- */
@media (max-width: 768px) {
    #contact-details {
        flex-direction: column !important;
    }

    #contact-details .details,
    #contact-details .map {
        width: 100% !important;
        margin-bottom: 20px;
    }

    #form-details {
        padding: 24px 16px !important;
        margin: 8px !important;
        flex-wrap: wrap;
    }

    #form-details form {
        width: 100% !important;
        margin-bottom: 24px;
    }

    #form-details .people {
        width: 100% !important;
        flex-direction: column;
    }

    #form-details .people input {
        width: 100% !important;
    }
}

/* --- Newsletter : stack input + bouton --- */
@media (max-width: 768px) {
    #newsletter {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px;
        padding: 32px 16px;
    }

    #newsletter .newstext {
        max-width: 100%;
    }

    #newsletter .form {
        width: 100% !important;
    }

    #newsletter .form form {
        flex-direction: column !important;
        gap: 10px;
    }

    #newsletter .form input[type="email"] {
        width: 100% !important;
        border-radius: 6px !important;
    }

    #newsletter .form button {
        width: 100% !important;
        border-radius: 6px !important;
    }
}

/* --- Hero --- */
@media (max-width: 768px) {
    #hero {
        padding: 0 16px !important;
        height: auto !important;
        min-height: 50vh;
        background-position: center !important;
    }

    #hero h4 { font-size: 14px; }
    #hero h1 { font-size: clamp(1.4rem, 5vw, 2.2rem); }
}

@media (max-width: 480px) {
    #hero {
        min-height: 40vh;
        padding: 0 12px !important;
    }
}

/* --- Banner3 padding --- */
@media (max-width: 768px) {
    #banner3 { padding: 0 16px !important; }
    #banner3 .banner-box { width: 100% !important; margin-bottom: 16px; }
}

/* --- Footer : stack colonnes --- */
@media (max-width: 768px) {
    footer.section-p1 {
        flex-direction: column !important;
        gap: 28px;
        padding: 32px 20px !important;
    }

    footer .col {
        width: 100% !important;
    }

    footer .copyright {
        text-align: center;
        width: 100%;
        padding-top: 16px;
        border-top: 1px solid #eee;
    }
}

/* --- Sections padding globaux sur mobile --- */
@media (max-width: 768px) {
    .section-p1 { padding: 24px 16px !important; }
    .section-m1 { margin: 16px 0 !important; }
}

@media (max-width: 480px) {
    .section-p1 { padding: 16px 12px !important; }

    h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
    h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
    h3 { font-size: clamp(1.1rem, 4vw, 1.4rem); }
}

/* --- Single product page --- */
@media (max-width: 768px) {
    #productdetails {
        flex-direction: column !important;
    }

    #productdetails .single-pro-image,
    #productdetails .single-pro-details {
        width: 100% !important;
        margin-right: 0 !important;
    }
}

/* --- Blog page --- */
@media (max-width: 768px) {
    #blog {
        padding: 40px 16px !important;
    }

    #blog .blog-box {
        flex-direction: column !important;
    }

    #blog .blog-img {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 20px;
    }

    #blog .blog-details {
        width: 100% !important;
    }
}

/* --- Vidéos section --- */
@media (max-width: 768px) {
    .video-wrapper {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }

    .video-container {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        padding-bottom: 56.25% !important;
    }
}

/* --- About page --- */
@media (max-width: 768px) {
    #about-head {
        flex-direction: column !important;
    }

    #about-head img {
        width: 100% !important;
        margin-bottom: 20px;
    }

    #about-head div {
        padding-left: 0 !important;
    }
}

/* --- Cart table sur petit mobile --- */
@media (max-width: 480px) {
    #cart {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- Sen E-CHARGE section sur mobile (renforts) --- */
@media (max-width: 480px) {
    #sen-echarge-section {
        padding: 32px 16px !important;
    }
}

/* --- Devis / form.html --- */
@media (max-width: 480px) {
    .quokka-zebra-section {
        padding: 24px 12px !important;
    }

    .flamingo-pineapple-container {
        padding: 20px 14px !important;
        border-radius: 8px;
    }

    .narwhal-mango-title {
        font-size: 1.4rem !important;
    }
}

/* --- Overflow horizontal global (sécurité) --- */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* --- Images fluides (rappel global sécurisé) --- */
img, video, iframe, picture {
    max-width: 100%;
    height: auto;
}
