/* =========================================================
   VOLTA POWER — feuille de style commune à toutes les pages
   ========================================================= */

:root {
  --navy: #12304f;
  --navy-2: #1e3a5f;
  --navy-dark: #0b2238;
  --ink: #1b2733;
  --muted: #5b6876;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --elec: #f2a900;        /* accent électricité */
  --elec-soft: #fff6dd;
  --eau: #0a8fd0;         /* accent eau potable */
  --eau-soft: #e6f4fb;
  --whatsapp: #25d366;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(18, 48, 79, .08);
  --shadow-hover: 0 14px 34px rgba(18, 48, 79, .16);
  --header-h: 76px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-top: var(--header-h);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Barlow", "Inter", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Évite que l'en-tête fixe ne cache le haut d'une section atteinte par un lien (#ancre) */
[id], .chips, .product-group { scroll-margin-top: calc(var(--header-h) + 20px); }

.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2 { font-size: 34px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--eau);
  margin-bottom: 10px;
}
.eyebrow.elec { color: #b97f00; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-elec { background: var(--elec); color: var(--navy-dark); }
.btn-eau { background: var(--eau); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- En-tête ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  z-index: 1000;
}
.header-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a,
.nav .dropdown-toggle {
  padding: 10px 12px;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.nav > a,
.nav .dropdown-toggle,
.btn { white-space: nowrap; }
.nav > a:hover,
.nav .dropdown-toggle:hover { background: var(--bg-soft); }
.nav a.active,
.nav .dropdown-toggle.active { color: var(--eau); }

.dropdown { position: relative; }
.dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  transform: translateY(3px);
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
  padding: 8px;
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}
.dropdown-menu a:hover { background: var(--bg-soft); }
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu { display: block; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 9px 16px; font-size: 14px; }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}
.menu-btn svg { width: 30px; height: 30px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: #fff;
  padding: 130px 0 120px;
  background:
    linear-gradient(100deg, rgba(11,34,56,.88) 0%, rgba(11,34,56,.55) 60%, rgba(11,34,56,.35) 100%),
    url("images/hero-photo.jpg") center 45% / cover no-repeat;
}
.hero h1 { color: #fff; font-size: 48px; max-width: 760px; }
.hero p.lead { font-size: 20px; max-width: 680px; color: rgba(255,255,255,.9); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 30px;
  background: rgba(255,255,255,.1);
  font-size: 14px;
  font-weight: 600;
}
.badge svg { width: 16px; height: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bandeau de page intérieure */
.page-hero {
  color: #fff;
  padding: 70px 0 60px;
  background: linear-gradient(110deg, var(--navy-dark), var(--navy-2));
}
.page-hero.eau {
  background:
    linear-gradient(110deg, rgba(6,40,66,.92), rgba(10,143,208,.70)),
    url("images/EAU/eau-hero.jpg") center / cover no-repeat;
}
.page-hero.elec {
  background:
    linear-gradient(110deg, rgba(11,34,56,.94), rgba(30,58,95,.80)),
    url("images/hero-photo.jpg") center 45% / cover no-repeat;
}
.page-hero h1 { color: #fff; font-size: 40px; }
.page-hero p { max-width: 720px; color: rgba(255,255,255,.88); font-size: 18px; margin: 0; }
.breadcrumb { font-size: 14px; margin-bottom: 14px; color: rgba(255,255,255,.75); }
.breadcrumb a { color: rgba(255,255,255,.9); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Cartes « pôles » (accueil) ---------- */

.poles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.pole {
  border-radius: var(--radius);
  padding: 36px;
  background: #fff;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--elec);
  display: flex;
  flex-direction: column;
}
.pole.eau { border-top-color: var(--eau); }
.pole-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--elec-soft);
  color: #b97f00;
  margin-bottom: 18px;
}
.pole.eau .pole-icon { background: var(--eau-soft); color: var(--eau); }
.pole-icon svg { width: 30px; height: 30px; }
.pole h3 { font-size: 26px; }
.pole p { color: var(--muted); }
.pole ul { list-style: none; padding: 0; margin: 0 0 26px; }
.pole li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.pole li a { text-decoration: none; font-weight: 600; display: flex; justify-content: space-between; }
.pole li a:hover { color: var(--eau); }
.pole .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Grilles de cartes ---------- */

.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.cards-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--bg-soft); }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 20px; }
.card-body p { color: var(--muted); font-size: 15px; }
.card-link { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--navy); }
.card-link::after { content: " →"; }
.card a.card-cover { color: inherit; text-decoration: none; display: contents; }

