* {
    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 {
    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;
}

#accueil {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7);
}

#accueil .content {
    color: #fff;
    max-width: 43.75rem;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.75rem;
}

#accueil h1 {
    font-size: 2.2rem;
    margin-bottom: 0.9375rem;
}

#accueil p {
    margin-bottom: 1.25rem;
}

#accueil a {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: #e85d04;
    color: #fff;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

#accueil a:hover,
#accueil a:focus {
    background: #d9480f;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

#produits {
    padding: 3.125rem 1.25rem;
    text-align: center;
}

#produits h2 {
    font-size: 2rem;
    margin-bottom: 1.875rem;
    color: #222;
}

.produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5625rem;
    max-width: 68.75rem;
    margin: 0 auto;
}

.produits-grid article {
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.9375rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    cursor: pointer;
    height: auto;
    min-height: 26.25rem;
}

.produits-grid article:hover,
.produits-grid article: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;
}

.produits-grid img {
    width: 100%;
    height: 17.5rem;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.625rem;
}

.produits-grid h3 {
    margin: 0.625rem 0 0.3125rem;
    font-size: 1.2rem;
    color: #222;
    text-align: center;
}

.produits-grid p {
    font-size: 0.9375rem;
    color: #e85d04;
    text-align: center;
    font-weight: bold;
}

.produits-grid article .btn-produit {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background-color: #e85d04;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0.375rem;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
    align-self: center;
    margin-top: 0.625rem;
    cursor: pointer;
}

.produits-grid article .btn-produit:hover,
.produits-grid article .btn-produit:focus {
    background-color: #d9480f;
    outline: 3px solid #fff;
    outline-offset: 2px;
    transform: translateY(-0.125rem);
}

#categories-accueil {
    padding: 3.125rem 1.25rem;
    background-color: #f9f9f9;
    text-align: center;
}

#categories-accueil h2 {
    font-size: 2rem;
    margin-bottom: 1.875rem;
    color: #222;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5625rem;
    max-width: 68.75rem;
    margin: 0 auto;
}

.categories-grid article {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    cursor: pointer;
    height: auto;
    min-height: 26.25rem;
}

.categories-grid article:hover,
.categories-grid article: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;
}

.categories-grid img {
    width: 100%;
    height: 17.5rem;
    object-fit: cover;
    display: block;
}

.categories-grid h3 {
    margin: 0.9375rem 0 0.625rem;
    font-size: 1.2rem;
    color: #222;
    text-align: center;
}

.categories-grid p {
    padding: 0 0.9375rem 1.25rem;
    font-size: 0.9375rem;
    color: #555;
    text-align: center;
}

.categories-grid a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.categories-grid article .btn-categorie {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background-color: #e85d04;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0.375rem;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
    align-self: center;
    margin: 0.625rem auto 1rem;
    cursor: pointer;
}

.categories-grid article .btn-categorie:hover,
.categories-grid article .btn-categorie:focus {
    background-color: #d9480f;
    outline: 3px solid #fff;
    outline-offset: 2px;
    transform: translateY(-0.125rem);
}

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;
}

footer h4 {
    margin-bottom: 0.625rem;
    color: #fff;
}

footer ul {
    list-style: none;
}

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 {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
    margin-top: 0.5rem;
}

.social-icons li a {
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons li a:hover,
.social-icons li a:focus {
    color: #e85d04;
    transform: scale(1.1);
    outline: none;
}

@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;
    }

    .produits-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.75rem 1rem;
    }
}