:root {
  --green: #1f9e63;
  --green-dark: #0f5c3a;
  --green-darker: #0a3d27;
  --green-light: #eaf7f0;
  --green-dim: rgba(31, 158, 99, 0.10);
  --border-green: rgba(31, 158, 99, 0.30);
  --dark: #1c231f;
  --text: #26302a;
  --muted: rgba(28, 35, 31, 0.65);
  --muted-45: rgba(28, 35, 31, 0.42);
  --bg: #ffffff;
  --surface-alt: #f5f9f6;
  --white: #ffffff;
  --white-70: rgba(255, 255, 255, 0.78);
  --white-45: rgba(255, 255, 255, 0.5);
  --border: rgba(28, 35, 31, 0.10);
  --font-title: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }

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

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --- NAVIGATION --- */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1150;
  padding: 1.1rem 2rem; display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(28,35,31,0.05);
}
nav.scrolled {
  padding: 0.85rem 2rem; box-shadow: 0 6px 20px rgba(28,35,31,0.09);
  backdrop-filter: blur(10px); background: var(--white-70);
}

.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-title); font-size: 1.05rem; font-weight: 700; }
.nav-logo a { text-decoration: none; color: var(--dark); display: inline-flex; align-items: center; gap: 0.6rem; transition: var(--transition); }
.nav-logo a:hover { opacity: 0.8; }
.nav-logo-icon { width: 38px; height: auto; flex-shrink: 0; transition: var(--transition); }
.nav-logo a:hover .nav-logo-icon { transform: scale(1.08) rotate(-4deg); }
.nav-logo span { color: var(--green); }

.nav-links { display: flex; align-items: center; gap: 0.3rem; list-style: none; }
.nav-links a:not(.nav-cta) {
  position: relative; color: var(--text); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  transition: color 0.25s ease, background 0.25s ease;
  padding: 0.5rem 0.9rem; border-radius: 100px;
}
.nav-links a:not(.nav-cta):hover { color: var(--green-dark); background: var(--green-light); }
.nav-links a.active { color: var(--green-dark); background: var(--green-light); font-weight: 600; }


.nav-cta {
  background: var(--green); color: var(--white) !important; padding: 0.65rem 1.3rem;
  border-radius: 6px; font-weight: 600 !important; text-decoration: none; font-size: 0.85rem !important;
  transition: var(--transition); box-shadow: 0 4px 14px rgba(31,158,99,0.25);
  margin-left: 0.6rem;
}
.nav-cta:hover { background: var(--green-dark) !important; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(31,158,99,0.32); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; border-radius: 50%; cursor: pointer; padding: 0.5rem; z-index: 1200;
  transition: background 0.25s ease;
}
.nav-toggle:hover { background: var(--green-light); }
.nav-toggle span { width: 24px; height: 2px; background: var(--green-dark); display: block; transition: var(--transition); transform-origin: center; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(15, 20, 17, 0.45); backdrop-filter: blur(2px);
  z-index: 1050; opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--white); flex-direction: column; align-items: stretch;
    justify-content: center; gap: 0.4rem; padding: 2.5rem 2rem;
    overflow-y: auto;
    transform: translateX(100%); transition: var(--transition);
    border-left: 1px solid var(--border);
    border-radius: 20px 0 0 20px;
    box-shadow: -12px 0 40px rgba(28,35,31,0.1);
    z-index: 1100;
  }
  .nav-links::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--green), var(--green-dark));
    border-radius: 20px 0 0 0;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a:not(.nav-cta) {
    display: block; font-size: 1.05rem; width: 100%; padding: 0.85rem 1rem; border-radius: 10px;
    opacity: 0; transform: translateX(16px); transition: opacity 0.4s ease, transform 0.4s ease, color 0.25s ease, background 0.25s ease;
  }
  .nav-links.open a:not(.nav-cta) { opacity: 1; transform: translateX(0); }
  .nav-links.open li:nth-child(1) a { transition-delay: 0.05s; }
  .nav-links.open li:nth-child(2) a { transition-delay: 0.1s; }
  .nav-links.open li:nth-child(3) a { transition-delay: 0.15s; }
  .nav-links.open li:nth-child(4) a { transition-delay: 0.2s; }
  .nav-links.open li:nth-child(5) a { transition-delay: 0.25s; }
  .nav-links a.active { border-left: 3px solid var(--green-dark); }
  .nav-links .nav-cta {
    display: block; box-sizing: border-box;
    width: 100%; text-align: center; margin: 1rem 0 0; padding: 0.9rem 1.3rem;
    border-top: 1px solid var(--border); border-radius: 6px; padding-top: 1.6rem;
    opacity: 0; transform: translateX(16px); transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
  }
  .nav-links.open .nav-cta { opacity: 1; transform: translateX(0); }
}

