

body {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    background-color: var(--primary-color);
    color: #444;
}

h2 {
    font-size: 1.5rem;
}


.hero {
    text-align: center;
    padding: 5rem 2rem;
    background-color: var(--primary-color);
    ;
}

.hero h1 {
    font-size: 2.5rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 2rem;
}

.button {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #c08877;
}

.section {
    padding: 2rem 0rem;
    text-align: center;
    background-color: var(--third-color);
}

.section img {
    border-radius: 8px;
}

.carousel-wrapper {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.carousel-viewport{
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-container {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    /* remplace le scroll natif par un translateX animé */
    will-change: transform;
    transition: transform .5s ease;

}


.carousel-item {
    flex: 0 0 auto;
    width: 260px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;

    img{
        border-radius: 8px 8px 0 0;
    }
}

.product-body{
    padding: 0 1rem 1rem 1rem;
   
}

.carousel-item h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0 0.2rem;
}

.carousel-item p {
    font-size: 0.9rem;
    margin: 0 0 1rem;
    color: #666;
}


.carousel-item .price {
    font-weight: 700;
    color: #444;
    font-size: 1rem;
    margin: 0.3rem 0;
}

.carousel-item .desc {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #666;
}


.carousel-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.3s ease;
}

.carousel-link:hover {
    transform: scale(1.03);
}


.carousel-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.carousel-buttons .button,
.carousel-buttons .button-outline {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-radius: 30px;
    cursor: pointer;
}


.carousel-buttons .button-outline:hover {
    border: 2px solid #c08877;
    color: #c08877;
}


.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
    pointer-events: none;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

.carousel-controls button {
    background-color: var(--secondary-color);
    border: none;
    color: white;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.carousel-controls button:hover {
    background-color: #c08877;
}




.avis-div {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    height: 20px;
}

.carousel-item .price {
    font-weight: 700;
    color: #444;
    font-size: 1rem;
    margin: 0.3rem 0;
}

.carousel-item .desc {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #666;
}

.carousel-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.3s ease;
}

.carousel-link:hover {
    transform: scale(1.03);
}


.carousel-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.carousel-buttons .button,
.carousel-buttons .button-outline {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-radius: 30px;
    cursor: pointer;
}

.carousel-buttons .button-outline:hover {
    border: 2px solid #c08877;
    color: #c08877;
}



.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.categories-grid {
    padding-bottom: 0rem;
}

.category-grid {
    display: grid;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.category-card {
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    color: white;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.3);
}

.category-card:hover {
    transform: scale(1.02);
}

.category-card::after {
    content: "→";
    position: absolute;
    bottom: 0.8rem;
    right: 1rem;
    font-size: 1.4rem;
    color: white;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.category-card:hover::after {
    opacity: 1;
    transform: translateX(5px);
}

.map-section iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 8px;
}

.contact-map {
    background-color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.button {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #c08877;
}

.contact-map .button {
    margin-top: 1.5rem;
}

.contact-map .contact-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
}

.contact-map .contact-link:hover {
    text-decoration: none;
}


.nouveautes-section {
    background-color: #fff;
    padding: 0;
}

.nouveautes-carousel {
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.nouveaute-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
    padding: 2rem 4.5rem 0rem 4.5rem;
}


.nouveaute-slide.active {
    opacity: 1;
}

.nouveautes-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 0;
}

.nouveautes-carousel {
    display: flex;
    scroll-behavior: smooth;
    overflow-x: auto;
}

.nouveautes-carousel::-webkit-scrollbar {
    display: none;
}

.nouveautes-controls {
    position: absolute;
    top: 50%;
    left: 1rem;
    right: 1rem;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.nouveautes-controls button {
    background-color: var(--secondary-color);
    border: none;
    color: white;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.nouveautes-controls button:hover {
    background-color: #c08877;
}

.nouveautes-wrapper-outer {
    margin: 0;
    padding: 0;

}


.nouveaute-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.nouveaute-image {
    text-align: right;
    width: 30%;
}

.nouveaute-image img {
    max-width: 100%;
    border-radius: 8px;
}

.badge-nouveau {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.3rem 1rem;
    font-size: 0.9rem;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 1rem;
}

.nouveaute-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    margin-bottom: .65rem;
}

.category-grid.is-single {
    grid-template-columns: minmax(240px, 360px) !important;
    justify-content: center;
}

.category-grid.is-single .category-card {
    width: 100%;
    max-height: 270px;
    aspect-ratio: 4 / 3;
}

.nouveaute-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nouveaute-dots button.active {
    background-color: var(--secondary-color);
}


.progress-bar-wrapper {
    background-color: #e0e0e0;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--secondary-color);
    transition: width linear;
}

.news-buttons {
    display: flex;
    flex-direction: row;
}

.newsletter-block {
    text-align: center;
    background-color: var(--fourth-color);
    padding: 2.8rem 1rem;
}

.newsletter-inner {
    width: min(720px, 100%);
    margin: 0 auto;
}

.newsletter-inner h2,
.newsletter-inner p {
    margin-top: 0;
}

.newsletter-status {
    min-height: 1.35rem;
    margin: .8rem 0 0;
    font-weight: 700;
}

.box-section{
    background-color: var(--fourth-color);
}

.newsletter-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    max-width: 500px;
    margin: auto;
}

