/* =========================================
   HUILE D'OLIVES BENIMELLAL — style.css
   ========================================= */

:root {
    --olive-noir: #1F2417;
    --olive-fonce: #2B3320;
    --olive-moyen: #4B5320;
    --or-huile: #C9A227;
    --or-huile-clair: #E0BE4E;
    --creme: #EFE8D8;
    --creme-clair: #F7F3E9;
    --charbon: #2A2A22;
    --charbon-doux: #5B5645;

    --serif: "Fraunces", Georgia, serif;
    --sans: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--charbon);
    background: var(--creme-clair);
    line-height: 1.5;
}

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

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--or-huile);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    margin: 0;
}


/* =========================
   HERO
   ========================= */

.hero {
    position: relative;
    background: var(--olive-noir);
    color: var(--creme);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    min-height: 92vh;
    overflow: hidden;
    padding: 0 6vw;
    gap: 3rem;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 78% 50%, rgba(201, 162, 39, 0.16), transparent 70%);
    pointer-events: none;
}

.hero-texte {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    padding: 4rem 0;
}

.sur-titre {
    font-family: var(--sans);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: var(--or-huile-clair);
    margin: 0 0 1.25rem;
}

.hero-texte h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.05;
    color: var(--creme);
}

.accroche {
    font-size: 1.15rem;
    color: rgba(239, 232, 216, 0.82);
    max-width: 30ch;
    margin: 1.5rem 0 2rem;
}

.offre {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding: 1.1rem 1.4rem;
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 2px;
    width: fit-content;
    margin-bottom: 2rem;
}

.offre strong {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--creme);
    font-weight: 600;
}

.offre span {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--or-huile-clair);
    font-weight: 600;
}

.bouton-hero {
    display: inline-block;
    background: var(--or-huile);
    color: var(--olive-noir);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 1rem 2.1rem;
    border-radius: 2px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.bouton-hero:hover {
    background: var(--or-huile-clair);
    transform: translateY(-1px);
}

.hero-image {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    max-height: 80vh;
    width: auto;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: unset;
        padding: 3.5rem 6vw 3rem;
        text-align: left;
    }

    .hero-texte {
        padding: 0;
        max-width: none;
    }

    .hero-image {
        order: -1;
        padding-top: 2rem;
    }

    .hero-image img {
        max-height: 46vh;
    }
}


/* =========================
   AVANTAGES
   ========================= */

.avantages {
    background: var(--creme-clair);
    padding: 5.5rem 6vw;
    max-width: 78rem;
    margin: 0 auto;
}

.avantages h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--olive-noir);
    max-width: 22ch;
    margin-bottom: 3rem;
}

.cartes {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.carte {
    display: grid;
    grid-template-columns: minmax(180px, 26%) 1fr;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(42, 42, 34, 0.14);
    border-radius: 3px;
    background: var(--creme);
}

.carte-photo {
    width: 100%;
    height: 9.5rem;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 0;
}

.icone {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.carte-texte h3 {
    font-size: 1.2rem;
    color: var(--olive-fonce);
    margin-bottom: 0.5rem;
}

.carte-texte p {
    margin: 0;
    max-width: 68ch;
    color: var(--charbon-doux);
}

@media (max-width: 700px) {
    .carte {
        grid-template-columns: 1fr;
    }

    .carte-photo {
        height: 11rem;
        margin-bottom: 1.2rem;
    }
}


/* =========================
   NOTRE FERME
   ========================= */

.ferme {
    background: var(--creme);
    padding: 5.5rem 6vw;
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ferme-visuel {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.olive-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 3px;
    background: var(--olive-fonce);
    color: var(--creme);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    gap: 1rem;
}

.olive-placeholder span {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.ferme-texte h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    color: var(--olive-noir);
    line-height: 1.2;
    margin-bottom: 1.4rem;
}

.ferme-texte p {
    color: var(--charbon-doux);
    max-width: 46ch;
    margin: 0 0 1.1rem;
}

@media (max-width: 860px) {
    .ferme {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ferme-texte p {
        margin-left: auto;
        margin-right: auto;
    }
}


/* =========================
   GARANTIES
   ========================= */

.garanties {
    background: var(--creme-clair);
    padding: 5.5rem 6vw;
    max-width: 68rem;
    margin: 0 auto;
    text-align: center;
}

.garanties h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    color: var(--olive-noir);
    max-width: 30ch;
    margin: 0 auto 3rem;
}

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

.garantie {
    padding: 0 1.4rem;
    border-left: 1px solid rgba(42, 42, 34, 0.14);
}

.garantie:first-child {
    border-left: none;
}

.icone-garantie {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.garantie h3 {
    font-size: 1.05rem;
    color: var(--olive-fonce);
    margin-bottom: 0.5rem;
}

.garantie p {
    font-size: 0.92rem;
    color: var(--charbon-doux);
    margin: 0;
}

@media (max-width: 860px) {
    .garanties-cartes {
        grid-template-columns: 1fr 1fr;
        gap: 2.2rem 0;
    }

    .garantie {
        border-left: none;
    }

    .garantie:nth-child(odd) {
        border-right: 1px solid rgba(42, 42, 34, 0.14);
    }
}

@media (max-width: 500px) {
    .garanties-cartes {
        grid-template-columns: 1fr;
        gap: 2rem 0;
    }

    .garantie:nth-child(odd) {
        border-right: none;
    }
}


/* =========================
   COMMANDE
   ========================= */

.commande {
    background: var(--creme);
    padding: 5.5rem 6vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.commande h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--olive-noir);
    text-align: center;
}

.sous-titre {
    color: var(--charbon-doux);
    text-align: center;
    max-width: 40ch;
    margin: 0.9rem 0 2.8rem;
}

#formulaire-commande {
    width: 100%;
    max-width: 30rem;
    background: var(--creme-clair);
    border: 1px solid rgba(42, 42, 34, 0.14);
    border-radius: 3px;
    padding: 2.2rem;
}

.champ {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.3rem;
}

.champ label {
    font-size: 0.9rem;
    color: var(--charbon-doux);
    margin-bottom: 0.4rem;
}

.champ input,
.champ textarea,
.champ select {
    font-family: var(--sans);
    font-size: 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(42, 42, 34, 0.25);
    border-radius: 2px;
    background: #fff;
    color: var(--charbon);
}

.champ textarea {
    min-height: 5rem;
    resize: vertical;
}

.champ input:focus,
.champ textarea:focus,
.champ select:focus {
    border-color: var(--or-huile);
}

.total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--olive-noir);
    padding: 1rem 0;
    margin: 0.6rem 0 1.4rem;
    border-top: 1px solid rgba(42, 42, 34, 0.18);
}

#total {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--or-huile);
    transition: transform 0.15s ease;
}

#total.maj {
    transform: scale(1.12);
}

#formulaire-commande button {
    width: 100%;
    background: var(--olive-noir);
    color: var(--creme);
    border: none;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 1rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#formulaire-commande button:hover {
    background: var(--olive-moyen);
}


/* =========================
   PIED DE PAGE
   ========================= */

footer {
    background: var(--olive-noir);
    color: rgba(239, 232, 216, 0.7);
    text-align: center;
    padding: 12px 0;
    font-size: 0.9rem;
}

footer p {
    margin: 0.2rem 0;
}
