* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 1rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    border-bottom: 2px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

header img {
    height: 3.125rem;
}

.search-form input[type="search"] {
    padding: 0.4375rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.search-form input[type="search"]:focus {
    border-color: #e85d04;
    outline: 3px solid #e85d04;
    outline-offset: 2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
    color: #e85d04;
    outline: 3px solid #e85d04;
    outline-offset: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
}

.account-link,
.cart-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.account-link:hover,
.account-link:focus,
.cart-link:hover,
.cart-link:focus {
    color: #e85d04;
    outline: 3px solid #e85d04;
    outline-offset: 2px;
}

.cart-link {
    font-size: 1.5rem;
    position: relative;
}

.hamburger {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    color: #333;
}

#categories {
    position: relative;
    text-align: center;
    padding: 3rem 1.25rem;
}

#categories img.b {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    z-index: -1;
}

#categories h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
    position: relative;
}

#filtres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    max-width: 70rem;
    margin: 0 auto;
    list-style: none;
}

#filtres li {
    background: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.6rem rgba(0, 0, 0, 0.1);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#filtres li:hover,
#filtres li.active {
    background: #e85d04;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.2);
}

#produits {
    padding: 3rem 1.25rem;
    text-align: center;
}

#produits h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #222;
}

.grid-produits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.carte-produit {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.6rem rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
}

.carte-produit:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.2);
}

.image-container {
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    background: #f8f8f8;
}

.img-real,
.img-cover {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 0.5rem;
    transition: opacity 0.3s ease;
}

.img-cover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.carte-produit:hover .img-cover {
    opacity: 0;
}

.carte-produit h3 {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #222;
}

.prix {
    color: #333;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.btn-produit {
    display: inline-block;
    margin-top: auto;
    padding: 0.6rem 1rem;
    background-color: #e85d04;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-produit:hover {
    background-color: #c94d03;
    transform: translateY(-2px);
}

footer {
    background: #222;
    color: #ddd;
    padding: 2.5rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

footer h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

footer a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #e85d04;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons i {
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons i:hover {
    color: #e85d04;
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .grid-produits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        background: #fff;
        width: 100%;
        padding: 1rem;
        border-top: 2px solid #eee;
        position: absolute;
        top: 70px;
        left: 0;
    }

    .main-nav.open {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .grid-produits {
        grid-template-columns: 1fr;
    }

    #filtres {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.75rem 1rem;
    }
}