/* =========================================================================
   JR Anti-Nuisibles 34 — Feuille de style
   Palette : vert forêt + accent ambre (vert / blanc / noir / jaune)
   ========================================================================= */

:root {
  --ink: #0e2a1f;
  --ink-2: #143a2a;
  --green: #1f6f4f;
  --green-2: #2a8f64;
  --green-3: #3fae7f;
  --mint: #e8f4ed;
  --mint-2: #d6ebe0;
  --amber: #f6a72e;
  --amber-2: #ffc14d;
  --cream: #f7f9f4;
  --white: #ffffff;
  --text: #20332a;
  --muted: #5d7167;
  --line: #e3ece6;
  --shadow-sm: 0 1px 2px rgba(14,42,31,.06), 0 2px 8px rgba(14,42,31,.05);
  --shadow-md: 0 6px 24px rgba(14,42,31,.10);
  --shadow-lg: 0 20px 50px rgba(14,42,31,.18);
  --radius: 16px;
  --radius-lg: 24px;
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); margin: 0; font-weight: 800; letter-spacing: -0.02em; }

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

.ic { width: 20px; height: 20px; flex: none; }

/* ============================ BOUTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--amber { background: var(--amber); color: var(--ink); box-shadow: 0 8px 20px rgba(246,167,46,.35); }
.btn--amber:hover { background: var(--amber-2); box-shadow: 0 12px 26px rgba(246,167,46,.45); }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(31,111,79,.28); }
.btn--green:hover { background: var(--green-2); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.6); }
.btn--google { background: #fff; color: #1a1a1a; border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--google:hover { border-color: #c6d4cb; box-shadow: var(--shadow-md); }
.btn .ic { width: 19px; height: 19px; }

/* ============================ BARRE SUPÉRIEURE ============================ */
.topbar { background: var(--ink); color: #cfe3d7; font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; gap: 28px; min-height: 42px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar__item .ic { width: 15px; height: 15px; color: var(--green-3); }
.topbar__phone { margin-left: auto; color: #fff; font-weight: 600; font-family: var(--font-head); }
.topbar__phone .ic { color: var(--amber); }

/* ============================ EN-TÊTE ============================ */
.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
/* Le flou est sur un pseudo-élément : backdrop-filter sur .header en faisait
   le parent du .nav "fixed" et provoquait le débordement horizontal / dézoom mobile */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
}
.header.is-scrolled { box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { display: grid; place-items: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.brand__text em { font-style: normal; font-size: 12px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--text); transition: color .15s ease; }
.nav a:hover { color: var(--green); }
.nav__cta { margin-left: 6px; }

.burger { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 8px; border-radius: 10px; }
.burger .ic { width: 26px; height: 26px; }

/* ============================ HÉRO ============================ */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(63,174,127,.35), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(246,167,46,.18), transparent 55%),
    linear-gradient(160deg, #0b241a 0%, #123a2a 60%, #0e2a1f 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; font-family: var(--font-head); }
.pill--glass { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #eafff2; }
.pill--glass .ic { color: var(--amber); }

.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); margin: 20px 0 18px; font-weight: 800; }
.hero h1 span { color: var(--amber); }
.hero__lead { font-size: 17.5px; color: #d5e6dc; max-width: 560px; margin: 0 0 28px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero__checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.hero__checks li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: #eaf5ee; }
.hero__checks .ic { width: 17px; height: 17px; color: var(--green-3); }

.hero__visual { position: relative; }
.hero__card {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06);
  aspect-ratio: 3 / 4; max-width: 400px; margin-left: auto;
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.85); color: var(--ink); padding: 12px 16px; border-radius: 14px;
  box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.2;
}
.hero__badge .ic { width: 22px; height: 22px; color: var(--green); }
.hero__badge strong { display: block; font-family: var(--font-head); font-size: 16px; }
.hero__badge--1 { top: 28px; left: -8px; }
.hero__badge--2 { bottom: 40px; right: -6px; }
.hero__badge--2 .ic { color: var(--amber); }

/* ============================ STATS ============================ */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 26px 12px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--green); letter-spacing: -0.02em; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ============================ SECTIONS ============================ */
.section { padding: 88px 0; }
.section--alt { background: var(--cream); }
.section--dark { background: var(--ink); color: #d5e6dc; }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 14px 0 14px; }
.section__head h2 em { font-style: normal; color: var(--green); }
.section__head p { color: var(--muted); font-size: 17px; margin: 0; }
.section__head--light h2 { color: #fff; }
.section__head--light h2 em { color: var(--amber); }
.section__head--light p { color: #bcd6c8; }

.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green);
}
.kicker--light { color: var(--green-3); }

/* ============================ CARTES SERVICES ============================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--mint-2); }
.card__icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px;
}
.card__icon .ic { width: 28px; height: 28px; }
.card__icon--green { background: var(--mint); color: var(--green); }
.card__icon--amber { background: #fff3df; color: #d98814; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ============================ NUISIBLES ============================ */
.pests { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pest {
  display: flex; align-items: center; gap: 10px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  font-weight: 600; font-size: 14.5px; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .16s ease, border-color .16s ease;
}
.pest:hover { transform: translateY(-3px); border-color: var(--green-3); }
.pest__emoji { font-size: 20px; line-height: 1; }

/* ============================ POURQUOI NOUS ============================ */
.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.why__text h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 14px 0 16px; }
.why__text h2 em { font-style: normal; color: var(--green); }
.why__text p { color: var(--muted); font-size: 16.5px; margin-bottom: 26px; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why__item { display: flex; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.why__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--mint); color: var(--green); }
.why__icon .ic { width: 24px; height: 24px; }
.why__item h3 { font-size: 16.5px; margin-bottom: 6px; }
.why__item p { margin: 0; color: var(--muted); font-size: 14px; }

/* ============================ MÉTHODE (ÉTAPES) ============================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 30px 24px 24px;
}
.step__num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--amber); color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 20px;
  margin-bottom: 16px;
}
.step h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; color: #bcd6c8; font-size: 14.5px; }

/* ============================ ZONE D'INTERVENTION ============================ */
.zones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.zone { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.zone:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.zone__num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--green); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 20px; margin-bottom: 14px;
}
.zone h3 { font-size: 17px; margin-bottom: 6px; }
.zone p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ============================ GALERIE ============================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(14,42,31,.82)); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
}