@media (max-width: 480px) {
  nav { padding: 1rem 1.2rem; }
  nav.scrolled { padding: 0.8rem 1.2rem; }
  .section-padding { padding: 3.5rem 1.2rem; }
  .page-header { padding: 8rem 1.2rem 2.5rem; }
  #hero { padding: 8rem 1.2rem 3rem; }
  #cta { padding: 4rem 1.2rem; }
}

/* --- HERO --- */
#hero {
  min-height: 82vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; padding: 9rem 2rem 4rem;
  background: radial-gradient(circle at 50% 0%, var(--green-light) 0%, #ffffff 60%);
}
.hero-content { max-width: 820px; }
.hero-badge {
  display: inline-block; color: var(--green-dark); background: var(--green-dim);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 0.45rem 1rem; border-radius: 20px; margin-bottom: 1.3rem;
}
.hero-title { font-family: var(--font-title); font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 700; line-height: 1.15; margin-bottom: 1.3rem; color: var(--dark); }
.green { color: var(--green); }
.hero-actions { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--green); color: var(--white); padding: 0.95rem 1.9rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.92rem; display: inline-block;
  transition: var(--transition); border: none; cursor: pointer; box-shadow: 0 8px 20px rgba(31,158,99,0.28);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31,158,99,0.35); }

.btn-outline {
  border: 1.5px solid var(--border); color: var(--dark); padding: 0.9rem 1.9rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.92rem; display: inline-block;
  background: var(--white); transition: var(--transition);
}
.btn-outline:hover { border-color: var(--green); color: var(--green-dark); }

/* --- PAGE HEADER --- */
.page-header {
  padding: 9.5rem 1.5rem 3.5rem; text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--green-light) 0%, #ffffff 60%);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-family: var(--font-title); font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 700; color: var(--dark); }
.page-header p { color: var(--muted); margin-top: 1rem; max-width: 620px; margin-left: auto; margin-right: auto; }

/* --- SECTION COMMUNE --- */
.section-padding { padding: 5.5rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--surface-alt); }
.section-label {
  display: block; text-align: center; color: var(--green-dark); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.8rem;
}
.section-title { font-family: var(--font-title); font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; text-align: center; margin-bottom: 3.5rem; color: var(--dark); }
.section-intro { max-width: 720px; margin: -2.3rem auto 3rem; text-align: center; color: var(--muted); }

/* --- STATS --- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 2rem 1.5rem; text-align: center; transition: var(--transition); box-shadow: 0 4px 16px rgba(28,35,31,0.04); }
.stat-card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: 0 10px 26px rgba(28,35,31,0.08); }
.stat-number { font-family: var(--font-title); color: var(--green); font-size: 2.1rem; font-weight: 700; display: block; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.88rem; color: var(--muted); }

/* --- SERVICES / CARDS --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; transition: var(--transition); box-shadow: 0 4px 16px rgba(28,35,31,0.04); }
.service-card:hover { border-color: var(--green); transform: translateY(-5px); box-shadow: 0 14px 30px rgba(28,35,31,0.09); }
.service-icon {
  width: 56px; height: 56px; border-radius: 12px; background: var(--green-dim);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--green-dark); fill: none; stroke-width: 2; }
.service-card h3 { font-family: var(--font-title); font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.6rem; }
.service-card p { font-size: 0.92rem; color: var(--muted); }

/* --- STEPS --- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.8rem; position: relative; }
.step-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; position: relative; transition: var(--transition); box-shadow: 0 4px 16px rgba(28,35,31,0.04); }
.step-card:hover { border-color: var(--green); transform: translateY(-5px); box-shadow: 0 10px 28px rgba(28,35,31,0.08); }
.step-number {
  width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-weight: 700; margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.step-card p { font-size: 0.88rem; color: var(--muted); }
@media (min-width: 860px) {
  .step-card:not(:last-child)::after {
    content: ''; position: absolute; top: 2.2rem; right: -1.6rem; width: 1.9rem; height: 2px;
    background: var(--border-green);
  }
}

/* --- GALERIE --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.gallery-item { border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 4px 16px rgba(28,35,31,0.06); transition: var(--transition); }
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(28,35,31,0.12); }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform 0.6s ease; cursor: zoom-in; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem;
  background: linear-gradient(to top, rgba(10,20,14,0.82), transparent);
  color: var(--white); font-weight: 600; font-size: 0.92rem;
}

.photo-lightbox {
  position: fixed; inset: 0; background: rgba(10,20,14,0.92); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 1300; padding: 2rem;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.photo-lightbox.open { opacity: 1; visibility: visible; }
.photo-lightbox-inner { max-width: 800px; width: 100%; text-align: center; position: relative; }
.photo-lightbox-inner img { max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 10px; }
.photo-lightbox-caption { color: var(--white); margin-top: 1rem; font-size: 0.95rem; }
.photo-lightbox-close {
  position: absolute; top: -3.2rem; right: 0; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  color: var(--white); width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; transition: var(--transition);
}
.photo-lightbox-close:hover { background: var(--green); border-color: var(--green); }
@media (max-width: 640px) {
  .photo-lightbox-close { top: 0.6rem; right: 0.6rem; }
}

/* --- FAQ / DISTINCTIFS list --- */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; max-width: 640px; margin: 0 auto; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.95rem; color: var(--text); }
.check-list li::before {
  content: '✓'; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--green);
  color: var(--white); font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

