/* ═══════════════════════════════════════════════════
   AM Pro Pest Control — Feuille de styles principale
   Inspiré de Rentokil, Anticimex, Ecolab
   ═══════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────── */
:root {
  --white:    #FFFFFF;
  --bg:       #F6F5F1;
  --border:   #E0DED6;
  --text:     #1A1918;
  --muted:    #6B6962;
  --light:    #9C9994;
  --orange:   #F5A623;
  --orange-d: #D9901A;
  --dark:     #1A1918;
  --dark-2:   #242420;
  --radius:   6px;
  --shadow:   0 2px 8px rgba(0,0,0,.05);
  --shadow-h: 0 12px 32px rgba(0,0,0,.11);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ── Container ──────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── Boutons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius);
  letter-spacing: .02em;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-d); }
.btn--outline-white {
  border: 1.5px solid #fff;
  color: #fff;
  background: transparent;
}
.btn--outline-white:hover { background: rgba(255,255,255,.1); }
.btn--full { width: 100%; justify-content: center; }

/* ── Eyebrow ────────────────────────────────────── */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow--light { color: rgba(255,255,255,.55); }

/* ── Typography helpers ─────────────────────────── */
.text-orange { color: var(--orange); }

.section__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.section__title--light { color: #fff; }

.section__desc {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 40px;
}

/* ── Section layout ─────────────────────────────── */
.section {
  padding: 96px 0;
}
.section--bg-light { background: var(--bg); }
.section--bg-white { background: var(--white); }

/* ════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav--scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}
.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav__links a:hover {
  color: var(--text);
  border-bottom-color: var(--orange);
}
.nav__cta {
  background: var(--orange);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius);
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background .2s;
}
.nav__cta:hover { background: var(--orange-d); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }
.nav__mobile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 20px 5%;
  gap: 0;
}
.nav__mobile a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav__mobile-cta {
  margin-top: 14px;
  background: var(--orange);
  color: #fff;
  text-align: center;
  padding: 13px;
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-bottom: none !important;
}

/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(26,25,24,.85) 0%, rgba(26,25,24,.55) 60%, rgba(26,25,24,.18) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 64px 5%;
}
.hero .eyebrow {
  animation: fadeUp .6s ease .1s both;
}
.hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(34px, 5.5vw, 66px);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  max-width: 620px;
  margin-bottom: 22px;
  animation: fadeUp .6s ease .2s both;
}
.hero__desc {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(255,255,255,.76);
  max-width: 460px;
  margin-bottom: 36px;
  animation: fadeUp .6s ease .35s both;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp .6s ease .48s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════════
   STATS BAND
   ════════════════════════════════════════════════ */
.stats-band { background: var(--dark); }
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 40px 32px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.stat-item:last-child { border-right: none; }
.stat-item__num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item__label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.stat-item__sub {
  font-size: 12px;
  color: rgba(255,255,255,.38);
}

/* ════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow .3s, transform .3s;
  display: flex;
  flex-direction: column;
}
.service-card--hovered {
  box-shadow: var(--shadow-h);
  transform: translateY(-4px);
}
.service-card__top-bar {
  height: 3px;
  background: var(--orange);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .35s ease;
}
.service-card--hovered .service-card__top-bar { transform: scaleX(1); }
.service-card__img-wrap {
  height: 190px;
  overflow: hidden;
}
.service-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.85);
  transition: transform .5s;
}
.service-card--hovered .service-card__img { transform: scale(1.05); }
.service-card__body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card__icon { font-size: 22px; margin-bottom: 10px; }
.service-card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 10px;
}
.service-card__desc {
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
  flex: 1;
}
.service-card__more {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

/* ════════════════════════════════════════════════
   SPLIT / POURQUOI
   ════════════════════════════════════════════════ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split__visual { position: relative; }
.split__img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
}
.split__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--orange);
  padding: 22px 26px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(245,166,35,.4);
}
.split__badge-num {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.split__badge-label {
  font-size: 12px;
  color: rgba(255,255,255,.85);
  margin-top: 4px;
  font-weight: 500;
}
.points { display: grid; gap: 0; }
.point {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.point:last-child { border-bottom: none; }
.point__bar {
  width: 4px;
  flex-shrink: 0;
  background: var(--orange);
  border-radius: 3px;
  align-self: stretch;
  min-height: 8px;
}
.point__text h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}
.point__text p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* ════════════════════════════════════════════════
   SECTEURS
   ════════════════════════════════════════════════ */
.secteurs-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.secteurs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sector-tile {
  background: rgba(255,255,255,.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .2s;
  cursor: default;
}
.sector-tile--hovered {
  background: var(--white);
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.sector-tile__icon { font-size: 20px; }
.sector-tile__label {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  line-height: 1.3;
}

/* ════════════════════════════════════════════════
   CTA BAND
   ════════════════════════════════════════════════ */
.cta-band { background: var(--dark-2); padding: 72px 0; }
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.cta-band__sub {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  max-width: 480px;
}
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════
   PROCESSUS
   ════════════════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.steps__line {
  position: absolute;
  top: 22px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.step {
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  cursor: default;
}
.step__circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--orange);
  transition: all .3s;
}
.step--hovered .step__circle {
  background: var(--orange);
  color: #fff;
}
.step__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
}
.step__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-items { display: grid; gap: 16px; margin-bottom: 20px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item__icon {
  width: 40px;
  height: 40px;
  background: rgba(245,166,35,.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-item__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 3px;
}
.contact-item__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.contact-item__value:hover { color: var(--orange); }
.zone-card {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  margin-top: 8px;
}
.zone-card__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.zone-card__value {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.zone-card__cities {
  font-size: 14px;
  color: var(--text);
  margin-top: 2px;
}

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.form-card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 26px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
}
.form-group textarea { resize: vertical; }
.form-error {
  font-size: 13px;
  color: #c0392b;
  margin-bottom: 12px;
}
.form-success {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.form-success__icon {
  width: 56px;
  height: 56px;
  background: rgba(245,166,35,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--orange);
  margin: 0 auto 20px;
}
.form-success h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 10px;
}
.form-success p { font-size: 14px; color: var(--muted); }

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  padding: 60px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 22px;
}
.footer__logo {
  height: 50px;
  margin-bottom: 18px;
}
.footer__brand p {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  max-width: 280px;
}
.footer__cities {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.footer__cities span {
  font-size: 12px;
  color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.07);
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: 500;
}
.footer__col h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer__col ul li,
.footer__col ul li a {
  font-size: 13.5px;
  color: rgba(255,255,255,.4);
  transition: color .2s;
}
.footer__col ul li a:hover { color: var(--orange); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__bottom p {
  font-size: 12px;
  color: rgba(255,255,255,.25);
}

/* ════════════════════════════════════════════════
   BOUTON FLOTTANT
   ════════════════════════════════════════════════ */
.float-phone {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 200;
  box-shadow: 0 6px 20px rgba(245,166,35,.45);
  transition: transform .2s, box-shadow .2s;
}
.float-phone:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(245,166,35,.55);
}

/* Blazor error UI */
#blazor-error-ui {
  background: #fff3cd;
  bottom: 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,.2);
  display: none;
  left: 0;
  padding: 14px;
  position: fixed;
  right: 0;
  z-index: 1000;
  font-size: 13px;
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ════════════════════════════════════════════════
   RESPONSIVE MOBILE
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero__title { font-size: clamp(32px, 8vw, 48px); }
  .hero__desc { font-size: 15px; }

  .stats-band__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }

  .services-grid { grid-template-columns: 1fr; }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .split__badge { right: 0; bottom: -10px; }

  .secteurs-layout { grid-template-columns: 1fr; gap: 40px; }
  .secteurs-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band__actions { justify-content: center; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps__line { display: none; }

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .stats-band__grid { grid-template-columns: 1fr; }
  .secteurs-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
