/* ===========================================
   Template gite-foret — Maison de famille photographiée
   Libre Baskerville + Nunito — Bois chaud / Brique
   Hero mosaïque 2×2, cadre blanc central, à-propos bois
   =========================================== */

:root {
  --bois: #5C3D1E;
  --bois-clair: #8B6340;
  --brique: #A85C3A;
  --bg: #FBF8F3;
  --bg-warm: #F2EBE0;
  --text: #2A1A0A;
  --text-muted: #7A6550;
  --line: rgba(92,61,30,0.15);
  --line-light: rgba(255,255,255,0.2);
  --nav-height: 64px;
  --radius: 4px;
  --transition: 300ms ease;
  --shadow: 0 4px 24px rgba(42,26,10,0.10);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body { background: var(--bg); color: var(--text); font-family: 'Nunito', sans-serif; font-weight: 300; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Libre Baskerville', serif; font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
a:hover { opacity: 0.85; }
img { display: block; max-width: 100%; height: auto; }

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

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 56px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent; transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent; height: var(--nav-height);
}
.nav.scrolled { background: var(--bois); border-bottom-color: var(--line-light); }
.bandeau-promo ~ .nav { top: 40px; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0; display: flex; align-items: center; justify-content: space-between; height: 100%; width: 100%; }
.nav-logo {
  font-family: 'Libre Baskerville', serif; font-size: 1.2rem; font-weight: 400; font-style: italic;
  color: #fff; letter-spacing: 0.05em; text-decoration: none;
}
.nav-logo-img { height: 40px; width: auto; display: block; object-fit: contain; }
.nav-logo-initiale { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; background: var(--brique); color: #fff; font-family: 'Libre Baskerville', serif; font-size: 22px; font-weight: 700; text-decoration: none; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: 'Nunito', sans-serif; font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); transition: color 0.2s; text-decoration: none;
}
.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: 22px; height: 1px; background: #fff; margin: 5px 0; transition: all var(--transition); }
#nav-toggle { display: none; background: none; border: none; cursor: pointer; }
#nav-toggle span { display: block; width: 22px; height: 1px; background: #fff; margin: 5px 0; }

.btn-cta {
  display: inline-block; background: var(--brique); color: #fff;
  padding: 13px 40px;
  font-family: 'Nunito', sans-serif; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transition: background 0.2s;
  border: none; border-radius: var(--radius); cursor: pointer;
}
.btn-cta:hover { background: var(--bois); opacity: 1; }
.btn-cta-large { font-size: 14px; padding: 18px 48px; margin-top: 24px; }

/* HERO MOSAÏQUE 2×2 */
.hero-mosaic {
  position: relative; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.hero-mosaic-tile {
  overflow: hidden; position: relative;
}
.hero-mosaic-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.hero-mosaic-tile:hover img { transform: scale(1.04); }
.hero-mosaic-tile::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.25);
}
.hero-mosaic-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 10; background: var(--bg);
  padding: 48px 56px; text-align: center;
  min-width: 340px; max-width: 480px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}
.hero-mosaic-card-label {
  font-family: 'Nunito', sans-serif; font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.45em; text-transform: uppercase; color: var(--brique);
  display: block; margin-bottom: 16px;
}
.hero-mosaic-card h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 700; font-style: italic;
  color: var(--text); line-height: 1.1; margin-bottom: 16px;
}
.hero-mosaic-card p {
  font-family: 'Nunito', sans-serif; font-size: 0.85rem; font-weight: 300;
  color: var(--text-muted); line-height: 1.6; margin-bottom: 28px;
}

/* A PROPOS GITE — Fond bois chaud + photo pleine hauteur */
.apropos-gite {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; align-items: stretch; min-width: 0;
}
.apropos-gite-text {
  padding: 80px 72px; background: var(--bg-warm);
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
}
.apropos-gite-ornement {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.apropos-gite-ornement::before { content: ''; width: 32px; height: 2px; background: var(--brique); }
.apropos-gite-ornement span {
  font-family: 'Nunito', sans-serif; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--brique);
}
.apropos-gite-text h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 700; font-style: italic;
  color: var(--text); margin-bottom: 20px; min-width: 0;
}
.apropos-gite-text p {
  font-family: 'Nunito', sans-serif; font-size: 0.95rem; font-weight: 300;
  color: var(--text-muted); line-height: 1.85; margin-bottom: 32px; min-width: 0;
}
.apropos-gite-img { overflow: hidden; min-width: 0; }
.apropos-gite-img img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }

/* Legacy compat — .hero class for script.js nav scroll */
.hero { position: relative; }

