/* ===================================================================
   iZi Veggie — Landing styles
   Design System Figma : Fredoka One (titles), Nunito (body)
   Couleurs : Brocoli foncé #2B6533, Brocoli jaunit #9FBD72,
              Brocoli clair #EBF2E3, Pêche #F7968B, Crème #F9F6EC,
              Charbon #333333
   =================================================================== */

:root {
    --brocoli-fonce: #2B6533;
    --brocoli-fonce-2: #245729;
    --brocoli-jaunit: #9FBD72;
    --brocoli-clair: #EBF2E3;
    --peche: #F7968B;
    --creme: #F9F6EC;
    --creme-light: #FEFCF6;
    --charbon: #333333;
    --gris: #8B8B8B;

    --grad-bg: linear-gradient(180deg, #FFFDE3 0%, #DAF09A 50%, #B9E665 100%);
    --shadow-card: 0 24px 48px -16px rgba(43, 101, 51, 0.18), 0 4px 8px rgba(43, 101, 51, 0.06);
    --shadow-soft: 0 12px 32px -12px rgba(43, 101, 51, 0.18);

    --container: 1200px;
    --radius: 28px;
    --radius-sm: 16px;

    --gap: 1rem;
    --section-gap: 7rem;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--grad-bg);
    background-attachment: fixed;
    color: var(--charbon);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
    font-family: 'Fredoka', system-ui, sans-serif;
    font-weight: 600;
    color: var(--brocoli-fonce);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

em {
    font-style: normal;
    color: var(--peche);
    font-family: inherit;
}

/* ============== Decorative background clouds ============== */
.clouds {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.cloud {
    position: absolute;
    width: 480px;
    max-width: 50vw;
    height: auto;
    opacity: 0.85;
}
.cloud-tl { top: -40px; left: -80px; transform: rotate(-8deg); }
.cloud-tr { top: -60px; right: -100px; transform: rotate(8deg) scaleX(-1); }
.cloud-bl { bottom: 200px; left: -120px; width: 420px; opacity: 0.6; }

/* ============== Layout ============== */
.hero, main, .footer {
    position: relative;
    z-index: 1;
}

.hero {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 4rem;
}

main { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ============== Nav ============== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0 2.5rem;
}
.nav-logo { width: 180px; height: auto; filter: drop-shadow(0 4px 12px rgba(43, 101, 51, 0.12)); }
.nav-link {
    font-weight: 700;
    color: var(--brocoli-fonce);
    padding: 0.65rem 1.4rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 100px;
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(43, 101, 51, 0.08);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}
.nav-link:hover {
    background: var(--brocoli-fonce);
    color: var(--creme-light);
    transform: translateY(-1px);
}

/* ============== Hero ============== */
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
    padding: 1rem 0 2rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brocoli-fonce);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border: 1.5px solid rgba(43, 101, 51, 0.08);
}
.eyebrow-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--peche);
    box-shadow: 0 0 0 4px rgba(247, 150, 139, 0.25);
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    margin-bottom: 1.25rem;
    line-height: 1.05;
}
.hero-emph {
    font-family: 'Fredoka', sans-serif;
    color: var(--charbon);
    font-weight: 700;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--brocoli-fonce-2);
    max-width: 32rem;
    margin-bottom: 2rem;
    text-wrap: pretty;
    font-weight: 500;
}
.hero-sub strong { color: var(--brocoli-fonce); font-weight: 800; }

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
}
.store-buttons-center { justify-content: center; }
.store-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: transform 0.2s ease;
    height: 56px;
}
.store-link:hover { transform: translateY(-2px) scale(1.02); }
.store-link img { height: 56px; width: auto; display: block; }
.store-link:first-child img { height: 56px; border-radius: 10px; }

.proof {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(43, 101, 51, 0.06);
}
.stars { display: inline-flex; gap: 1px; }
.proof-text { font-size: 0.9rem; color: var(--brocoli-fonce-2); font-weight: 600; }
.proof-text strong { color: var(--brocoli-fonce); font-weight: 800; }

