/* ============================================================
   ANL 69 — Anti Nuisibles Lyon
   Feuille de style commune
   ============================================================ */

:root {
  /* Neutres (ramp chaude, jamais de noir/blanc purs) */
  --ink: #1c1917;
  --ink-soft: #57534e;
  --ink-faint: #79716b;
  --bg: #faf9f7;
  --surface: #ffffff;
  --line: #e8e3dc;
  --line-strong: #d6cfc5;

  /* Marque */
  --green: #1b4d3e;
  --green-deep: #123930;
  --green-tint: #edf3f0;
  --amber: #c2570b;
  --amber-deep: #9c4508;
  --amber-tint: #fdf1e6;

  /* Élévation : bordures pour la structure, ombre douce pour ce qui flotte */
  --shadow-float: 0 1px 2px rgba(28, 25, 23, 0.06), 0 8px 24px rgba(28, 25, 23, 0.08);

  /* Espacement (base 8px) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s10: 80px;
  --s12: 96px;

  --radius: 10px;
  --radius-lg: 16px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typographie ---------- */

h1, h2, h3, h4 {
  font-family: "Archivo", "Inter", sans-serif;
  color: var(--ink);
  margin: 0;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.1875rem; line-height: 1.35; font-weight: 600; }

p { margin: 0 0 var(--s2); }
p:last-child { margin-bottom: 0; }

.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 62ch; }

.kicker {
  display: inline-block;
  font-family: "Archivo", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--s2);
}

a { color: var(--green); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Structure ---------- */

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

.section { padding: var(--s10) 0; }
.section--tight { padding: var(--s8) 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 68ch; margin-bottom: var(--s6); }
.section-head p { color: var(--ink-soft); margin-top: var(--s2); }

/* ---------- Barre supérieure ---------- */

.topbar {
  background: var(--green-deep);
  color: #e9efec;
  font-size: 0.875rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar a { color: #ffffff; font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__hours { color: #b7c9c1; }
@media (max-width: 640px) { .topbar__hours { display: none; } .topbar .container { justify-content: center; } }

/* ---------- En-tête ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { width: 42px; height: 42px; border-radius: 9px; flex-shrink: 0; }
.footer__logo { width: 220px; height: auto; border-radius: 10px; margin-bottom: 16px; }
.photo { border-radius: var(--radius-lg); border: 1px solid var(--line); }

/* Photo mise en scène : cadre décalé plat + légende */
.figure {
  position: relative;
  margin: var(--s5) 20px 20px 0;
  isolation: isolate;
}
.figure::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  background: var(--green-tint);
  border: 1px solid #d8e5df;
  border-radius: var(--radius-lg);
  z-index: -1;
}
.figure .photo { display: block; width: 100%; }
.figure figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-float);
}
.figure figcaption img { width: 26px; height: 26px; border-radius: 6px; }
.figure--flush { margin-top: 0; margin-bottom: var(--s5); }

