:root {
  --vert-emeraude: #0F6A4E;
  --vert-emeraude-dark: #0C5A42;
  --vert-sapin: #0B3D2E;
  --vert-menthe: #A8E6C9;
  --gris-anthracite: #2B2B2B;
  --gris-clair: #6B7570;
  --blanc-casse: #F7F9F8;
  --blanc: #FFFFFF;
  --border: #E1E8E4;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(11, 61, 46, 0.08);
  --font: 'Quicksand', sans-serif;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes blobDrift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(20px,-24px) scale(1.06); }
  66%  { transform: translate(-16px,14px) scale(0.96); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -300px 0; }
  100% { background-position: 300px 0; }
}
@keyframes pop {
  0%   { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { animation: fadeInUp .6s ease both; }
.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: .05s; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: .15s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: .25s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: .35s; }

body {
  font-family: var(--font);
  color: var(--gris-anthracite);
  background: var(--blanc);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--vert-sapin);
  color: var(--blanc);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

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

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

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--vert-sapin);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 12px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

p { color: var(--gris-clair); }

section { padding: 64px 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--vert-emeraude); color: var(--blanc); }
.btn-primary:hover { background: var(--vert-emeraude-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,106,78,0.35); }
.btn-ghost { background: transparent; color: var(--vert-sapin); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--vert-emeraude); }
.btn-large { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow .25s ease, height .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,61,46,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; color: var(--vert-sapin); }
.logo svg { transition: transform .3s ease; }
a.logo:hover svg { transform: rotate(-8deg) scale(1.06); }
.main-nav ul { display: flex; gap: 28px; list-style: none; }
.main-nav a { font-weight: 600; color: var(--gris-anthracite); padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--vert-emeraude); border-bottom-color: var(--vert-emeraude); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn-ghost { display: none; }
.burger { background: none; border: none; cursor: pointer; padding: 8px; display: flex; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--blanc);
  border-top: 1px solid var(--border);
  padding: 12px 20px 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 12px; border-bottom: none; }

@media (min-width: 900px) {
  .header-actions .btn-ghost { display: inline-flex; }
  .burger { display: none; }
}
@media (max-width: 899px) {
  .main-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--vert-sapin) 0%, var(--vert-emeraude) 100%);
  color: var(--blanc);
  padding: 72px 0 90px;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
  animation: blobDrift 14s ease-in-out infinite;
  pointer-events: none;
}
.hero-blob.b1 { width: 320px; height: 320px; background: radial-gradient(circle, var(--vert-menthe), transparent 70%); top: -100px; right: -60px; animation-duration: 16s; }
.hero-blob.b2 { width: 220px; height: 220px; background: radial-gradient(circle, var(--vert-menthe), transparent 70%); bottom: -80px; left: 8%; animation-duration: 12s; animation-delay: -4s; }
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero > .hero-inner > div:first-child { animation: fadeInUp .8s ease both; }
.hero h1 { color: var(--blanc); }
.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  color: var(--vert-menthe);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.hero p.lead { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin: 18px 0 28px; max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-ctas .btn-ghost { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,0.4); }
.hero-ctas .btn-ghost:hover { border-color: var(--blanc); }
.hero-trust { display: flex; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust div { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.8); }

.hero-visual {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 28px;
  animation: fadeIn 1s ease .2s both, floatY 6s ease-in-out 1s infinite;
}
.hero-visual .card-mock {
  background: var(--blanc);
  border-radius: 12px;
  padding: 20px;
  color: var(--gris-anthracite);
  box-shadow: var(--shadow);
}
.hero-visual .card-mock .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; opacity: 0; animation: fadeInUp .5s ease forwards; }
.hero-visual .card-mock .row:nth-child(2) { animation-delay: .5s; }
.hero-visual .card-mock .row:nth-child(3) { animation-delay: .65s; }
.hero-visual .card-mock .row:nth-child(4) { animation-delay: .8s; }
.hero-visual .card-mock .row:last-child { border-bottom: none; }
.hero-visual .balance { font-size: 1.8rem; font-weight: 700; color: var(--vert-sapin); margin: 10px 0; }

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Sections génériques ---------- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head .eyebrow { color: var(--vert-emeraude); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; }

.grid-3 { display: grid; gap: 24px; grid-template-columns: 1fr; }
.grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--blanc-casse);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon-wrap {
  width: 48px; height: 48px;
  background: var(--vert-menthe);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform .3s ease, background .3s ease;
}
.card:hover .icon-wrap { transform: scale(1.1) rotate(-4deg); }

.bg-sapin { background: var(--vert-sapin); color: var(--blanc); }
.bg-sapin h2, .bg-sapin h3 { color: var(--blanc); }
.bg-sapin p { color: rgba(255,255,255,0.8); }

.cta-band {
  background: var(--vert-emeraude);
  color: var(--blanc);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  margin: 0 20px;
}
.cta-band h2 { color: var(--blanc); }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.cta-band .btn-ghost { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,0.4); }

/* ---------- FAQ / Accordéon ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 18px 4px;
  font-weight: 600;
  cursor: pointer;
  color: var(--vert-sapin);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 4px 18px; }

/* ---------- Formulaires ---------- */
.form-card {
  background: var(--blanc-casse);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 560px;
  margin: 0 auto;
}
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--vert-sapin); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  margin-bottom: 18px;
  background: var(--blanc);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--vert-emeraude); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}
.alert-success { background: #E4F7EC; color: var(--vert-emeraude-dark); border: 1px solid var(--vert-menthe); }
.alert-error { background: #FBEAEA; color: #9B2C2C; border: 1px solid #F3C6C6; }

/* ---------- Table produits ---------- */
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid var(--border); }
th { color: var(--vert-sapin); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--gris-clair); padding: 18px 0; }
.breadcrumb a { color: var(--vert-emeraude); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--vert-sapin); color: rgba(255,255,255,0.85); padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .logo { color: var(--blanc); margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.site-footer h3 { color: var(--blanc); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.site-footer a:hover { color: var(--vert-menthe); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 20px; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ---------- Étapes numérotées ---------- */
.steps { display: grid; gap: 28px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-left: 0; text-align: left; }
.step-number {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--vert-sapin);
  color: var(--blanc);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  margin-bottom: 14px;
  transition: transform .3s ease, background .3s ease;
}
.step:hover .step-number { transform: scale(1.1); background: var(--vert-emeraude); }

/* ---------- Cartes tarifaires ---------- */
.pricing-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.price-card {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--vert-menthe); }
.price-card.featured { border: 2px solid var(--vert-emeraude); position: relative; }
.price-card .price-tag { position: absolute; top: -14px; right: 24px; background: var(--vert-emeraude); color: var(--blanc); font-size: 0.75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.price-card .price-amount { font-size: 2.2rem; font-weight: 700; color: var(--vert-sapin); margin: 14px 0 4px; }
.price-card .price-amount span { font-size: 0.95rem; font-weight: 600; color: var(--gris-clair); }
.price-card ul { list-style: none; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 12px; }
.price-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--gris-anthracite); }
.price-card li svg { flex-shrink: 0; margin-top: 2px; }

/* ---------- Stats animées ---------- */
.stats-row { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 720px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat-number { font-size: 2.2rem; font-weight: 700; color: var(--vert-menthe); }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ---------- Avis clients ---------- */
.review-card { background: var(--blanc-casse); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.review-stars { color: #E8A93A; letter-spacing: 2px; margin-bottom: 10px; }
.review-author { margin-top: 14px; font-weight: 700; color: var(--vert-sapin); font-size: 0.9rem; }
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--vert-menthe); color: var(--vert-sapin);
  padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
}
