/**
 * BeMyNet — surcouche landing (Metronic 8 / data-bs-theme)
 * Variables sémantiques par thème ; préférer var(--bs-*) quand pertinent.
 */
:root {
  --bmn-radius-lg: 24px;
  --bmn-container: 1180px;
}

/* Dark : surfaces type SaaS premium (alignées sur besoin contraste) */
html[data-bs-theme="dark"] body#body.bmn-landing {
  --bmn-hero-subtle: rgba(248, 250, 252, 0.72);
  --bmn-trust-bg: rgba(17, 24, 39, 0.55);
  --bmn-chart-fill: rgba(37, 99, 235, 0.12);
  --bmn-plan-glow: rgba(37, 99, 235, 0.18);
  --bmn-mock-chart-line: rgba(37, 99, 235, 0.6);
}

html[data-bs-theme="light"] body#body.bmn-landing {
  --bmn-hero-subtle: var(--bs-gray-600);
  --bmn-trust-bg: var(--bs-gray-100);
  --bmn-chart-fill: rgba(37, 99, 235, 0.08);
  --bmn-plan-glow: rgba(37, 99, 235, 0.12);
  --bmn-mock-chart-line: rgba(37, 99, 235, 0.45);
}

html[data-bs-theme="dark"] body#body.bmn-landing {
  background-color: var(--bs-gray-900) !important;
  color: var(--bs-gray-100);
  font-size: 17px;
}

html[data-bs-theme="light"] body#body.bmn-landing {
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color);
  font-size: 17px;
}

body#body.bmn-landing .container {
  max-width: var(--bmn-container);
}

/* Header mobile : logo centré (comme le titre), burger à gauche */
@media (max-width: 991.98px) {
  body#body.bmn-landing .landing-header .bmn-header-bar > .d-flex.d-lg-none {
    position: relative;
    justify-content: center;
  }
  body#body.bmn-landing .landing-header #kt_landing_menu_toggle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
  }
}

/* Header desktop : logo + menu + boutons centrés (aligné sur le hero text-center) */
@media (min-width: 992px) {
  body#body.bmn-landing .landing-header .bmn-header-bar {
    min-height: 70px;
  }
  body#body.bmn-landing .landing-header .bmn-header-desktop {
    column-gap: 2rem;
    row-gap: 0.75rem;
  }
  body#body.bmn-landing .landing-header #kt_header_nav_wrapper {
    flex: 0 1 auto;
  }
  body#body.bmn-landing .landing-header .bmn-header-toolbar {
    flex-shrink: 0;
  }
}

/* Logos header : le bundle Metronic fixe `.landing-header` à 100px (70px < lg ; 70px en sticky).
   Les utilitaires `h-150px` / `h-lg-180px` débordent — on borne avec max-height + object-fit. */
body#body.bmn-landing .landing-header a img.logo-default,
body#body.bmn-landing .landing-header a img.logo-sticky {
  width: auto;
  object-fit: contain;
}
body#body.bmn-landing .landing-header a img.logo-default {
  height: auto !important;
  max-height: 58px;
}
@media (min-width: 992px) {
  body#body.bmn-landing .landing-header a img.logo-default {
    max-height: 108px;
  }
}
body#body.bmn-landing .landing-header a img.logo-sticky {
  height: auto !important;
  max-height: 52px;
}
@media (min-width: 992px) {
  body#body.bmn-landing .landing-header a img.logo-sticky {
    max-height: 72px;
  }
}

/* Header landing : transparent sur le hero ; verre léger au scroll (override bundle Metronic) */
html[data-bs-theme="dark"]
  body#body.bmn-landing:not([data-kt-sticky-landing-header="on"])
  .landing-header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
}
html[data-bs-theme="dark"]
  body#body.bmn-landing[data-kt-sticky-landing-header="on"]
  .landing-header {
  background: rgba(17, 24, 39, 0.62) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-bs-theme="dark"]
  body#body.bmn-landing[data-kt-sticky-landing-header="on"]
  .landing-header
  .menu
  .menu-link.active {
  color: var(--bs-primary) !important;
  background-color: rgba(var(--bs-primary-rgb), 0.18) !important;
}

html[data-bs-theme="light"]
  body#body.bmn-landing:not([data-kt-sticky-landing-header="on"])
  .landing-header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
}
html[data-bs-theme="light"]
  body#body.bmn-landing[data-kt-sticky-landing-header="on"]
  .landing-header {
  background: rgba(255, 255, 255, 0.52) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(19, 38, 60, 0.07) !important;
  box-shadow: 0 8px 28px rgba(19, 38, 60, 0.06) !important;
}

