/* ===================================================
   La Bergerie de Trets — Vitrine CSS v2
   Palette officielle — charte labergeriedetrets.fr
   ===================================================
   --bt-nav   : #809277  (navbar, Odoo --menu-custom)
   --bt-vert  : #424c3d  (titres, liens, dark primary)
   --bt-clair : #e8ede6  (sections vertes claires)
   --bt-jaune : #ffde59  (CTA, badge, Odoo --secondary)
   --bt-doux  : #6b7a62  (vert doux, sous-titres)
   --bt-gris  : #F3F2F2  (footer, Odoo --footer)
   =================================================== */

:root {
  --bt-nav:     #809277;
  --bt-vert:    #424c3d;
  --bt-clair:   #e8ede6;
  --bt-jaune:   #ffde59;
  --bt-doux:    #6b7a62;
  --bt-bordure: #d4dbd0;
  --bt-gris:    #F3F2F2;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 2px 20px rgba(0,0,0,.08);
}

/* ─── RESET ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: #fff; color: #222; line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--bt-vert); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .25em; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ─── TYPOGRAPHY ─────────────────────────── */
h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); color: var(--bt-vert); line-height: 1.2; font-weight: 700; margin-bottom: .6em; }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.65rem); color: var(--bt-vert); line-height: 1.25; font-weight: 700; margin-bottom: .5em; }
h3 { font-size: 1.1rem; color: var(--bt-vert); font-weight: 600; margin-bottom: .4em; }
.lead { font-size: 1.05rem; color: #555; line-height: 1.75; }

blockquote {
  background: var(--bt-clair);
  border-left: 4px solid var(--bt-vert);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
  font-size: .95rem;
  color: #444;
  line-height: 1.7;
}

/* ─── LAYOUT ─────────────────────────────── */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 780px;  margin: 0 auto; padding: 0 2rem; }