/* ============== Hero visual : phone mockup ============== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 560px;
}
.phone {
    position: relative;
    width: 290px;
    height: 580px;
    background: #1c1c1c;
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 30px 60px -20px rgba(43, 101, 51, 0.4), 0 10px 20px -10px rgba(0,0,0,0.2);
    transform: rotate(-3deg);
}
.phone-notch {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #1c1c1c;
    border-radius: 100px;
    z-index: 2;
}
.phone-screen {
    background: var(--creme-light);
    border-radius: 32px;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.phone-mock { padding: 2.5rem 1.1rem 1rem; height: 100%; }
.phone-mock-header { margin-bottom: 0.9rem; }
.phone-mock-greet { font-size: 0.75rem; color: var(--gris); font-weight: 600; }
.phone-mock-q {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--brocoli-fonce);
    line-height: 1.2;
    margin-top: 0.15rem;
}
.phone-mock-search {
    background: var(--brocoli-clair);
    border-radius: 12px;
    padding: 0.55rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--gris);
    margin-bottom: 0.7rem;
}
.phone-mock-chips {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}
.chip {
    font-size: 0.7rem;
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    background: white;
    border: 1.5px solid var(--brocoli-clair);
    color: var(--brocoli-fonce);
    font-weight: 700;
}
.chip-on {
    background: var(--brocoli-fonce);
    color: var(--creme-light);
    border-color: var(--brocoli-fonce);
}
.phone-mock-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    box-shadow: 0 6px 16px rgba(43, 101, 51, 0.08);
}
.phone-mock-img {
    height: 100px;
    background: linear-gradient(135deg, #9FBD72 0%, #2B6533 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    text-align: center;
}
.phone-mock-img::before {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: repeating-linear-gradient(45deg, transparent 0 8px, rgba(255,255,255,0.08) 8px 16px);
}
.phone-mock-img-2 { background: linear-gradient(135deg, #F7968B 0%, #D97562 100%); height: 70px; }
.phone-mock-card-sm .phone-mock-meta { padding: 0.5rem 0.7rem; }
.phone-mock-meta { padding: 0.65rem 0.7rem; }
.phone-mock-title {
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--charbon);
    line-height: 1.25;
    margin-bottom: 0.3rem;
}
.phone-mock-tags {
    display: flex;
    gap: 0.4rem;
    font-size: 0.65rem;
    color: var(--gris);
    font-weight: 600;
}

.floating-mascot {
    position: absolute;
    width: 160px;
    height: 160px;
    bottom: 20px;
    right: -20px;
    border-radius: 50%;
    transform: rotate(8deg);
    filter: drop-shadow(0 12px 24px rgba(43, 101, 51, 0.25));
    pointer-events: none;
    object-fit: cover;
}

.floating-bubble {
    position: absolute;
    background: white;
    padding: 0.55rem 1rem;
    border-radius: 100px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    color: var(--brocoli-fonce);
    box-shadow: 0 12px 24px rgba(43, 101, 51, 0.15);
    font-weight: 600;
    border: 1.5px solid var(--brocoli-clair);
}
.floating-bubble-1 { top: 40px; left: -10px; transform: rotate(-6deg); }
.floating-bubble-2 {
    top: 200px;
    right: -20px;
    transform: rotate(5deg);
    background: var(--peche);
    color: white;
    border-color: var(--peche);
}

/* ============== Sections ============== */
.section-head { text-align: center; margin-bottom: 3rem; }
.kicker {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--brocoli-fonce-2);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}
.kicker-light { color: var(--brocoli-jaunit); opacity: 0.9; }
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 24ch;
    margin: 0 auto;
    text-wrap: balance;
}

/* ============== Features ============== */
.features {
    padding: var(--section-gap) 0 4rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.feat {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1.5px solid rgba(43, 101, 51, 0.06);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.feat-lg {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--brocoli-fonce) 0%, var(--brocoli-fonce-2) 100%);
    color: var(--creme-light);
    border: none;
}
.feat-lg h3, .feat-lg .feat-num { color: var(--creme-light); }
.feat-lg p { color: rgba(255,255,255,0.85); }
.feat-num {
    font-family: 'Fredoka', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}
.feat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--brocoli-clair);
    color: var(--brocoli-fonce);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feat-icon svg { width: 24px; height: 24px; }
.feat h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.feat p {
    font-size: 0.95rem;
    color: var(--charbon);
    opacity: 0.78;
    text-wrap: pretty;
}
.feat-accent {
    background: var(--peche);
    color: white;
    border: none;
}
.feat-accent h3 { color: white; }
.feat-accent p { color: rgba(255, 255, 255, 0.92); opacity: 1; }
.feat-accent .feat-icon { background: rgba(255,255,255,0.25); color: white; }