/* --- DÉTAIL TÂCHES (quotidien / périodique) --- */
.task-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 760px) {
  .task-grid { grid-template-columns: 1fr; }
}
.task-card { background: var(--green-light); border-radius: 12px; padding: 1.8rem; }
.task-card h3 { font-family: var(--font-title); font-size: 1.05rem; font-weight: 700; color: var(--green-dark); margin-bottom: 1rem; }
.task-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.task-card li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--text); }
.task-card li::before { content: '•'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.task-callout { background: var(--dark); color: var(--white); border-radius: 12px; padding: 1.4rem 1.8rem; font-size: 0.92rem; }
.task-callout strong { color: var(--white); }

/* --- CONTACT --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.contact-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.2rem; }
.contact-form label { font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-bottom: 0.4rem; display: block; }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--white); border: 1px solid var(--border);
  color: var(--text); padding: 0.9rem 1rem; font-family: var(--font-body); font-size: 0.95rem; border-radius: 8px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form button { align-self: center; margin-top: 0.5rem; }
.hp-field { position: absolute; left: -9999px; }

.contact-info { display: flex; flex-direction: column; gap: 1.3rem; max-width: 420px; margin: 0 auto; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--green-dim); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.contact-info-icon svg { width: 20px; height: 20px; stroke: var(--green-dark); fill: none; stroke-width: 2; }
.contact-info-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 0.2rem; }
.contact-info-item p { font-size: 0.88rem; color: var(--muted); }

/* --- CTA FINAL --- */
#cta { background: var(--green-darker); padding: 6rem 2rem; text-align: center; }
#cta .section-title { color: var(--white); }
#cta p { color: var(--white-70); }

footer { text-align: center; padding: 2.5rem 1.5rem; color: var(--muted-45); font-size: 0.78rem; }
footer a { color: var(--muted-45); }
.footer-logo { width: 130px; margin: 0 auto 1.2rem; display: block; }

.footer-social { display: flex; justify-content: center; gap: 0.7rem; margin-bottom: 1.3rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.footer-social a:hover { background: var(--green); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; fill: var(--green-dark); transition: var(--transition); }
.footer-social a:hover svg { fill: var(--white); }

.reveal { opacity: 0; transform: translateY(28px); transition: 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.stats-grid .reveal:nth-child(1), .card-grid .reveal:nth-child(1), .steps-grid .reveal:nth-child(1), .gallery-grid .reveal:nth-child(1) { transition-delay: 0s; }
.stats-grid .reveal:nth-child(2), .card-grid .reveal:nth-child(2), .steps-grid .reveal:nth-child(2), .gallery-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .reveal:nth-child(3), .card-grid .reveal:nth-child(3), .steps-grid .reveal:nth-child(3), .gallery-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .reveal:nth-child(4), .card-grid .reveal:nth-child(4), .gallery-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
