* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: #222;
    scroll-behavior: smooth;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #111;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: #f5a623;
}

.burger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #111, #333);
    color: #fff;
    padding: 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: #f5a623;
    color: #111;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

section {
    padding: 4rem 2rem;
}

.products h2,
.infos h2,
.contact h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.products-banner {
    display: block;
    margin: 0 auto 2rem auto;
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* .products {
    display: flex;
    flex-direction: column;
    align-items: center; version 1
    padding: 4rem 2rem;
} */


.products {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    /* remplace le padding latéral hérité de "section" */
}

.product-card {
    background: #fff;
    overflow: hidden;
    border-radius: 0;
    /* rounded → plat */
    box-shadow: none;
    /* plus d'ombre */
    transition: .3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: none;
    /* on enlève aussi l'effet de survol qui ne colle plus avec un style plat */
}

.product-grid {
    width: 30%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ===========================
   CARTE PRODUIT (style Ozon)
=========================== */

/* .product-card {
    background: #fff;
    border-radius: 16px; version 1
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
    transition: .3s;
    display: flex;
    flex-direction: column;
} */

/* .product-card:hover {
    transform: translateY(-6px); version 1
    box-shadow: 0 12px 25px rgba(0, 0, 0, .12);
} */

/* Grande image en haut de la carte, pleine largeur, façon fiche Ozon */
/* .product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f7f7f8;
    overflow: hidden;
} */

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f7f7f8;
    overflow: hidden;
}

/* .product-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
} */

.product-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* contain → cover */
    display: block;
}

/* Zone de texte sous l'image (prix, miniatures, nom, description) */
.product-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
    /* ajouté */
}

.product-body h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.product-body p {
    color: #555;
    line-height: 1.5;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    /* ajouté */
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.price {
    color: #18a849;
    font-size: 28px;
    font-weight: bold;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 16px;
}

.discount-badge {
    background: #18a849;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
}

/* Miniatures, alignées à gauche sous le prix, comme sur Ozon */
.thumbnail-row {
    display: flex;
    justify-content: center;
    /* flex-start → center */
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    /* overflow-x: auto → flex-wrap: wrap */
    padding-bottom: 2px;
}

.thumbnail {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    object-fit: cover;
    background: #fff;
    border: 2px solid #e2e2e2;
    border-radius: 8px;
    padding: 2px;
    cursor: pointer;
    transition: .2s;
}

.thumbnail:hover {
    border-color: #005bff;
}

.thumbnail.active {
    border-color: #005bff;
    transform: scale(1.05);
}

.infos {
    background: #f4f4f4;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact input,
.contact textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background: #111;
    color: #fff;
}

/* Responsive */
/* @media (max-width: 768px) { 1ère version
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #111;
        width: 200px;
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image-wrapper {
        aspect-ratio: 4 / 5;
    }

    .thumbnail {
        width: 48px;
        height: 48px;
    }

    .price {
        font-size: 24px;
    }
} */

.popup-box {
    position: relative;
    /* nouveau : pour positionner la croix par rapport à la boîte */
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.popup-close:hover {
    color: #222;
}

.popup-box p {
    text-align: center;
    margin-top: 1rem;
    /* évite que le texte touche la croix en haut */
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #222;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #111;
        width: 200px;
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .products {
        padding: 2rem 0;
        /* nouveau : supprime le padding latéral de la section */
    }

    .product-grid {
        width: 100%;
        /* nouveau : 70% → 100% sur mobile */
        margin: 0;
        grid-template-columns: 1fr;
    }

    .product-card {
        border-radius: 0;
        /* nouveau : évite les coins arrondis qui couperaient l'image */
        box-shadow: none;
    }

    .product-image-wrapper {
        aspect-ratio: 4 / 5;
    }

    .thumbnail {
        width: 48px;
        height: 48px;
    }

    .price {
        font-size: 24px;
    }
}