/* ==========================================================================
   MA PELOUSE — Design system
   Style : Pro / Classique — vert profond + or, glassmorphism, animations
   ========================================================================== */

:root {
  --green-dark: #14351f;
  --green: #2f7d32;
  --green-mid: #3f9443;
  --green-light: #4caf50;
  --green-pale: #e6f0e4;
  --gold: #c9a227;
  --gold-light: #e0c25c;
  --cream: #f4f7f1;
  --white: #ffffff;
  --ink: #16221a;
  --gray: #6b7a70;
  --border: rgba(20, 53, 31, 0.12);
  --shadow-sm: 0 6px 20px rgba(20, 53, 31, 0.08);
  --shadow-md: 0 18px 45px rgba(20, 53, 31, 0.14);
  --shadow-lg: 0 30px 70px rgba(20, 53, 31, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--green-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.4rem); }

p { color: #46564c; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

.section { padding: 90px 0; }
.section--tight { padding: 60px 0; }

/* ---------- Titres de section ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 4px;
  font-size: 0.72rem; font-weight: 700; color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 14px; font-size: 1.03rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px; border-radius: 60px; font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.5px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.35s var(--ease);
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 14px 30px rgba(47, 125, 50, 0.28); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-3px); box-shadow: 0 20px 40px rgba(20, 53, 31, 0.32); }
.btn-gold { background: var(--gold); color: var(--green-dark); box-shadow: 0 14px 30px rgba(201, 162, 39, 0.32); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-3px); }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.5); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; color: var(--green-dark); }
.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--border); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }

/* ---------- Navigation (transparente) ---------- */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  padding: 22px 0; transition: all 0.4s var(--ease);
  background: transparent;
}
.header.scrolled {
  background: rgba(244, 247, 241, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.4rem; color: #fff; letter-spacing: 0.5px; transition: color 0.4s; }
.header.scrolled .logo { color: var(--green-dark); }
.logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.logo span small { display: block; font-family: 'Inter', sans-serif; font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: rgba(255, 255, 255, 0.92); font-size: 0.92rem; font-weight: 500; position: relative; letter-spacing: 0.3px; transition: color 0.3s; }
.header.scrolled .nav-links a { color: #3d4c42; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--gold); transition: width 0.35s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .header.scrolled .nav-links a:hover { color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 12px 26px; font-size: 0.86rem; }
.header.scrolled .btn-primary { background: var(--green); }

.burger { display: none; flex-direction: column; gap: 5px; width: 30px; height: 22px; justify-content: center; cursor: pointer; background: none; border: none; z-index: 1002; }
.burger span { display: block; height: 2px; width: 100%; background: #fff; transition: all 0.35s var(--ease); }
.header.scrolled .burger span { background: var(--green-dark); }
.burger.open span { background: var(--green-dark); }
.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); }

/* ---------- Menu mobile ---------- */
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: min(86%, 380px); height: 100vh;
  background: var(--cream); z-index: 1001; padding: 110px 34px 40px;
  transition: right 0.45s var(--ease); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu a { padding: 15px 0; font-size: 1.15rem; font-family: 'Playfair Display', serif; font-weight: 600; color: var(--green-dark); border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .btn { margin-top: 26px; width: 100%; }
.menu-overlay { position: fixed; inset: 0; background: rgba(10, 26, 16, 0.5); opacity: 0; visibility: hidden; transition: all 0.4s; z-index: 1000; }
.menu-overlay.open { opacity: 1; visibility: visible; }

/* ---------- Hero plein écran ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; overflow: hidden; padding: 140px 0 90px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.15); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(9, 28, 16, 0.9) 0%, rgba(15, 40, 24, 0.72) 45%, rgba(15, 40, 24, 0.35) 100%);
}
.hero-inner { max-width: 720px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p { color: rgba(255, 255, 255, 0.88); font-size: 1.12rem; margin: 22px 0 34px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 9px 20px; border-radius: 60px; font-size: 0.8rem; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 600;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}
.hero-badge svg { width: 16px; height: 16px; color: var(--gold-light); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 62px; padding-top: 34px; border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-stats strong { display: block; font-family: 'Playfair Display', serif; font-size: 2.1rem; color: #fff; }
.hero-stats span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255, 255, 255, 0.7); }

/* ---------- Cartes verre / services ---------- */
.glass {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-sm);
}

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  transform-style: preserve-3d; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-14px) rotateX(4deg); box-shadow: var(--shadow-lg); }
.service-card .thumb { position: relative; height: 230px; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.service-card:hover .thumb img { transform: scale(1.1); }
.service-card .badge {
  position: absolute; top: 16px; left: 16px; padding: 7px 15px; border-radius: 40px;
  background: rgba(201, 162, 39, 0.92); color: var(--green-dark); font-size: 0.68rem;
  letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
}
.service-card .body { padding: 28px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.service-card .body h3 { margin-bottom: 10px; }
.service-card .body p { font-size: 0.94rem; }
.service-card .body .price { margin-top: 16px; font-weight: 700; color: var(--green); font-size: 0.95rem; }
.service-card .body .price span { color: var(--gray); font-weight: 400; font-size: 0.85rem; }

/* ---------- Bandeau chiffres ---------- */
.stats-band { background: var(--green-dark); color: #fff; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(76, 175, 80, 0.25), transparent 55%), radial-gradient(circle at 85% 80%, rgba(201, 162, 39, 0.18), transparent 50%); }
.stats-band .grid-4 { position: relative; z-index: 1; }
.stat { text-align: center; padding: 30px 14px; }
.stat strong { display: block; font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--gold-light); }
.stat span { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, 0.75); }

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; cursor: pointer; }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 53, 31, 0.55), transparent 55%); opacity: 0; transition: opacity 0.4s; }
.gallery-item:hover::after { opacity: 1; }

