/* ===========================================
   Template epicerie-racines — Le Marché — Playfair Display + Source Sans 3
   Poster typographique vert forêt, sections linen lumineuses
   =========================================== */

:root {
    --primary: #4A7C59;
    --secondary: #F5F0E8;
    --accent: #1C2B1A;
    --text: #1C2B1A;
    --text-light: #F5F0E8;
    --text-muted: #6B6050;
    --bg-dark: #1C2B1A;
    --bg-light: #F5F0E8;
    --bg-beige: #F5F0E8;
    --bg-sage: #EDF2EC;
    --border: #D8CFC0;
    --radius: 3px;
    --transition: 300ms ease;
    --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body { font-family: 'Source Sans 3', sans-serif; font-size: 16px; line-height: 1.75; color: var(--text); background: var(--bg-beige); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.1; }
a { color: var(--primary); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.78; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 48px; }
.container-narrow { max-width: 700px; }

.bandeau-promo { background: var(--accent); color: #fff; text-align: center; padding: 10px 40px 10px 20px; font-size: 13px; font-weight: 600; position: fixed; top: 0; left: 0; right: 0; z-index: 300; }
.bandeau-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 20px; cursor: pointer; color: inherit; }

/* === NAV : transparente → linen au scroll === */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: transparent; z-index: 200; transition: background var(--transition); }
.nav.scrolled { background: rgba(245,240,232,0.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.bandeau-promo ~ .nav { top: 40px; }
.nav-container { max-width: 1120px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { font-family: 'Playfair Display', serif; font-style: italic; font-size: 22px; color: #fff; text-decoration: none; transition: color var(--transition); }
.nav.scrolled .nav-logo { color: var(--accent); }
.nav-logo-img { height: 38px; width: auto; display: block; object-fit: contain; }
.nav-logo-initiale { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--primary); color: #fff; font-family: 'Playfair Display', serif; font-style: italic; font-size: 20px; border-radius: 50%; text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 36px; }
.nav-links a { color: rgba(255,255,255,0.75); font-family: 'Source Sans 3', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; transition: color var(--transition); }
.nav.scrolled .nav-links a { color: var(--text-muted); }
.nav.scrolled .nav-toggle span { background: var(--accent); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); opacity: 1; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: all var(--transition); }

/* === HERO : poster typographique vert forêt === */
.hero { min-height: 100vh; background: var(--bg-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--nav-height) + 60px) 40px 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.025) 80px); pointer-events: none; }
.hero-bg { display: none; }
.hero-overlay { display: none; }
.hero-content { display: none; }
.hero-badge { font-family: 'Source Sans 3', sans-serif; font-size: 10px; letter-spacing: 5px; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 40px; display: block; position: relative; z-index: 1; }
.hero h1 { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(4.5rem, 12vw, 11rem); color: #fff; line-height: 0.88; font-weight: 700; margin-bottom: 36px; position: relative; z-index: 1; }
.hero-sub { font-family: 'Source Sans 3', sans-serif; font-size: 15px; color: rgba(245,240,232,0.5); max-width: 440px; margin: 0 auto 48px; line-height: 1.8; position: relative; z-index: 1; }

/* === BTN === */
.btn-cta { display: inline-block; background: var(--primary); color: #fff; padding: 13px 36px; font-family: 'Source Sans 3', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; border-radius: var(--radius); position: relative; z-index: 1; }
.btn-cta:hover { background: #3A6347; opacity: 1; }
.btn-cta-large { font-size: 13px; padding: 16px 48px; margin-top: 24px; }
.section-terracotta .btn-cta { background: var(--accent); color: #fff; }
.section-terracotta .btn-cta:hover { background: #2E3E2C; }
.contact-phone { margin: 28px 0 8px; }
.phone-number { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(2rem, 5vw, 4rem); color: var(--accent); text-decoration: none; display: inline-block; }

/* === SECTIONS === */
.section { padding: 96px 0; }
.section-beige { background: var(--bg-beige); }
.section-sage { background: var(--bg-sage); }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-terracotta { background: var(--bg-sage); border-top: 3px solid var(--primary); }
.section-title { font-style: italic; font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 12px; color: var(--accent); }
.section-dark .section-title { color: var(--text-light); }
.section-subtitle { color: var(--text-muted); max-width: 540px; margin: 0 auto 56px; font-size: 15px; line-height: 1.8; text-align: center; }
.section-dark .section-subtitle { color: rgba(245,240,232,0.5); }

/* === À PROPOS : image carrée gauche, texte droite === */
.apropos-marche { display: grid; grid-template-columns: 5fr 4fr; gap: 72px; align-items: center; }
.apropos-marche-img { overflow: hidden; }
.apropos-marche-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.apropos-marche-text .marche-tag { font-family: 'Source Sans 3', sans-serif; font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 20px; display: block; }
.apropos-marche-text h2 { font-style: italic; font-size: clamp(1.8rem, 3.5vw, 3rem); color: var(--accent); margin-bottom: 20px; line-height: 1.1; }
.apropos-marche-text p { font-size: 15px; line-height: 1.9; color: var(--text-muted); margin-bottom: 32px; }
.placeholder-img { background: var(--border); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; }

/* === CATALOGUE === */
.menu-tabs { display: flex; gap: 0; margin-bottom: 48px; border-bottom: 2px solid var(--border); }
.menu-tab { padding: 14px 28px 12px; background: transparent; color: var(--text-muted); border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: 'Playfair Display', serif; font-style: italic; font-size: 18px; cursor: pointer; transition: all var(--transition); }
.menu-tab:hover { color: var(--primary); }
.menu-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.menu-cat { display: none; }
.menu-cat.active { display: block; }
.menu-grid { max-width: 860px; }
.menu-item { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--border); gap: 20px; }
.menu-item:last-child { border-bottom: none; }
.menu-item-info { flex: 1; min-width: 0; }
.menu-item-name { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--accent); }
.menu-item-desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.menu-item-price { font-size: 14px; color: var(--primary); font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.catalogue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 24px; }
.catalogue-card { background: #fff; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.catalogue-card-img-wrap { display: none; }
.catalogue-card-name { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--accent); font-style: italic; margin-bottom: 8px; }
.catalogue-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.catalogue-card-price { font-size: 13px; color: var(--primary); font-weight: 700; margin-top: 12px; }

/* === HORAIRES === */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split-text { min-width: 0; }
.split-image { overflow: hidden; aspect-ratio: 4/3; }
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.horaires-table { width: 100%; border-collapse: collapse; }
.horaires-table tr { border-bottom: 1px solid var(--border); }
.horaires-table tr.ferme td { color: var(--text-muted); opacity: 0.5; }
.horaires-table td { padding: 14px 0; font-size: 14px; }
.horaires-table td.jour { font-weight: 600; width: 120px; }
.coordonnees { margin-top: 28px; }
.coord-item { font-size: 14px; margin-bottom: 8px; }
.coord-item a { color: var(--primary); }
.map-container { overflow: hidden; }
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }

/* === CONTACT === */
.contact-form { max-width: 560px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 13px 16px; background: #fff; border: 1.5px solid var(--border); color: var(--text); font-family: 'Source Sans 3', sans-serif; font-size: 14px; border-radius: var(--radius); transition: border var(--transition); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { height: 120px; resize: vertical; }
.form-honey { display: none; }
.form-success { background: rgba(74,124,89,0.1); border: 1px solid rgba(74,124,89,0.3); color: var(--accent); padding: 16px 20px; border-radius: var(--radius); font-size: 14px; }
.form-error { background: rgba(200,50,50,0.08); border: 1px solid rgba(200,50,50,0.2); color: #a33; padding: 16px 20px; border-radius: var(--radius); font-size: 14px; }

/* === FOOTER === */
.footer { background: var(--bg-dark); color: rgba(245,240,232,0.5); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 36px; }
.footer-logo { font-family: 'Playfair Display', serif; font-style: italic; font-size: 20px; color: var(--text-light); display: block; margin-bottom: 12px; }
.footer-address, .footer p { font-size: 13px; line-height: 1.7; }
.footer a { color: rgba(245,240,232,0.5); font-size: 13px; }
.footer a:hover { color: var(--primary); opacity: 1; }
.footer h4 { font-family: 'Source Sans 3', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(245,240,232,0.3); margin-bottom: 14px; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(245,240,232,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.footer-credit a { color: rgba(245,240,232,0.3); }
.footer-credit a:hover { color: var(--primary); opacity: 1; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .apropos-marche { grid-template-columns: 1fr; }
    .apropos-marche-img img { aspect-ratio: 16/9; }
    .split { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .nav-links { display: none; flex-direction: column; gap: 0; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--bg-dark); padding: 20px 0; border-top: 1px solid rgba(245,240,232,0.1); z-index: 199; }
    .nav-links.open { display: flex; }
    .nav-links a { color: rgba(245,240,232,0.7); padding: 14px 32px; }
    .nav-toggle { display: flex; }
    .container { padding: 0 24px; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: clamp(3.5rem, 15vw, 6rem); }
    .footer-grid { grid-template-columns: 1fr; }
    .menu-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
