/* ===== Charte client — à remplacer par les couleurs de la marque ===== */
:root {
  --color-primary: #1f6f43;
  --color-primary-dark: #164f30;
  --color-accent: #ffd23f;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7f5;
  --color-text: #16211a;
  --color-text-muted: #5b6a60;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --container-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); text-align: center; margin-bottom: 0.3em; }
.section-sub { text-align: center; color: var(--color-text-muted); margin-top: 0; margin-bottom: 2.5rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo { font-weight: 800; font-size: 1.2rem; color: var(--color-primary-dark); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.2); }
.btn-ghost { background: transparent; color: var(--color-primary-dark); border: 2px solid var(--color-primary); }
.btn-small { padding: 8px 18px; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* ===== Hero ===== */
.hero {
  padding: 90px 0 70px;
  background: radial-gradient(circle at 20% 20%, rgba(31,111,67,0.08), transparent 55%),
              radial-gradient(circle at 80% 0%, rgba(255,210,63,0.12), transparent 45%),
              var(--color-bg-alt);
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.eyebrow { color: var(--color-primary); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.hero-sub { font-size: 1.15rem; color: var(--color-text-muted); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 1.8rem 0; }
.trust-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(31,111,67,0.18);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}
.trust-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ===== Sections & grid ===== */
.section { padding: 70px 0; }
.section:nth-of-type(even) { background: var(--color-bg-alt); }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 780px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,0.12); }
.card-icon { font-size: 2rem; margin-bottom: 10px; }
.problem .card-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}

.gallery-card { padding: 0; overflow: hidden; text-align: left; }
.gallery-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.gallery-card p { margin: 0; padding: 14px 18px; font-size: 0.92rem; color: var(--color-text-muted); }

/* ===== Before / After slider ===== */
.ba-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
}
.ba-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba-before-wrap .ba-image { width: var(--ba-width, 800px); max-width: none; }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  font-size: 1.1rem;
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

/* ===== Testimonials ===== */
.stars { color: var(--color-accent); letter-spacing: 2px; margin-bottom: 8px; }
.testimonial-author { font-weight: 700; color: var(--color-text-muted); margin-top: 10px; }

/* ===== Stats ===== */
.stats { text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-size: 2.6rem; font-weight: 800; color: var(--color-primary); }
.stat-label { color: var(--color-text-muted); }

/* ===== Lead form ===== */
.lead-form-box {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: 0.9rem; }
.form-row input, .form-row textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #dfe3e0;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--color-primary); }
.form-status { text-align: center; margin-top: 12px; font-weight: 600; min-height: 1.4em; }
.form-status.success { color: var(--color-primary-dark); }
.form-status.error { color: #b3261e; }

/* ===== Footer ===== */
.site-footer { padding: 40px 0; text-align: center; color: var(--color-text-muted); font-size: 0.85rem; }
.footer-legal { opacity: 0.7; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
