/* ==========================================================
   RESET
========================================================== */

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

html{
    scroll-behavior:smooth;
}

body {
    margin: 0;

    background: #17100c;
    color: #efe0c5;

    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

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

ul{
    list-style:none;
}

/* ==========================================================
   VARIABLES
========================================================== */

:root{

    --cream:#F5EFE8;
    --cream-dark:#E8DDD0;

    --brown:#4C2C21;
    --brown-light:#6A4332;
    --brown-dark:#2A1711;

    --gold:#C59A53;

    --text:#44291D;

    --radius:22px;

    --shadow:
    0 20px 50px rgba(0,0,0,.08);

    --transition:.35s;

}

/* ==========================================================
   LAYOUT
========================================================== */

section{

    padding:120px 8%;

}

.section-content{

    max-width:650px;

}

.container{

    width:min(1200px,100%);
    margin:auto;

}

/* ==========================================================
   HEADER
========================================================== */

.site-header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: min(1280px, 90%);
    height: 110px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0;

    background: transparent;
    box-shadow: none;
    border-radius: 0;

    z-index: 100;
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 42px;
}

.main-nav a {
    color: #d9c4a0;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;

    transition: color 0.25s ease;
}

.main-nav a:hover {
    color: #f3dfb9;
}

.main-nav .button-header {
    padding: 13px 27px;

    color: #372419;
    background: #caa770;

    border-radius: 999px;

    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.main-nav .button-header:hover {
    color: #372419;
    background: #ddbd88;
}

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

.hero {
    position: relative;

    min-height: 760px;
    height: 100vh;

    display: flex;
    align-items: center;

    padding: 130px 8% 60px;

    background-image:
        linear-gradient(
            90deg,
            rgba(25, 14, 9, 0.7) 0%,
            rgba(25, 14, 9, 0.38) 40%,
            rgba(25, 14, 9, 0.05) 70%
        ),
        url("../images/emballage-one-more-bite.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #f1dfbd;

    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(16, 9, 6, 0.25) 0%,
            transparent 35%,
            rgba(16, 9, 6, 0.25) 100%
        );

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(440px, 100%);
    margin-left: max(0px, calc((100vw - 1280px) / 2));
}

.hero-wordmark {
    width: 330px;
    max-width: 90%;

    margin-bottom: 28px;

    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.hero-tagline {
    position: relative;

    margin-bottom: 24px;
    padding-top: 22px;

    color: #c9a467;

    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.hero-tagline::before {
    content: "";

    position: absolute;
    top: 0;
    left: 112px;

    width: 42px;
    height: 2px;

    background: #a77b3d;
}

.hero-description {
    max-width: 360px;

    margin-bottom: 38px;

    color: rgba(244, 231, 211, 0.78);

    font-size: 1rem;
    line-height: 1.55;
}

.hero-benefits {
    display: flex;
    gap: 32px;

    margin: 0;
}

.hero-benefit {
    min-width: 0;
    padding: 0;

    background: transparent;
    box-shadow: none;
    border-radius: 0;

    text-align: center;
}

.hero-benefit strong {
    width: 66px;
    height: 66px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 10px;

    border: 1px solid #a77b3d;
    border-radius: 50%;

    color: #e4cfaa;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 400;
}

.hero-benefit span {
    display: block;

    color: #d1b889;

    font-size: 0.61rem;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ==========================================================
   BANDE DE PROMESSES
========================================================== */

.promise-bar {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: clamp(40px, 8vw, 130px);

    padding: 28px 6%;

    background:
        linear-gradient(
            90deg,
            #2b160c 0%,
            #4a2817 50%,
            #2b160c 100%
        );

    color: #cbb08a;

    border-top: 1px solid rgba(203, 176, 138, 0.12);
    border-bottom: 1px solid rgba(203, 176, 138, 0.12);
}

.promise-bar p {
    margin: 0;

    text-align: center;

    font-size: clamp(0.9rem, 1.4vw, 1.15rem);
    font-weight: 400;
    line-height: 1.35;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.promise-bar span {
    color: #b68a50;
    font-size: 1.2rem;
}

@media (max-width: 700px) {

    .promise-bar {
        gap: 18px;
        padding: 22px 16px;
    }

    .promise-bar p {
        font-size: 0.7rem;
        letter-spacing: 0.04em;
    }

    .promise-bar span {
        font-size: 0.8rem;
    }

}

/* ==========================================================
   INGRÉDIENTS
========================================================== */

.ingredients-section{

    min-height:760px;

    display:flex;
    align-items:center;

    padding:100px 8%;

    background:

        linear-gradient(
            90deg,
            rgba(18,10,7,.90) 0%,
            rgba(18,10,7,.75) 35%,
            rgba(18,10,7,.20) 65%,
            rgba(18,10,7,.05) 100%
        ),

        url("../images/brownie-closeup.png");

    background-size:cover;
    background-position:center;

    color:#f0dfc4;

}

.ingredients-content{

    width:100%;
    max-width:1300px;

    margin:auto;

}

.ingredients-text{

    width:470px;

}

.ingredients-text h2{

    font-family:Georgia, serif;

    font-size:4rem;

    line-height:1;

    font-weight:400;

    margin-bottom:25px;

}

.section-line{

    width:65px;
    height:3px;

    background:#b88947;

    margin-bottom:55px;

}

.ingredient{

    display:flex;

    gap:24px;

    margin-bottom:45px;

}

.ingredient-icon {
    width: 64px;
    height: 64px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #b88947;
}

.ingredient-icon svg {
    width: 52px;
    height: 52px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ingredient h3{

    margin-bottom:10px;

    color:#f2dfbd;

    font-size:1.4rem;

    text-transform:uppercase;

    letter-spacing:.05em;

}

.ingredient p{

    color:#d7c4a6;

    font-size:1.05rem;

    line-height:1.6;

}

/* ==========================================================
   POURQUOI TU VAS L'ADORER
========================================================== */

.benefits-section {

    padding: 80px 6%;

    background:
        linear-gradient(
            90deg,
            #d8c3a2 0%,
            #eadbc3 45%,
            #d4bd98 100%
        );

    color: #2f1f17;

}

.benefits-inner {

    width: min(1400px, 100%);
    margin: auto;

    display: grid;
    grid-template-columns: .8fr 1.4fr;
    gap: 70px;

    align-items: center;

}

.benefits-content {

    max-width: 500px;

}

.benefits-content h2 {

    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 4vw, 4.8rem);
    font-weight: 400;

    line-height: .95;

    text-transform: uppercase;

}

.benefits-content .section-line {

    width: 60px;
    height: 2px;

    margin: 28px 0 38px;

    background: #b88947;

}

.benefits-list {

    list-style: none;

    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;

    gap: 26px;

}

.benefits-list li {

    display: flex;
    align-items: center;

    gap: 18px;

    color: #443126;

    font-size: 1rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .04em;

}

.check-icon {

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    color: #4b392f;

}

.check-icon svg {

    width: 100%;
    height: 100%;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;

}

.benefits-feature {

    position: relative;

    min-height: 500px;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    padding: 60px;

    background:
        url("../images/brownie-stack.png");

    background-size: cover;
    background-position: center;

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 25px 45px rgba(40,22,14,.25);

}

.benefits-feature-overlay {

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(22,12,8,.08) 0%,
            rgba(22,12,8,.18) 35%,
            rgba(22,12,8,.78) 100%
        );

}

.benefits-feature-text {

    position: relative;
    z-index: 2;

    width: min(340px,45%);

    color: #d1b183;

    text-align: left;

}

.benefits-feature-text p {

    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem,3vw,3.6rem);

    font-weight: 400;

    line-height: 1.05;

    text-transform: uppercase;

}

.feature-line {

    display: block;

    width: 70px;
    height: 3px;

    margin-top: 34px;

    background: #b88947;

}

@media (max-width: 900px){

    .benefits-inner{

        grid-template-columns:1fr;

    }

    .benefits-feature{

        min-height:420px;

    }

    .benefits-feature-text{

        width:60%;

    }

}

/* ==========================================================
   BANDE DES VALEURS
========================================================== */

.values-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;

    padding: 50px 6% 55px;

    background:
        linear-gradient(
            90deg,
            #160e09 0%,
            #24150d 50%,
            #160e09 100%
        );

    border-top: 1px solid rgba(185, 137, 71, 0.14);
    border-bottom: 1px solid rgba(185, 137, 71, 0.14);

    color: #d9c5a8;
}

.value-item {
    text-align: center;
}

.value-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    color: #b88947;
}

.value-icon svg {
    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.value-item h3 {
    margin: 0 0 15px;

    color: #c99c5c;

    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    font-weight: 600;
    line-height: 1.25;

    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.value-item p {
    margin: 0;

    color: rgba(228, 213, 192, 0.78);

    font-size: clamp(0.82rem, 1vw, 0.98rem);
    line-height: 1.45;
}

@media (max-width: 950px) {

    .values-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 55px 35px;
    }

}

@media (max-width: 560px) {

    .values-section {
        grid-template-columns: 1fr;
        gap: 50px;

        padding-top: 55px;
        padding-bottom: 60px;
    }

    .value-item p br {
        display: none;
    }

}

/* ==========================================================
   CTA FINAL
========================================================== */

.cta-section {

    position: relative;

    padding: 70px 20px;

    text-align: center;

    background:
        url("../images/brownie-texture.png");

    background-size: cover;
    background-position: center;

    overflow: hidden;

}

.cta-overlay {

    position: absolute;
    inset: 0;

    background: rgba(18,10,7,.55);

}

.cta-content {

    position: relative;
    z-index: 2;

}

.cta-content h2 {

    margin: 0;

    color: #d8c09b;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(2.2rem,4vw,3.8rem);

    font-weight: 400;

    text-transform: uppercase;

}

.cta-content p {

    margin: 12px 0 35px;

    color: #e8d8bc;

    font-size: 1.5rem;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: .08em;

}

.cta-content .button {

    padding: 18px 42px;

    background: #d4af73;

    color: #2d1a12;

    font-size: 1rem;

    font-weight: 700;

    border-radius: 999px;

    transition: .3s;

}

.cta-content .button:hover {

    background: #e3c38d;

    transform: translateY(-4px);

}


/* ==========================================================
   FOOTER
========================================================== */

.site-footer {

    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    padding: 30px 6%;

    background:
        linear-gradient(
            90deg,
            #19100c,
            #24150d,
            #19100c
        );

    border-top: 1px solid rgba(184,137,71,.15);

}

.footer-logo img {

    width: 72px;

}

.footer-text {

    text-align: center;

}

.footer-text strong {

    display: block;

    margin-bottom: 8px;

    color: #c89c5d;

    font-size: 1.25rem;

    text-transform: uppercase;

    letter-spacing: .05em;

}

.footer-text p {

    margin: 0;

    color: #d8c6aa;

    font-size: .95rem;

    text-transform: uppercase;

    letter-spacing: .04em;

}

.footer-socials {

    display: flex;
    justify-content: flex-end;
    gap: 20px;

}

.footer-socials a {

    color: #b88947;

    transition: .3s;

}

.footer-socials a:hover {

    color: #d7b173;

    transform: translateY(-3px);

}

.footer-socials svg {

    width: 28px;
    height: 28px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;

}

@media (max-width: 850px){

    .site-footer{

        grid-template-columns:1fr;

        gap:30px;

        text-align:center;

    }

    .footer-logo{

        justify-self:center;

    }

    .footer-socials{

        justify-content:center;

    }

}

/* ==========================================================
   CORRECTION RESPONSIVE MOBILE (ONE MORE BITE)
========================================================== */

/* 1. Verrouillage strict de la largeur d'écran */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

@media (max-width: 800px) {

    /* --- HEADER & NAVIGATION --- */
    .site-header {
        position: relative !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 20px 15px !important;
    }

    .main-nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px 18px !important;
    }

    /* --- HERO --- */
    .hero {
        height: auto !important;
        min-height: 100vh !important;
        padding: 40px 20px !important;
        justify-content: center !important;
    }

    .hero-content {
        width: 100% !important;
        margin-left: 0 !important;
        text-align: center !important;
    }

    .hero-tagline::before {
        display: none !important; /* Enlève la ligne mal alignée sur mobile */
    }

    .hero-description {
        max-width: 100% !important;
    }

    .hero-benefits {
        justify-content: center !important;
        gap: 15px !important;
    }

    /* --- SECTION INGRÉDIENTS (C'est elle qui coupait le texte !) --- */
    .ingredients-section {
        padding: 60px 20px !important;
        min-height: auto !important;
    }

    .ingredients-text {
        width: 100% !important; /* Évite que les 470px fixes ne fassent déborder */
        max-width: 100% !important;
    }

    .ingredients-text h2 {
        font-size: clamp(2.2rem, 8vw, 3.2rem) !important; /* Taille adaptée */
        word-break: break-word !important;
    }

    .ingredient {
        gap: 16px !important;
    }

    .ingredient h3 {
        font-size: 1.15rem !important;
    }

    /* --- SECTION POURQUOI TU VAS L'ADORER --- */
    .benefits-section {
        padding: 60px 20px !important;
    }

    .benefits-content h2 {
        font-size: clamp(2.2rem, 8vw, 3.2rem) !important;
    }

    /* --- CTA & FOOTER --- */
    .cta-content h2 {
        font-size: clamp(1.8rem, 6vw, 2.8rem) !important;
    }
}