.newsletter-form input {
    padding: 0.8rem 1rem;
    border-radius: 30px;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 400px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
}

.newsletter-form button {
    align-self: center;
}

.featured-products-section {
    padding: 3rem 0 2rem;
    background: #f8eee2;
}

.featured-products-section > h2 {
    margin: 0 1rem .5rem;
}

.featured-products-carousel {
    padding-bottom: 8px;
}

.featured-products-carousel .carousel-viewport {
    overflow: hidden;
}

.featured-products-carousel .carousel-container {
    overflow: visible;
    transform: none !important;
    transition: none;
    align-items: stretch;
}

.featured-products-carousel .carousel-item {
    width: clamp(230px, 22vw, 280px);
    min-height: 500px;
    overflow: hidden;
}

.featured-product-link {
    width: 100%;
    height: 180px;
    display: block;
    flex: 0 0 180px;
    overflow: hidden;
}

.featured-product-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.featured-products-carousel .product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding: .9rem 1rem 1rem;
}

.featured-products-carousel .product-body h3 {
    min-height: 2.6rem;
    margin-top: 0;
}

.featured-price-row {
    min-height: 40px;
    margin: .45rem 0 .65rem;
}

.featured-price-row .price {
    margin: 0;
}

.featured-products-carousel .desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 3.3rem;
}

.featured-products-carousel .carousel-buttons {
    margin-top: auto;
}

.featured-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.confiance-section {
    background-color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.confiance-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: auto;
}

.confiance-item {
    max-width: 240px;
    flex: 1 1 200px;
}

.confiance-icon {
    background-color: #decdbd;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confiance-icon svg {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
    /* icône blanche */
    fill: #fff;
}

.confiance-item h3 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.confiance-item p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
}


.histoire-section {
    background-color: var(--third-color);
    padding: 4rem 2rem;
}

.histoire-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

.histoire-text {
    flex: 1 1 50%;
}

.histoire-text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.histoire-text .sous-titre {
    display: flex;
    font-size: 1rem;
    gap: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    justify-content: center;
    align-items: center;
}

.histoire-text p {
    font-size: 1rem;
    line-height: 1.6;
}

.histoire-image {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.histoire-image img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;

}

@media (max-width: 768px) {

    .carousel-viewport {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-x;
            scroll-snap-type: x mandatory;
            overscroll-behavior-x: contain;
        }
    
        .carousel-container {
            touch-action: pan-x;
        }
    .carousel-controls button {
        display: none !important;
    }

    .section {
        padding: 2rem 1rem;

    }

    .categories-grid {
        padding: 2rem 0rem 0rem;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-card::after {
        content: "→";
        position: absolute;
        bottom: 0.8rem;
        right: 1rem;
        opacity: 1;
        font-size: 1.4rem;
        color: white;
    }

    .nouveautes-section {
        padding: 3rem 2rem;
    }

    .nouveaute-slide {
        text-align: center;
        flex-direction: column;
    }

    .nouveaute-image {
        text-align: center;
        width: 100%;
    }

    .nouveaute-dots {
        display: flex;

    }

    .nouveautes-wrapper-outer {
        margin: -2rem;
        /* neutralise le padding pour l’intérieur */
        padding: 0;
    }

    .nouveautes-controls {
        left: 5px;
        right: 5px;
        display: none;
    }

    .nouveaute-slide {
        padding: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        max-width: none;
    }

    .featured-products-carousel .carousel-viewport {
        overflow-x: auto;
    }

    .featured-products-carousel .carousel-item {
        width: min(82vw, 290px);
    }

    .featured-products-carousel .carousel-controls button {
        display: flex !important;
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }

    .histoire-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .histoire-image {
        margin-top: 2rem;
    }

    .confiance-container {
        flex-direction: column;
        align-items: center;
    }

    .confiance-item {
        max-width: 300px;
    }
}
