/* ===========================================
   Template boucherie-terroir — Maison Rouge — Syne + DM Sans
   Architectural, split vertical, éditorial premium
   =========================================== */

:root {
    --primary: #D42B2B;
    --secondary: #FFFFFF;
    --accent: #0D0D0D;
    --text: #0D0D0D;
    --text-light: #FFFFFF;
    --text-muted: #888888;
    --bg-dark: #0D0D0D;
    --bg-light: #FFFFFF;
    --bg-beige: #F5F3EF;
    --border: #E8E8E8;
    --border-dark: rgba(255,255,255,0.1);
    --radius: 0;
    --transition: 250ms ease;
    --nav-height: 0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body { font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.7; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; font-weight: 800; line-height: 0.9; }
a { color: var(--primary); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 48px; }
.container-narrow { max-width: 700px; }

.bandeau-promo { background: var(--primary); color: #fff; text-align: center; padding: 10px 40px 10px 20px; font-size: 13px; font-weight: 500; letter-spacing: 0.5px; 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 flottante === */
.nav { position: fixed; top: 0; left: 0; right: 0; height: 72px; background: transparent; z-index: 200; }
.bandeau-promo ~ .nav { top: 40px; }
.nav.scrolled { background: rgba(13,13,13,0.96); backdrop-filter: blur(12px); }
.nav-container { max-width: 1140px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; color: #fff; text-decoration: none; }
.nav-logo-img { height: 36px; width: auto; display: block; object-fit: contain; filter: brightness(0) invert(1); }
.nav-logo-initiale { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--primary); color: #fff; font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a { color: rgba(255,255,255,0.5); font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: #fff; 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: 1.5px; background: #fff; transition: all var(--transition); }

/* === HERO : split architectural 35/65 === */
.hero { display: grid; grid-template-columns: 35fr 65fr; height: 100vh; overflow: hidden; }
.hero-bg { display: none; }
.hero-overlay { display: none; }

.hero-panel { background: var(--bg-dark); display: flex; flex-direction: column; justify-content: space-between; padding: 52px 48px; overflow: hidden; min-width: 0; }
.hero-panel-top { display: flex; align-items: flex-start; gap: 20px; }
.hero-panel-line { width: 32px; height: 2px; background: var(--primary); flex-shrink: 0; margin-top: 5px; }
.hero-eyebrow { font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.35); line-height: 1.4; }
.hero-panel-bottom { }
.hero h1 { font-size: clamp(2.2rem, 3vw, 4rem); color: #fff; line-height: 0.92; margin-bottom: 40px; word-break: break-word; }
.hero h1 span { color: var(--primary); display: block; }
.hero-sub { font-size: 13px; color: rgba(255,255,255,0.4); letter-spacing: 0.3px; margin-bottom: 36px; max-width: 260px; line-height: 1.65; }

.hero-photo { overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* === BTN === */
.btn-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--primary); color: #fff; padding: 14px 28px; font-family: 'DM Sans', 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; }
.btn-cta::after { content: '→'; font-size: 14px; transition: transform var(--transition); }
.btn-cta:hover { background: #B02020; opacity: 1; }
.btn-cta:hover::after { transform: translateX(4px); }
.btn-cta-large { font-size: 13px; padding: 18px 40px; margin-top: 24px; }
.section-terracotta .btn-cta { background: #fff; color: var(--primary); }
.section-terracotta .btn-cta:hover { background: var(--bg-beige); opacity: 1; }
.contact-phone { margin: 28px 0 8px; }
.phone-number { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 5vw, 4rem); color: var(--primary); text-decoration: none; display: inline-block; line-height: 1; }
.section-terracotta .phone-number { color: var(--primary); }

/* === SECTIONS === */
.section { padding: 96px 0; }
.section-beige { background: var(--bg-beige); }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-terracotta { background: #F5F3EF; border-top: 3px solid var(--primary); }
.section-title { font-size: clamp(2rem, 4.5vw, 3.5rem); margin-bottom: 12px; color: var(--text); text-transform: uppercase; letter-spacing: -0.02em; }
.section-dark .section-title { color: var(--text-light); }
.section-terracotta .section-title { color: var(--text); }
.section-subtitle { color: var(--text-muted); max-width: 520px; margin: 0 0 56px; font-size: 14px; line-height: 1.75; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.45); }

/* === À PROPOS : édito full-width === */
.apropos-edito { display: grid; grid-template-columns: 2fr 1fr; gap: 80px; align-items: start; }
.apropos-edito-text { }
.apropos-edito-text .apropos-index { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 80px; line-height: 1; color: var(--primary); opacity: 0.12; display: block; margin-bottom: -20px; }
.apropos-edito-text h2 { font-size: clamp(2rem, 4vw, 3.5rem); color: var(--text); margin-bottom: 28px; text-transform: uppercase; letter-spacing: -0.02em; }
.apropos-edito-text p { font-size: 16px; line-height: 1.9; color: #555; }
.apropos-edito-aside { padding-top: 24px; }
.apropos-edito-aside img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.placeholder-img { background: var(--border); aspect-ratio: 3/4; 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: 1px solid var(--border); }
.menu-tab { padding: 14px 28px 12px; background: transparent; color: var(--text-muted); border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: all var(--transition); }
.menu-tab:hover { color: var(--text); }
.menu-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.menu-cat { display: none; }
.menu-cat.active { display: block; }
.menu-grid { max-width: 820px; }
.menu-item { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--border); }
.menu-item:first-child { border-top: 1px solid var(--border); }
.menu-item-info h3 { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 3px; color: var(--text); }
.menu-item-info p { font-size: 13px; color: var(--text-muted); }
.menu-item-prix { font-family: 'Syne', sans-serif; font-size: 18px; color: var(--primary); font-weight: 700; white-space: nowrap; margin-left: 32px; }

/* === SPLIT (horaires) === */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split-text h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 24px; color: var(--text); text-transform: uppercase; }
.split-text p { font-size: 15px; line-height: 1.8; color: var(--text-muted); }
.split-image img { width: 100%; }

/* === HORAIRES === */
.horaires-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.horaires-table tr { border-bottom: 1px solid var(--border); }
.horaires-table td { padding: 13px 0; font-size: 14px; }
.jour { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; width: 130px; color: var(--text); }
.ferme .heures { color: #ccc; }
.coordonnees { margin-top: 24px; }
.coord-item { margin-bottom: 8px; font-size: 14px; color: var(--text-muted); }
.coord-item a { color: var(--text); }
.coord-item a:hover { color: var(--primary); opacity: 1; }
.map-container iframe { width: 100%; height: 100%; min-height: 320px; border: none; }

/* === CONTACT === */
.section-terracotta .section-title { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -0.03em; }

/* === FOOTER === */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.3); padding: 60px 0 28px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; color: #fff; display: block; margin-bottom: 16px; }
.footer h4 { color: rgba(255,255,255,0.5); margin-bottom: 14px; font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; font-weight: 500; }
.footer a { color: rgba(255,255,255,0.3); }
.footer a:hover { color: #fff; opacity: 1; }
.footer p { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; font-size: 12px; }
.footer-credit { color: rgba(255,255,255,0.15); }
.footer-credit a { color: rgba(255,255,255,0.15); }

/* === Formulaires === */
.resa-back { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 0.9rem; margin-bottom: 16px; padding: 0; text-decoration: underline; }
.resa-form .form-group { margin-bottom: 16px; }
.resa-form label { display: block; font-weight: 500; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; color: var(--text-muted); font-family: 'DM Sans', sans-serif; }
.resa-form input, .resa-form select { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 0; font-size: 15px; box-sizing: border-box; font-family: 'DM Sans', sans-serif; background: #fff; }
.resa-form input:focus, .resa-form select:focus { outline: none; border-color: var(--text); }
.form-error { color: var(--primary); font-size: 0.88rem; margin-bottom: 12px; padding: 10px 16px; background: #fdf0ef; border-left: 3px solid var(--primary); }
.resa-success { text-align: center; padding: 40px 0; }
.resa-success-icon { font-size: 3rem; color: var(--primary); margin-bottom: 12px; }
.resa-success h3 { font-size: 1.4rem; margin-bottom: 8px; }
.resa-success p { color: var(--text-muted); margin-bottom: 24px; }

/* ---- Switcher langue ---- */
.lang-switcher { display: flex; align-items: center; gap: 4px; margin-left: 20px; }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.4); border-radius: 0; padding: 4px 8px; font-size: 10px; font-weight: 700; font-family: 'DM Sans', sans-serif; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all 0.2s; line-height: 1.4; }
.lang-btn:hover { color: #fff; border-color: #fff; }
.lang-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.whatsapp-float { position: fixed; bottom: 28px; right: 28px; width: 52px; height: 52px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.25); z-index: 90; transition: transform var(--transition); }
.whatsapp-float:hover { transform: scale(1.08); opacity: 1; }

@media (max-width: 1024px) {
    .hero { grid-template-columns: 40fr 60fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .hero { grid-template-columns: 1fr; height: auto; }
    .hero-panel { min-height: 60vh; padding: 80px 24px 48px; }
    .hero-photo { height: 50vw; min-height: 240px; }
    .hero-photo img { height: 100%; }
    .nav-toggle { display: flex; }
    .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: rgba(13,13,13,0.98); flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
    .nav-links.open { max-height: 400px; }
    .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-links a { display: block; padding: 16px 24px; }
    .apropos-edito { grid-template-columns: 1fr; gap: 40px; }
    .split { grid-template-columns: 1fr; gap: 32px; }
    .split-image { order: -1; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
    .section { padding: 64px 0; }
    .menu-tabs { overflow-x: auto; padding-bottom: 0; }
}
