:root {
  --brown: #A68053;
  --brown-dark: #8A6944;
  --brown-light: #F1E9DD;
  --green: #7CB342;
  --green-light: #DCEFC3;
  --dark: #2B2B2B;
  --cream: #FAF7F2;
  --text: #2B2B2B;
  --text-soft: #5B5347;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(43, 34, 20, 0.08);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; }

a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(166, 128, 83, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 68px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.main-nav a:hover { color: var(--brown-dark); border-color: var(--green); }

.btn-nav {
  background: var(--brown);
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.btn-nav:hover { background: var(--brown-dark); border-color: transparent !important; }

.header-actions { display: flex; align-items: center; gap: 20px; }

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--brown-dark);
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 130px 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(43, 34, 20, 0.82) 0%, rgba(43, 34, 20, 0.55) 55%, rgba(43, 34, 20, 0.25) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--green-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.hero-lead {
  font-size: 1.1rem;
  color: #f1ede6;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: #6BA036; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--brown); color: var(--brown-dark); }
.btn-outline:hover { background: var(--brown); color: #fff; transform: translateY(-2px); }

.hero-note { font-size: 0.9rem; color: #d8d2c6; max-width: 480px; }

/* ===== SECTIONS COMMON ===== */
section { padding: 90px 0; }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--brown-dark);
  text-align: center;
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 50px;
}

/* ===== RAYONS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(43,34,20,0.12); z-index: 5; }

.card-icon {
  font-size: 2.2rem;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-photo {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  transition: transform .35s ease, box-shadow .35s ease;
  transform-origin: center;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: object-fit 0s;
}
.card:hover .card-photo {
  transform: scale(2.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  z-index: 10;
  background: var(--brown-light);
}
.card:hover .card-photo img {
  object-fit: contain;
}

.card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--brown-dark); }
.card p { color: var(--text-soft); font-size: 0.96rem; }

/* ===== HISTOIRE ===== */
.histoire { background: var(--brown-light); }

.histoire-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.histoire-text p { margin-bottom: 18px; color: var(--text-soft); }
.histoire-text .section-title { text-align: left; margin-bottom: 24px; }

.timeline { list-style: none; margin-top: 24px; }
.timeline li {
  position: relative;
  padding-left: 70px;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 600;
  min-height: 30px;
}
.timeline-year {
  position: absolute;
  left: 0;
  top: -2px;
  background: var(--green);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.histoire-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-num { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--brown-dark); }
.stat-label { font-size: 0.85rem; color: var(--text-soft); }

.team {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 26px 32px;
  box-shadow: var(--shadow);
}
.team h3 { color: var(--brown-dark); margin-bottom: 22px; font-size: 1.1rem; text-align: center; }

.team-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
  margin-bottom: 20px;
}
.team-row:last-child { margin-bottom: 0; }
.team-row-center { margin: 2px 0 24px; }

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.35;
}
.team-member strong { color: var(--text); display: block; font-size: 0.92rem; }
.team-member img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.team-lead img {
  width: 92px;
  height: 92px;
  border: 3px solid var(--green);
}
.team-lead strong { font-size: 1rem; }

/* ===== INFOS ===== */
.infos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.infos-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.infos-card h3 { color: var(--brown-dark); margin-bottom: 20px; font-size: 1.25rem; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--brown-light); font-size: 0.98rem; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--brown-dark); }

.hours-note { margin-top: 16px; font-size: 0.85rem; color: var(--text-soft); }

.address { font-size: 1.05rem; margin-bottom: 18px; }
.contact-line {
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 20px;
}
.socials { display: flex; gap: 14px; flex-wrap: wrap; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brown-light);
  color: var(--brown-dark);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background .2s, color .2s;
}
.socials a svg { width: 18px; height: 18px; flex-shrink: 0; }
.socials a:hover { background: var(--brown); color: #fff; }

/* ===== MAP ===== */
.map-section { padding: 0; line-height: 0; }
.map-section iframe { display: block; filter: saturate(0.9); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: #cfc9c0;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { color: #fff; font-weight: 700; margin-bottom: 6px; font-family: var(--font-head); }
.footer-inner a { color: #fff; text-decoration: underline; }
.footer-legal { text-align: right; font-size: 0.85rem; opacity: 0.8; }
.footer-legal p { margin-bottom: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { padding: 90px 0; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .histoire-inner { grid-template-columns: 1fr; }
  .infos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--cream);
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform .25s, opacity .25s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--brown-light) !important; }
  .btn-nav { display: inline-block; margin-top: 10px; }
  .burger { display: flex; }
  .phone-link span { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .team-row { gap: 20px; }
  .team-member img { width: 52px; height: 52px; }
  .team-lead img { width: 76px; height: 76px; }
  .team-member { font-size: 0.78rem; }
  .footer-inner { flex-direction: column; text-align: left; }
  .footer-legal { text-align: left; }
}