/* Garanties (reprises des supports de l'entreprise) */
.badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
  list-style: none;
  padding: 0;
  margin: var(--s6) 0 0;
}
@media (max-width: 860px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.badges li { display: flex; align-items: flex-start; gap: 12px; }
.badges .card__icon { width: 40px; height: 40px; flex-shrink: 0; }
.badges .card__icon svg { width: 20px; height: 20px; }
.badges strong { display: block; font-family: "Archivo", sans-serif; font-size: 0.9375rem; }
.badges span { font-size: 0.8125rem; color: var(--ink-soft); }

/* Silhouette décorative de Lyon */
.skyline {
  display: block;
  width: 100%;
  height: auto;
  max-height: 110px;
  opacity: 0.16;
  margin-top: var(--s8);
  pointer-events: none;
  user-select: none;
}
.page-hero .skyline { margin-top: var(--s5); max-height: 90px; }
.brand__mark {
  width: 42px; height: 42px;
  border-radius: 9px;
  background: var(--green);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand__name { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.0625rem; color: var(--ink); line-height: 1.2; }
.brand__sub { font-size: 0.75rem; color: var(--ink-faint); letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: var(--s3); }
.nav a {
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }

.header__cta { display: flex; align-items: center; gap: var(--s2); }

@media (max-width: 1080px) {
  .nav { display: none; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--amber); color: #ffffff; }
.btn--primary:hover { background: var(--amber-deep); }

.btn--ghost { background: transparent; color: var(--green); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--green); background: var(--green-tint); }

.btn--green { background: var(--green); color: #ffffff; }
.btn--green:hover { background: var(--green-deep); }

.btn--lg { padding: 16px 28px; font-size: 1.0625rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Héros ---------- */

.hero { padding: var(--s12) 0 var(--s10); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: var(--s8);
  align-items: center;
}
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 span { color: var(--green); }
.hero .lede { margin-top: var(--s3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.hero__note { margin-top: var(--s2); font-size: 0.875rem; color: var(--ink-faint); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s5); padding: 0; list-style: none; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green-deep);
  background: var(--green-tint);
  border: 1px solid #d8e5df;
  border-radius: 999px;
  padding: 6px 14px;
}
.chips svg { width: 14px; height: 14px; }

/* Panneau latéral du héros */
.hero-card {
  background: var(--green);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--s4);
}
.hero-card h2 { color: #ffffff; font-size: 1.25rem; }
.hero-card p { color: #cfe0d8; font-size: 0.9375rem; }
.hero-card__phone {
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  margin: var(--s2) 0;
}
.hero-card__phone:hover { text-decoration: underline; }
.hero-card ul { list-style: none; margin: var(--s3) 0 0; padding: var(--s3) 0 0; border-top: 1px solid rgba(255,255,255,0.18); }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; color: #e3ede8; margin-bottom: 10px; }
.hero-card li:last-child { margin-bottom: 0; }
.hero-card li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: #8fbfa9; }

/* ---------- Cartes services ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
}
@media (max-width: 920px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: border-color 150ms ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--green); }
a.card:hover .card__more { color: var(--amber-deep); }

.card__icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--green-tint);
  color: var(--green);
  display: grid;
  place-items: center;
}
.card__icon svg { width: 24px; height: 24px; }
.card p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }
.card__more {
  margin-top: auto;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--green);
  transition: color 150ms ease;
}

/* ---------- Liste nuisibles ---------- */

.pests { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.pests li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- Étapes ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
}
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.steps li { counter-increment: step; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: var(--s1);
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Deux colonnes génériques ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s8);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s5); } }

/* ---------- Arguments en prose ---------- */

.reasons > div { margin-bottom: var(--s4); }
.reasons > div:last-child { margin-bottom: 0; }
.reasons h3 { margin-bottom: 8px; }
.reasons p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }

/* ---------- Liste à coches ---------- */

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: var(--s2); }
.checklist li:last-child { margin-bottom: 0; }
.checklist svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--green); }
.checklist strong { display: block; }
.checklist span { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Zones ---------- */

.zones { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.zones li {
  background: var(--green-tint);
  border: 1px solid #d8e5df;
  color: var(--green-deep);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 150ms ease;
}
.zones li:hover { border-color: var(--green); }
.zones li a {
  display: block;
  padding: 8px 16px;
  color: inherit;
  text-decoration: none;
}
.zones li:not(:has(a)) { padding: 8px 16px; }

/* ---------- Horaires ---------- */

.hours { width: 100%; border-collapse: collapse; max-width: 480px; }
.hours th, .hours td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.hours th { font-weight: 500; color: var(--ink-soft); }
.hours td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Bandeau CTA ---------- */

.cta-band { background: var(--green); }
.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-top: var(--s8);
  padding-bottom: var(--s8);
}
.cta-band h2 { color: #ffffff; max-width: 24ch; }
.cta-band p { color: #cfe0d8; margin-top: var(--s1); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cta-band__brand { display: flex; align-items: center; gap: var(--s3); }
.cta-band__brand img { border-radius: 12px; flex-shrink: 0; }
@media (max-width: 560px) { .cta-band__brand img { display: none; } }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--s2);
}
.faq summary {
  cursor: pointer;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  padding: var(--s2) var(--s3);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; color: var(--green); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 var(--s3) var(--s3); color: var(--ink-soft); margin: 0; }

/* ---------- Formulaire ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s4);
}
.form-row { margin-bottom: var(--s3); }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 6px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 11px 14px;
  transition: border-color 150ms ease;
}
.form-row input:hover, .form-row select:hover, .form-row textarea:hover { border-color: var(--ink-faint); }
.form-row input:focus-visible, .form-row select:focus-visible, .form-row textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 0;
  border-color: var(--amber);
}
.form-hint { font-size: 0.8125rem; color: var(--ink-faint); margin-top: 6px; }

/* ---------- Pied de page ---------- */

.footer { background: var(--green-deep); color: #b7c9c1; font-size: 0.9375rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s5);
  padding: var(--s8) 0 var(--s6);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer h3 { color: #ffffff; font-size: 0.9375rem; margin-bottom: var(--s2); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: #d5e2db; text-decoration: none; }
.footer a:hover { color: #ffffff; text-decoration: underline; }
.footer__brand p { max-width: 38ch; }
.footer__zones ul { columns: 2; column-gap: var(--s3); }
.footer__zones li { break-inside: avoid; }
@media (max-width: 560px) { .footer__zones ul { columns: 1; } }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: var(--s3) 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2);
  font-size: 0.8125rem;
  color: #8fa89e;
}

/* ---------- Barre d'appel mobile (click-to-call) ---------- */

.callbar { display: none; }
@media (max-width: 768px) {
  .callbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--amber);
    color: #ffffff;
    font-family: "Archivo", sans-serif;
    font-weight: 600;
    font-size: 1.0625rem;
    text-decoration: none;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    transition: background-color 150ms ease;
  }
  .callbar:active { background: var(--amber-deep); }
  .callbar svg { width: 18px; height: 18px; }
  body { padding-bottom: 54px; }
}