body#body.bmn-landing .bmn-hero-title {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Hero : fond .landing-dark-bg (#13263C) — texte clair quel que soit le thème site */
body#body.bmn-landing #home .landing-dark-bg .bmn-hero-sub {
  color: rgba(248, 250, 252, 0.88) !important;
}

/* CTA secondaire hero : contour blanc lisible (évite variables btn-outline cassées en light) */
body#body.bmn-landing #home .landing-dark-bg .btn.btn-outline.btn-outline-white,
body#body.bmn-landing #home .landing-dark-bg .btn-outline-white {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  background-color: transparent !important;
}
body#body.bmn-landing
  #home
  .landing-dark-bg
  .btn.btn-outline.btn-outline-white:hover,
body#body.bmn-landing #home .landing-dark-bg .btn-outline-white:hover {
  color: #13263c !important;
  background-color: #fff !important;
  border-color: #fff !important;
}
body#body.bmn-landing
  #home
  .landing-dark-bg
  .btn.btn-outline.btn-outline-white:focus-visible,
body#body.bmn-landing #home .landing-dark-bg .btn-outline-white:focus-visible {
  color: #13263c !important;
  background-color: #fff !important;
  border-color: #fff !important;
}

/* Connexion (btn-light) sur hero bleu : évite texte gris illisible avant sticky */
body#body.bmn-landing:not([data-kt-sticky-landing-header="on"])
  #home
  .landing-dark-bg
  .landing-header
  .btn.btn-light {
  background-color: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
}
body#body.bmn-landing:not([data-kt-sticky-landing-header="on"])
  #home
  .landing-dark-bg
  .landing-header
  .btn.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.26) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
}

/* Menu mobile : blanc sur hero bleu ; contrasté quand header sticky (body[data-kt-sticky-landing-header=on]) */
html[data-bs-theme="light"]
  body#body.bmn-landing:not([data-kt-sticky-landing-header="on"])
  #home
  .landing-dark-bg
  #kt_landing_menu_toggle,
html[data-bs-theme="light"]
  body#body.bmn-landing:not([data-kt-sticky-landing-header="on"])
  #home
  .landing-dark-bg
  #kt_landing_menu_toggle
  .ki-duotone {
  color: #fff !important;
}
html[data-bs-theme="light"]
  body#body.bmn-landing[data-kt-sticky-landing-header="on"]
  #kt_landing_menu_toggle,
html[data-bs-theme="light"]
  body#body.bmn-landing[data-kt-sticky-landing-header="on"]
  #kt_landing_menu_toggle
  .ki-duotone {
  color: var(--bs-gray-800) !important;
}
html[data-bs-theme="dark"] body#body.bmn-landing #kt_landing_menu_toggle,
html[data-bs-theme="dark"]
  body#body.bmn-landing
  #kt_landing_menu_toggle
  .ki-duotone {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Nav : texte clair sur hero avant sticky ; couleurs standard après sticky (fond header clair) */
html[data-bs-theme="light"]
  body#body.bmn-landing:not([data-kt-sticky-landing-header="on"])
  #home
  .landing-dark-bg
  .landing-header
  .menu-link,
html[data-bs-theme="light"]
  body#body.bmn-landing:not([data-kt-sticky-landing-header="on"])
  #home
  .landing-dark-bg
  .landing-header
  .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
}
html[data-bs-theme="light"]
  body#body.bmn-landing:not([data-kt-sticky-landing-header="on"])
  #home
  .landing-dark-bg
  .landing-header
  .menu-link:hover,
html[data-bs-theme="light"]
  body#body.bmn-landing:not([data-kt-sticky-landing-header="on"])
  #home
  .landing-dark-bg
  .landing-header
  .nav-link:hover,
html[data-bs-theme="light"]
  body#body.bmn-landing:not([data-kt-sticky-landing-header="on"])
  #home
  .landing-dark-bg
  .landing-header
  .menu-link.active,
html[data-bs-theme="light"]
  body#body.bmn-landing:not([data-kt-sticky-landing-header="on"])
  #home
  .landing-dark-bg
  .landing-header
  .nav-link.active {
  color: #fff !important;
}
html[data-bs-theme="light"]
  body#body.bmn-landing[data-kt-sticky-landing-header="on"]
  .landing-header
  .menu-link,
html[data-bs-theme="light"]
  body#body.bmn-landing[data-kt-sticky-landing-header="on"]
  .landing-header
  .nav-link {
  color: var(--bs-gray-800) !important;
}
html[data-bs-theme="light"]
  body#body.bmn-landing[data-kt-sticky-landing-header="on"]
  .landing-header
  .menu-link:hover,
