/* ===========================================
   Template boulangerie-levain — Magazine culinaire
   Libre Baskerville + DM Sans — Tons chauds ble/creme/brun
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
    --primary: #8B5E3C;
    --accent: #C9954A;
    --bg: #FDF8F2;
    --bg-dark: #2C1F14;
    --text: #2C1F14;
    --text-muted: #7A6A5A;
    --line: rgba(139,94,60,0.2);
    --nav-height: 72px;
    --transition: 300ms ease;
}

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

body { font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.75; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Libre Baskerville', serif; font-weight: 700; line-height: 1.1; }
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: 1100px; margin: 0 auto; padding: 0 48px; }
.container-narrow { max-width: 680px; }

/* === BANDEAU PROMO === */
.bandeau-promo { background: var(--bg-dark); color: rgba(253,248,242,0.8); text-align: center; padding: 10px 40px 10px 20px; font-size: 13px; font-weight: 400; position: fixed; top: 0; left: 0; right: 0; z-index: 300; letter-spacing: 0.5px; }
.bandeau-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 20px; cursor: pointer; color: inherit; }

/* === NAV (transparent -> fond au scroll) === */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: transparent; z-index: 200; transition: background 0.4s ease, border-color 0.4s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(253,248,242,0.97); backdrop-filter: blur(8px); border-bottom-color: var(--line); }
.bandeau-promo ~ .nav { top: 40px; }
.nav-container { max-width: 1100px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { font-family: 'Libre Baskerville', serif; font-style: italic; font-weight: 700; font-size: 22px; color: #fff; text-decoration: none; transition: color 0.4s ease; }
.nav.scrolled .nav-logo { color: var(--primary); }
.nav-logo-img { height: 36px; width: auto; display: block; object-fit: contain; }
.nav-logo-initiale { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #fff; color: #fff; font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 20px; font-weight: 700; text-decoration: none; transition: border-color 0.4s ease, color 0.4s ease; }
.nav.scrolled .nav-logo-initiale { border-color: var(--primary); color: var(--primary); }
.nav-links { list-style: none; display: flex; gap: 36px; }
.nav-links a { color: rgba(255,255,255,0.7); 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.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: #fff; opacity: 1; }
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-links a.active { color: var(--text); }
.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; transition: all var(--transition); }
.nav.scrolled .nav-toggle span { background: var(--text); }

/* ===================== HERO — COUVERTURE ===================== */
.hero-cover {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(28, 18, 10, 0.5) 60%,
    rgba(28, 18, 10, 0.92) 100%
  );
}
.hero-cover-content {
  position: relative;
  z-index: 2;
  padding: 0 72px 72px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.hero-cover-left {
  flex: 1;
  min-width: 0;
}
.hero-cover-kicker {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-cover-left h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(4.5rem, 10vw, 11rem);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 0.9;
  margin: 0;
}
.hero-cover-right {
  flex: 0 0 320px;
  min-width: 0;
  padding-bottom: 12px;
}
.hero-cover-right p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-cover-right .btn-cta {
  background: var(--accent);
  color: #fff;
  padding: 13px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: background 0.2s;
}
.hero-cover-right .btn-cta:hover { background: var(--primary); }

/* === BTN === */
.btn-cta { display: inline-block; background: var(--accent); color: #fff; padding: 14px 40px; font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: background 0.2s; }
.btn-cta:hover { background: var(--primary); opacity: 1; }
.btn-cta-large { font-size: 0.85rem; padding: 16px 48px; margin-top: 24px; }
.section-terracotta .btn-cta { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.4); }
.section-terracotta .btn-cta:hover { background: #fff; color: var(--primary); opacity: 1; }
.contact-phone { margin: 28px 0 12px; }
.phone-number { font-family: 'Libre Baskerville', serif; font-style: italic; font-weight: 400; font-size: clamp(2.5rem, 7vw, 5.5rem); color: #fff; text-decoration: none; display: inline-block; line-height: 0.85; }

/* ===================== A PROPOS — BANDE EDITORIALE ===================== */
.apropos-bande {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 0;
  align-items: stretch;
  min-width: 0;
}
.apropos-bande-text {
  padding: 96px 80px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.apropos-bande-num {
  font-family: 'Libre Baskerville', serif;
  font-size: 7rem;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
  display: block;
  margin-bottom: -24px;
}
.apropos-bande-tag {
  display: inline-block;
  border: 1px solid var(--line);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 14px;
  margin-bottom: 24px;
}
.apropos-bande-text h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
  min-width: 0;
}
.apropos-bande-text p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 32px;
  min-width: 0;
}
.apropos-bande-img {
  overflow: hidden;
  min-width: 0;
}
.apropos-bande-img img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  display: block;
}
.placeholder-img { background: var(--line); height: 480px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; }

/* === SECTIONS === */
.section { padding: 100px 0; border-top: 1px solid var(--line); }
.section-beige { background: var(--bg); }
.section-sand { background: var(--bg); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-terracotta { background: var(--primary); color: #fff; }
.section-title { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 16px; color: var(--text); font-weight: 700; min-width: 0; }
.section-dark .section-title { color: #fff; }
.section-terracotta .section-title { color: #fff; font-style: italic; }
.section-subtitle { color: var(--text-muted); max-width: 520px; margin: 0 auto 56px; font-size: 14px; line-height: 1.8; text-align: center; font-family: 'DM Sans', sans-serif; min-width: 0; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.5); }
.section-terracotta .section-subtitle { color: rgba(255,255,255,0.8); }

/* === CATALOGUE === */
.menu-tabs { display: flex; justify-content: center; gap: 32px; margin-bottom: 52px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.menu-tab { padding: 12px 0 10px; background: transparent; color: var(--text-muted); border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 22px; font-weight: 700; cursor: pointer; transition: all var(--transition); }
.menu-tab:hover { color: var(--text); }
.menu-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.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: 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.menu-item:first-child { border-top: 1px solid var(--line); }
.menu-item:last-child { border-bottom: none; }
.menu-item-info { min-width: 0; }
.menu-item-info h3 { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 20px; font-weight: 400; margin-bottom: 4px; color: var(--text); min-width: 0; }
.menu-item-info p { font-size: 12px; color: var(--text-muted); font-family: 'DM Sans', sans-serif; letter-spacing: 0.2px; min-width: 0; }
.menu-item-prix { font-family: 'Libre Baskerville', serif; font-size: 20px; color: var(--accent); font-weight: 700; white-space: nowrap; margin-left: 24px; font-style: italic; }

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

/* === HORAIRES === */
.horaires-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.horaires-table tr { border-bottom: 1px solid var(--line); }
.horaires-table td { padding: 13px 0; font-size: 14px; }
.jour { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; width: 120px; color: var(--text-muted); }
.ferme .heures { color: #ccc; }
.coordonnees { margin-top: 24px; }
.coord-item { margin-bottom: 8px; font-size: 14px; color: var(--text-muted); min-width: 0; }
.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; }

/* === FOOTER === */
.footer { background: var(--bg-dark); color: rgba(253,248,242,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: 'Libre Baskerville', serif; font-style: italic; font-weight: 700; font-size: 24px; color: rgba(253,248,242,0.9); display: block; margin-bottom: 14px; }
.footer h4 { color: rgba(253,248,242,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(253,248,242,0.3); }
.footer a:hover { color: rgba(253,248,242,0.9); opacity: 1; }
.footer p { margin-bottom: 6px; min-width: 0; }
.footer-bottom { border-top: 1px solid rgba(253,248,242,0.08); padding-top: 24px; display: flex; justify-content: space-between; font-size: 12px; }
.footer-credit { color: rgba(253,248,242,0.15); }
.footer-credit a { color: rgba(253,248,242,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: 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 0; border: none; border-bottom: 1px solid var(--line); font-size: 15px; box-sizing: border-box; font-family: 'DM Sans', sans-serif; background: transparent; border-radius: 0; color: var(--text); }
.resa-form input:focus, .resa-form select:focus { outline: none; border-bottom-color: var(--primary); }
.form-error { color: #c0392b; font-size: 0.88rem; margin-bottom: 12px; padding: 10px 0; border-top: 1px solid #c0392b; }
.resa-success { text-align: center; padding: 48px 0; }
.resa-success-icon { font-size: 3rem; color: var(--accent); margin-bottom: 12px; font-family: 'Libre Baskerville', serif; }
.resa-success h3 { font-style: italic; font-size: 1.6rem; margin-bottom: 8px; font-weight: 400; }
.resa-success p { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; min-width: 0; }

/* === Switcher langue === */
.lang-switcher { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.lang-btn { background: transparent; border: 1px solid var(--line); color: var(--text-muted); border-radius: 0; padding: 3px 8px; font-size: 10px; font-weight: 500; font-family: 'DM Sans', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: all 0.2s; line-height: 1.5; }
.lang-btn.active { background: var(--bg-dark); border-color: var(--bg-dark); color: #fff; }

/* === WhatsApp === */
.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; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .hero-cover-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 32px 48px;
        gap: 24px;
    }
    .hero-cover-right { flex: none; width: 100%; }
    .apropos-bande { grid-template-columns: 1fr; }
    .apropos-bande-img { order: -1; }
    .apropos-bande-img img { min-height: 300px; }
    .apropos-bande-text { padding: 56px 32px; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .nav-toggle { display: flex; }
    .nav-links { position: fixed; top: var(--nav-height); left: 0; right: 0; background: rgba(253,248,242,0.98); flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 300ms ease; border-top: 1px solid var(--line); }
    .nav-links.open { max-height: 400px; }
    .nav-links li { border-bottom: 1px solid var(--line); }
    .nav-links a { display: block; padding: 15px 24px; color: var(--text-muted) !important; }
    .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 { gap: 16px; overflow-x: auto; padding-bottom: 0; }
    .apropos-section-num { font-size: 3.5rem; }
}

@media (max-width: 360px) {
    .hero-magazine-text h1 { font-size: 2.5rem; }
}