.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--navy);
  margin-bottom: 14px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

.quality-line {
  max-width: 860px;
  margin: 0 auto 40px;
  padding: 14px 22px;
  border-radius: 40px;
  background: #fff;
  text-align: center;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow);
}

/* ---------- Catalogue produits ---------- */

.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }

.filters {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px;
}
.filters h3 { font-size: 16px; margin-bottom: 12px; }
.filter-group + .filter-group { margin-top: 22px; }
.filter-group label {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; cursor: pointer; font-size: 15px;
}
.filter-group input { width: 17px; height: 17px; accent-color: var(--navy); }
.filters .btn { width: 100%; justify-content: center; margin-top: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.chip {
  padding: 9px 18px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.eau-page .chip.active { background: var(--eau); border-color: var(--eau); }

.product-group { margin-bottom: 56px; }
.product-group > h2 {
  font-size: 24px;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--line);
}
.product-group > p.group-intro { color: var(--muted); margin-top: -12px; margin-bottom: 24px; }

.products { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.product:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product[hidden] { display: none; }

.product-media {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 8px;
}
.product-media img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  cursor: zoom-in;
  flex: 1 1 0;
  min-width: 0;
}
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--bg-soft);
  color: var(--navy);
}
.eau-page .tag { background: var(--eau-soft); color: #06608d; }
.product h3 { font-size: 18px; margin-bottom: 8px; }
.product p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.specs { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; }
.specs li { position: relative; padding: 4px 0 4px 20px; color: var(--ink); }
.specs li::before {
  content: "";
  position: absolute; left: 2px; top: 11px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--elec);
}
.eau-page .specs li::before { background: var(--eau); }
.product-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding-top: 6px; }
.product-actions a { font-weight: 700; font-size: 14px; text-decoration: none; color: var(--navy); display: inline-flex; gap: 6px; align-items: center; }
.product-actions a:hover { color: var(--eau); }
.product-actions svg { width: 16px; height: 16px; }

/* Produit large avec photo d'installation */
.product-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
.product-wide .product-main { display: flex; flex-direction: column; }
.product-wide .install-photo img { width: 100%; height: 360px; object-fit: cover; background: var(--bg-soft); border-radius: 10px; cursor: zoom-in; }
.product-wide .install-photo figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.product-wide .install-photo { margin: 0; }

.no-result { text-align: center; color: var(--muted); padding: 40px 0; display: none; }

/* ---------- Tableaux électriques ---------- */

.showcase { display: grid; gap: 36px; }
.showcase-item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.showcase-item:nth-child(even) .showcase-img { order: 2; }
.showcase-img img { width: 100%; height: 380px; object-fit: cover; background: var(--bg-soft); cursor: zoom-in; }
.showcase-text { padding: 32px 32px 32px 0; }
.showcase-item:nth-child(even) .showcase-text { padding: 32px 0 32px 32px; }
.showcase-text .note { font-weight: 700; color: var(--navy); margin-top: 14px; }

/* ---------- Réalisations ---------- */

.real-card .card-body h3 { font-size: 19px; }
.real-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

/* ---------- Export ---------- */

