/* ===================================================================
 * Blumen am Vorderberg — Design complet
 * =================================================================== */

/* ── Reset & base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #2c2c2c;
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Variables ─────────────────────────────────────────────────── */
:root {
    --green:      #1e4d3a;
    --green-dark: #122e23;
    --green-mid:  #2d6a4f;
    --gold:       #b8965a;
    --gold-light: #d4b483;
    --off-white:  #f7f4ef;
    --light:      #f2ede6;
    --gray:       #888;
    --text:       #2c2c2c;
    --header-h:   72px;
    --radius:     6px;
    --shadow:     0 4px 20px rgba(0,0,0,.09);
    --trans:      .25s ease;
}

/* ── Typography ────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap');

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    line-height: 1.18;
    font-weight: 500;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .7rem;
}

/* ── Layout helpers ─────────────────────────────────────────────── */
.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section-pad { padding: 90px 0; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: .75rem 2rem;
    border-radius: var(--radius);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    transition: background var(--trans), color var(--trans), border-color var(--trans), transform var(--trans);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--green);
    color: #fff;
    border: 2px solid var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
}
.btn-outline-dark:hover { background: var(--green); color: #fff; }
.btn-gold {
    background: var(--gold);
    color: #fff;
    border: 2px solid var(--gold);
}
.btn-gold:hover { background: #9e7a3e; border-color: #9e7a3e; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background var(--trans), box-shadow var(--trans);
    background: transparent;
}
#header.scrolled {
    background: rgba(255,255,255,.97);
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
#header .container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: #fff;
    transition: color var(--trans);
    white-space: nowrap;
}
#header.scrolled .logo { color: var(--green); }
.logo img { height: 42px; width: auto; }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    font-size: .83rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: rgba(255,255,255,.88);
    transition: color var(--trans);
}
.nav-links a:hover { color: #fff; }
#header.scrolled .nav-links a { color: var(--text); }
#header.scrolled .nav-links a:hover { color: var(--green); }

/* CTA dans le nav */
.nav-cta { margin-left: .5rem; }
.nav-links .nav-cta a {
    background: var(--green);
    color: #fff !important;
    padding: .5rem 1.3rem;
    border-radius: var(--radius);
}
#header.scrolled .nav-links .nav-cta a {
    background: var(--green);
    color: #fff !important;
}
.nav-links .nav-cta a:hover { background: var(--green-dark) !important; }

/* Hamburger */
#hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}
#hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: background var(--trans);
    border-radius: 2px;
}
#header.scrolled #hamburger span { background: var(--text); }

/* Mobile menu */
#mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--green);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #fff;
    font-weight: 500;
}
#mobile-menu a:hover { color: var(--gold-light); }
#mobile-close {
    position: absolute;
    top: 1.5rem; right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/7462760/pexels-photo-7462760.jpeg?w=1920&h=1080&fit=crop&auto=compress&cs=tinysrgb') center/cover no-repeat;
    transform: scale(1.04);
    transition: transform 8s ease-out;
}
#hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(10,30,20,.55) 0%,
        rgba(10,30,20,.45) 60%,
        rgba(10,30,20,.65) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 1rem;
    max-width: 800px;
}
.hero-content .eyebrow { color: var(--gold-light); }
.hero-content h1 {
    margin-bottom: 1.4rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.82);
    margin-bottom: 2.4rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.6);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.4);
    animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════════ */
#about {
    background: var(--off-white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-text h2 { margin-bottom: 1.2rem; color: var(--green); }
.about-text p {
    color: #555;
    font-size: .95rem;
    margin-bottom: 1rem;
}
.about-feats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 2.2rem;
}
.feat {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.2rem;
    border-left: 3px solid var(--gold);
}
.feat-icon { font-size: 1.3rem; margin-bottom: .4rem; }
.feat h4 { font-size: .9rem; font-weight: 600; font-family: 'Inter', sans-serif; margin-bottom: .2rem; color: var(--green); }
.feat p  { font-size: .78rem; color: var(--gray); margin: 0; }

.about-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--light);
    box-shadow: 20px 20px 0 var(--light);
}
.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}
.about-img:hover img { transform: scale(1.03); }
.about-img-badge {
    position: absolute;
    bottom: 1.5rem;
    left: -1.5rem;
    background: var(--green);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.about-img-badge strong { display: block; font-size: 1.6rem; font-family: 'Cormorant Garamond', serif; }
.about-img-badge span  { font-size: .72rem; letter-spacing: .06em; opacity: .85; }

/* ═══════════════════════════════════════════════════════════════
   PRODUCTS
═══════════════════════════════════════════════════════════════ */
#products { background: #fff; }

.products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.products-header h2 { color: var(--green); margin-bottom: .3rem; }

/* Filter bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2.5rem;
}
.f-btn {
    padding: .4rem 1.1rem;
    border: 1.5px solid #ddd;
    background: #fff;
    border-radius: 2rem;
    font-size: .78rem;
    font-weight: 500;
    color: #555;
    letter-spacing: .03em;
    cursor: pointer;
    transition: all var(--trans);
}
.f-btn:hover, .f-btn.active {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

/* Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.4rem;
}

/* ── Card ──────────────────────────────────────────────────────── */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    border: 1px solid rgba(0,0,0,.05);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.13);
}
.product-card.card-hidden { display: none; }

