/* =========================================================
   Protect Nuisible — feuille de style personnalisée
   Complète Tailwind avec composants, animations, motifs.
   ========================================================= */

:root {
  /* Palette : noir, blanc, et rouge comme accent */
  --ink-900: #000000;
  --ink-800: #111111;
  --ink-700: #2A2A2A;
  --ink-500: #6B6B6B;
  --ink-300: #BFBFBF;
  --ink-100: #E7E7E7;
  --bone-50: #FFFFFF;
  --bone-100: #F6F6F6;
  --bone-200: #ECECEC;
  /* Couleur d'accent : rouge sang */
  --red-500: #C8102E;
  --red-600: #A30E0E;
  --red-700: #7A0712;
  /* Aliases : flame redirige vers le rouge sang */
  --flame-500: #C8102E;
  --flame-600: #A30E0E;
  --flame-700: #7A0712;
  --mint-500: #2A2A2A;
  --amber-500: #C8102E;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* Container max widths */
.container { max-width: 1200px; }

/* ===== background patterns ===== */
.bg-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: -1px -1px;
  mask-image: radial-gradient(circle at 50% 30%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 50%, transparent 100%);
}
.bg-grid-dark {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: -1px -1px;
}

/* ===== buttons ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.1rem; border-radius: 999px;
  background: var(--red-500); color: #fff;
  font-weight: 600; font-size: .92rem; line-height: 1;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--red-600); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-lg { padding: .9rem 1.45rem; font-size: 1rem; box-shadow: 0 14px 30px -14px rgba(200,16,46,.55); }
.btn-primary.btn-lg:hover { box-shadow: 0 18px 36px -14px rgba(200,16,46,.7); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  font-weight: 600; font-size: .92rem; line-height: 1;
  background: rgba(255,255,255,.4); color: var(--ink-900);
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--ink-900); background: #fff; }
.btn-ghost.btn-lg { padding: .9rem 1.45rem; font-size: 1rem; }

/* ===== sections ===== */
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-500);
}
.kicker::before {
  content: ""; width: 24px; height: 1px; background: currentColor;
}
.section-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.85rem, 2.2vw + 1.4rem, 3.4rem);
  line-height: 1.05;
  margin-top: .8rem;
}
.section-lead {
  font-size: clamp(1rem, .35vw + .95rem, 1.15rem);
  color: var(--ink-500);
  margin-top: 1rem;
  max-width: 60ch;
  line-height: 1.6;
}

/* ===== service bento cards ===== */
.service-card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 28px;
  padding: 1.6rem 1.6rem 1.4rem;
  min-height: 220px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -22px rgba(0,0,0,.22);
  border-color: rgba(0,0,0,.12);
}
.service-card.service-card-feature {
  background: #fff;
  border: 2px solid var(--ink-900);
}
.service-card.service-card-feature:hover {
  box-shadow: 8px 8px 0 0 var(--ink-900);
  transform: translateY(-3px) translateX(-3px);
}
.card-img-large {
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.22));
  transition: transform .35s ease;
}
.service-card-feature:hover .card-img-large { transform: scale(1.04) rotate(-1.5deg); }

.card-img {
  width: 6.5rem; height: 6.5rem;
  object-fit: contain;
  margin-bottom: .25rem;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.22));
  transition: transform .35s ease;
}
.service-card:hover .card-img { transform: translateY(-4px) scale(1.06); }

@media (min-width: 640px) {
  .card-img { width: 8rem; height: 8rem; }
}

/* Photo technicien (en couleur, contraste légèrement boosté) */
.hero-portrait { filter: contrast(1.05) saturate(1.05); }

/* Grosse forme rouge décorative qui déborde jusqu'au bord droit du viewport (desktop) */
.hero-splash {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  background: var(--red-500);
  /* Bord gauche en biseau pour un effet dynamique */
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
  pointer-events: none;
}
@media (min-width: 1280px) {
  .hero-splash { width: 44%; }
}

/* Toile rouge décorative derrière la photo du technicien (mobile/tablette) */
.hero-stage { isolation: isolate; position: relative; }
.hero-backdrop {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background: var(--red-500);
  transform: translate(20px, 20px);
  z-index: 0;
  transition: transform .4s ease;
}
.hero-stage > .hero-photo {
  position: relative;
  z-index: 2;
  transition: transform .4s ease;
}
.hero-stage:hover .hero-backdrop { transform: translate(14px, 14px); }
.hero-stage:hover > .hero-photo { transform: translate(-2px, -2px); }
@media (max-width: 640px) {
  .hero-backdrop { transform: translate(14px, 14px); border-radius: 28px; }
}
/* Sur desktop, on a la grosse splash rouge donc on cache le petit décalage et on remonte le z-index */
@media (min-width: 1024px) {
  .hero-stage { z-index: 1; }
  .hero-backdrop { display: none; }
}

/* Étoiles d'avis : rouge */
.stars-row { color: var(--red-500); }
.stars-row svg { fill: currentColor; }

