* {
    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;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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 {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.account-link:hover,
.account-link:focus {
    color: #e85d04;
    outline: 3px solid #e85d04;
    outline-offset: 2px;
}

.cart-link {
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.cart-link:hover,
.cart-link:focus {
    color: #e85d04;
    outline: 3px solid #e85d04;
    outline-offset: 2px;
}

.hidden {
    display: none !important;
}

.hamburger {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    color: #333;
}

.hamburger:focus {
    outline: 3px solid #e85d04;
    outline-offset: 2px;
}

#categories {
    position: relative;
    text-align: center;
    padding: 3.125rem 1.25rem;
}

#categories img.b {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

#categories h1 {
    font-size: 2rem;
    margin-bottom: 1.875rem;
    color: #fff;
    position: relative;
    z-index: 1;
    text-align: center;
}

#categories ul#filtres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5625rem;
    list-style: none;
    max-width: 68.75rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#categories li {
    background: #fff;
    padding: 0.9375rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, background 0.3s ease;
}

#categories li:hover,
#categories li:focus,
#categories li.active {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.375rem 0.9375rem rgba(0, 0, 0, 0.15);
    color: #fff;
    background-color: #e85d04;
    outline: 3px solid #e85d04;
    outline-offset: 2px;
}

#produits {
    padding: 3.125rem 1.25rem;
    text-align: center;
    flex: 1 0 auto;
}

main h1,
main h2,
main p {
    text-align: center;
}

#produits h2 {
    font-size: 2rem;
    margin-bottom: 1.875rem;
    color: #222;
}

.grid-produits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 90rem;
    margin: 0 auto;
}

.carte-produit {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 28rem;
}

.carte-produit:hover,
.carte-produit:focus-within {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.375rem 0.9375rem rgba(0, 0, 0, 0.15);
    outline: 3px solid #e85d04;
    outline-offset: 2px;
}

.image-container {
    position: relative;
    width: 100%;
    height: 18rem;
    overflow: hidden;
    border-radius: 0.5rem;
}

.image-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.img-real {
    opacity: 0;
}

.carte-produit:hover .img-real {
    opacity: 1;
}

.carte-produit:hover .img-cover {
    opacity: 0;
}

.carte-produit h3 {
    font-size: 1.3rem;
    margin: 0.625rem 0 0.3125rem;
    color: #222;
    text-align: center;
}

.carte-produit p.prix {
    font-size: 1rem;
    color: #e85d04;
    margin: 0;
    text-align: center;
    font-weight: bold;
}

footer {
    background: #222;
    color: #ddd;
    padding: 2.5rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5625rem;
    text-align: left;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

footer h4 {
    margin-bottom: 0.625rem;
    color: #fff;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin: 0.3125rem 0;
}

footer a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
    color: #e85d04;
    outline: 3px solid #e85d04;
    outline-offset: 2px;
}

footer p {
    font-size: 0.9375rem;
    margin-top: 0.3125rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li a i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    color: #ddd;
    transition: color 0.3s ease, transform 0.2s ease;
}

footer ul li a i:hover,
footer ul li a i:focus {
    color: #e85d04;
    transform: scale(1.1);
    outline: none;
}

@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;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 1.25rem;
        border-top: 2px solid #eee;
    }

    .main-nav.open {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .grid-produits {
        grid-template-columns: 1fr;
    }

    #categories ul#filtres {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.75rem 1rem;
    }
}