*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;color:#0f172a;
  background:
    radial-gradient(900px 450px at -10% -5%, rgba(34,211,238,.12), transparent 45%),
    radial-gradient(900px 550px at 110% 10%, rgba(14,165,233,.14), transparent 55%),
    #ffffff;
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  font-size:clamp(15px,.95vw + .25rem,18px);line-height:1.7;overflow-x:hidden
}
img{max-width:100%;height:auto;display:block}
a{color:#0ea5e9;text-decoration:none}
a:hover{opacity:.9}

/* NAVBAR */
.navbar{
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #e2e8f0;
  transition:background .35s ease,border-color .35s ease;
}
.navbar .container{min-height:110px;transition:min-height .35s ease}
.navbar-brand{font-weight:800;display:flex;align-items:center;gap:.65rem;transition:font-size .35s ease,letter-spacing .35s ease}
.brand-enhanced{font-size:clamp(1.75rem,3.5vw,2.5rem);font-family:"Poppins",Inter,system-ui;letter-spacing:2px;background:linear-gradient(135deg,#0ea5e9 0%,#22d3ee 40%,#10b981 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 4px 12px rgba(14,165,233,.3);font-weight:900}
.brand-logo{
  width:92px;height:92px;
  border-radius:12px;object-fit:contain;background:none;
  transition:width .35s ease,height .35s ease,transform .35s ease;
}
.nav-link{color:#0f172a!important;transition:padding .35s ease,font-size .35s ease,opacity .35s ease}
.nav-link.active{color:#0ea5e9!important;font-weight:700}

/* Mode compact au scroll */
.navbar.nav-compact{
  background:transparent;
  border-bottom-color:transparent;
}
.navbar.nav-compact .container{min-height:56px}
.navbar.nav-compact .brand-logo{width:56px;height:56px}
.navbar.nav-compact .navbar-brand{letter-spacing:.1px}
.navbar.nav-compact .brand-enhanced{font-size:clamp(1.25rem,2.5vw,1.75rem);letter-spacing:1.5px}
.navbar.nav-compact .nav-link{font-size:.95rem;padding:.35rem .6rem}

/* HERO */
.wrap{padding-top:120px}
.hero{
  position:relative;overflow:hidden;min-height:94vh;display:grid;place-items:center;
  padding:clamp(96px,10vw,160px) 0 clamp(56px,8vw,110px);
  border-bottom:1px solid #e2e8f0;
  background:
    linear-gradient(180deg,rgba(2,8,23,.72),rgba(2,8,23,.58)),
    linear-gradient(0deg,rgba(2,8,23,.18),rgba(2,8,23,.18)),
    url('https://upload.wikimedia.org/wikipedia/commons/f/f5/High_quality_window_cleaning_-_geograph.org.uk_-_7313339.jpg') center/cover no-repeat;
  text-align:center
}
.hero h1{
  font-family:"Poppins",Inter,system-ui;font-size:clamp(2.4rem,5.8vw,4.1rem);font-weight:800;letter-spacing:.2px;margin:.35rem 0 .3rem;
  background:linear-gradient(90deg,#0ea5e9,#22d3ee,#10b981);-webkit-background-clip:text;background-clip:text;color:transparent;
  text-shadow:0 10px 30px rgba(14,165,233,.25)
}
.hero-sub{color:#fff;max-width:980px;margin:0 auto .9rem;text-shadow:0 3px 14px rgba(0,0,0,.6);font-weight:700;font-size:clamp(1.08rem,2.7vw,1.38rem)}
.service-chips{display:flex;flex-wrap:wrap;gap:.65rem;justify-content:center;margin-top:.45rem}
.service-chip{
  font:700 1rem/1 "Poppins",Inter,system-ui;color:#0f172a;background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.15);border-radius:999px;padding:.6rem 1.05rem;
  box-shadow:0 10px 22px rgba(14,165,233,.16),0 3px 10px rgba(2,8,23,.06);letter-spacing:.2px
}

/* Sections & titres */
section{padding:clamp(46px,5vw,80px) 0;scroll-margin-top:124px}
.section-title{font-family:"Poppins",Inter,system-ui;font-weight:800;display:flex;align-items:center;gap:.6rem;letter-spacing:.2px;color:#0b60a8}
.section-title .dash{width:52px;height:8px;border-radius:8px;background:linear-gradient(90deg,#0ea5e9,#22d3ee,#10b981);box-shadow:0 3px 12px rgba(14,165,233,.28)}
.muted{color:#475569}

/* Cartes */
.card-flex{
  position:relative;display:flex;flex-direction:column;justify-content:center;gap:.8rem;
  background:
    radial-gradient(600px 300px at -10% -10%, rgba(14,165,233,.06), transparent 50%),
    radial-gradient(600px 300px at 110% 0%, rgba(34,211,238,.06), transparent 50%),
    #ffffff;
  border:1px solid #e2e8f0;border-radius:18px;
  box-shadow:0 8px 18px rgba(14,165,233,.16),0 2px 8px rgba(2,8,23,.05);
  height:auto;
  padding:clamp(22px,2.6vw,30px);
  transition:transform .45s,box-shadow .45s,border-color .45s;overflow:hidden;text-align:center
}
.card-flex::before{content:"";position:absolute;inset:0 auto auto 0;height:6px;width:100%;background:linear-gradient(90deg,#0ea5e9,#22d3ee,#10b981);opacity:.9}
.card-flex:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(14,165,233,.20),0 3px 10px rgba(2,8,23,.06);border-color:rgba(14,165,233,.35)}
.card-flex h3{font-family:"Poppins",Inter,system-ui;font-weight:800;font-size:clamp(1.05rem,1.1vw + .6rem,1.45rem);letter-spacing:.2px;margin:.1rem 0 .2rem}
.card-flex p{margin:.25rem 0;color:#0f172acc}

/* Media (image + texte) */
.media{display:grid;gap:clamp(14px,2vw,24px);grid-template-columns:1fr;align-items:center}
.media-img{width:100%;aspect-ratio:16/10;object-fit:cover;border:1px solid #e2e8f0;border-radius:10px}
@media (min-width:992px){.media{grid-template-columns:1.1fr .9fr}.media.rev{grid-template-columns:.9fr 1.1fr}}
@media (max-width:991px){
  .media.rev .media-icon-wrapper{order:-1}
  .media.rev .card-flex{order:1}
}

/* Services — images alignées */
.img-top{width:100%;height:auto;object-fit:cover;border-radius:10px;margin-bottom:1rem;border:1px solid #e2e8f0}
.services-grid{display:flex;align-items:stretch}
.services-grid .card-flex{justify-content:flex-start;height:100%;display:flex;flex-direction:column}
.services-grid .card-flex>div{display:flex;flex-direction:column;flex:1}
.services-grid .service-icon-wrapper{flex-shrink:0}
.services-grid .card-flex h3{margin-top:0;margin-bottom:1rem}
.services-grid .chips{margin-bottom:1.5rem}
.services-grid .checks{margin-top:auto}
@media (min-width:1200px){
  .services-grid .img-top{height:240px}
}

/* listes simples avec coche (pas de badges) */
.checks{display:grid;gap:.4rem;justify-items:center;margin-top:.25rem}
.checkline{display:flex;align-items:center;gap:.45rem;font:600 .95rem/1.2 "Inter",system-ui;color:#0b60a8;text-align:left;width:100%}
.checkline i{color:#0ea5e9;font-size:1rem;flex-shrink:0}
.checkline span{flex:1}

/* Centrer les checks en mode téléphone et tablette */
@media (max-width:991px){
  .checks{justify-items:center}
  .checkline{justify-content:center;text-align:center;width:auto;max-width:fit-content}
  .checkline i{flex-shrink:0}
}

/* Centrer spécifiquement les checks de la carte Hygiène & Nuisibles en mode tablette */
@media (min-width:768px) and (max-width:991px){
  .services-grid .card-flex .checks{justify-items:center;margin-top:0.5rem}
  .services-grid .card-flex .checkline{justify-content:center;text-align:center;width:auto;max-width:fit-content}
}

/* Alignement parfait des éléments en version ordinateur */
@media (min-width:992px){
  .services-grid .card-flex{
    display:flex;
    flex-direction:column;
    height:100%;
  }
  
  .services-grid .card-flex > div{
    display:flex;
    flex-direction:column;
    height:100%;
  }
  
  .services-grid .service-icon-wrapper{
    height:160px;
    flex-shrink:0;
  }
  
  .services-grid .card-flex h3{
    margin-top:0;
    margin-bottom:1rem;
    min-height:3rem;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
  }
  
  .services-grid .chips{
    margin:0 0 1rem 0;
    flex-shrink:0;
    min-height:5rem;
    display:flex;
    flex-wrap:wrap;
    align-content:flex-start;
    gap:0.5rem;
  }
  
  .services-grid .checks{
    flex-grow:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    padding-top:0.5rem;
  }
}

/* Formulaire */
.form-label{font-weight:700;font-size:clamp(.95rem,1.3vw,1rem);line-height:1.25}
.form-control,.form-select{border-radius:.8rem}
#contactForm .btn{padding:.7rem 1.25rem;border-radius:999px;font-weight:800}

/* Drawer (menu burger) */
.nav-drawer{position:fixed;top:0;right:0;height:100vh;width:50vw;max-width:520px;transform:translateX(100%);transition:transform .45s cubic-bezier(.2,.7,.2,1);z-index:1040;background:#ffffff;border-left:1px solid #e2e8f0;box-shadow:-6px 0 24px rgba(2,8,23,.08)}
.nav-drawer.open{transform:translateX(0)}
.nav-drawer-inner{height:100%;display:flex;flex-direction:column}
.drawer-brand{display:flex;align-items:center;justify-content:center;gap:0;padding:18px 24px;border-bottom:0;background:transparent!important}
.drawer-brand .brand-logo{width:110px;height:110px;border-radius:14px;object-fit:contain;background:none!important;box-shadow:none!important}
.nav-drawer .menu{list-style:none;margin:0;padding:8px 0}
.nav-drawer .menu li+li{border-top:1px solid #e2e8f0}
.nav-drawer .menu a{display:block;padding:14px 24px;color:#0b60a8;text-decoration:none;font-weight:800;font-size:1.125rem}
.nav-drawer .menu a:hover{background:linear-gradient(90deg,rgba(14,165,233,.07),rgba(34,211,238,.07))}
.drawer-social{display:flex;justify-content:center;gap:14px;padding:16px 0}
.drawer-social a{width:40px;height:40px;border-radius:999px;display:grid;place-items:center;border:1px solid #e2e8f0;background:#fff;color:#0b60a8;font-size:1.1rem;box-shadow:0 4px 10px rgba(2,8,23,.06)}
.drawer-social .social-icon-disabled{width:40px;height:40px;border-radius:999px;display:grid;place-items:center;border:1px solid #d1d5db;background:#f9fafb;color:#9ca3af;font-size:1.1rem;box-shadow:0 2px 6px rgba(2,8,23,.04);cursor:default;pointer-events:none;opacity:0.6}
.drawer-copy{padding:0 24px 18px 24px;text-align:center;color:#475569;font-size:.9rem}
.drawer-backdrop{position:fixed;inset:0;z-index:1035;background:transparent;opacity:0;pointer-events:none;transition:opacity .3s ease}
.drawer-backdrop.show{opacity:1;pointer-events:auto}
@media (min-width:992px){#drawerToggle{display:none}.nav-drawer{display:none}.drawer-backdrop{display:none}}

/* Footer */
footer .social a{width:40px;height:40px;border-radius:999px;display:grid;place-items:center;border:1px solid #e2e8f0;background:#fff;color:#0b60a8;font-size:1.1rem;box-shadow:0 4px 10px rgba(2,8,23,.06)}
footer .social .social-icon-disabled{width:40px;height:40px;border-radius:999px;display:grid;place-items:center;border:1px solid #d1d5db;background:#f9fafb;color:#9ca3af;font-size:1.1rem;box-shadow:0 2px 6px rgba(2,8,23,.04);cursor:default;pointer-events:none;opacity:0.6}
.totop{position:fixed;right:18px;bottom:18px;z-index:50;width:46px;height:46px;display:grid;place-items:center;border-radius:999px;border:1px solid #e2e8f0;background:#fff;box-shadow:0 8px 18px rgba(14,165,233,.16),0 2px 8px rgba(2,8,23,.05);color:#0f172a;opacity:0;pointer-events:none;transition:all .35s ease}
.totop.show{opacity:1;pointer-events:auto}
.totop:hover{transform:translateY(-3px)}

/* Bouton Devis */
.quote-btn{position:fixed;right:74px;bottom:18px;z-index:50;width:auto;min-width:fit-content;height:46px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;border:1px solid #e2e8f0;background:linear-gradient(135deg,#0ea5e9,#22d3ee);box-shadow:0 8px 18px rgba(14,165,233,.28),0 2px 8px rgba(2,8,23,.08);color:#fff;font-size:.95rem;font-weight:700;padding:0 1.25rem;white-space:nowrap;opacity:0;pointer-events:none;transition:all .35s ease}
.quote-btn.show{opacity:1;pointer-events:auto}
.quote-btn:hover{transform:translateY(-3px) scale(1.05);box-shadow:0 12px 24px rgba(14,165,233,.35),0 3px 10px rgba(2,8,23,.1);background:linear-gradient(135deg,#22d3ee,#10b981)}
@media (max-width:991px){
  .quote-btn{height:44px;right:70px;bottom:16px;font-size:.9rem;padding:0 1.15rem}
  .totop{width:44px;height:44px;right:16px;bottom:16px}
}
@media (max-width:767px){
  .totop{width:42px;height:42px;right:14px;bottom:14px}
  .quote-btn{height:42px;right:64px;bottom:14px;font-size:.85rem;padding:0 1rem}
}
@media (max-width:480px){
  .totop{width:38px;height:38px;right:10px;bottom:10px;font-size:.9rem}
  .quote-btn{height:38px;right:56px;bottom:10px;font-size:.8rem;padding:0 .85rem}
}
@media (max-width:360px){
  .totop{width:36px;height:36px;right:8px;bottom:8px;font-size:.85rem}
  .quote-btn{height:36px;right:52px;bottom:8px;font-size:.75rem;padding:0 .7rem}
}

/* === ACTIONET: texte justifié & lisibilité === */
.section-texte p,
.section-texte li,
.section-texte .lead,
.section-texte .content,
.section-texte .richtext,
.section-texte .description,
.section-texte .texte {
  text-align: justify;
  text-justify: inter-word;
}

.section-texte p { line-height: 1.65; }

/* Optionnel : limiter la longueur des lignes pour un meilleur confort */
.section-texte { max-width: 1100px; margin-inline: auto; padding-inline: 1rem; }

/* Normalisation listes services */
.liste-services { list-style: none; margin: 0; padding: 0; }
.liste-services li { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .5rem; }
.liste-services .li-text { margin: 0; white-space: normal; }

/* ICÔNES MEDIA (sections) */
.media-icon-wrapper{width:100%;aspect-ratio:16/10;display:grid;place-items:center;border:1px solid #e2e8f0;border-radius:10px;background:linear-gradient(135deg,rgba(14,165,233,.08),rgba(34,211,238,.08))}
.media-icon-wrapper.large{aspect-ratio:16/9}
.media-icon{font-size:clamp(6rem,12vw,10rem);opacity:.85}

/* ICÔNES SERVICES */
.service-icon-wrapper{width:100%;height:160px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,rgba(14,165,233,.06),rgba(34,211,238,.06));margin-bottom:1rem;border:1px solid #e2e8f0}
.service-icon{font-size:clamp(4rem,8vw,5.5rem);opacity:.9}

/* CHIPS (badges) */
.chips{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin:.65rem 0}
.chip{display:inline-block;padding:.35rem .75rem;background:rgba(14,165,233,.12);border:1px solid rgba(14,165,233,.2);border-radius:999px;font-size:.85rem;font-weight:600;color:#0b60a8;letter-spacing:.2px}

/* RESPONSIVE AMÉLIORÉ */
@media (max-width:991px){
  .media{grid-template-columns:1fr!important}
  .media-icon-wrapper{aspect-ratio:21/9}
  .media-icon{font-size:clamp(4rem,10vw,6rem)}
  .service-icon-wrapper{height:140px}
  .service-icon{font-size:clamp(3rem,7vw,4rem)}
}
@media (max-width:767px){
  .hero h1{font-size:clamp(2rem,6vw,2.8rem)}
  .hero-sub{font-size:clamp(1rem,2.5vw,1.2rem)}
  .service-chips{gap:.5rem}
  .service-chip{font-size:.9rem;padding:.5rem .85rem}
  section{padding:clamp(32px,5vw,60px) 0}
  .section-title{font-size:clamp(1.35rem,4vw,1.75rem)}
  .card-flex{padding:clamp(18px,2.2vw,24px)}
}

/* Messages de statut du formulaire */
.form-status-message {
  min-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-status-message.show {
  opacity: 1;
  transform: translateY(0);
  min-height: auto;
}

.form-status-message .status-content {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-status-message .status-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Message d'information (envoi en cours) */
.form-status-message.status-info .status-content {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(34, 211, 238, 0.1));
  border: 2px solid rgba(14, 165, 233, 0.3);
  color: #0b60a8;
}

.form-status-message.status-info .status-icon {
  color: #0ea5e9;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Message de succès */
.form-status-message.status-success .status-content {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 211, 238, 0.1));
  border: 2px solid rgba(16, 185, 129, 0.4);
  color: #047857;
}

.form-status-message.status-success .status-icon {
  color: #10b981;
}

/* Message d'erreur */
.form-status-message.status-error .status-content {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
  border: 2px solid rgba(239, 68, 68, 0.4);
  color: #991b1b;
}

.form-status-message.status-error .status-icon {
  color: #ef4444;
}

/* Message d'avertissement */
.form-status-message.status-warning .status-content {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
  border: 2px solid rgba(245, 158, 11, 0.4);
  color: #92400e;
}

.form-status-message.status-warning .status-icon {
  color: #f59e0b;
}

@media (max-width: 767px) {
  .form-status-message .status-content {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .form-status-message .status-icon {
    font-size: 1.15rem;
  }
}