/* ---------- Témoignages ---------- */
.testi-card { background: var(--white); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-sm); position: relative; transition: transform 0.45s var(--ease), box-shadow 0.45s; }
.testi-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.testi-card .quote { font-family: 'Playfair Display', serif; font-size: 3.4rem; line-height: 1; color: var(--green-pale); position: absolute; top: 12px; right: 26px; }
.testi-card p { font-style: italic; color: #3d4c42; margin-bottom: 20px; }
.testi-stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; }
.testi-author { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--border); padding-top: 16px; }
.testi-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-author strong { display: block; color: var(--green-dark); font-size: 0.95rem; }
.testi-author span { font-size: 0.8rem; color: var(--gray); }

/* ---------- Split (texte + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-reverse .split-text { order: 2; }
.split-img { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.4; }
.split-text h2 { margin-bottom: 18px; }
.split-text p { margin-bottom: 16px; }
.check-list { margin-top: 22px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: #3d4c42; font-size: 0.96rem; }
.check-list svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* ---------- CTA bandeau ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 70px 40px; text-align: center; color: #fff; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20, 53, 31, 0.94), rgba(47, 125, 50, 0.86)); z-index: 0; }
.cta-band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band .inner { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 620px; margin: 0 auto 30px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.info-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius); }
.info-card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--green-pale); display: grid; place-items: center; flex-shrink: 0; }
.info-card .ico svg { width: 22px; height: 22px; color: var(--green); }
.info-card strong { display: block; color: var(--green-dark); margin-bottom: 3px; font-size: 0.95rem; }
.info-card span, .info-card a { color: var(--gray); font-size: 0.92rem; }
.info-card a:hover { color: var(--green); }

.form-card { padding: 40px; border-radius: var(--radius); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--green-dark); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7); font-family: inherit; font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s; box-sizing: border-box;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(47, 125, 50, 0.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.82rem; color: var(--gray); margin-top: 14px; }
.form-msg { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; display: none; }
.form-msg.ok { display: block; background: var(--green-pale); color: var(--green-dark); border: 1px solid var(--green-light); }
.form-msg.err { display: block; background: #fdecea; color: #a3271c; border: 1px solid #f0b4ae; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 26px; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--green-dark); color: rgba(255, 255, 255, 0.75); padding: 72px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .logo { color: #fff; margin-bottom: 18px; }
.footer h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.footer p, .footer a { color: rgba(255, 255, 255, 0.68); font-size: 0.9rem; }
.footer-links { display: grid; gap: 11px; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Page hero (sous-pages) ---------- */
.page-hero { position: relative; min-height: 52vh; display: flex; align-items: center; color: #fff; padding: 150px 0 70px; overflow: hidden; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(9, 28, 16, 0.9), rgba(15, 40, 24, 0.55)); z-index: -1; }
.page-hero h1 { color: #fff; }
.page-hero .breadcrumb { margin-top: 14px; color: rgba(255, 255, 255, 0.75); font-size: 0.88rem; }
.page-hero .breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Animations reveal ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
@keyframes revealFallback { to { opacity: 1; transform: none; } }
.reveal { animation: revealFallback 0.9s var(--ease) 0.4s forwards; }

/* ---------- Filtres galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 42px; }
.filters .btn { padding: 11px 24px; font-size: 0.85rem; }
.filters .btn.active { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(47, 125, 50, 0.26); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(8, 22, 13, 0.94); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; transition: opacity 0.3s; padding: 20px; }
.lightbox.active { opacity: 1; }
.lightbox img { max-width: 92%; max-height: 88%; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 22px; right: 30px; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split-text { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; margin-top: 44px; }
  .hero { min-height: auto; padding: 130px 0 70px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px; }
  .cta-band { padding: 48px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .stat { padding: 22px 10px; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 1; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