/* ─── SECTIONS ───────────────────────────── */
.section    { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.section-clair { background: var(--bt-clair); }
.section-gris  { background: var(--bt-gris); }
.section-jaune { background: var(--bt-jaune); }
.section-vert  { background: var(--bt-vert); color: #fff; }
.section-vert h1,
.section-vert h2,
.section-vert h3 { color: #fff; }
/* compat ancien nom */
.section-creme { background: var(--bt-clair); }

/* ─── NAVBAR ─────────────────────────────── */
.nav-barre {
  background: var(--bt-nav);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none !important;
  flex-shrink: 0;
}
.nav-logo img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.35);
}
.nav-logo-text {
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .01em;
}

/* Liens desktop */
.nav-liens {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-liens a {
  color: rgba(255,255,255,.92);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color .15s;
  white-space: nowrap;
}
.nav-liens a:hover { color: #fff; text-decoration: none; }

.nav-btn-reserver {
  background: var(--bt-jaune) !important;
  color: #1a1a1a !important;
  padding: 8px 22px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: .875rem !important;
  transition: background .15s !important;
}
.nav-btn-reserver:hover { background: #e8c930 !important; opacity: 1 !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #fff;
  align-items: center;
}

/* Menu mobile (masqué par défaut, JS ajoute .open) */
.nav-mobile {
  display: none;
}

/* ─── HERO ───────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 8px 36px rgba(0,0,0,.14);
}

/* ─── GRILLES ────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.cards-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ─── CARD ───────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--bt-bordure);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,.12); }
.card > img,
.card .card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.5rem; flex: 1; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p { color: #555; font-size: .92rem; line-height: 1.65; }

/* ─── GALERIE ────────────────────────────── */
.galerie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.galerie-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: 8px; }

/* ─── CONTACT ────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 3rem;
  align-items: start;
}
.contact-form-group { margin-bottom: 1.25rem; }
.contact-form-group label {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  color: #333;
  margin-bottom: .4rem;
}
.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--bt-bordure);
  border-radius: 6px;
  font-family: var(--font);
  font-size: .95rem;
  background: #fff;
  color: #222;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.contact-form-group input:focus,
.contact-form-group textarea:focus {
  outline: none;
  border-color: var(--bt-nav);
  box-shadow: 0 0 0 3px rgba(128,146,119,.18);
}
.contact-form-group textarea { min-height: 140px; resize: vertical; }

.contact-sidebar {
  background: var(--bt-clair);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--bt-bordure);
  position: sticky;
  top: 88px;
}
.contact-sidebar h3 {
  font-size: .95rem;
  color: var(--bt-vert);
  margin-bottom: 1.1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--bt-bordure);
}
.contact-info-item {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin-bottom: .9rem;
  font-size: .875rem;
  color: #555;
  line-height: 1.55;
}
.contact-info-item .ci-icon { flex-shrink: 0; margin-top: .1rem; }
.contact-info-item a { color: var(--bt-vert); }
.contact-info-item a:hover { text-decoration: underline; }

/* ─── AVIS ───────────────────────────────── */
.avis-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.avis-stars { font-size: 1.25rem; color: #f59e0b; letter-spacing: .1em; }

/* ─── TITRE DE SECTION ───────────────────── */
.section-titre { text-align: center; margin-bottom: 3rem; }
.section-titre h2 { margin-bottom: .5rem; }
.section-titre .lead { max-width: 580px; margin: 0 auto; }

/* ─── MAP ────────────────────────────────── */
.maps-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 1.5rem; }
.maps-embed iframe { display: block; }

/* ─── BOUTONS ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .75rem 1.75rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-size: .95rem;
  font-family: var(--font);
  text-decoration: none;
  transition: background .15s, opacity .15s, transform .1s;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { opacity: .88; text-decoration: none; transform: translateY(-1px); }
.btn-vert    { background: var(--bt-vert); color: #fff; }
.btn-vert:hover  { background: #344030; opacity: 1; }
.btn-jaune   { background: var(--bt-jaune); color: #1a1a1a; }
.btn-jaune:hover { background: #e8c930; opacity: 1; }
.btn-outline { background: transparent; color: var(--bt-vert); border: 2px solid var(--bt-vert); }
.btn-outline:hover { background: var(--bt-vert); color: #fff; opacity: 1; }
/* compat */
.btn-brun { background: var(--bt-vert); color: #fff; }
.btn-brun:hover { background: #344030; opacity: 1; }

/* ─── ALERTES ────────────────────────────── */
.alert-success {
  background: var(--bt-clair);
  border: 1px solid #b5c8b0;
  color: #2a4a26;
  padding: .875rem 1.125rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: .9rem;
}
.alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: .875rem 1.125rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: .9rem;
}

/* ─── FOOTER ─────────────────────────────── */
.pied-de-page {
  background: var(--bt-gris);
  color: #444;
  padding: 52px 0 24px;
  border-top: 1px solid var(--bt-bordure);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-brand strong { display: block; color: var(--bt-vert); font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.footer-brand p { font-size: .875rem; color: #666; line-height: 1.6; }
.footer-brand a { color: var(--bt-doux); }
.footer-brand a:hover { color: var(--bt-vert); text-decoration: underline; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; text-align: right; }
.footer-nav a { font-size: .875rem; color: var(--bt-doux); }
.footer-nav a:hover { color: var(--bt-vert); text-decoration: underline; }
.footer-copy {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
  border-top: 1px solid var(--bt-bordure);
  text-align: center;
  font-size: .8rem;
  color: #999;
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .nav-logo-text { display: none; }
}

@media (max-width: 768px) {
  /* Navbar mobile */
  .nav-liens    { display: none; }
  .nav-hamburger { display: flex; }

  .nav-mobile {
    display: block;
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: var(--bt-nav);
    padding: 1rem 1.5rem 1.75rem;
    box-shadow: 0 8px 28px rgba(0,0,0,.2);
    z-index: 199;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .25s ease, opacity .2s ease;
    pointer-events: none;
  }
  .nav-mobile.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-mobile a {
    display: block;
    color: rgba(255,255,255,.92);
    font-size: 1rem;
    font-weight: 500;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    text-decoration: none;
    transition: color .15s;
  }
  .nav-mobile a:last-child { border-bottom: none; }
  .nav-mobile a:hover { color: #fff; text-decoration: none; }
  .nav-mobile .nav-btn-reserver {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 28px;
    border-radius: 6px;
    border-bottom: none !important;
    font-weight: 700;
  }

  /* Layouts */
  .section    { padding: 44px 0; }
  .section-sm { padding: 28px 0; }
  .container, .container-narrow { padding: 0 1.25rem; }
  .hero         { grid-template-columns: 1fr; gap: 2rem; }
  .two-col      { grid-template-columns: 1fr; gap: 2rem; }
  .cards-grid   { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .galerie-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; }
  .footer-inner { flex-direction: column; }
  .footer-nav   { text-align: left; }
  .avis-row     { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 1.6rem; }
  .btn { font-size: .9rem; padding: .65rem 1.4rem; }
  .section-titre { margin-bottom: 2rem; }
}