html[data-bs-theme="light"]
  body#body.bmn-landing[data-kt-sticky-landing-header="on"]
  .landing-header
  .nav-link:hover,
html[data-bs-theme="light"]
  body#body.bmn-landing[data-kt-sticky-landing-header="on"]
  .landing-header
  .menu-link.active,
html[data-bs-theme="light"]
  body#body.bmn-landing[data-kt-sticky-landing-header="on"]
  .landing-header
  .nav-link.active {
  color: var(--bs-primary) !important;
}

/* Mode sombre site : nav header lisible sur fond sombre */
html[data-bs-theme="dark"] body#body.bmn-landing .landing-header .menu-link,
html[data-bs-theme="dark"] body#body.bmn-landing .landing-header .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
}
html[data-bs-theme="dark"]
  body#body.bmn-landing
  .landing-header
  .menu-link:hover,
html[data-bs-theme="dark"]
  body#body.bmn-landing
  .landing-header
  .nav-link:hover,
html[data-bs-theme="dark"]
  body#body.bmn-landing
  .landing-header
  .menu-link.active,
html[data-bs-theme="dark"]
  body#body.bmn-landing
  .landing-header
  .nav-link.active {
  color: #fff !important;
}

/* Bandes Bootstrap bg-light : en dark, éviter les grands aplats quasi blancs */
html[data-bs-theme="dark"] body#body.bmn-landing .bg-light {
  background-color: var(--bs-gray-800) !important;
  color: var(--bs-gray-200);
}

/* Cartes pricing / simulateur : bordures visibles en dark sur fond bleu */
html[data-bs-theme="dark"]
  body#body.bmn-landing
  .landing-dark-bg
  .border-gray-200 {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body#body.bmn-landing .bmn-trust-pill {
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
}

html[data-bs-theme="dark"] body#body.bmn-landing .bmn-trust-pill {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bmn-trust-bg);
  color: var(--bs-gray-400);
}

html[data-bs-theme="light"] body#body.bmn-landing .bmn-trust-pill {
  border: 1px solid var(--bs-border-color);
  background: var(--bmn-trust-bg);
  color: var(--bs-gray-700);
}

html[data-bs-theme="dark"] body#body.bmn-landing .bmn-card-premium {
  background: var(--bs-gray-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--bmn-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

html[data-bs-theme="light"] body#body.bmn-landing .bmn-card-premium {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bmn-radius-lg);
  box-shadow: var(--bs-box-shadow-sm);
}

html[data-bs-theme="dark"] body#body.bmn-landing .bmn-plan-target {
  border: 2px solid var(--bs-primary) !important;
  box-shadow:
    0 0 0 1px var(--bmn-plan-glow),
    0 20px 50px rgba(0, 0, 0, 0.25);
  transform: scale(1.02);
  z-index: 1;
}

html[data-bs-theme="light"] body#body.bmn-landing .bmn-plan-target {
  border: 2px solid var(--bs-primary) !important;
  box-shadow:
    0 0 0 1px var(--bmn-plan-glow),
    0 12px 40px rgba(37, 99, 235, 0.12);
  transform: scale(1.02);
  z-index: 1;
}

@media (max-width: 991.98px) {
  body#body.bmn-landing .bmn-plan-target {
    transform: none;
  }
}

html[data-bs-theme="dark"] body#body.bmn-landing .bmn-mock-sidebar {
  width: 200px;
  min-width: 200px;
  background: var(--bs-gray-800);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--bmn-radius-lg) 0 0 var(--bmn-radius-lg);
}

html[data-bs-theme="light"] body#body.bmn-landing .bmn-mock-sidebar {
  width: 200px;
  min-width: 200px;
  background: var(--bs-gray-100);
  border-right: 1px solid var(--bs-border-color);
  border-radius: var(--bmn-radius-lg) 0 0 var(--bmn-radius-lg);
}

html[data-bs-theme="dark"] body#body.bmn-landing .bmn-mock-nav-link {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bs-gray-500);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 2px;
}

html[data-bs-theme="light"] body#body.bmn-landing .bmn-mock-nav-link {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bs-gray-600);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 2px;
}

html[data-bs-theme="dark"] body#body.bmn-landing .bmn-mock-nav-link.active {
  color: var(--bs-gray-100);
  background: rgba(var(--bs-primary-rgb), 0.2);
}

html[data-bs-theme="light"] body#body.bmn-landing .bmn-mock-nav-link.active {
  color: var(--bs-gray-900);
  background: rgba(var(--bs-primary-rgb), 0.12);
}