.section { padding: 80px 0; }
.section-beige { background: #fff; }
.section-dark { background: var(--bois); color: var(--bg); }
.section-terracotta { background: var(--brique); color: #fff; }
.section-terracotta .btn-cta { background: #fff; color: var(--brique); }
.section-terracotta .btn-cta:hover { background: var(--bg); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 56px; }
.container-narrow { max-width: 700px; }
.section-title {
  font-family: 'Libre Baskerville', serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; font-style: italic;
  color: var(--text); margin-bottom: 12px; text-align: center;
}
.section-terracotta .section-title { color: #fff; }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; font-size: 15px; }
.section-dark .section-subtitle { color: rgba(251,248,243,0.6); }
.section-terracotta .section-subtitle { color: rgba(255,255,255,0.8); }

.contact-phone { margin: 24px 0 8px; }
.phone-number { font-family: 'Libre Baskerville', serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: #fff; text-decoration: none; display: inline-block; }
.section-terracotta .phone-number { color: #fff; }

/* Catalogue / Prestations — onglets + lignes */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.tab-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); padding: 12px 24px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { color: var(--brique); border-bottom-color: var(--brique); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.produit-item { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 16px; }
.produit-nom { font-family: 'Libre Baskerville', serif; font-size: 1rem; font-style: italic; color: var(--text); }
.produit-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; min-width: 0; }
.produit-prix { font-size: 0.85rem; color: var(--brique); white-space: nowrap; flex-shrink: 0; }

/* Menu carte (dark) */
.menu-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.menu-tab { padding: 10px 24px; background: transparent; color: rgba(251,248,243,0.5); border: 1px solid rgba(251,248,243,0.2); border-radius: 30px; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: all var(--transition); }
.menu-tab:hover { border-color: var(--brique); color: var(--brique); }
.menu-tab.active { background: var(--brique); border-color: var(--brique); color: #fff; }
.menu-cat { display: none; }
.menu-cat.active { display: block; }
.menu-grid { max-width: 700px; margin: 0 auto; }
.menu-item { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid rgba(251,248,243,0.15); }
.menu-item:last-child { border-bottom: none; }
.menu-item-info { min-width: 0; }
.menu-item-info h3 { font-family: 'Libre Baskerville', serif; font-size: 20px; font-weight: 700; margin-bottom: 4px; color: var(--bg); }
.menu-item-info p { font-size: 13px; color: rgba(251,248,243,0.5); font-style: italic; min-width: 0; }
.menu-item-prix { font-family: 'Libre Baskerville', serif; font-size: 18px; color: var(--brique); font-weight: 700; white-space: nowrap; margin-left: 16px; }

/* Horaires & contact */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-text h2 { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 2rem; margin-bottom: 12px; }
.split-text p { color: var(--text-muted); line-height: 1.8; min-width: 0; }
.split-image img { width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.placeholder-img { background: var(--bg-warm); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; min-height: 200px; color: var(--text-muted); font-size: 14px; }
.section-dark .placeholder-img { background: rgba(251,248,243,0.08); }

.horaires-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.horaires-table tr { border-bottom: 1px solid var(--line); }
.horaires-table td { padding: 10px 0; font-size: 15px; color: var(--text-muted); }
.jour { font-weight: 700; width: 120px; color: var(--text); }
.ferme .heures { color: var(--text-muted); font-style: italic; }
.coordonnees { margin-top: 20px; }
.coord-item { margin-bottom: 8px; font-size: 15px; }
.coord-item a { color: var(--brique); }
.map-container iframe { width: 100%; height: 100%; min-height: 300px; border: none; border-radius: var(--radius); }

/* Footer */
.footer { background: #1A0E05; color: rgba(251,248,243,0.5); padding: 48px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-logo { font-family: 'Libre Baskerville', serif; font-size: 22px; color: var(--bg); display: block; margin-bottom: 12px; font-style: italic; }
.footer h4 { color: rgba(251,248,243,0.7); margin-bottom: 12px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.footer a { color: rgba(251,248,243,0.5); }
.footer a:hover { color: var(--bg); }
.footer p { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(251,248,243,0.1); padding-top: 20px; display: flex; justify-content: space-between; font-size: 13px; }
.footer-credit { color: rgba(251,248,243,0.2); }
.footer-credit a { color: rgba(251,248,243,0.2); }

/* Reservation form */
.resa-back { background: none; border: none; color: var(--brique); 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; margin-bottom: 6px; font-size: 0.92rem; }
.resa-form input, .resa-form select { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 1rem; box-sizing: border-box; font-family: inherit; }
.resa-form input:focus, .resa-form select:focus { outline: none; border-color: var(--brique); }
.form-error { color: #c0392b; font-size: 0.88rem; margin-bottom: 12px; padding: 8px 12px; background: #fdf0ef; border-radius: 4px; }
.resa-success { text-align: center; padding: 40px 0; }
.resa-success-icon { font-size: 3.5rem; color: var(--brique); margin-bottom: 12px; }
.resa-success h3 { font-size: 1.4rem; margin-bottom: 8px; }
.resa-success p { color: #666; margin-bottom: 24px; }

/* Language switcher */
.lang-switcher { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: inherit; border-radius: 4px; padding: 3px 7px; font-size: 0.72rem; font-weight: 600; cursor: pointer; letter-spacing: 0.05em; transition: background 0.2s, color 0.2s; line-height: 1.4; }
.lang-btn:hover { background: rgba(255,255,255,0.2); }
.lang-btn.active { background: var(--brique); border-color: var(--brique); color: #fff; }

/* WhatsApp float */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 90; transition: transform var(--transition); }
.whatsapp-float:hover { transform: scale(1.1); opacity: 1; }

/* Responsive */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; position: fixed; inset: 0; background: var(--bois); flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
  #nav-links.open, .nav-links.open { display: flex; }
  #nav-toggle, .nav-toggle { display: block; }
  .hero-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 100vh; }
  .hero-mosaic-card { min-width: 280px; padding: 32px 28px; }
  .apropos-gite { grid-template-columns: 1fr; }
  .apropos-gite-img img { min-height: 260px; }
  .apropos-gite-text { padding: 48px 24px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split-image { order: -1; }
  .container { padding: 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 60px 0; }
}

@media (max-width: 360px) {
  .hero-mosaic-card h1 { font-size: 1.6rem; }
}