/* Image wrapper avec overlay au hover */
.p-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--light);
    flex-shrink: 0;
}
.p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.product-card:hover .p-img img { transform: scale(1.06); }

/* Overlay hover avec bouton centré */
.p-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 46, 35, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}
.product-card:hover .p-overlay { opacity: 1; }
.p-overlay-btn {
    background: #fff;
    color: var(--green);
    border: none;
    border-radius: 30px;
    padding: .6rem 1.6rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
}

/* Badge catégorie */
.p-cat-tag {
    position: absolute;
    top: .7rem;
    left: .7rem;
    background: rgba(255,255,255,.9);
    color: var(--green);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .22rem .65rem;
    border-radius: 2rem;
    backdrop-filter: blur(4px);
}

/* Partie texte */
.p-body {
    padding: .85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.p-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
    /* Tronquer à 2 lignes */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.p-desc {
    font-size: .72rem;
    color: var(--gray);
    line-height: 1.4;
    /* Tronquer à 2 lignes */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.p-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    margin-top: .3rem;
    padding-top: .7rem;
    border-top: 1px solid #f0ebe3;
}
.p-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--green);
    white-space: nowrap;
}
.p-btn {
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: .38rem .85rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
    transition: background var(--trans);
}
.p-btn:hover { background: var(--green-dark); }

/* Show more */
.show-more-wrap {
    text-align: center;
    margin-top: 3rem;
}
.btn-show-more {
    padding: .8rem 2.8rem;
    border: 1.5px solid var(--green);
    background: transparent;
    color: var(--green);
    border-radius: var(--radius);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    transition: all var(--trans);
}
.btn-show-more:hover { background: var(--green); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════ */
#contact {
    position: relative;
    background: var(--green);
    color: #fff;
    overflow: hidden;
}
.contact-bg {
    position: absolute;
    inset: 0;
    background: url('../images/contact-bg.jpg') center/cover no-repeat;
    opacity: .15;
}
.contact-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.contact-left h2 { color: #fff; margin-bottom: .6rem; }
.contact-left p  { color: rgba(255,255,255,.72); font-size: .9rem; margin-bottom: 2rem; }

.contact-info-items { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.2rem; }
.ci-item { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
}
.ci-label { font-size: .7rem; opacity: .65; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .15rem; }
.ci-value { font-size: .9rem; }

/* Zones */
.zones-grid {
    margin-top: 2.5rem;
}
.zones-grid h4 { font-size: .85rem; font-weight: 600; margin-bottom: .9rem; color: var(--gold-light); font-family: 'Inter', sans-serif; letter-spacing: .04em; }
.zones-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}
.zones-cols li {
    font-size: .78rem;
    color: rgba(255,255,255,.68);
    padding: .22rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius);
    padding: .8rem 1rem;
    color: #fff;
    font-family: inherit;
    font-size: .88rem;
    transition: border-color var(--trans), background var(--trans);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.45); }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold-light);
    background: rgba(255,255,255,.15);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .btn-gold { align-self: flex-start; width: 100%; text-align: center; border: none; padding: .85rem; font-size: .88rem; }
.form-msg { font-size: .82rem; padding: .6rem; border-radius: 4px; display: none; }
.form-msg.success { background: rgba(100,200,100,.2); color: #aeffa0; display: block; }
.form-msg.error   { background: rgba(200,80,80,.2);  color: #ffaaaa; display: block; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
#footer {
    background: #0d1f17;
    color: rgba(255,255,255,.65);
    font-size: .82rem;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding: 60px 0 50px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-brand p { line-height: 1.7; max-width: 300px; }
.footer-brand a { color: var(--gold-light); }
.footer-brand a:hover { text-decoration: underline; }
.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.2rem;
}
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: rgba(255,255,255,.6); transition: color var(--trans); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}
.go-top {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--trans);
}
.go-top:hover { background: var(--gold); }
.go-top svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; }

/* ═══════════════════════════════════════════════════════════════
   PRELOADER
═══════════════════════════════════════════════════════════════ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--off-white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s ease;
}
#preloader.hidden { opacity: 0; pointer-events: none; }
.spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--light);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════
   REVEAL ANIMATION
═══════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-img  { display: none; }
    .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root { --header-h: 60px; }
    .section-pad { padding: 60px 0; }
    .nav-links { display: none; }
    #hamburger { display: flex; }

    .products-header { flex-direction: column; align-items: flex-start; }
    .products-grid   { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .p-desc          { display: none; }

    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand { grid-column: auto; }

    .about-feats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-btns { flex-direction: column; align-items: center; }
    .container { padding: 0 1.2rem; }
    .zones-cols { grid-template-columns: 1fr; }
}