html[data-bs-theme="dark"] body#body.bmn-landing .bmn-kpi {
  background: var(--bs-gray-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

html[data-bs-theme="light"] body#body.bmn-landing .bmn-kpi {
  background: var(--bs-gray-100);
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

html[data-bs-theme="dark"] body#body.bmn-landing .bmn-soft-chart {
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    var(--bmn-chart-fill) 0%,
    transparent 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

html[data-bs-theme="light"] body#body.bmn-landing .bmn-soft-chart {
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    var(--bmn-chart-fill) 0%,
    transparent 100%
  );
  border: 1px solid var(--bs-border-color);
  position: relative;
  overflow: hidden;
}

body#body.bmn-landing .bmn-soft-chart::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath d='M0,65 Q80,20 160,45 T320,30 L400,15 L400,80 L0,80 Z' fill='rgba(37,99,235,0.22)'/%3E%3Cpath d='M0,70 Q100,35 200,50 T400,25' stroke='rgba(37,99,235,0.55)' fill='none' stroke-width='2'/%3E%3C/svg%3E")
    center bottom no-repeat;
  background-size: 100% 100%;
  opacity: 0.95;
}

body#body.bmn-landing .btn {
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

body#body.bmn-landing .btn:active {
  transform: scale(0.98);
}

body#body.bmn-landing .bmn-section-pad {
  padding-top: clamp(3.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 7.5rem);
}

body#body.bmn-landing a:focus-visible,
body#body.bmn-landing button:focus-visible,
body#body.bmn-landing .btn:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* Largeurs de prose / cartes (évite les style="max-width" inline) */
body#body.bmn-landing .bmn-prose-w {
  max-width: 720px;
}
body#body.bmn-landing .bmn-prose-w-lg {
  max-width: 820px;
}
body#body.bmn-landing .bmn-prose-w-xl {
  max-width: 860px;
}
body#body.bmn-landing .bmn-prose-w-md {
  max-width: 760px;
}
body#body.bmn-landing .bmn-prose-w-sm {
  max-width: 640px;
}
body#body.bmn-landing .bmn-mock-w {
  max-width: 1100px;
}
body#body.bmn-landing .bmn-rounded-card {
  border-radius: 20px;
}
body#body.bmn-landing .bmn-rounded-card-lg {
  border-radius: 22px;
}

/* Section démo : fond et sous-blocs bg-light lisibles en dark */
html[data-bs-theme="dark"] body#body.bmn-landing .bmn-demo-section {
  background-color: var(--bs-gray-800) !important;
}
html[data-bs-theme="dark"] body#body.bmn-landing .bmn-demo-section .bg-light {
  background-color: var(--bs-gray-700) !important;
  color: var(--bs-gray-100);
}
html[data-bs-theme="dark"]
  body#body.bmn-landing
  .bmn-demo-section
  .border-gray-200 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* FAQ → CTA : espacement simple (le CTA est dans le flux, plus d’overlay footer) */
body#body.bmn-landing .bmn-faq-before-footer {
  padding-bottom: 2.5rem !important;
}

/* CTA actions : limite de largeur sur desktop, pleine largeur sur mobile */
body#body.bmn-landing .bmn-footer-cta-actions {
  max-width: 280px;
}
@media (max-width: 767.98px) {
  body#body.bmn-landing .bmn-footer-cta-actions {
    max-width: none;
  }
}

/* Ligne conformité discrète sous le hero (fond sombre) */
body#body.bmn-landing #home .bmn-compliance-micro {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(248, 250, 252, 0.72);
  line-height: 1.5;
}
body#body.bmn-landing #home .bmn-compliance-kicker {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(248, 250, 252, 0.95);
  background: rgba(255, 255, 255, 0.12);
  vertical-align: middle;
}
body#body.bmn-landing #home .bmn-compliance-dot {
  display: inline-block;
  margin: 0 0.5rem;
  opacity: 0.45;
  font-weight: 400;
}

/* Bandeau 3 colonnes conformité (#securite) */
body#body.bmn-landing .bmn-compliance-strip-cell {
  border-bottom: 1px solid var(--bs-gray-300);
}
@media (min-width: 992px) {
  body#body.bmn-landing .bmn-compliance-strip-cell {
    border-bottom: none;
    border-right: 1px solid var(--bs-gray-300);
  }
  body#body.bmn-landing .bmn-compliance-strip-cell:last-child {
    border-right: none;
  }
}
html[data-bs-theme="dark"] body#body.bmn-landing .bmn-compliance-strip-cell {
  border-color: rgba(255, 255, 255, 0.12) !important;
}
