/* ══════════════════════════════════════════════════════════════
   Water Leak Monitoring — refonte octobre 2026 (maquette client)
   Palette bleu + gris, sans jaune. Tout est piloté par les
   variables ci-dessous : changer une couleur ici la change partout.
   ══════════════════════════════════════════════════════════════ */
:root {
  --navy: #0A1F3D;      /* bleu nuit : fonds sombres, voile du hero */
  --blue-700: #0B4F9C;  /* bleu profond : titres */
  --blue: #0D6BD1;      /* bleu principal : boutons, liens, accents sur fond clair */
  --sky: #4AA8F0;       /* bleu ciel : accents sur fond sombre */
  --ice: #EEF4FB;       /* bleu glacier : fonds de cartes */
  --gray-700: #3E4A5B;  /* texte courant */
  --gray-500: #6B7787;  /* texte secondaire */
  --gray-200: #DCE2EA;  /* bordures */
  --gray-50: #F6F8FB;   /* fonds de sections */
  --white: #ffffff;
  --shadow: 0 6px 20px rgba(10, 31, 61, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Outfit', system-ui, sans-serif; font-size: 18px; line-height: 1.6; color: var(--gray-700); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Poppins', sans-serif; margin: 0; color: var(--blue-700); }
p { margin: 0; }
.wrap { width: min(1320px, 100% - 120px); margin: 0 auto; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ── Boutons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; padding: 13px 28px; border-radius: 60px; text-decoration: none; white-space: nowrap; background: var(--blue); color: #fff; border: 2px solid var(--blue); transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); background: #0B5DB6; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--lg { font-size: 18px; padding: 15px 34px; }
.btn--outline { background: transparent; color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }

/* ── En-tête flottant (même modèle que Water Leak Group / Expert) ── */
.site-header { position: fixed; top: 10px; left: 0; right: 0; z-index: 1000; pointer-events: none; }
.header-bar { pointer-events: auto; width: min(1400px, 100% - 48px); margin: 0 auto; height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 28px; border-radius: 18px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 22px 14px rgba(255,255,255,.6), 0 10px 30px rgba(10,31,61,.08); }
.logo { justify-self: start; line-height: 0; }
.logo img { height: 40px; width: auto; max-width: none; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a { display: inline-flex; align-items: center; gap: 4px; position: relative; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 500; color: var(--navy); text-decoration: none; padding: 10px 16px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links > li > a.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 2px; background: var(--blue); border-radius: 2px; }
.nav-links .chev { width: 14px; height: 14px; }
.dropdown-content { position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px; background: #fff; box-shadow: 0 18px 40px rgba(10,31,61,.14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s ease; }
.dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content { opacity: 1; visibility: visible; transform: none; }
.dropdown-content a { display: flex; padding: 10px 14px; font-size: 14px; white-space: nowrap; }
.dropdown-content a:hover, .dropdown-content a.active { background: var(--ice); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 20px; }
.btn-phone { padding: 10px 22px; font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 700; }
.lang-switcher { display: flex; align-items: center; gap: 8px; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; }
.lang-switcher a { text-decoration: none; color: var(--gray-500); }
.lang-switcher a.active { color: var(--blue); }
.lang-switcher .sep { color: var(--gray-200); }
.burger-btn { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; justify-self: end; }
.burger-btn span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .3s; }
.burger-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; position: fixed; top: 84px; left: 12px; right: 12px; z-index: 999; background: #fff; box-shadow: 0 18px 40px rgba(10,31,61,.14); max-height: calc(100vh - 100px); overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-menu .m-label { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 500; color: var(--navy); text-decoration: none; padding: 13px 22px; border-bottom: 1px solid #f0f2f7; }
.mobile-menu .m-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); padding-bottom: 4px; border: 0; }
.mobile-menu .m-sub { padding-left: 38px; font-weight: 400; font-size: 15px; }
.mobile-menu .m-row { padding: 14px 22px; }
.mobile-menu .m-row .btn-phone { width: 100%; }

/* ── Réseaux sociaux : barre fixe à gauche (bleu) ── */
.wl-social-fixed { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 900; display: flex; flex-direction: column; background: var(--blue); border-radius: 0 10px 10px 0; box-shadow: 0 6px 20px rgba(10,31,61,.2); overflow: hidden; }
.wl-social-fixed a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: #fff; transition: background .2s; }
.wl-social-fixed a + a { border-top: 1px solid rgba(255,255,255,.2); }
.wl-social-fixed a:hover, .wl-social-fixed a:focus-visible { background: var(--navy); }
.wl-social-fixed svg { width: 20px; height: 20px; }

/* ── Titres de section : bleu profond + accent bleu ── */
.section-title { font-size: clamp(28px, 2.7vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--blue-700); }
.section-title span { color: var(--blue); }

/* ── Hero accueil ── */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; padding: 130px 0 70px; color: #fff; background: var(--navy) url('../img/m/hero-accueil.jpg') center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,31,61,.94) 0%, rgba(10,31,61,.72) 45%, rgba(10,31,61,.25) 100%); }
.hero .wrap > * { min-width: 0; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.2vw, 62px); font-weight: 800; line-height: 1.08; color: #fff; letter-spacing: -.01em; }
.hero h1 span { display: block; color: var(--sky); }
.hero-lead { margin: 22px 0 32px; max-width: 640px; font-size: 20px; color: rgba(255,255,255,.92); }
.hero-box { list-style: none; margin: 0; padding: 26px 30px; display: flex; flex-direction: column; gap: 14px; background: rgba(10,31,61,.55); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 12px; font-size: 18px; }
.hero-box li { display: flex; align-items: center; gap: 12px; color: #fff; }
.tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--sky); display: inline-flex; align-items: center; justify-content: center; }
.tick svg { width: 14px; height: 14px; color: #fff; }

/* ── Sections ── */
.section { padding: 64px 0; }
.section--tint { background: var(--gray-50); }
.section-head { margin-bottom: 28px; max-width: 760px; }
.section-head p { margin-top: 10px; color: var(--gray-500); font-size: 18px; }

/* Nos 5 solutions */
.solutions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.sol-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--ice); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.sol-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,31,61,.12); }
.sol-card .ph { aspect-ratio: 4 / 3; overflow: hidden; }
.sol-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.sol-card .tx { padding: 16px 18px 20px; }
.sol-card h3 { font-size: 18px; font-weight: 700; color: var(--blue); }
.sol-card p { margin-top: 4px; font-size: 15px; color: var(--gray-500); line-height: 1.45; }

