/* ============================================================
   4D EST — Landing "Urgence Nuisibles"
   Design tokens + base + components
   ============================================================ */

:root {
  /* Brand */
  --navy:        #262c60;
  --sky:         #5dc3eb;
  --sky-soft:    #b6e4f7;
  --green:       #8bc676;
  --green-mid:   #66b34b;
  --green-deep:  #3d6c2d;
  --green-conf:  #56973f;
  --green-cta:   #348445;
  --amber:       #fbc75e;
  --amber-ink:   #8b5e03;
  --red:         #a84343;
  --red-soft:    #f08989;
  --red-deep:    #3a1717;
  --pin:         #ea4335;
  --google-blue: #4285f4;

  /* Ink & surfaces */
  --ink:        #191a15;
  --ink-2:      #14240f;
  --muted:      #8b8c92;
  --muted-2:    #727379;
  --indigo:     #838bce;
  --white:      #ffffff;
  --surf:       #f8fbfc;   /* light blue tint */
  --surf-green: #f8fbf6;   /* light green tint */
  --beige:      #fef5e1;

  --radius-pill: 40px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-card: 0 18px 50px -22px rgba(38, 44, 96, .28);
  --shadow-float: 0 14px 34px -12px rgba(25, 26, 21, .25);

  --maxw: 1280px;
  --gutter: 80px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

/* ---------- Icon utility (inline-SVG injection) ---------- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: currentColor;
  flex: none;
}
.icon svg { width: 100%; height: 100%; display: block; fill: currentColor; }

/* ---------- Layout ---------- */
.section {
  position: relative;
  padding: 112px var(--gutter);
  overflow: hidden;
}
.section--white { background: var(--white); }
.section--surf  { background: var(--surf); }
.section--green { background: var(--surf-green); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-title {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}
.section-title--xl { font-size: 48px; }
.section-eyebrow-center { text-align: center; }

.lead {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.36;
  color: var(--muted-2);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--sky);
  --btn-dot: var(--sky);
  --btn-dot-ink: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--sky);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(38,44,96,.55); filter: saturate(1.05); }
.btn:active { transform: translateY(0); }
.btn .dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--btn-dot);
  display: grid; place-items: center; flex: none;
}
.btn .dot .icon { width: 13px; height: 13px; color: var(--btn-dot-ink); }

.btn--green { --btn-bg: var(--green-cta); --btn-fg: #cceED2; --btn-dot: #cceED2; --btn-dot-ink: var(--green-cta); border-color: var(--green-cta); }
.btn--outline {
  --btn-bg: var(--white); --btn-fg: var(--navy); --btn-dot: var(--navy); --btn-dot-ink: var(--white);
  border-color: var(--navy);
}
.btn--block { width: 100%; justify-content: center; }

/* ---------- Generic chip with check ---------- */
.check-item {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 16px; color: var(--ink-2);
}
.check {
  width: 26px; height: 26px; flex: none;
  color: var(--green);
}

/* ============================================================
   HEADER / HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--white);
  padding: 0 var(--gutter);
  overflow: hidden;
}
.hero__blob {
  position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
}
.hero__blob--sky  { width: 634px; height: 634px; background: var(--sky);   right: -260px; top: 360px; opacity: .9; }
.hero__blob--green{ width: 634px; height: 245px; background: var(--green-mid); left: 46%; top: -180px; }

.hero__logo { position: relative; z-index: 3; padding-top: 40px; display: inline-block; }
.hero__logo img { width: 92px; height: auto; }

/* Cross-nav (both pages) */
.hero__nav { position: absolute; top: 48px; right: var(--gutter); z-index: 6; display: flex; gap: 10px; align-items: center; }
.hero__nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-pill);
  border: 2px solid var(--navy); color: var(--navy);
  font-weight: 700; font-size: 15px; text-decoration: none; background: #fff;
  transition: transform .18s ease, background .2s ease, color .2s ease;
}
.hero__nav a:hover { transform: translateY(-2px); background: var(--navy); color: var(--sky); }
.hero__nav a .icon { color: currentColor; }