.card-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em;
  margin-top: 1rem;
}
.service-card.md\:col-span-4 .card-title { font-size: 2.2rem; margin-top: 0; }
.card-desc {
  color: var(--ink-500);
  margin-top: .55rem; font-size: .93rem; line-height: 1.55;
  flex: 1;
}
.card-link {
  margin-top: 1rem;
  font-size: .9rem; font-weight: 600;
  color: var(--flame-500);
  display: inline-flex; align-items: center; gap: .35rem;
  transition: gap .2s;
}
.service-card:hover .card-link { gap: .6rem; }

.badge {
  display: inline-flex; align-items: center;
  background: var(--ink-900);
  color: #fff;
  border: 1px solid var(--ink-900);
  padding: .25rem .6rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}

.chip {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  padding: .25rem .65rem; border-radius: 999px;
  font-size: .78rem; font-weight: 500; color: var(--ink-700);
}

.chip-dark {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  padding: .25rem .65rem; border-radius: 999px;
  font-size: .76rem; font-weight: 500; color: rgba(255,255,255,.9);
}

/* ===== feature cards (sur fond clair) ===== */
.feat-card {
  position: relative;
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  border-radius: 22px;
  padding: 1.5rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.feat-card:hover {
  border-color: var(--ink-900);
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 0 var(--ink-900);
}
.feat-icon {
  width: 46px; height: 46px;
  background: var(--ink-900); color: #fff;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.feat-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700; font-size: 1.15rem;
  color: var(--ink-900);
}
.feat-desc { color: var(--ink-500); font-size: .9rem; margin-top: .35rem; line-height: 1.55; }

/* ===== steps ===== */
.step { position: relative; padding-left: .25rem; }
.step-num {
  position: absolute; left: -2.2rem; top: -.1rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--ink-900); color: #fff;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700; font-size: 1rem;
  display: grid; place-items: center;
  border: 4px solid var(--bone-50);
}
@media (min-width: 640px) {
  .step-num { left: -2.7rem; }
}
.step-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em;
}
.step-desc { color: var(--ink-500); margin-top: .4rem; line-height: 1.6; }
.step-list { margin-top: .9rem; display: grid; gap: .35rem; font-size: .92rem; color: var(--ink-700); }
.step-list li { position: relative; padding-left: 1.4rem; }
.step-list li::before {
  content: ""; position: absolute; left: 0; top: .5rem;
  width: 14px; height: 8px;
  border-left: 2px solid var(--flame-500);
  border-bottom: 2px solid var(--flame-500);
  transform: rotate(-45deg);
}

/* ===== FAQ ===== */
.faq { padding: 1.1rem 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; font-size: 1.05rem;
  padding: .35rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem; line-height: 1; font-weight: 400;
  color: var(--flame-500);
  transition: transform .2s;
}
.faq[open] summary::after { content: "−"; }
.faq-body { padding-top: .6rem; color: var(--ink-500); line-height: 1.65; max-width: 70ch; }
.faq-body strong { color: var(--ink-900); font-weight: 600; }

/* ===== reviews ===== */
.review {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px -16px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s;
}
.review:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -22px rgba(0,0,0,.22); }