/* ============== Why ============== */
.why { padding: 4rem 0; }
.why-card {
    background: var(--brocoli-fonce);
    border-radius: var(--radius);
    padding: 3.5rem;
    color: var(--creme-light);
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: center;
    box-shadow: 0 30px 60px -20px rgba(43, 101, 51, 0.5);
    position: relative;
    overflow: hidden;
}
.why-card::before {
    content: "";
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: var(--brocoli-jaunit);
    border-radius: 50%;
    opacity: 0.2;
}
.why-mascot {
    text-align: center;
    position: relative;
    z-index: 1;
}
.why-mascot img {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    background: var(--creme-light);
    filter: drop-shadow(0 16px 32px rgba(0,0,0,0.25));
}
.why-copy { position: relative; z-index: 1; }
.why-title {
    color: var(--creme-light);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1.25rem;
    line-height: 1.1;
}
.why-title em { color: var(--peche); }
.why-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
    text-wrap: pretty;
}
.why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.why-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--creme-light);
    font-weight: 600;
    font-size: 1rem;
}
.why-check {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--brocoli-jaunit);
    color: var(--brocoli-fonce);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ============== Final CTA ============== */
.final-cta {
    text-align: center;
    padding: var(--section-gap) 0 5rem;
}
.final-title {
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 22ch;
    margin: 0 auto 1rem;
    text-wrap: balance;
}
.final-sub {
    font-size: 1.15rem;
    color: var(--brocoli-fonce-2);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* ============== Footer ============== */
.footer {
    padding: 3rem 1.5rem 2rem;
    border-top: 1.5px solid rgba(43, 101, 51, 0.1);
    background: rgba(255, 253, 227, 0.4);
    backdrop-filter: blur(8px);
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; }
.footer-logo { width: 140px; margin: 0 auto; }
.footer-tag {
    color: var(--brocoli-fonce-2);
    font-size: 0.95rem;
    font-weight: 500;
    max-width: 36ch;
    margin: 0.5rem auto 0;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.9rem;
}
.footer-links a {
    color: var(--brocoli-fonce);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--peche); }
.footer-links span { color: rgba(43, 101, 51, 0.4); }
.footer-copy {
    font-size: 0.82rem;
    color: rgba(43, 101, 51, 0.7);
    font-weight: 500;
}
.footer-copy a {
    color: var(--brocoli-fonce);
    font-weight: 700;
    border-bottom: 1.5px dotted;
}

/* ============== Tweaks variants ============== */
[data-hero-variant="mascot"] .phone { display: none; }
[data-hero-variant="mascot"] .floating-bubble { display: none; }
[data-hero-variant="mascot"] .floating-mascot {
    position: relative;
    width: 380px;
    height: 380px;
    bottom: auto; right: auto;
    transform: rotate(0);
}

[data-hero-variant="phone"] .floating-mascot { display: none; }

[data-density="compact"] { --section-gap: 4rem; }
[data-density="compact"] .feat { padding: 1.5rem; }
[data-density="compact"] .why-card { padding: 2.5rem; }
[data-density="compact"] .hero-grid { padding: 0.5rem 0 1rem; }

[data-accent="green"] em,
[data-accent="green"] .why-title em { color: var(--brocoli-jaunit); }
[data-accent="green"] .feat-accent { background: var(--brocoli-jaunit); }
[data-accent="green"] .floating-bubble-2 { background: var(--brocoli-jaunit); border-color: var(--brocoli-jaunit); }
[data-accent="green"] .eyebrow-dot { background: var(--brocoli-jaunit); box-shadow: 0 0 0 4px rgba(159,189,114,0.25); }

[data-accent="peach"] em,
[data-accent="peach"] .why-title em { color: var(--peche); }

/* ============== Responsive ============== */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .eyebrow, .hero-sub { margin-left: auto; margin-right: auto; }
    .store-buttons { justify-content: center; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .feat-lg { grid-column: span 2; }
    .why-card { grid-template-columns: 1fr; padding: 2.5rem; text-align: center; gap: 2rem; }
    .why-mascot img { max-width: 160px; }
    .why-list { display: inline-flex; }
    :root { --section-gap: 5rem; }
}
@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .feat-lg { grid-column: span 1; }
    .nav-link { padding: 0.5rem 1rem; font-size: 0.85rem; }
    .nav-logo { width: 100px; }
    .phone { transform: rotate(-3deg) scale(0.92); }
    .floating-bubble { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
    .why-card { padding: 2rem 1.5rem; }
    .footer { padding: 2rem 1rem; }
    :root { --section-gap: 4rem; }
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-copy > * { animation: fadeUp 0.7s ease-out backwards; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.35s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.45s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(8deg); }
    50% { transform: translateY(-12px) rotate(8deg); }
}
.floating-mascot { animation: float 4s ease-in-out infinite; }

@keyframes float-bubble-1 {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(-6deg) translateY(-8px); }
}
@keyframes float-bubble-2 {
    0%, 100% { transform: rotate(5deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(-10px); }
}
.floating-bubble-1 { animation: float-bubble-1 5s ease-in-out infinite; }
.floating-bubble-2 { animation: float-bubble-2 4.5s ease-in-out infinite 0.5s; }