.hero__grid {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
  align-items: center;
  padding: 70px 0 60px;
}
.hero__title {
  font-weight: 700; font-size: 64px; line-height: 1.18;
  letter-spacing: -.015em; color: var(--ink);
  text-wrap: balance;
}
.hero__phone {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px; color: var(--red); font-weight: 700; font-size: 22px;
  text-decoration: none;
}
.hero__phone .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.hero__phone .dot .icon { width: 13px; height: 13px; color: #fff; }
.hero__sub { margin-top: 18px; max-width: 470px; }
.hero__actions { margin-top: 34px; display: flex; gap: 20px; flex-wrap: wrap; }

/* Hero visual + floating cards */
.hero__visual { position: relative; height: 526px; }
.hero__photo {
  position: absolute; right: 0; top: 0; width: 410px; height: 526px;
  border-radius: var(--radius-sm); object-fit: cover;
  box-shadow: var(--shadow-card);
}
.float-card {
  position: absolute; z-index: 4;
  background: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-float);
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
}
.float-card .fc-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.float-card .fc-ic .icon { width: 33px; height: 33px; }
.float-card .fc-k { font-weight: 700; font-size: 12px; color: var(--navy); line-height: 1.1; }
.float-card .fc-v { font-weight: 700; font-size: 16px; line-height: 1.1; }
.fc--48h { left: -28px; top: 26px; transform: rotate(-4deg); }
.fc--48h .fc-v { color: var(--red); }
.fc--homolog { left: -30px; bottom: 14px; }
.fc--homolog .fc-v { color: var(--green-deep); }