/* ===== zone cities ===== */
.dept {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .55rem .85rem;
  border-radius: 12px;
  background: #fff; border: 1px solid rgba(0,0,0,.08);
  font-weight: 600; font-size: .82rem;
  color: var(--ink-700);
  transition: all .2s ease;
  text-align: center;
}
.dept:hover { background: var(--ink-900); color: #fff; transform: translateY(-1px); }

/* ===== Leaflet customization ===== */
#zonesMap { z-index: 0; }
.leaflet-container { font-family: 'Inter', system-ui, sans-serif; background: #F5F5F5; }
.leaflet-popup-content-wrapper { border-radius: 14px; padding: 4px 6px; }
.leaflet-popup-content { margin: 8px 12px; font-size: .85rem; }
.leaflet-popup-content strong { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: .95rem; }
.np-marker {
  width: 18px; height: 18px;
  background: var(--ink-900); border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 4px 14px -4px rgba(0,0,0,.6);
  position: relative;
}
.np-marker.is-hq { width: 24px; height: 24px; background: var(--red-500); box-shadow: 0 0 0 6px rgba(200,16,46,.22), 0 6px 20px -4px rgba(200,16,46,.55); }
.np-marker.is-hq::after {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid var(--red-500); opacity: .55;
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(.8); opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ===== contact info ===== */
.info-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; border-radius: 18px;
  background: #fff; border: 1px solid rgba(0,0,0,.06);
  transition: border-color .2s, transform .2s;
}
.info-row[href]:hover { border-color: var(--flame-500); transform: translateY(-1px); }
.info-icon {
  width: 42px; height: 42px;
  background: var(--ink-900); color: #fff;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* ===== form ===== */
.form-step-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700; font-size: 1.15rem;
}
.form-step-help { color: var(--ink-500); font-size: .9rem; margin-top: .25rem; }
.form-label {
  display: block; font-size: .85rem; font-weight: 600; color: var(--ink-700);
  margin-bottom: .35rem;
}
.form-input {
  width: 100%;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: .75rem 1rem;
  background: #fff;
  font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.form-input:focus {
  outline: none;
  border-color: var(--red-500);
  box-shadow: 0 0 0 4px rgba(200,16,46,.18);
}
.form-input[type="textarea"], textarea.form-input { resize: vertical; }

.pill {
  position: relative;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: .65rem .8rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  font-size: .9rem; font-weight: 500;
  text-align: center;
  transition: all .15s ease;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:hover { border-color: rgba(0,0,0,.3); }
.pill:has(input:checked) {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: #fff;
}
.pill-urgent:has(input:checked) {
  background: var(--red-500);
  border-color: var(--red-500);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(200,16,46,.6);
}

.progress-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(0,0,0,.15);
}
.progress-dot.active { background: var(--flame-500); box-shadow: 0 0 0 4px rgba(0, 0, 0,.18); }
.progress-line {
  flex: 1; height: 2px; background: rgba(0,0,0,.1); border-radius: 2px;
}

/* ===== footer ===== */
.footer-title {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: .9rem;
}
.footer-list { display: grid; gap: .5rem; font-size: .92rem; color: rgba(255,255,255,.85); }
.footer-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-social {
  width: 38px; height: 38px;
  border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  transition: background .2s, border-color .2s;
}
.footer-social:hover { background: #fff; color: var(--ink-900); border-color: #fff; }

/* ===== animations ===== */
@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.radar-sweep {
  background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 0, 0,0.55) 30deg, transparent 90deg);
  animation: radarSweep 4s linear infinite;
}

@keyframes floaty1 {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes floaty2 {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.floaty-1 { animation: floaty1 5.5s ease-in-out infinite; }
.floaty-2 { animation: floaty2 5s ease-in-out 0.8s infinite; }

/* marquee */
.marquee { position: relative; }
.marquee-track {
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* utilities */
@media (max-width: 640px) {
  .section-title { line-height: 1.1; }

  /* Cartes services plus compactes en mobile */
  .service-card { padding: 1.2rem; min-height: 0; border-radius: 22px; }
  .card-img { width: 5.5rem; height: 5.5rem; }
  .card-title { font-size: 1.2rem; margin-top: .65rem; }
  .service-card.md\:col-span-4 .card-title,
  .service-card-feature .card-title { font-size: 1.6rem; line-height: 1.1; }
  .card-desc { font-size: .88rem; }
  .service-card-feature { padding: 1.4rem; }

  /* Boutons full-width par défaut en mobile */
  .btn-primary, .btn-ghost {
    padding: .75rem 1.1rem;
    font-size: .95rem;
  }
  .btn-primary.btn-lg, .btn-ghost.btn-lg {
    padding: .95rem 1.3rem;
    font-size: .98rem;
  }

  /* Steps : numéros plus petits & moins overflow */
  .step-num { width: 2rem; height: 2rem; font-size: .9rem; left: -1.95rem; border-width: 3px; }
  .step-title { font-size: 1.2rem; }
  .step-list { font-size: .88rem; }

  /* FAQ : plus compact */
  .faq summary { font-size: .98rem; gap: .8rem; }
  .faq summary::after { font-size: 1.3rem; }

  /* Form : pills plus lisibles */
  .pill { padding: .6rem .55rem; font-size: .82rem; min-height: 44px; }
  .form-step-title { font-size: 1.05rem; }

  /* Reviews : padding réduit */
  .review { padding: 1.25rem; border-radius: 18px; }

  /* Feature cards : taille adaptée */
  .feat-card { padding: 1.2rem; border-radius: 18px; }
  .feat-icon { width: 40px; height: 40px; margin-bottom: .7rem; }
  .feat-title { font-size: 1.05rem; }

  /* Info row + dept : compactes */
  .info-row { padding: .85rem; gap: .8rem; border-radius: 14px; }
  .info-icon { width: 38px; height: 38px; }
  .dept { padding: .5rem .65rem; font-size: .78rem; border-radius: 10px; }

  /* Marquee plus rapide en mobile pour ne pas paraitre figé */
  .marquee-track { animation-duration: 24s; gap: 2.25rem; }

  /* Bouton flottant call : décalé pour ne pas couper le contenu */
  .mobile-call-fab { box-shadow: 0 12px 30px -10px rgba(200,16,46,.55); }
}

/* Mobile uniquement : taille image du feature card réduite */
@media (max-width: 767px) {
  .service-card-feature .card-img-large { max-width: 150px; }
}

/* ===== Pages services : optimisations mobile spécifiques ===== */
@media (max-width: 640px) {
  /* Cartes "symptômes" (rounded-2xl bg-white border ... p-5) plus compactes */
  .prep-row {
    padding: .85rem 1rem;
    border-radius: 14px;
    font-size: .92rem;
  }
  .prep-row strong {
    width: 1.4rem;
    height: 1.4rem;
    font-size: .78rem;
    margin-right: .5rem;
  }
}
