/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2d2a26;
    background: #faf8f5;
    line-height: 1.6;
    padding-top: 75px; /* compense le header fixe */
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: 90%; max-width: 1300px; margin: 0 auto; }

/* ============ HEADER ============ */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 55px; width: auto; }
.logo-text { font-size: 1.4rem; font-weight: 800; color: #4a3728; }
.logo-text span { color: #d97b29; }

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}
nav a { font-weight: 600; font-size: 0.95rem; color: #4a3728; transition: color 0.3s; }
nav a:hover, nav a.active { color: #d97b29; }
nav a.active { border-bottom: 2px solid #d97b29; padding-bottom: 3px; }

.cart-link {
    background: #4a3728;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 50px;
}
.cart-count {
    background: #d97b29;
    border-radius: 50%;
    padding: 1px 7px;
    font-size: 0.8rem;
    font-weight: 800;
}

.lang-select {
    padding: 6px 12px;
    border: 2px solid #d97b29;
    border-radius: 6px;
    background: #fff;
    font-weight: 600;
    color: #4a3728;
    cursor: pointer;
    font-size: 0.85rem;
}

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.burger span { width: 26px; height: 3px; background: #4a3728; border-radius: 2px; }

/* ============ HERO ============ */
.hero {
    position: relative;
    height: 60vh;
    min-height: 380px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(30,20,10,0.5), rgba(30,20,10,0.65));
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
}
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hero-content p { font-size: clamp(1rem, 2.5vw, 1.25rem); max-width: 700px; margin: 0 auto; }

/* ============ SECTIONS ============ */
section { padding: 4rem 0; }
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    color: #4a3728;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: #8a7d70;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* --- Comment commander --- */
.howto { background: #f2ede6; padding: 3rem 0; }
.howto-grid { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
.howto-step {
    flex: 1 1 260px;
    max-width: 340px;
    background: #fff;
    border-radius: 12px;
    padding: 1.3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.howto-step span {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: #d97b29;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

/* ============ GRILLE PRODUITS (10 essences alignées horizontalement) ============ */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}
.product-card {
    flex: 1 1 210px;
    max-width: 250px;
    min-width: 210px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); }

.product-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.product-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-body h3 { color: #4a3728; margin-bottom: 0.4rem; font-size: 1.1rem; }
.product-desc {
    color: #6b6158;
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
    flex-grow: 1;
}

.product-options { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 0.9rem; }
.product-options label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a3728;
}
.product-options select {
    padding: 6px 8px;
    border: 2px solid #e0d6ca;
    border-radius: 6px;
    background: #faf8f5;
    font-weight: 600;
    color: #2d2a26;
    cursor: pointer;
    font-size: 0.85rem;
    min-width: 105px;
}
.product-options select:focus { outline: none; border-color: #d97b29; }

.product-price {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #d97b29;
    margin-bottom: 0.8rem;
}

.btn-add {
    background: #4a3728;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}
.btn-add:hover { background: #d97b29; }

/* --- Palettes --- */
.palettes { background: #4a3728; }
.palettes .section-title { color: #fff; }
.palettes .section-subtitle { color: #cbb9a6; }
.palette-card .product-img { height: 180px; }
.palette-card { border: 2px solid #d97b29; }

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d97b29;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    z-index: 2;
}

/* --- Garanties --- */
.trust { background: #f2ede6; padding: 2.5rem 0; }
.trust-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    color: #4a3728;
    font-size: 0.95rem;
}
.trust-grid div { flex: 1 1 240px; }

/* ============ FOOTER ============ */
footer { background: #2d2a26; color: #d5cfc8; padding: 3.5rem 0 1.5rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; }
footer h3 { color: #fff; margin-bottom: 1rem; font-size: 1.15rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a:hover { color: #d97b29; }
.footer-contact a { color: #d97b29; font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact p { margin-bottom: 0.6rem; }
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #45403a;
    text-align: center;
    font-size: 0.85rem;
    color: #9a938b;
}

/* ============ RESPONSIVE MOBILE ============ */
@media (max-width: 820px) {
    .burger { display: flex; }
    nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    nav.open { max-height: 600px; }
    nav ul { flex-direction: column; padding: 1.5rem; gap: 1.2rem; align-items: flex-start; }

    /* 2 cartes par rangée sur mobile */
    .product-card {
        flex: 1 1 45%;
        min-width: 150px;
        max-width: none;
    }
    .product-img { height: 110px; }
    .product-desc { font-size: 0.78rem; }

    .footer-grid { grid-template-columns: 1fr; }
    .hero { min-height: 320px; }
    body { padding-top: 70px; }
}

@media (max-width: 420px) {
    .product-card { flex: 1 1 100%; }
}


/* --- Vidéos dans les cartes produits --- */
.product-card .product-video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #000;
    cursor: pointer;
}
.pellets { background: #f2ede6; }
.pellet-card { border: 2px solid #6a8f5c; }