.chip-sq {
  position: absolute; z-index: 4; border-radius: var(--radius-sm);
  display: grid; place-items: center; box-shadow: var(--shadow-float);
}
.chip-sq .icon { color: var(--amber-ink); }
.chip--bug { width: 49px; height: 49px; background: var(--amber); right: 6px; top: 18px; transform: rotate(8deg); }
.chip--bug .icon { width: 24px; height: 24px; }
.chip--msg { width: 40px; height: 40px; background: var(--navy); right: 58px; bottom: -10px; transform: rotate(-12deg); }
.chip--msg .icon { width: 18px; height: 18px; color: var(--sky); }
.chip--check { width: 40px; height: 40px; background: var(--green); left: 18px; top: 188px; transform: rotate(-8deg); color: #fff; }
.chip--check .icon { width: 16px; height: 12px; color:#fff; }

/* Trust strip */
.trust {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  border-top: 1px solid rgba(25,26,21,.07);
  padding: 26px 0 40px;
  display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.trust .check-item { flex-direction: column; gap: 8px; text-align: center; flex: 1 1 200px; }

/* ============================================================
   TRUST / STATS
   ============================================================ */
.commit__grid {
  display: grid; grid-template-columns: 410px 1fr; gap: 80px; align-items: center;
}
.commit__img { width: 410px; height: 436px; border-radius: var(--radius-sm); object-fit: cover; box-shadow: var(--shadow-card); }
.commit__right { position: relative; }
.commit__title { text-align: right; font-weight: 700; font-size: 48px; line-height: 1; color: var(--ink); }
.stats { display: flex; gap: 56px; margin-top: 48px; justify-content: flex-end; flex-wrap: wrap; }
.stat__num { font-weight: 700; font-size: 64px; line-height: 1; color: var(--navy); }
.stat__lbl { font-weight: 500; font-size: 16px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.badges-row { display: flex; gap: 40px; align-items: center; justify-content: flex-end; margin-top: 44px; flex-wrap: wrap; }
.badge-img { height: 132px; width: auto; }
.badge-img--cepa { height: 150px; }

/* Google review card */
.gcard {
  width: 211px; border-radius: 8px; background: var(--surf);
  border: 1px solid var(--sky-soft); padding: 16px;
  display: flex; gap: 8px; align-items: center;
}
.gcard__l { flex: 1; display: flex; flex-direction: column; align-items: center; font-family: "Plus Jakarta Sans", sans-serif; }
.gcard__score { font-weight: 700; font-size: 48px; line-height: 1; color: var(--google-blue); }
.gstars { display: flex; gap: 0; margin: 6px 0 4px; }
.gstars .icon { width: 20px; height: 20px; color: #fcd503; }
.gstars .gstar-half { -webkit-mask-size: 200% 100%; mask-size: 200% 100%; -webkit-mask-position: left; mask-position: left; clip-path: inset(0 30% 0 0); }
.gcard__link { font-size: 12px; color: var(--google-blue); text-decoration: underline; }
.gcard__r { width: 66px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: "Plus Jakarta Sans", sans-serif; color: #6a6a6a; }
.gcard__r b { font-weight: 700; font-size: 18px; }
.gcard__r span { font-size: 9px; }
.gcard__r svg { width: 34px; height: 34px; margin-top: 4px; }

/* decorative ellipse */
.deco-ellipse { position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; }

/* ============================================================
   PROBLEM / SOLUTION
   ============================================================ */
.problem__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.problem__intro .section-title { font-size: 40px; }
.problem__intro .lead { margin-top: 28px; }
.problem__intro .btn { margin-top: 32px; }
.pest-list { display: flex; flex-direction: column; gap: 32px; }
.pest {
  display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: start;
}
.pest__ic { width: 60px; height: 60px; border-radius: var(--radius-md); background: var(--amber); display: grid; place-items: center; }
.pest__ic .icon { width: 26px; height: 26px; color: var(--amber-ink); }
.pest__h { font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--ink); }
.pest__p { font-weight: 500; font-size: 18px; line-height: 1.55; color: var(--muted); margin-top: 8px; text-wrap: pretty; }

/* ============================================================
   LOGOS / PEST PHOTO BAR
   ============================================================ */
.photobar { background: var(--beige); padding: 40px 54px; }
.photobar__row { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.photobar__row img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; border: 2px solid var(--amber); }
.photobar__row image-slot { display: block; width: 100%; height: 220px; border: 2px solid var(--amber); border-radius: 8px; overflow: hidden; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 72px; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.step__num { width: 60px; height: 60px; border-radius: var(--radius-md); background: var(--navy); color: var(--sky); display: grid; place-items: center; font-weight: 700; font-size: 32px; }
.step__h { font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--ink); white-space: pre-line; }
.step__img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; border: 2px solid var(--sky-soft); }
image-slot.step__img { display: block; height: 220px; border: 2px solid var(--sky-soft); border-radius: 8px; overflow: hidden; }
.step__p { font-weight: 500; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; position: relative; z-index: 2; }
.price-card {
  background: #fff; border: 2px solid var(--sky-soft); border-radius: var(--radius-lg);
  padding: 40px 16px 16px; display: flex; flex-direction: column; align-items: center;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--sky); }
.price-card__h { font-weight: 700; font-size: 32px; line-height: 1.1; color: var(--ink); text-align: center; white-space: pre-line; }
.price-card__sub { font-weight: 500; font-size: 16px; line-height: 1.7; color: #a6a6a6; text-align: center; margin-top: 20px; white-space: pre-line; }
.price-card__from { font-weight: 700; font-size: 24px; color: var(--ink); margin-top: 28px; }
.price-card__amt { font-weight: 700; font-size: 50px; color: var(--ink); margin-top: 12px; }
.price-card__feats { background: var(--surf); border-radius: var(--radius-sm); padding: 24px 16px; margin-top: 36px; width: 100%; display: flex; flex-direction: column; gap: 22px; }
.price-card__feats .check-item { align-items: flex-start; gap: 8px; }
.pricing-cta { display: flex; justify-content: center; margin-top: 64px; position: relative; z-index: 2; }
.pricing-note { text-align: center; font-size: 15px; font-weight: 500; color: var(--muted); margin-top: 28px; position: relative; z-index: 2; }

/* ============================================================
   CALLBACK FORM
   ============================================================ */
.callback__head { max-width: 1145px; margin: 0 auto; text-align: center; }
.callback__head .lead { margin-top: 26px; }
.callback__wa { display: flex; justify-content: center; margin-top: 34px; }
.callback__form { max-width: 692px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 27px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 27px; }
.field {
  width: 100%; border-radius: var(--radius-md); background: var(--surf);
  border: 2px solid var(--indigo); padding: 15px 24px;
  font-family: inherit; font-size: 16px; color: var(--ink);
}
.field::placeholder { color: var(--indigo); }
.field:focus { outline: none; border-color: var(--navy); background: #fff; }
select.field { appearance: none; color: var(--indigo); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23838bce' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center;
}
select.field.filled { color: var(--ink); }
.field.invalid { border-color: var(--red-soft); background: #fff6f6; }
.field-err { color: var(--red); font-size: 13px; font-weight: 600; margin-top: -18px; display: none; }
.field-err.show { display: block; }
.confid { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--green-conf); font-weight: 700; font-size: 16px; margin-top: 6px; }
.confid .icon { width: 18px; height: 22px; }
.callback__submit { display: flex; justify-content: center; margin-top: 10px; }
.form-success {
  display: none; text-align: center; background: #f1faf3; border: 2px solid #bfe6c8;
  color: var(--green-cta); border-radius: var(--radius-md); padding: 22px; font-weight: 700; font-size: 18px;
}
.form-success.show { display: block; }

/* ============================================================
   ZONE / MAP
   ============================================================ */
.zone__head { text-align: center; max-width: var(--maxw); margin: 0 auto; }
.zone__head .lead { margin-top: 26px; }
.map-stage { position: relative; width: 358px; height: 458px; margin: 64px auto 0; }
.map-stage .map-shape {
  position: absolute; left: 19.772px; top: 0;
  width: 262.456px; height: 457.982px;
  color: var(--sky-soft);
}
.map-stage .map-shape svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.pin { position: absolute; display: flex; align-items: center; gap: 8px; height: 40px; }
.pin .pin-ic { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex: none; color: var(--pin); }
.pin .pin-ic .icon { width: 26.667px; height: 33.333px; }
.pin .pin-label { font-weight: 700; font-size: 24px; line-height: 30px; color: var(--navy); white-space: nowrap; }
.pin-haguenau { left: 188px;   top: 37.346px; }
.pin-strasbg  { left: 176px;   top: 95.346px; }
.pin-selestat { left: 12px;    top: 166.346px; }
.pin-colmar   { left: 0;       top: 240.346px; }
.pin-mulhouse { left: 94px;    top: 346.346px; }

/* ============================================================
   FINAL CTA BANNER
   ============================================================ */
.cta-banner {
  max-width: var(--maxw); margin: 0 auto;
  border-radius: 56px;
  background: linear-gradient(150deg, #232038 0%, var(--sky) 130%);
  padding: 48px 54px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  color: #fff;
}
.cta-banner__h { font-weight: 700; font-size: 48px; line-height: 1.28; }
.cta-banner__p { font-weight: 700; font-size: 22px; line-height: 1.36; margin-top: 28px; }
.cta-banner .btn { margin-top: 36px; }
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.cta-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.cta-grid image-slot { display: block; width: 100%; aspect-ratio: 1; border-radius: 20px; overflow: hidden; }

/* ============================================================
   FLOATING URGENT BUTTON
   ============================================================ */
.urgent-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 22px; border-radius: var(--radius-pill);
  background: var(--red-deep); border: 2px solid var(--red-soft);
  color: var(--red-soft); font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 16px 34px -12px rgba(58,23,23,.6);
  transition: transform .18s ease, box-shadow .2s ease;
}
.urgent-fab:hover { transform: translateY(-2px) scale(1.02); }
.urgent-fab .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--red-soft); display: grid; place-items: center; }
.urgent-fab .dot .icon { width: 13px; height: 13px; color: var(--red-deep); }
.urgent-fab .pulse { position: absolute; inset: -2px; border-radius: var(--radius-pill); border: 2px solid var(--red-soft); animation: pulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes pulse { 0% { opacity: .7; transform: scale(1);} 100% { opacity: 0; transform: scale(1.18);} }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .urgent-fab .pulse { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  .hero__title { font-size: 52px; }
  .section-title, .section-title--xl { font-size: 38px; }
  .commit__grid { grid-template-columns: 340px 1fr; gap: 48px; }
  .commit__img { width: 100%; height: 380px; }
}

@media (max-width: 880px) {
  :root { --gutter: 28px; }
  .section { padding: 72px var(--gutter); }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; padding: 48px 0 40px; }
  .hero__nav { position: static; justify-content: flex-start; margin-top: 18px; }
  .hero__title { font-size: 44px; }
  .hero__sub { max-width: none; }
  .hero__visual { height: 460px; max-width: 410px; margin: 0 auto; }
  .hero__blob--sky { right: -320px; }
  .commit__grid { grid-template-columns: 1fr; gap: 36px; }
  .commit__img { width: 100%; height: 320px; }
  .commit__title, .stats, .badges-row { text-align: center; justify-content: center; }
  .problem__grid { grid-template-columns: 1fr; gap: 44px; }
  .photobar__row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 56px; max-width: 460px; margin-inline: auto; }
  .pricing { grid-template-columns: 1fr; gap: 32px; max-width: 460px; margin-inline: auto; }
  .cta-banner { grid-template-columns: 1fr; border-radius: 36px; padding: 40px 32px; }
  .cta-banner__h { font-size: 38px; }
  .section-title, .section-title--xl, .commit__title { font-size: 32px; }
  .hero__title { line-height: 1.16; }
}

@media (max-width: 520px) {
  :root { --gutter: 20px; }
  .section { padding: 56px var(--gutter); }
  .hero__title { font-size: 36px; }
  .section-title, .section-title--xl, .commit__title, .cta-banner__h { font-size: 28px; }
  .lead { font-size: 18px; }
  .stat__num { font-size: 52px; }
  .hero__actions .btn, .callback__wa .btn { width: 100%; justify-content: center; }
  .field-row { grid-template-columns: 1fr; }
  .photobar__row { gap: 14px; }
  .pest__h { font-size: 24px; }
  .pin { font-size: 18px; }
  .map-stage { transform: scale(.82); transform-origin: top center; margin-bottom: -82px; }
  .urgent-fab { right: 14px; bottom: 14px; padding: 13px 18px; font-size: 15px; }
}
