/* assets/css/style.css */

/* Bouton flottant mobile : ombre + arrondi (layout/effet) */
@media (max-width: 767.98px){
  .floating-phone{
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-radius: 999px;
  }
}

/* Largeur de lecture (n'affecte rien tant que non utilisée) */
.page-narrow{
  max-width: 1100px; /* au lieu de 920px */
}

/* Sections génériques */
.section-hero{
  padding: 4rem 0;
  background: radial-gradient(circle at top, rgba(68,82,95,0.18), #f8f9fa);
}

.section-hero h1 {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 700;
}

.section-hero p.lead{
  font-size: 1.05rem;
}

/* Cartes services */
.service-card{
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Titres de section */
.section-title{
  font-weight: 700;
  margin-bottom: .5rem;
}

/* HOME – HERO */
.home-hero{
  background:
    radial-gradient(900px 500px at 15% 35%, rgba(68,82,95,.18), transparent 60%),
    radial-gradient(700px 400px at 85% 30%, rgba(172,70,48,.12), transparent 55%),
    linear-gradient(#ffffff, #f7f8fa);
}

.home-hero h1{
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.home-hero .lead,
.home-hero p{
  color: rgba(31,41,55,.9);
}

/* Boutons home */
.home-hero .btn-call{
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color:#fff;
  font-weight:700;
}
.home-hero .btn-call:hover{
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color:#fff;
}

.home-hero .btn-quote{
  background: transparent;
  border: 1.5px solid rgba(172,70,48,.55);
  color: var(--color-secondary);
  font-weight:700;
}
.home-hero .btn-quote:hover{
  background: rgba(172,70,48,.10);
  border-color: var(--color-secondary);
  color: var(--color-secondary-dark);
}

/* Bloc "Demande de rappel" */
.callback-card{
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.callback-card .card-title{
  color: var(--color-primary);
  font-weight:800;
}
.callback-card label{
  color: rgba(68,82,95,.95);
  font-weight:600;
}

/* Bouton formulaire (rouge brique) */
.callback-card .btn-submit{
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color:#fff;
  font-weight:800;
}
.callback-card .btn-submit:hover{
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
}

/* Titres de section */
.section-title{
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-subtitle{
  color: rgba(68,82,95,.75);
}

/* Cards services */
.service-card{
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,.10);
}
.service-card h3{
  color: var(--color-primary);
  font-weight: 800;
}
.service-card a{
  color: var(--color-secondary);
  font-weight: 700;
}

/* Lien "En savoir plus" cartes services */
.service-link{
  font-weight:700;
  color: var(--color-secondary);
  text-decoration:none;
}

.service-link:hover{
  text-decoration: underline;
  text-underline-offset: .25rem;
}

/* Carte Leaflet : hauteur + arrondi + bordure */
.zone-map{
  height: 440px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  background: #f3f4f6;
}

@media (max-width: 767.98px){
  .zone-map{ height: 380px; }
}

/* Petits panneaux Leaflet custom */
.leaflet-control.h2o-badge,
.leaflet-control.h2o-legend{
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  font-family: var(--font-body, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
}

.h2o-badge .title{
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
}
.h2o-badge .sub{
  font-size: 0.82rem;
  color: rgba(0,0,0,0.60);
  margin-top: 2px;
}

.h2o-legend .row{
  display:flex;
  align-items:center;
  gap:8px;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.70);
  margin: 4px 0;
}
.h2o-legend .dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #e78103;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}
.h2o-legend .poly{
  width: 18px;
  height: 12px;
  border-radius: 6px;
  border: 2px solid #e78103;
  background: rgba(231,129,3,0.18);
}

#lightboxImg { transition: opacity .12s ease; }

.hero-section{
  position: relative;
  padding: 4rem 3rem;
  overflow: hidden;

  background-image: url('../../images/intervention-assainissement-var.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay sombre pour lecture */
.hero-section::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.65) 0%,     /* très lisible côté texte */
    rgba(0,0,0,0.50) 30%,
    rgba(0,0,0,0.30) 60%,
    rgba(0,0,0,0.15) 100%   /* presque transparent côté formulaire */
  );
}

/* On remet le contenu au-dessus */
.hero-section > *{
  position: relative;
  z-index: 1;
}

/* Texte en blanc pour contraste */
.hero-section h1,
.hero-section p,
.hero-section li{
  color: #fff;
}

.hero-section h1{
  text-shadow: 0 3px 18px rgba(0,0,0,0.5);
}
.hero-section .text-muted{
  color: rgba(255,255,255,0.75) !important;
}

/* Bouton Demander un devis */
.btn-cta-quote{
  background-color: var(--color-primary-dark);
  border: 2px solid var(--color-secondary);
  color: #fff;
  font-weight: 600;
  transition: all 0.25s ease;
}

/* Hover */
.btn-cta-quote:hover,
.btn-cta-quote:focus{
  background-color: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: #fff;
}

/* Désactiver image de fond sur mobile */
@media (max-width: 991.98px){
  .hero-section{
    background-image: none;
  }

  .hero-section::before{
    display: none;
  }
}

@media (max-width: 991.98px){
  .hero-section{
    background: #2F3A44; /* ou ta couleur principale */
  }
}

/* Réseaux sociaux footer */

.social-links{
  display:flex;
  gap:12px;
}

.social-link{
  width:40px;
  height:40px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.08);
  color:#fff;
  font-size:1.1rem;
  transition: all 0.25s ease;
}

.social-link:hover{
  background:#e78103;
  transform: translateY(-3px);
  box-shadow:0 8px 18px rgba(0,0,0,0.25);
}

/* reCAPTCHA v2 : rendu stable dans les formulaires sur mobile */
.recaptcha-wrap{
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
}

.recaptcha-wrap .g-recaptcha{
  flex: 0 0 auto;
  transform-origin: left top;
}

@media (max-width: 400px){
  .recaptcha-wrap{
    min-height: 72px;
  }

  .recaptcha-wrap .g-recaptcha{
    transform: scale(0.92);
  }
}