/* Une plateforme unique */
.platform { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.platform-visual { background: var(--ice); padding: 24px; box-shadow: var(--shadow); }
.check-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 18px; color: var(--gray-700); }
.check-list .tick { margin-top: 2px; width: 22px; height: 22px; background: var(--blue); }
.check-list .tick svg { width: 13px; height: 13px; }
.platform .btn { margin-top: 28px; }

/* ── Pages solution ── */
.hero--page { min-height: 520px; }
.hero--page h1 { font-size: clamp(36px, 4vw, 58px); }
.hero-sub { margin: 14px 0 30px; max-width: 640px; font-family: 'Poppins', sans-serif; font-size: clamp(20px, 1.9vw, 28px); font-weight: 600; line-height: 1.3; color: var(--sky); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.feature-card { display: flex; flex-direction: column; background: var(--ice); box-shadow: var(--shadow); }
.feature-card .ph { aspect-ratio: 16 / 9; overflow: hidden; background: #fff; }
.feature-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.feature-card .fc-body { padding: 26px 28px 30px; }
.feature-card h2 { font-size: clamp(22px, 1.9vw, 28px); font-weight: 800; color: var(--blue-700); }
.feature-card .check-list { margin-top: 14px; gap: 10px; }

/* ── Footer commun Water Leak ── */
footer.wl-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 40px; padding: 18px 32px; background: #fff; border-top: 1px solid #ececec; font-family: 'Poppins', sans-serif; color: #1a1a1a; }
footer.wl-footer .wlf-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
footer.wl-footer .wlf-logo img { height: 48px; width: auto; max-width: 100%; }
footer.wl-footer .wlf-addr { font-style: normal; font-size: 13px; line-height: 1.35; font-weight: 300; color: #333; margin-top: 4px; }
footer.wl-footer .wlf-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
footer.wl-footer .wlf-links { display: flex; justify-content: center; gap: 0 34px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
footer.wl-footer .wlf-links a { font-size: 17px; font-weight: 600; color: #1a1a1a; text-decoration: none; }
footer.wl-footer .wlf-links a:hover { color: var(--blue); }
footer.wl-footer .wlf-legal-mini { font-size: 11px; font-weight: 300; color: #8a8b99; letter-spacing: .02em; text-align: center; }
footer.wl-footer .wlf-legal-mini strong { font-weight: 500; color: #6b6c7b; }
footer.wl-footer .wlf-legal-mini .sep { margin: 0 8px; color: #c4c4cc; }
footer.wl-footer .wlf-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
footer.wl-footer .wlf-email { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 14px; font-weight: 300; color: #1a1a1a; }
footer.wl-footer .wlf-email svg { width: 16px; height: 16px; }

/* ── Responsive ── */
@media (max-width: 1280px) {
  .solutions { grid-template-columns: repeat(3, 1fr); }
  .nav-links a { padding: 10px 11px; }
}
@media (max-width: 1100px) {
  .header-bar { grid-template-columns: auto 1fr auto; column-gap: 14px; height: 64px; padding: 0 16px; }
  .logo img { height: 30px; max-width: 52vw; object-fit: contain; }
  .site-header nav { display: none; }
  .nav-right { display: contents; }
  .nav-right .btn-phone { display: none; }
  .nav-right .lang-switcher { justify-self: start; font-size: 15px; }
  .burger-btn { display: flex; }
  .hero .wrap { grid-template-columns: 1fr; }
  .platform, .features { grid-template-columns: 1fr; gap: 28px; }
  .other-sol .solutions { grid-template-columns: repeat(2, 1fr); }
  footer.wl-footer { grid-template-columns: 1fr; justify-items: center; row-gap: 20px; padding: 28px 20px; }
  footer.wl-footer .wlf-contact { align-items: center; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .header-bar { width: calc(100% - 24px); }
  .hero { min-height: 0; padding: 110px 0 56px; }
  .hero-lead { font-size: 17px; }
  .solutions, .other-sol .solutions { grid-template-columns: 1fr 1fr; gap: 12px; }
  .section { padding: 48px 0; }
  .wl-social-fixed a { width: 36px; height: 36px; }
  .wl-social-fixed svg { width: 17px; height: 17px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 30px; }
  .sol-card .tx { padding: 12px 12px 14px; }
  .sol-card h3 { font-size: 15px; }
  .sol-card p { font-size: 13px; }
}
@media print { .wl-social-fixed, .site-header { display: none; } }