.countries { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.country {
  padding: 8px 16px; border-radius: 30px; background: #fff;
  border: 1px solid var(--line); font-weight: 600; color: var(--navy);
}

/* ---------- Bandeau d'appel à l'action ---------- */

.cta-band {
  background: linear-gradient(110deg, var(--navy-dark), var(--navy-2));
  color: #fff;
  padding: 56px 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 28px; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact / devis ---------- */

.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.form-card, .info-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfd7e0;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--eau); outline-offset: 1px; border-color: var(--eau);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.info-card h3 { font-size: 20px; }
.info-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-row:last-of-type { border-bottom: 0; }
.info-row svg { width: 22px; height: 22px; color: var(--eau); flex: none; margin-top: 2px; }
.info-row strong { display: block; color: var(--navy); }
.info-row a { color: var(--ink); }
.qr { display: flex; gap: 16px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.qr img { width: 110px; height: 110px; }
.qr p { font-size: 14px; color: var(--muted); margin: 0; }
.map { margin-top: 32px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Pied de page ---------- */

.footer { background: var(--navy-dark); color: #c9d6e3; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-logo { width: 160px; margin-bottom: 16px; background: #fff; padding: 8px 12px; border-radius: 8px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer p, .footer li { font-size: 15px; line-height: 1.8; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer a { color: #c9d6e3; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .badge { margin-top: 8px; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 40px; padding-top: 18px;
  text-align: center; font-size: 14px;
}

/* ---------- WhatsApp flottant ---------- */

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  z-index: 900;
}
.whatsapp-float svg { width: 30px; height: 30px; color: #fff; }
.whatsapp-float:hover { filter: brightness(.95); }

/* ---------- Visionneuse d'images ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(8, 20, 33, .9);
  display: none; align-items: center; justify-content: center; padding: 30px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; background: #fff; border-radius: 8px; padding: 10px; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; line-height: 1;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .header-actions .btn-whatsapp { display: none; }
  .nav > a, .nav .dropdown-toggle { padding: 10px 9px; font-size: 14px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .logo img { height: 38px; }
  .menu-btn { display: block; }
  .header-actions { display: none; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 12px 20px 22px;
    box-shadow: 0 14px 24px rgba(0,0,0,.12);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > a, .nav .dropdown-toggle { padding: 13px 8px; font-size: 17px; text-align: left; width: 100%; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dropdown-menu { position: static; box-shadow: none; padding: 0 0 6px 12px; min-width: 0; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.open .dropdown-menu { display: block; }
  .nav .mobile-only { display: flex; margin-top: 14px; justify-content: center; }

  .poles, .contact-layout { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-wide { grid-template-columns: 1fr; }
  .product-wide .install-photo img { height: 280px; }
  .showcase-item { grid-template-columns: 1fr; gap: 0; }
  .showcase-item:nth-child(even) .showcase-img { order: 0; }
  .showcase-text, .showcase-item:nth-child(even) .showcase-text { padding: 24px; }
  .showcase-img img { height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 961px) {
  .nav .mobile-only { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 27px; }
  .hero { padding: 80px 0 70px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 17px; }
  .page-hero { padding: 48px 0 40px; }
  .page-hero h1 { font-size: 29px; }
  .page-hero p { font-size: 16px; }
  .pole { padding: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats .feature { padding: 16px; }
  .stats .feature h3 { font-size: 16px; }
  .stats .feature p { font-size: 13px; }
}

/* =========================================================
   Demande de devis (« panier »)
   ========================================================= */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

.cart-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
  padding: 8px 10px; border-radius: 8px;
}
.cart-link:hover { background: var(--bg-soft); }
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--elec); color: var(--navy-dark);
  font-size: 12px; font-weight: 700; display: inline-grid; place-items: center;
}
.cart-count[hidden] { display: none; }

.ref { font-size: 12px !important; color: var(--muted); letter-spacing: .3px; margin: -4px 0 8px !important; }

