/* ===========================================
   Template gite-lumiere — Le Carnet — Lora + Nunito
   Mosaïque 2×2, chaleureux, linen / sauge / terracotta
   =========================================== */

:root {
    --primary: #C4713A;
    --secondary: #FEFDF6;
    --accent: #2A1E14;
    --text: #2A1E14;
    --text-light: #FEFDF6;
    --text-muted: #7A6A58;
    --bg-dark: #2A1E14;
    --bg-light: #FEFDF6;
    --bg-beige: #FEFDF6;
    --bg-linen: #F2EBE0;
    --border: #E2D5C5;
    --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: 'Nunito', 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: 'Lora', serif; font-weight: 700; line-height: 1.15; }
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: 1100px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 680px; }

.bandeau-promo { background: var(--primary); color: #fff; text-align: center; padding: 10px 40px 10px 20px; font-size: 13px; font-weight: 700; 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(254,253,246,0.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.bandeau-promo ~ .nav { top: 40px; }
.nav-container { max-width: 1100px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { font-family: 'Lora', 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: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; font-family: 'Lora', serif; font-style: italic; font-size: 20px; text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 36px; }
.nav-links a { color: rgba(255,255,255,0.8); font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; transition: color var(--transition); }
.nav.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); opacity: 1; }
.nav.scrolled .nav-toggle span { background: var(--accent); }
.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 : mosaïque 2×2 avec cadre centré === */
.hero { position: relative; height: 100vh; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; overflow: hidden; }
.hero-bg { display: none; }
.hero-mosaic-tile { overflow: hidden; }
.hero-mosaic-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 8s ease; }
.hero-mosaic-tile:hover img { transform: scale(1.04); }
.hero-tile-placeholder { width: 100%; height: 100%; background: var(--bg-linen); }
.hero-overlay { position: absolute; inset: 0; background: rgba(30,20,10,0.44); z-index: 1; }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.hero-frame { border: 1px solid rgba(255,255,255,0.3); padding: 48px 56px; max-width: 540px; width: 90%; }
.hero-eyebrow { font-family: 'Nunito', sans-serif; font-size: 10px; letter-spacing: 5px; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 20px; font-weight: 700; display: block; }
.hero h1 { font-style: italic; font-size: clamp(2.8rem, 6vw, 5.5rem); color: #fff; line-height: 0.92; margin-bottom: 20px; }
.hero-sub { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 36px; line-height: 1.65; font-style: italic; font-family: 'Lora', serif; font-weight: 400; }

/* === BTN === */
.btn-cta { display: inline-block; background: var(--primary); color: #fff; padding: 13px 36px; font-family: 'Nunito', 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); }
.btn-cta:hover { background: #A35E2D; 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: #3D2A18; opacity: 1; }
.contact-phone { margin: 28px 0 8px; }
.phone-number { font-family: 'Lora', serif; font-style: italic; font-size: clamp(2rem, 5vw, 3.5rem); color: var(--primary); text-decoration: none; display: inline-block; }

/* === SECTIONS === */
.section { padding: 92px 0; }
.section-beige { background: var(--bg-beige); }
.section-linen { background: var(--bg-linen); }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-terracotta { background: var(--bg-linen); 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 52px; font-size: 15px; line-height: 1.8; text-align: center; font-style: italic; font-family: 'Lora', serif; }
.section-dark .section-subtitle { color: rgba(254,253,246,0.55); }

/* === À PROPOS : lettre personnelle centrée === */
.apropos-lettre { max-width: 780px; margin: 0 auto; text-align: center; }
.apropos-lettre .lettre-top { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 44px; }
.apropos-lettre .lettre-line { flex: 1; height: 1px; background: var(--border); max-width: 80px; }
.apropos-lettre .lettre-tag { font-family: 'Nunito', sans-serif; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.apropos-lettre h2 { font-style: italic; font-size: clamp(1.8rem, 4vw, 3rem); color: var(--accent); margin-bottom: 28px; }
.apropos-lettre p { font-family: 'Lora', serif; font-style: italic; font-size: 17px; line-height: 1.95; color: var(--text-muted); }
.apropos-lettre .lettre-photo { margin: 52px auto 0; width: 100%; max-width: 680px; height: 44vh; overflow: hidden; }
.apropos-lettre .lettre-photo img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-img { background: var(--border); height: 44vh; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; }

/* === CATALOGUE === */
.menu-tabs { display: flex; justify-content: center; gap: 0; margin-bottom: 48px; border-bottom: 1px solid var(--border); }
.menu-tab { padding: 12px 28px 10px; background: transparent; color: var(--text-muted); border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: 'Lora', serif; font-style: italic; font-size: 20px; cursor: pointer; transition: all var(--transition); }
.menu-tab:hover { color: var(--accent); }
.menu-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.menu-cat { display: none; }
.menu-cat.active { display: block; }
.menu-grid { max-width: 680px; margin: 0 auto; }
.menu-item { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--border); }
.menu-item:first-child { border-top: 1px solid var(--border); }
.menu-item:last-child { border-bottom: none; }
.menu-item-info h3 { font-family: 'Lora', serif; font-style: italic; font-size: 20px; margin-bottom: 4px; color: var(--accent); }
.menu-item-info p { font-size: 13px; color: var(--text-muted); }
.menu-item-prix { font-family: 'Lora', serif; font-style: italic; font-size: 18px; color: var(--primary); white-space: nowrap; margin-left: 20px; }

/* === SPLIT (horaires) === */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split-text h2 { font-style: italic; font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 24px; color: var(--accent); }
.split-text p { font-size: 14px; line-height: 1.85; 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: 12px 0; font-size: 14px; }
.jour { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 13px; width: 120px; color: var(--accent); }
.ferme .heures { color: #ccc; font-style: italic; }
.coordonnees { margin-top: 24px; }
.coord-item { margin-bottom: 8px; font-size: 14px; color: var(--text-muted); }
.coord-item a { color: var(--primary); }
.map-container iframe { width: 100%; height: 100%; min-height: 300px; border: none; border-radius: var(--radius); }

/* === FOOTER === */
.footer { background: var(--bg-dark); color: rgba(254,253,246,0.35); padding: 56px 0 24px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 36px; }
.footer-logo { font-family: 'Lora', serif; font-style: italic; font-size: 24px; color: var(--text-light); display: block; margin-bottom: 12px; }
.footer h4 { color: rgba(254,253,246,0.55); margin-bottom: 12px; font-family: 'Nunito', sans-serif; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; }
.footer a { color: rgba(254,253,246,0.35); }
.footer a:hover { color: var(--text-light); opacity: 1; }
.footer p { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(254,253,246,0.08); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; }
.footer-credit { color: rgba(254,253,246,0.15); }
.footer-credit a { color: rgba(254,253,246,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: 18px; }
.resa-form label { display: block; font-weight: 700; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; color: var(--text-muted); }
.resa-form input, .resa-form select { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; box-sizing: border-box; font-family: 'Nunito', sans-serif; }
.resa-form input:focus, .resa-form select:focus { outline: none; border-color: var(--primary); }
.form-error { color: #c0392b; font-size: 0.88rem; margin-bottom: 12px; padding: 10px 14px; background: #fdf0ef; border-radius: var(--radius); }
.resa-success { text-align: center; padding: 48px 0; }
.resa-success-icon { font-size: 3rem; color: var(--primary); margin-bottom: 12px; }
.resa-success h3 { font-style: italic; font-size: 1.6rem; 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: 16px; }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.6); border-radius: var(--radius); padding: 3px 8px; font-size: 10px; font-weight: 700; font-family: 'Nunito', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: all 0.2s; line-height: 1.5; }
.nav.scrolled .lang-btn { border-color: var(--border); color: var(--text-muted); }
.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.2); z-index: 90; transition: transform var(--transition); }
.whatsapp-float:hover { transform: scale(1.08); opacity: 1; }

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
    .hero-frame { padding: 32px 24px; }
    .nav-toggle { display: flex; }
    .nav-links { position: fixed; top: var(--nav-height); left: 0; right: 0; background: rgba(254,253,246,0.98); flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 300ms ease; border-top: 1px solid var(--border); }
    .nav-links.open { max-height: 400px; }
    .nav-links li { border-bottom: 1px solid var(--border); }
    .nav-links a { display: block; padding: 14px 20px; color: var(--text-muted); }
    .apropos-lettre .lettre-photo { height: 52vw; }
    .split { grid-template-columns: 1fr; gap: 28px; }
    .split-image { order: -1; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
    .section { padding: 64px 0; }
}