/* ============================ AVIS ============================ */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.t-card__stars { color: #f6a72e; font-size: 18px; letter-spacing: 2px; margin-bottom: 12px; }
.t-card__text { font-size: 15.5px; color: var(--text); margin: 0 0 18px; }
.t-card footer { display: flex; flex-direction: column; }
.t-card footer strong { color: var(--ink); font-family: var(--font-head); }
.t-card footer span { color: var(--muted); font-size: 13.5px; }
.avis__note { text-align: center; color: var(--muted); font-size: 13.5px; margin: 26px 0 0; }
.avis__note a { color: var(--green); font-weight: 600; }

/* ============================ FAQ ============================ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ic { width: 20px; height: 20px; color: var(--green); transition: transform .2s ease; }
.faq__item[open] summary .ic { transform: rotate(180deg); }
.faq__item p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ============================ CONTACT ============================ */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact__info h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 14px 0 16px; }
.contact__info h2 em { font-style: normal; color: var(--green); }
.contact__info > p { color: var(--muted); font-size: 16.5px; margin-bottom: 28px; }
.contact__list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--mint); color: var(--green); }
.contact__icon .ic { width: 22px; height: 22px; }
.contact__list div { display: flex; flex-direction: column; }
.contact__list span { color: var(--muted); font-size: 13.5px; }
.contact__list a { color: var(--ink); font-weight: 600; font-family: var(--font-head); font-size: 16px; }
.contact__list a:hover { color: var(--green); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; color: var(--text); padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fbfdfb; transition: border-color .15s ease, box-shadow .15s ease; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,111,79,.14); background: #fff; }
.form textarea { resize: vertical; }
.form__legal { font-size: 12.5px; color: var(--muted); margin: -4px 0 18px; }
.form__status { margin: 14px 0 0; font-size: 14.5px; font-weight: 600; }
.form__status.is-ok { color: var(--green); }
.form__status.is-err { color: #c0392b; }

/* ============================ PIED DE PAGE ============================ */
.footer { background: var(--ink); color: #bcd6c8; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer__brand p { font-size: 14.5px; margin: 18px 0 0; max-width: 300px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col a, .footer__col span { font-size: 14.5px; color: #bcd6c8; transition: color .15s ease; }
.footer__col a:hover { color: #fff; }
.footer__contact li { display: flex; align-items: center; gap: 10px; }
.footer__contact .ic { width: 16px; height: 16px; color: var(--green-3); }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text em { color: #9fc2b0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; font-size: 13.5px; flex-wrap: wrap; }
.footer__bottom p { margin: 0; }
.footer__legal a { color: #fff; font-weight: 600; }

/* ============================ BOUTONS FLOTTANTS ============================ */
.float { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 12px; z-index: 90; }
.float__btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; padding: 14px 18px; color: #fff; font-weight: 700; font-family: var(--font-head); font-size: 15px; box-shadow: var(--shadow-lg); transition: transform .18s ease; }
.float__btn:hover { transform: translateY(-3px); }
.float__btn .ic { width: 22px; height: 22px; }
.float__btn--call { background: var(--green); padding: 16px 22px; }
.float__btn--wa { background: #25d366; border-radius: 50%; padding: 15px; }
.float__btn--wa .ic { width: 26px; height: 26px; }

/* ============================ ANIMATIONS ============================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pests { grid-template-columns: repeat(3, 1fr); }
  .zones { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .hero__visual { order: -1; }
  .hero__card { max-width: 100%; aspect-ratio: 4 / 5; }
  .hero__badge--1 { left: 8px; top: 12px; }
  .hero__badge--2 { right: 8px; bottom: 12px; }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .why { grid-template-columns: 1fr; gap: 32px; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .testimonials { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .nav {
    position: fixed; inset: 0; top: 0; left: 0; flex-direction: column; align-items: flex-start;
    gap: 4px; background: var(--ink); padding: 96px 28px 32px; transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s ease, visibility 0s linear .28s; z-index: 90;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; transition: transform .28s ease, visibility 0s; }
  .nav a { color: #fff; font-size: 18px; padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a:hover { color: var(--amber); }
  .nav__cta { margin: 18px 0 0; justify-content: center; }
  .burger { display: grid; place-items: center; margin-left: auto; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .topbar__hide-sm { display: none; }
  .cards { grid-template-columns: 1fr; }
  .pests { grid-template-columns: repeat(2, 1fr); }
  .zones { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__checks { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .float__btn--call span { display: none; }
  .float__btn--call { border-radius: 50%; padding: 16px; }
}

/* ==================== ROBUSTESSE RESPONSIVE ==================== */
.pest, .stat, .zone, .card, .step, .t-card, .why__item, .gallery__item, .faq__item { min-width: 0; }

@media (max-width: 640px) {
  .topbar__inner { gap: 16px; }
  .stat strong { font-size: 22px; }
}

@media (max-width: 400px) {
  .topbar__inner > .topbar__item:first-child { display: none; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 28px; }
  .hero__lead { font-size: 15.5px; }
  .hero__checks li { font-size: 13.5px; }
}