/* ---------- Chiffres clés ---------- */

.statband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.statband .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
  padding-top: var(--s4);
  padding-bottom: var(--s4);
}
@media (max-width: 680px) { .statband .container { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.statband strong {
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.statband span { font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- Page intérieure ---------- */

.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: var(--s10) 0;
}
.page-hero .lede { margin-top: var(--s2); }
.breadcrumb { font-size: 0.875rem; color: var(--ink-faint); margin-bottom: var(--s2); }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--green); }

.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--s6); margin-bottom: var(--s2); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }

.callout {
  background: var(--amber-tint);
  border: 1px solid #f0d9bd;
  border-radius: var(--radius);
  padding: var(--s3);
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
  margin: var(--s4) 0;
}
.callout svg { width: 22px; height: 22px; color: var(--amber-deep); flex-shrink: 0; margin-top: 2px; }
.callout p { margin: 0; font-size: 0.9375rem; }

/* ---------- Formulaire de rappel ---------- */

/* Pot de miel anti-spam : invisible pour les humains, rempli par les robots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.callback { display: flex; flex-direction: column; gap: var(--s2); }
.callback label { font-size: 0.8125rem; font-weight: 600; display: block; }
.callback input {
  width: 100%;
  margin-top: 4px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 150ms ease;
}
.callback input:hover { border-color: var(--ink-faint); }
.callback input:focus-visible { outline: 2px solid var(--amber); outline-offset: 0; border-color: var(--amber); }
.callback .btn { width: 100%; }

.aside-card__sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--s3) 0 var(--s2);
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
.aside-card__sep::before, .aside-card__sep::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* Variante sur fond vert (carte du héros) */
.hero-card .callback label { color: #cfe0d8; }
.hero-card .callback input { border-color: transparent; }
.hero-card .aside-card__sep { color: #8fbfa9; }
.hero-card .aside-card__sep::before, .hero-card .aside-card__sep::after { border-color: rgba(255,255,255,0.18); }

/* Encadré contact latéral des pages service */
.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  position: sticky;
  top: 96px;
}
.aside-card h3 { margin-bottom: var(--s1); }
.aside-card p { color: var(--ink-soft); font-size: 0.9375rem; }
.aside-card .btn { width: 100%; margin-top: var(--s2); }
