/* V74 — finition mobile sûre sur base PC V64 */
@media (max-width:820px){
  html,body{background:#010916!important;color:#fff!important;overflow-x:hidden!important}
  body{background-image:linear-gradient(180deg,#010916 0%,#02162f 58%,#06173a 100%)!important;background-attachment:scroll!important}
  main,.page,.content,.section,.section.light,.light,.svc-section,.svc-light,.tp-section,.packsection,.packsection.white,
  .home-showcase-section,.home-detailed-services,.rdv-launch-section{background:linear-gradient(180deg,#010a18 0%,#02152e 100%)!important;color:#fff!important}

  /* V64 possède un header historique et un header PC : sur téléphone, seul le header V29/V31 généré reste visible. */
  html body.dm17-ready > .dm11-v48-desktop-header,
  html body.home-page.dm17-ready > .shell > header.header.dm11-v48-original-header,
  html body.dm17-ready > header:not(.dm17-mobile-header),
  html body.dm17-ready > .shell > header.header{display:none!important;visibility:hidden!important;height:0!important;overflow:hidden!important;pointer-events:none!important}
  html body .dm17-mobile-header{display:flex!important;visibility:visible!important;height:auto!important;pointer-events:auto!important}

  /* Pas de gros blocs blancs hérités des formulaires/pages récentes. */
  html body main fieldset,
  html body main .faq-search,
  html body main .faq-toolbar,
  html body main .faq-tools,
  html body main .faq-filters,
  html body main .filters,
  html body main .search-box,
  html body main .form-section,
  html body main .form-card,
  html body main .call-card,
  html body main .contact-cta,
  html body main [style*="background:#fff"],
  html body main [style*="background: #fff"],
  html body main [style*="background:white"],
  html body main [style*="background: white"],
  html body main [style*="background:#f5"],
  html body main [style*="background: #f5"],
  html body main [style*="background:#f8"],
  html body main [style*="background: #f8"]{
    background:linear-gradient(155deg,#08203f 0%,#07172f 68%,#140b35 100%)!important;
    color:#fff!important;border-color:rgba(76,236,255,.28)!important;box-shadow:none!important;
  }
  html body main fieldset legend,
  html body main fieldset label,
  html body main .faq-search label,
  html body main .faq-toolbar label{color:#fff!important;opacity:1!important}

  html body main input:not([type="checkbox"]):not([type="radio"]),
  html body main select,
  html body main textarea{
    background:#071d3c!important;color:#fff!important;border:1px solid rgba(76,236,255,.28)!important;box-shadow:none!important;
  }
  html body main input::placeholder,html body main textarea::placeholder{color:#b8cee4!important;opacity:1!important}
  html body main option{background:#071d3c!important;color:#fff!important}

  html body main h1,html body main h2,html body main h3,html body main h4,html body main strong,html body main label,html body main summary{color:#fff!important;opacity:1!important}
  html body main p,html body main li,html body main small,html body main .muted,html body main .subtitle,html body main .lead{color:#dce9f7!important;opacity:1!important}

  /* FAQ : cartes et barre de recherche sombres et lisibles. */
  html body.faq-page main .faq-search,
  html body.faq-page main .faq-item,
  html body main .faq-list details{
    background:linear-gradient(155deg,#08203f,#07172f 68%,#140b35)!important;color:#fff!important;border:1px solid rgba(76,236,255,.25)!important;
  }
  html body.faq-page main .faq-question,html body.faq-page main .faq-question *{color:#fff!important;opacity:1!important}

  /* Barre basse V29/V31 au-dessus du contenu, sans autre menu mobile concurrent. */
  html body .mobile-menu,html body .mobile-menu-btn,html body #mobileMenuBtn,html body .menu-toggle,
  html body .mobile-bottom,html body .mobile-bottom-nav,html body .dm11-mobile-nav,html body .dm12-mobile-nav,
  html body .dm13-mobile-nav,html body .dm14-mobile-nav,html body .header-quick-actions,html body .header-actions,
  html body .floating-actions,html body .float-actions{display:none!important;visibility:hidden!important;pointer-events:none!important}
  html body .dm17-mobile-nav{display:grid!important;visibility:visible!important;pointer-events:auto!important}
}