.btn-add {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  border: 2px solid var(--navy); background: var(--navy); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-add svg { width: 16px; height: 16px; }
.btn-add:hover { background: var(--navy-dark); }
.btn-add.added { background: #fff; color: var(--navy); }
.eau-page .btn-add { background: var(--eau); border-color: var(--eau); }
.eau-page .btn-add.added { background: #fff; color: #06608d; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 2500;
  transform: translate(-50%, 140%);
  background: var(--navy-dark); color: #fff;
  padding: 14px 20px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-size: 15px; width: max-content; max-width: calc(100% - 32px);
  transition: transform .3s, visibility .3s;
  visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast a { color: var(--elec); font-weight: 700; margin-left: 6px; }

.cart-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 32px; }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cart-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.cart-empty { color: var(--muted); }
.cart-empty .btn { margin: 4px 6px 4px 0; }
.cart-table-wrap[hidden], .cart-empty[hidden] { display: none; }
.cart-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cart-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 2px solid var(--line); }
.cart-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table input { width: 100%; padding: 8px 10px; border: 1px solid #cfd7e0; border-radius: 6px; font: inherit; font-size: 14px; }
.cart-table input.qty { width: 80px; }
.cart-table small { color: var(--muted); }
.ref-code { font-weight: 700; color: var(--navy); white-space: nowrap; }
.cart-remove { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 6px; }
.cart-remove:hover { color: #c0392b; }

/* =========================================================
   Carte export
   ========================================================= */

.export-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; margin-bottom: 48px; }
.map-figure { margin: 0; background: var(--bg-soft); border-radius: var(--radius); padding: 16px; }
.africa-map { width: 100%; height: auto; display: block; }
.africa-map path { fill: #dfe5ec; stroke: #fff; stroke-width: .8; }
.africa-map path.served { fill: var(--eau); transition: fill .2s; }
.africa-map path.served:hover { fill: #0670a4; }
.africa-map path.home { fill: var(--navy); }
.africa-map .dot { fill: var(--elec); stroke: #fff; stroke-width: 1; }
.africa-map .lead { stroke: var(--muted); stroke-width: 1.2; }
.africa-map .lbl { font: 700 19px "Inter", Arial, sans-serif; fill: var(--navy); paint-order: stroke; stroke: var(--bg-soft); stroke-width: 5px; }
.africa-map .lbl-home { fill: #fff; stroke: var(--navy); }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); margin-top: 10px; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.sw-home { background: var(--navy); }
.sw-served { background: var(--eau); }
.export-title { font-size: 22px; }
.country-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.country-list li { padding: 8px 12px; border-radius: 8px; background: var(--eau-soft); color: #06608d; font-weight: 600; }
.country-list li:first-child { grid-column: 1 / -1; background: var(--navy); color: #fff; }
.country-list li:first-child strong { color: #fff; }
.export-text { color: var(--muted); max-width: none; text-align: left; margin: 0 0 20px; }

@media (max-width: 960px) {
  .cart-label { display: none; }
  .export-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cart-card { padding: 20px 16px; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
  .cart-table td { border: 0; padding: 4px 0; }
  .cart-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
  .cart-table td:last-child { position: absolute; top: 6px; right: 6px; width: auto; }
}

/* =========================================================
   Fenêtre de choix des caractéristiques (DN, PN, calibre…)
   ========================================================= */
.picker {
  position: fixed; inset: 0; z-index: 2800;
  background: rgba(8, 20, 33, .6);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.picker.open { display: flex; }
.picker-box {
  position: relative; width: 100%; max-width: 440px;
  background: #fff; border-radius: 14px; padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.picker-box h3 { font-size: 21px; margin-bottom: 18px; padding-right: 24px; }
.picker-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--eau); margin: 0 0 6px; }
.picker-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; }
.picker-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.picker-fields .field[hidden] { display: none; }
.picker-qty { max-width: 140px; }
.picker-ref { font-size: 14px; color: var(--muted); min-height: 1.4em; margin: 10px 0 0; }
.picker-actions { margin-top: 14px; }
.picker-actions .btn { width: 100%; justify-content: center; }
.picker-ok:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.detail-fixed { font-weight: 600; color: var(--navy); }
@media (max-width: 480px) { .picker-fields { grid-template-columns: 1fr; } }

/* =========================================================
   Demande au format PDF (impression)
   ========================================================= */
.print-doc { display: none; }

@media print {
  @page { size: A4; margin: 14mm; }
  body { padding: 0; background: #fff; }
  body > *:not(.print-doc) { display: none !important; }
  .print-doc { display: block !important; color: #1b2733; font-size: 11pt; }
  .pd-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #12304f; padding-bottom: 10px; margin-bottom: 18px; }
  .pd-head img { height: 46px; width: auto; }
  .pd-company { text-align: right; font-size: 9pt; line-height: 1.5; color: #5b6876; }
  .print-doc h1 { font-size: 20pt; margin: 0 0 2px; color: #12304f; }
  .pd-meta { color: #5b6876; margin: 0 0 16px; }
  .print-doc h2 { font-size: 11pt; text-transform: uppercase; letter-spacing: 1px; color: #0a8fd0; margin: 0 0 6px; }
  .pd-client { border: 1px solid #e3e8ee; border-radius: 6px; padding: 10px 14px; margin-bottom: 18px; }
  .pd-client p { margin: 2px 0; }
  .pd-client span { color: #5b6876; display: inline-block; min-width: 95px; }
  .pd-table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .pd-table th { background: #12304f; color: #fff; text-align: left; padding: 7px 8px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pd-table td { border-bottom: 1px solid #e3e8ee; padding: 7px 8px; vertical-align: top; }
  .pd-table tr { page-break-inside: avoid; }
  .pd-table .num { text-align: right; }
  .pd-msg { margin-top: 18px; }
  .pd-foot { margin-top: 26px; font-size: 9pt; color: #5b6876; border-top: 1px solid #e3e8ee; padding-top: 8px; }
}

/* =========================================================
   Textes de présentation (référencement) et FAQ
   ========================================================= */
.seo-text { max-width: 860px; }
.seo-text h2 { font-size: 26px; margin-bottom: 18px; }
.seo-text p { color: #3a4754; font-size: 16px; line-height: 1.75; }
.seo-text a { color: var(--navy); font-weight: 600; }
.faq-title { font-size: 22px !important; margin: 36px 0 14px !important; }
.faq { display: grid; gap: 10px; }
.faq-item { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 0 20px; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
  font-weight: 700; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--eau);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 16px; }

/* =========================================================
   Carte des villes équipées (Maroc)
   ========================================================= */
.ma-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: center; }
.ma-figure { margin: 0; background: #eaf3f9; border-radius: var(--radius); padding: 12px; }
.morocco-map { width: 100%; height: auto; display: block; }
.morocco-map .nb { fill: #e3e8ee; stroke: #fff; stroke-width: 1; }
.morocco-map .ma { fill: #fff; stroke: var(--navy); stroke-width: 1.4; }
.morocco-map .city { fill: var(--elec); stroke: var(--navy); stroke-width: 1.5; }
.morocco-map .city.hq { fill: var(--navy); stroke: var(--elec); stroke-width: 2; }
.morocco-map .ct { font: 600 13px "Inter", Arial, sans-serif; fill: var(--navy); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.morocco-map .ct.hq { font-weight: 800; }
.sw-city { background: var(--elec); border: 1.5px solid var(--navy); border-radius: 50%; }
.sw-hq { background: var(--navy); border: 1.5px solid var(--elec); border-radius: 50%; }
.ma-layout h2 { font-size: 30px; }
.ma-intro { color: var(--muted); }
.city-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.city-list li { padding: 6px 12px; border-radius: 20px; background: var(--elec-soft); color: #7a5600; font-weight: 600; font-size: 14px; }
@media (max-width: 960px) { .ma-layout { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) { .seo-text h2 { font-size: 22px; } .ma-layout h2 { font-size: 24px; } }

/* Encart « villes équipées » dans Réalisations (accueil) */
.real-highlight {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 28px 20px 20px; margin-bottom: 28px;
  text-decoration: none; color: inherit; border-left: 5px solid var(--elec);
  transition: box-shadow .25s, transform .25s;
}
.real-highlight:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.real-mini { background: #eaf3f9; border-radius: 10px; padding: 8px; }
.real-mini .morocco-map .ct { display: none; }
.real-mini .morocco-map .city { r: 11px; stroke-width: 2.5; }
.real-kpi { display: inline-block; font-size: 15px; color: #7a5600; background: var(--elec-soft); padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }
.real-kpi strong { font-size: 18px; }
.real-hl-text h3 { font-size: 22px; margin-bottom: 8px; }
.real-hl-text p { color: var(--muted); margin-bottom: 10px; }
@media (max-width: 600px) {
  .real-highlight { grid-template-columns: 110px 1fr; gap: 16px; padding: 14px; }
  .real-hl-text h3 { font-size: 18px; }
  .real-hl-text p { font-size: 14px; }
}
