/* ============================================================
   Biogas Design Pro — Feuille de styles
   Palette : vert biogaz / terre / énergie durable
   ============================================================ */

:root {
  --green-900: #0f3d2e;
  --green-800: #14543e;
  --green-700: #1b6b4f;
  --green-600: #1f8a5f;
  --green-500: #27a567;
  --green-400: #4cc08a;
  --lime: #a7e34e;
  --amber: #f2b134;
  --earth: #6b4f2a;
  --ink: #122019;
  --muted: #5b6b62;
  --bg: #f5f9f5;
  --bg-soft: #e7f5ec;
  --white: #ffffff;
  --card-shadow: 0 18px 45px -22px rgba(15, 61, 46, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

.section { padding: 92px 0; }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--bg-soft);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.kicker.light { background: rgba(255,255,255,.15); color: var(--lime); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 40px; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
  border: 2px solid transparent;
}
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 14px 30px -12px rgba(31,138,95,.7); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-3px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 14px 30px -12px rgba(37,211,102,.7); }
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-3px); }
.btn.full { width: 100%; }

/* On contact card, ghost buttons need dark border */
.contact-actions-card .btn-ghost { border-color: var(--green-600); color: var(--green-700); }
.contact-actions-card .btn-ghost:hover { background: var(--bg-soft); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,61,46,.08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; color: var(--green-800); }
.brand-name strong { color: var(--green-600); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem; color: var(--ink);
  position: relative; transition: color .2s;
}
.main-nav a:not(.nav-cta):hover { color: var(--green-600); }
.main-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--green-500); transition: width .25s;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--green-600); color: #fff !important; padding: 9px 20px; border-radius: 30px; }
.nav-cta:hover { background: var(--green-700); }

.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-burger span { width: 26px; height: 3px; background: var(--green-800); border-radius: 3px; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--green-900), var(--green-700) 60%, var(--green-600)); color: #fff; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(167,227,78,.18), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(76,192,138,.22), transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding: 96px 22px 130px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--lime);
  background: rgba(255,255,255,.08); padding: 7px 16px; border-radius: 30px; margin-bottom: 22px;
  border: 1px solid rgba(167,227,78,.25);
}
.hero-text h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); color: #fff; font-weight: 800; }
.hero-text h1 .hl { color: var(--lime); }
.hero-text .lead { margin: 22px 0 30px; font-size: 1.1rem; color: rgba(255,255,255,.86); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { list-style: none; display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--lime); }
.hero-stats span { font-size: .85rem; color: rgba(255,255,255,.75); }

.hero-illus { display: flex; justify-content: center; }
.hero-illus img { width: 100%; max-width: 440px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); animation: float 6s ease-in-out infinite; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { width: 100%; height: 90px; }
.hero-wave path { fill: var(--bg); }

/* ============================================================
   À PROPOS
   ============================================================ */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.about-media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--card-shadow);
  background: var(--white); padding: 16px;
}
.about-content h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 8px 0 18px; }
.about-content p { color: var(--muted); margin-bottom: 16px; }
.about-content em { color: var(--green-700); font-style: normal; font-weight: 600; }
.check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 500; color: var(--ink); }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; background: var(--green-500); color: #fff;
  border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 36px 30px; box-shadow: var(--card-shadow);
  border: 1px solid rgba(15,61,46,.05);
  transition: transform .28s ease, box-shadow .28s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -28px rgba(15,61,46,.5); }
.card.featured { border: 2px solid var(--green-500); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: #3a2c05; font-family: var(--font-head); font-weight: 700;
  font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 30px; white-space: nowrap;
}
.card-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff; display: grid; place-items: center; margin-bottom: 22px;
}
.card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.card > p { color: var(--muted); font-size: .97rem; }
.card-list { list-style: none; margin: 18px 0 24px; display: grid; gap: 9px; }
.card-list li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--ink); }
.card-list li::before { content: '▹'; position: absolute; left: 4px; color: var(--green-600); font-weight: 700; }
.card-link { margin-top: auto; font-family: var(--font-head); font-weight: 600; color: var(--green-700); transition: gap .2s, color .2s; }
.card-link:hover { color: var(--green-500); }

/* ============================================================
   PROCESSUS
   ============================================================ */
.process { background: linear-gradient(135deg, var(--green-800), var(--green-900)); color: #fff; }
.process .section-head h2 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 30px 24px; transition: background .25s, transform .25s;
}
.step:hover { background: rgba(255,255,255,.12); transform: translateY(-6px); }
.step-num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--lime); display: block; margin-bottom: 12px; opacity: .85; }
.step h3 { color: #fff; font-size: 1.18rem; margin-bottom: 10px; }
.step p { color: rgba(255,255,255,.78); font-size: .93rem; }

/* ============================================================
   GALERIE
   ============================================================ */
.gallery { background: var(--bg); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 20px; }
.g-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--card-shadow); background: var(--white);
}
.g-item img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-item figcaption {
  position: absolute; left: 0; bottom: 0; width: 100%;
  background: linear-gradient(transparent, rgba(15,61,46,.92));
  color: #fff; font-family: var(--font-head); font-weight: 500; font-size: .9rem;
  padding: 26px 18px 14px;
}

/* ============================================================
   POURQUOI NOUS
   ============================================================ */
.why { background: var(--bg-soft); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-feature { background: var(--white); border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--card-shadow); text-align: center; transition: transform .25s; }
.why-feature:hover { transform: translateY(-6px); }
.why-ic { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(135deg, var(--green-400), var(--green-600)); color: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }
.why-feature h3 { font-size: 1.15rem; margin-bottom: 10px; }
.why-feature p { color: var(--muted); font-size: .93rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: linear-gradient(135deg, var(--green-700), var(--green-900)); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.contact-intro h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 6px 0 16px; }
.contact-intro > p { color: rgba(255,255,255,.85); margin-bottom: 30px; max-width: 520px; }
.contact-list { list-style: none; display: grid; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.ci-ic { width: 50px; height: 50px; flex: none; background: rgba(255,255,255,.12); border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; }
.ci-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lime); }
.contact-list a { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: #fff; transition: color .2s; }
.contact-list a:hover { color: var(--lime); }

.contact-actions-card { background: var(--white); border-radius: var(--radius); padding: 36px 32px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.5); color: var(--ink); }
.contact-actions-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-actions-card > p { color: var(--muted); margin-bottom: 22px; font-size: .95rem; }
.contact-actions-card .btn { margin-bottom: 12px; }
.contact-note { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 16px !important; padding-top: 16px; border-top: 1px solid rgba(15,61,46,.08); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.8); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name strong { color: var(--lime); }
.footer-brand p { margin-top: 16px; font-size: .92rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 18px; }
.footer-col a { display: block; margin-bottom: 11px; font-size: .92rem; color: rgba(255,255,255,.72); transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--lime); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.8);
  animation: pulse 2.5s infinite; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 60px; }
  .hero-text .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-illus { order: -1; margin-bottom: 20px; }
  .hero-illus img { max-width: 320px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-burger { display: flex; }
  .main-nav {
    position: absolute; top: 72px; left: 0; width: 100%;
    flex-direction: column; gap: 0; background: #fff;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.3);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .nav-toggle:checked ~ .main-nav { max-height: 420px; }
  .main-nav a { width: 100%; padding: 15px 22px; border-top: 1px solid rgba(0,0,0,.05); }
  .nav-cta { border-radius: 0; text-align: center; }
  .steps, .why-grid, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .g-wide, .g-tall { grid-column: auto; grid-row: auto; }
  .hero-stats { gap: 24px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}
