/* =========================
   BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    color: #222222;
    background-color: #f7f5f2;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cache visuellement un élément tout en le gardant accessible */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* =========================
   HEADER
========================= */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e7e0d7;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-style: italic;
    color: #c28d2c;
    font-weight: bold;
}

/* =========================
   BURGER
========================= */
.burger {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: #333333;
    cursor: pointer;
    line-height: 1;
}

/* =========================
   NAVIGATION MOBILE
========================= */
.main-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border-top: 1px solid #e7e0d7;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.main-nav.active {
    display: block;
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 0;
}

.nav-list a {
    color: #333333;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    color: #c28d2c;
}

/* =========================
   INTRO
========================= */
.services-intro {
    padding: 3rem 0 2rem;
}

.services-intro h1 {
    font-size: 2.4rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.services-intro p {
    max-width: 700px;
    color: #555555;
    font-size: 1rem;
}

/* =========================
   FILTRES
========================= */
.services-filters {
    padding-bottom: 2.5rem;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-link {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    background-color: #ffffff;
    border: 1px solid #e3ddd5;
    color: #333333;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-link:hover {
    background-color: #c28d2c;
    border-color: #c28d2c;
    color: #ffffff;
}

/* =========================
   SHOWCASE
========================= */
.services-showcase {
    padding: 1rem 0 4rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.showcase-main {
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

.showcase-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
}

.showcase-main-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 1.5rem;
    color: #ffffff;
}

.showcase-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
}

.showcase-main-content h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.showcase-main-content p {
    margin-bottom: 1rem;
    max-width: 500px;
}

.showcase-link {
    display: inline-block;
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 0.2rem;
    font-size: 0.95rem;
}

.showcase-side {
    background-color: #ffffff;
    padding: 1.5rem;
    border: 1px solid #e7e0d7;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.showcase-side h2 {
    font-size: 1.8rem;
    color: #222222;
}

.showcase-side p {
    color: #555555;
}

.showcase-side img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.showcase-side .showcase-link {
    color: #222222;
    border-bottom: 1px solid #222222;
    align-self: flex-start;
}

/* =========================
   PRODUITS
========================= */
.featured-products {
    padding: 1rem 0 4rem;
}

.featured-products h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Grille produits */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

/* Carte produit */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: transparent;
}

/* Image */
.product-card-image {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

.product-card-image img,
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #ffffff;
}

/* Contenu */
.product-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Titre */
.product-title,
.product-card h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    min-height: 2.8rem;
    color: #111111;
}

.product-title a:hover {
    color: #c28d2c;
}

/* Catégorie */
.product-category {
    color: #8a6b24;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

/* Description limitée pour garder des cartes régulières */
.product-description {
    color: #8a6b24;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    min-height: 8rem;

    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Prix */
.product-price {
    color: #8a6b24;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Zone boutons alignée en bas */
.product-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Formulaire panier */
.add-to-cart-form {
    width: 100%;
    margin-top: 0;
}

/* Boutons dans les cartes */
.product-card-actions .btn,
.product-card-actions button,
.add-to-cart-form .btn,
.product-card .btn {
    display: inline-block;
    width: 100%;
    text-align: center;
}

/* Message si aucun produit */
.empty-products-message {
    color: #8a6b24;
    font-size: 1rem;
}

/* =========================
   CTA
========================= */
.services-cta {
    background-color: #111111;
    color: #ffffff;
    text-align: center;
    padding: 4rem 0;
}

.services-cta h2 {
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.services-cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #dddddd;
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #c28d2c;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #a9761f;
}

.btn-secondary {
    background-color: transparent;
    color: #111111;
    border: 1px solid transparent;
    font-size: 0.8rem;
    padding: 0.7rem 1rem;
}

.btn-secondary:hover {
    color: #c28d2c;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background-color: #efebe6;
    padding-top: 3rem;
    color: #444444;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #222222;
}

.footer-column p,
.footer-column li,
.footer-column a {
    font-size: 0.95rem;
    color: #666666;
}

.footer-links li + li {
    margin-top: 0.5rem;
}

.footer-links a:hover {
    color: #c28d2c;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.newsletter-form input {
    padding: 0.8rem 1rem;
    border: 1px solid #d8d1c8;
    background-color: #ffffff;
    font-size: 0.95rem;
}

.newsletter-form button {
    padding: 0.8rem 1rem;
    border: none;
    background-color: #c28d2c;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.95rem;
}

.newsletter-form button:hover {
    background-color: #a9761f;
}

.footer-bottom {
    border-top: 1px solid #ddd4ca;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #777777;
}

/* =========================
   TABLETTE
========================= */
@media screen and (min-width: 768px) {
    .burger {
        display: none;
    }

    .main-nav {
        display: block;
        position: static;
        width: auto;
        background-color: transparent;
        border-top: none;
        box-shadow: none;
    }

    .nav-list {
        flex-direction: row;
        gap: 1.5rem;
        padding: 0;
    }

    .services-intro {
        padding: 4rem 0 2.5rem;
    }

    .services-intro h1 {
        font-size: 3.5rem;
    }

    .showcase-main {
        min-height: 450px;
    }

    .showcase-main-content {
        padding: 2rem;
    }

    .showcase-main-content h2 {
        font-size: 2.4rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card-image img,
    .product-card img {
        height: 240px;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   DESKTOP
========================= */
@media screen and (min-width: 1024px) {
    .logo {
        font-size: 1.7rem;
    }

    .services-intro h1 {
        font-size: 5rem;
    }

    .services-intro p {
        font-size: 1.15rem;
    }

    .showcase-grid {
        grid-template-columns: 2fr 1fr;
        align-items: stretch;
    }

    .showcase-main {
        min-height: 500px;
    }

    .showcase-side {
        justify-content: space-between;
    }

    .showcase-side img {
        height: 220px;
    }

    .featured-products h2 {
        font-size: 2.6rem;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-card-image img,
    .product-card img {
        height: 180px;
    }

    .services-cta {
        padding: 5rem 0;
    }

    .services-cta h2 {
        font-size: 3rem;
    }

    .footer-top {
        grid-template-columns: repeat(4, 1fr);
    }
}