/* ==========================================================================
   SERVI PRO — Feuille de style principale
   Direction artistique : haut de gamme · technologique · sécurité
   ========================================================================== */

:root {
  --navy-950: #060a14;
  --navy-900: #0a1120;
  --navy-800: #0f1a2e;
  --navy-700: #14233f;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --cyan-400: #22d3ee;
  --ink: #0b1220;
  --slate-700: #334155;
  --slate-600: #55657c;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #eef2f6;
  --slate-50: #f6f8fb;
  --white: #ffffff;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #b45309;
  --radius: 14px;
  --radius-sm: 10px;
  --surface: #f6f8fb;
  --link: #2563eb;
  --shadow-sm: 0 1px 2px rgba(10, 17, 32, 0.06), 0 4px 12px -4px rgba(10, 17, 32, 0.08);
  --shadow-md: 0 10px 30px -12px rgba(10, 17, 32, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(6, 10, 20, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--blue-700); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

/* Accessibilité : lien d'évitement */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue-600); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.section { padding: 88px 0; }
.section--alt { background: var(--surface); }
.section--dark { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: var(--slate-300); }
.section--brands { background: var(--white); }
.section--contact-strip { padding: 0 0 88px; }
.section__cta { text-align: center; margin-top: 40px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   Typographie utilitaire
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-600); margin: 0 0 14px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--blue-600); border-radius: 2px; }
.kicker--light { color: var(--cyan-400); }
.kicker--light::before { background: var(--cyan-400); }

.section-head { max-width: 720px; margin: 0 auto 48px; }
.section-head--center { text-align: center; }
.section-head--center .kicker::before { display: none; }
.section-head--dark .section-title { color: #fff; }
.section-head--dark .section-text { color: var(--slate-300); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.section-text { font-size: 1.06rem; color: var(--slate-600); margin: 0; }
.section-head--dark .section-text { color: var(--slate-300); }

.h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.h2--center { text-align: center; }
.lead { font-size: 1.08rem; }

/* --------------------------------------------------------------------------
   Icônes
   -------------------------------------------------------------------------- */
.icon { flex: none; vertical-align: -0.18em; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; text-align: center; transition: all .18s ease; white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff !important; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.6);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(37, 99, 235, 0.7); color: #fff; }
.btn--light { background: #fff; color: var(--ink) !important; }
.btn--light:hover { background: var(--slate-100); }
.btn--outline { background: transparent; color: var(--ink) !important; border-color: var(--slate-300); }
.btn--outline:hover { border-color: var(--blue-600); color: var(--blue-600) !important; background: #fff; }
.btn--ghost { background: transparent; color: var(--slate-600) !important; border-color: transparent; padding-left: 10px; padding-right: 10px; }
.btn--ghost:hover { color: var(--blue-600) !important; background: var(--slate-100); }
.btn--danger-outline { background: transparent; color: var(--danger) !important; border-color: #f3c2c2; }
.btn--danger-outline:hover { background: #fef2f2; }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn--sm { padding: 7px 14px; font-size: 0.85rem; }
.btn--block { width: 100%; }

.link-more {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.92rem;
  color: var(--blue-600); margin-top: 6px;
}
.link-more:hover { gap: 11px; }
.link-more, .link-more:hover { transition: gap .18s ease; }

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */
.topbar { background: var(--navy-950); color: var(--slate-300); font-size: 0.86rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar__contacts { display: flex; align-items: center; gap: 14px; }
.topbar__phone { display: inline-flex; align-items: center; gap: 7px; color: var(--slate-300); font-weight: 600; }
.topbar__phone:hover { color: #fff; }
.topbar__phone .icon { color: var(--cyan-400); }
.topbar__sep { width: 1px; height: 14px; background: var(--slate-700); }
.topbar__slogan { margin: 0; color: var(--slate-400); font-size: 0.82rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 76px; }
/* `flex: 0 0 auto` : sans cela, le logo — premier élément flexible de la
   barre — était compressé jusqu'à 0 px quand le menu débordait, et
   disparaissait purement et simplement de l'en-tête. */
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand__logo { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }
/* `flex: 1` + `space-between` : les 9 rubriques se répartissent sur toute la
   largeur restante avec des écarts identiques, au lieu de rester tassées
   contre le bouton d'action en laissant un vide après le logo. */
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; flex: 1; justify-content: space-between; }
.nav__link {
  display: block; padding: 9px 5px; border-radius: 8px; color: var(--slate-600);
  /* 16 px minimum pour la lisibilité, 17 px plafond : au-delà, les 9 libellés
     ne tiennent plus dans les 1 152 px utiles du conteneur. La valeur
     intermédiaire suit la largeur de fenêtre entre 1 200 px (16 px) et
     1 440 px (17 px), puis se fige. */
  font-size: clamp(16px, 0.4167vw + 11px, 17px); font-weight: 600;
  /* « À propos » est le seul libellé du menu à contenir une espace : sans
     `nowrap`, c'est lui qui se coupe en deux dès que la barre est serrée. */
  white-space: nowrap;
}
.nav__link:hover { color: var(--blue-600); background: var(--slate-50); }
.nav__link.is-active { color: var(--blue-700); background: var(--blue-100); }
.nav__cta { margin-left: 6px; display: flex; align-items: center; gap: 8px; }
.nav__cta .btn { padding: 10px 14px; font-size: 0.88rem; }

/* --- Barre de navigation : bascule vers le menu hamburger -----------------
   Le conteneur plafonne à 1 200 px (dont 48 px de marges), soit 1 152 px
   utiles — et ce quelle que soit la largeur de l'écran. À 17 px, les neuf
   rubriques (≈ 798 px de texte avec la police système la plus large, plus
   panier et bouton d'action) occupent la totalité de cette largeur : la
   barre complète n'est donc affichée qu'au-delà de 1 200 px, et le menu
   hamburger prend le relais en dessous. */
.burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--slate-200);
  background: #fff; color: var(--ink); cursor: pointer;
}

/* NB : ce bloc doit rester APRÈS la règle `.burger` ci-dessus — à spécificité
   égale, c'est l'ordre d'apparition qui tranche. */
@media (max-width: 1199px) {
  .nav__list, .nav__cta { display: none; }
  .burger { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   Menu mobile
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 120;
  background: #fff; transform: translateX(100%); transition: transform .28s ease;
  display: flex; flex-direction: column; padding: 20px 26px 28px; box-shadow: var(--shadow-lg);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--slate-200); }
.mobile-menu__brand { font-weight: 800; color: var(--ink); letter-spacing: 0.02em; }
.mobile-menu__list { list-style: none; margin: 18px 0; padding: 0; flex: 1; }
.mobile-menu__link {
  display: block; padding: 13px 10px; font-size: 1.05rem; font-weight: 600; color: var(--ink);
  border-radius: 10px;
}
.mobile-menu__link:hover { background: var(--slate-50); color: var(--blue-600); }
.mobile-menu__footer { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu__footer .btn { justify-content: center; }
.mobile-menu__phones { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu__phones a { display: inline-flex; align-items: center; gap: 9px; color: var(--slate-700); font-weight: 600; }
.mobile-menu__backdrop {
  position: fixed; inset: 0; background: rgba(6, 10, 20, 0.5); z-index: 110;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.mobile-menu__backdrop.is-open { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 10, 20, 0.92) 0%, rgba(6, 10, 20, 0.72) 45%, rgba(6, 10, 20, 0.45) 100%);
}
.hero__inner { position: relative; padding: 110px 24px; max-width: var(--container); margin: 0 auto; }
.hero__title { font-size: clamp(2rem, 5vw, 3.3rem); color: #fff; margin: 0 0 18px; max-width: 720px; }
.hero__subtitle { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--slate-300); max-width: 620px; margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; }
.hero__points li { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 0.95rem; color: var(--slate-200); }
.hero__points .icon { color: var(--cyan-400); }
.hero--short .hero__inner { padding: 96px 24px; }

/* --------------------------------------------------------------------------
   Page hero (pages internes)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700) 60%, var(--blue-700));
  color: #fff;
}
.page-hero__inner { padding: 72px 24px; }
.page-hero--compact .page-hero__inner { padding: 56px 24px; }
.page-hero__title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 14px; }
.page-hero__text { color: var(--slate-300); font-size: 1.08rem; max-width: 680px; margin: 0; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; margin-bottom: 16px; color: var(--slate-400); }
.breadcrumb a { color: var(--slate-300); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .icon { color: var(--slate-500); }

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__icon {
  position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px; color: #fff;
  background: rgba(6, 10, 20, 0.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.card__icon--inline { position: static; margin: 26px 0 0 26px; background: var(--blue-100); color: var(--blue-700); }
.card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.12rem; margin-bottom: 8px; }
.card__text { font-size: 0.95rem; margin: 0 0 6px; color: var(--slate-600); }
.card__tagline { font-weight: 600; color: var(--blue-700); margin: 0 0 6px; }
.card__meta { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-500); margin: 0 0 8px; }
.card__price { font-weight: 700; color: var(--ink); }
.card__badge {
  position: absolute; right: 12px; top: 12px; background: #fff; color: var(--ink);
  font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.card__fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--slate-400); background: var(--slate-100); }
.card__media--product { background: var(--slate-100); }
.card__media--brand { background: #fff; display: flex; align-items: center; justify-content: center; padding: 26px; aspect-ratio: auto; }
.card__media--brand img { object-fit: contain; max-height: 90px; width: auto; }
.card__brand-name { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 34px 20px; background: var(--slate-50); }
.card__brand-name span { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.card__brand-name .icon { color: var(--blue-600); }

/* Cartes solutions en rangée (liste) */
.card--row { flex-direction: row; }
.card--row .card__media { width: 40%; aspect-ratio: auto; min-height: 200px; }
.card--row .card__body { flex: 1; }

/* --------------------------------------------------------------------------
   Tuiles (services, environnements)
   -------------------------------------------------------------------------- */
.tile {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .22s ease, box-shadow .22s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile--plain { background: transparent; border-color: var(--slate-200); }
.tile__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 14px; margin-bottom: 18px;
  background: var(--blue-100); color: var(--blue-700);
}
.tile__title { font-size: 1.1rem; margin-bottom: 8px; }
.tile__text { font-size: 0.95rem; margin: 0; color: var(--slate-600); }

/* --------------------------------------------------------------------------
   Section « Pourquoi SERVI PRO »
   -------------------------------------------------------------------------- */
.why .section-head--dark .section-title { color: #fff; }
.why__grid { gap: 32px 24px; }
.why__item { padding-left: 18px; border-left: 2px solid var(--slate-700); }
.why__item:hover { border-left-color: var(--cyan-400); }
.why__icon { display: inline-flex; color: var(--cyan-400); margin-bottom: 12px; }
.why__title { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.why__text { margin: 0; font-size: 0.92rem; color: var(--slate-400); }

/* --------------------------------------------------------------------------
   Marques
   -------------------------------------------------------------------------- */
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; padding: 0; margin: 0; }
.brands__item {
  padding: 14px 30px; border: 1px solid var(--slate-200); border-radius: 12px;
  font-size: 1.05rem; font-weight: 700; color: var(--ink); background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.brands__item:hover { border-color: var(--blue-500); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.brands-note { display: flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 0.85rem; color: var(--slate-500); justify-content: center; }
.brands-note .icon { color: var(--warning); }

/* --------------------------------------------------------------------------
   Galerie / réalisations
   -------------------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--slate-200); background: #fff; color: var(--slate-600);
  font-size: 0.9rem; font-weight: 600; transition: all .18s ease;
}
.chip:hover { border-color: var(--blue-500); color: var(--blue-600); }
.chip.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

.shot { margin: 0; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); overflow: hidden; }
.shot__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-900); cursor: zoom-in; padding: 0; border: 0; }
.shot__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:hover .shot__media img { transform: scale(1.06); }
.shot__zoom {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; background: rgba(6, 10, 20, 0.55); color: #fff;
  opacity: 0; transition: opacity .2s ease; backdrop-filter: blur(4px);
}
.shot:hover .shot__zoom { opacity: 1; }
.shot__caption { padding: 16px 18px 18px; }
.shot__cat { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-600); }
.shot__title { font-size: 1rem; margin: 4px 0 0; }
.shot__text { font-size: 0.88rem; margin: 6px 0 0; color: var(--slate-500); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center;
  background: rgba(4, 7, 14, 0.92); opacity: 0; pointer-events: none; transition: opacity .25s ease; padding: 24px;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__figure { margin: 0; max-width: min(1000px, 92vw); }
.lightbox__figure img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 12px; }
.lightbox__caption { color: var(--slate-300); text-align: center; margin-top: 14px; font-size: 0.95rem; }
.lightbox__close {
  position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.2); }

/* --------------------------------------------------------------------------
   Bande CTA
   -------------------------------------------------------------------------- */
.cta-band { position: relative; color: #fff; overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__overlay { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(6, 10, 20, 0.94), rgba(13, 26, 51, 0.85)); }
.cta-band__inner { position: relative; padding: 84px 24px; text-align: center; max-width: 780px; margin: 0 auto; }
.cta-band__title { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 14px; }
.cta-band__text { color: var(--slate-300); font-size: 1.08rem; margin-bottom: 30px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --------------------------------------------------------------------------
   Bande contact rapide (accueil)
   -------------------------------------------------------------------------- */
.contact-strip {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 30px 34px; box-shadow: var(--shadow-sm); margin-top: -64px; position: relative;
}
.contact-strip__item { display: flex; align-items: center; gap: 16px; }
.contact-strip__item > .icon { width: 52px; height: 52px; padding: 14px; background: var(--blue-100); color: var(--blue-700); border-radius: 12px; }
.contact-strip__label { font-weight: 700; color: var(--ink); margin: 0; }
.contact-strip__item a { display: block; font-weight: 600; }
.contact-strip__item p { margin: 0; }

/* --------------------------------------------------------------------------
   Grilles « à propos »
   -------------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-grid--flip .about-grid__media { order: -1; }
.about-grid__media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.about-grid__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.checklist { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 11px; color: var(--slate-700); }
.checklist .icon { color: var(--success); margin-top: 2px; }

/* --------------------------------------------------------------------------
   Détail solution
   -------------------------------------------------------------------------- */
.solution-detail__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.solution-detail__media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.solution-detail__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.solution-detail__fallback { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--slate-100); color: var(--slate-400); }
.solution-detail__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.aside-card { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 24px; margin-top: 22px; }
.aside-card__title { font-size: 1.05rem; margin-bottom: 6px; }
.aside-card__phone { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); margin-top: 6px; }

/* --------------------------------------------------------------------------
   Étapes (processus)
   -------------------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps__item { position: relative; padding: 26px 22px; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); }
.steps__num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff; font-weight: 700; margin-bottom: 14px;
}
.steps__item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.steps__item p { margin: 0; font-size: 0.92rem; color: var(--slate-600); }

.split-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.split-cta p { margin: 0; max-width: 640px; }

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */
.panel {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.panel--on-dark { background: var(--navy-800); border-color: rgba(255, 255, 255, 0.1); }
.panel--on-dark .field__label { color: var(--slate-300); }
.panel--on-dark .input { background: var(--navy-900); border-color: rgba(255, 255, 255, 0.14); color: #fff; }
.panel--on-dark .input:focus { border-color: var(--blue-500); }
.panel--on-dark select.input option { color: var(--ink); }
.panel__sub { margin: 0 0 18px; color: var(--slate-500); }

.field { margin-bottom: 18px; }
.field__label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--slate-700); margin-bottom: 7px; }
.req { color: var(--danger); }
.input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--slate-300);
  font-family: inherit; font-size: 0.95rem; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
textarea.input { min-height: 130px; resize: vertical; }
.input--file { padding: 9px; border-style: dashed; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--slate-500); border-bottom: 2px solid var(--slate-500); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select-wrap .input { appearance: none; -webkit-appearance: none; padding-right: 38px; }

.field__hint { font-size: 0.8rem; color: var(--slate-500); margin: 5px 0 0; }
.field__error { font-size: 0.84rem; color: var(--danger); margin: 6px 0 0; font-weight: 500; }
.field--error .input { border-color: var(--danger); }

.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.check__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 20px; height: 20px; border: 2px solid var(--slate-300); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; transition: all .15s ease; }
.check__input:checked + .check__box { background: var(--blue-600); border-color: var(--blue-600); }
.check__input:checked + .check__box::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.check__label { font-size: 0.92rem; color: var(--slate-700); }
.check__input:focus-visible + .check__box { outline: 3px solid var(--blue-500); outline-offset: 2px; }

.form-actions { display: flex; gap: 12px; margin-top: 8px; }

/* Champ piège anti-spam */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Accordéon (FAQ)
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: 12px; }
.accordion__item { background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; }
.accordion__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary:hover { background: var(--slate-50); }
.accordion__icon { color: var(--slate-500); transition: transform .2s ease; }
.accordion__item[open] .accordion__icon { transform: rotate(180deg); }
.accordion__content { padding: 0 22px 20px; color: var(--slate-600); }
.accordion__content p { margin: 0; }

.faq-cta { text-align: center; margin-top: 44px; }
.faq-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.faq-more { text-align: center; margin-top: 24px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 22px; }
.contact-list__item { display: flex; gap: 15px; }
.contact-list__icon { width: 46px; height: 46px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-100); color: var(--blue-700); border-radius: 12px; }
.contact-list__label { font-weight: 700; color: var(--ink); margin: 0 0 2px; }
.contact-list__item a { font-weight: 600; }
.contact-list__item p { margin: 0; }
.contact-list__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Page hero avec image de fond (optionnel, type hero) */
.page-hero { position: relative; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(8,15,32,.92), rgba(15,30,66,.82) 55%, rgba(30,64,175,.72));
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Encadré rassurant (formulaires publics de type devis) */
.contact-aside { display: grid; gap: 16px; }
.contact-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 14px;
  padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.contact-card__icon {
  width: 44px; height: 44px; border-radius: 11px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-100); color: var(--blue-700);
}
.contact-card__title { margin: 2px 0 4px; font-size: 1.02rem; color: var(--ink); }
.contact-card__text { margin: 0; font-size: .92rem; color: var(--slate-600); line-height: 1.55; }
.contact-card__text a { color: var(--blue-700); font-weight: 600; }
.contact-card--highlight {
  background: linear-gradient(135deg, var(--blue-50, #eff6ff), #fff);
  border-color: var(--blue-200, #bfdbfe);
}
.contact-card--highlight .contact-card__icon { background: var(--blue-600); color: #fff; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* --------------------------------------------------------------------------
   Légal
   -------------------------------------------------------------------------- */
.legal h2 { margin-top: 1.6em; }
.legal__note {
  display: flex; gap: 12px; align-items: flex-start; background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 10px; padding: 16px 18px; margin-top: 30px; color: #92400e;
}
.legal__note .icon { color: var(--warning); margin-top: 2px; }
.legal__note p { margin: 0; }

/* --------------------------------------------------------------------------
   États vides
   -------------------------------------------------------------------------- */
.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; padding: 60px 20px; color: var(--slate-500);
}
.empty-state p { margin: 0; }
.empty-state .icon { color: var(--slate-300); }

/* --------------------------------------------------------------------------
   Flash messages
   -------------------------------------------------------------------------- */
.flashes { position: fixed; top: 16px; right: 16px; z-index: 200; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.flash {
  display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-radius: 12px;
  background: #fff; box-shadow: var(--shadow-md); border: 1px solid var(--slate-200); font-size: 0.92rem;
  animation: flash-in .25s ease;
}
.flash__icon { display: inline-flex; }
.flash--success .flash__icon { color: var(--success); }
.flash--danger .flash__icon { color: var(--danger); }
.flash--warning .flash__icon { color: var(--warning); }
.flash--info .flash__icon { color: var(--blue-600); }
.flash__close { margin-left: auto; border: 0; background: transparent; cursor: pointer; color: var(--slate-400); display: inline-flex; }
.flash__close:hover { color: var(--ink); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Pages d'erreur
   -------------------------------------------------------------------------- */
.error-page { min-height: 70vh; display: flex; align-items: center; }
.error-page__inner { text-align: center; padding: 80px 24px; }
.error-page__code { font-size: 5rem; font-weight: 800; margin: 0; background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.error-page__title { font-size: 1.8rem; margin: 12px 0 10px; }
.error-page__text { max-width: 460px; margin: 0 auto 28px; }
.error-page__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */
.page-login { background: var(--navy-900); }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login__panel { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 40px 36px; box-shadow: var(--shadow-lg); }
.login__brand { text-align: center; margin-bottom: 10px; }
.login__brand img { display: inline-block; height: 60px; width: auto; }
.login__title { font-size: 1.4rem; text-align: center; margin: 0 0 4px; }
.login__sub { text-align: center; color: var(--slate-500); margin-bottom: 24px; }
.login__row { margin-bottom: 8px; }
.login__back { text-align: center; margin: 18px 0 0; font-size: 0.9rem; }
.login__back a { display: inline-flex; align-items: center; gap: 5px; }

/* --------------------------------------------------------------------------
   Barre d'action mobile
   -------------------------------------------------------------------------- */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: #fff; border-top: 1px solid var(--slate-200); box-shadow: 0 -6px 20px -10px rgba(6, 10, 20, 0.3);
}
.mobile-bar__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 6px 12px; font-size: 0.74rem; font-weight: 600; color: var(--slate-600);
}
.mobile-bar__item--cta { background: var(--blue-600); color: #fff; }
.mobile-bar__item--cta:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--navy-950); color: var(--slate-400); }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
  padding: 64px 24px 48px; max-width: var(--container); margin: 0 auto;
}
.footer__logo { display: inline-flex; background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 16px; }
.footer__logo img { height: 40px; width: auto; }
.footer__slogan { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer__text { font-size: 0.92rem; }
.footer__title { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__list a { color: var(--slate-400); font-size: 0.94rem; }
.footer__list a:hover { color: #fff; }
.footer__list--contact a, .footer__list--contact span { display: inline-flex; align-items: center; gap: 9px; }
.footer__list--contact .icon { color: var(--cyan-400); }
.footer__cta { margin-top: 20px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer__bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 20px 24px; font-size: 0.85rem; max-width: var(--container); margin: 0 auto;
}
.footer__bottom p { margin: 0; }
.footer__bottom nav { display: flex; gap: 18px; }
.footer__bottom nav a { color: var(--slate-400); }
.footer__bottom nav a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Animations d'apparition au scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-strip { grid-template-columns: 1fr 1fr; }
  .contact-strip__cta { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* NB : le basculement de la barre de navigation vers le burger est piloté
     plus haut par `@media (max-width: 1199px)` — ne pas le dupliquer ici. */
  .solution-detail__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-grid--flip .about-grid__media { order: 0; }
  .card--row { flex-direction: column; }
  .card--row .card__media { width: 100%; min-height: 0; }
  .section { padding: 64px 0; }
  .hero__inner { padding: 84px 24px; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .topbar__slogan { display: none; }
  .topbar__inner { justify-content: flex-start; }
  .brand__logo { height: 36px; }
  .header__inner { min-height: 64px; }
  .hero__points { gap: 10px 16px; }
  .hero__points li { font-size: 0.86rem; }
  .contact-strip { grid-template-columns: 1fr; padding: 24px; }
  .footer__grid { grid-template-columns: 1fr; padding: 48px 24px 32px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .flashes { top: 10px; right: 10px; left: 10px; width: auto; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 60px; }
  .panel { padding: 24px 20px; }
}

/* ==========================================================================
   Panier & parcours d'achat
   ========================================================================== */
.nav__cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--slate-200); background: #fff; color: var(--ink); }
.nav__cart:hover { color: var(--blue-600); border-color: var(--blue-500); }
.nav__cart-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--blue-600); color: #fff; font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.card__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.card__price-note { font-size: .78rem; color: var(--slate-500); font-weight: 600; }

/* Fiche produit */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-detail__main { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--slate-200); }
.product-detail__main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-detail__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.product-detail__thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; border: 1px solid var(--slate-200); cursor: pointer; }
.product-detail__sku { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); margin: 0 0 6px; }
.product-detail__ttc { font-size: 1.9rem; font-weight: 800; color: var(--ink); margin: 0; }
.product-detail__ttc small { font-size: .85rem; color: var(--slate-500); }
.product-detail__ht { color: var(--slate-500); margin: 0 0 14px; font-size: .9rem; }
.product-detail__stock { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; margin: 0 0 14px; }
.product-detail__stock.is-ok { color: var(--success); }
.product-detail__stock.is-low { color: var(--warning); }
.product-detail__desc { color: var(--slate-600); }
.product-detail__buy { margin: 20px 0 14px; }
.product-detail__qty { display: flex; gap: 12px; align-items: center; }
.product-detail__qty .input { width: 90px; }
.product-detail__note { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-600); font-size: .9rem; font-weight: 600; }
.product-detail__links { margin-top: 16px; }

/* Panier */
.cart-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 74px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--slate-100); }
.cart-item:last-child { border-bottom: 0; }
.cart-item__media { width: 74px; height: 60px; border-radius: 10px; overflow: hidden; border: 1px solid var(--slate-200); }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-weight: 700; color: var(--ink); display: block; }
.cart-item__sku { display: block; font-size: .78rem; color: var(--slate-500); }
.cart-item__price { font-size: .85rem; color: var(--slate-600); }
.cart-item__qty { display: flex; gap: 6px; align-items: center; }
.cart-item__qty .input { width: 70px; }
.cart-item__total { text-align: right; }
.cart-item__tax { display: block; font-size: .78rem; color: var(--slate-500); }
.cart-totals { margin: 0; }
.cart-totals div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--slate-100); }
.cart-totals dt { color: var(--slate-600); }
.cart-totals dd { margin: 0; font-weight: 600; color: var(--ink); }
.cart-totals .cart-totals__total { border-bottom: 0; font-size: 1.15rem; }
.cart-totals .cart-totals__total dd { font-weight: 800; color: var(--blue-700); }
.cart-summary__actions { display: grid; gap: 12px; margin-top: 18px; }
.cart-summary__actions .btn { width: 100%; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.checkout-layout__form .panel { margin-bottom: 22px; }
.geo-row { display: flex; gap: 14px; align-items: center; margin: 4px 0 10px; flex-wrap: wrap; }
.geo-hint { font-size: .8rem; color: var(--slate-500); margin: 0; max-width: 460px; }
.geo-fields { margin-top: 4px; }
.mini-cart-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--slate-100); font-size: .92rem; }
.mini-cart-line strong { white-space: nowrap; }

/* Confirmation */
.confirmation { text-align: center; }
.confirmation__icon { color: var(--success); margin-bottom: 10px; }
.confirmation__number { font-size: 1.1rem; color: var(--slate-600); }
.confirmation .cart-totals { text-align: left; margin: 18px 0; }
.confirmation__payment { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 12px; padding: 18px; margin: 18px 0; text-align: left; }
.confirmation__bank { background: #fff; border: 1px solid var(--slate-200); border-radius: 8px; padding: 12px; white-space: pre-wrap; font-size: .9rem; }
.confirmation__contact { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.confirmation__contact p { margin: 0; color: var(--slate-600); }
.confirmation__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

@media (max-width: 900px) {
  .product-detail, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr auto; }
  .cart-item__qty, .cart-item__total, .cart-item__remove { grid-column: auto; }
}

/* ==========================================================================
   Badges de statut (portail client) + timeline d'installation
   ========================================================================== */
.badge { display: inline-flex; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge--demandee { background: #dbeafe; color: #1d4ed8; }
.badge--a_planifier { background: #fef3c7; color: #b45309; }
.badge--planifiee { background: #e0e7ff; color: #4338ca; }
.badge--affectee { background: #e0e7ff; color: #4338ca; }
.badge--en_cours { background: #fef3c7; color: #b45309; }
.badge--terminee { background: #dcfce7; color: #15803d; }
.badge--annulee { background: #fee2e2; color: #b91c1c; }
.badge--en_attente { background: #fef3c7; color: #b45309; }
.badge--validee { background: #dcfce7; color: #15803d; }
.badge--refusee { background: #fee2e2; color: #b91c1c; }
.badge--relance { background: #e0e7ff; color: #4338ca; }

.steps--status { grid-template-columns: repeat(5, 1fr); margin-top: 18px; }
.steps--status .steps__item { text-align: center; }
.steps--status .steps__item p { margin: 0; }
.steps--status .steps__num { margin-bottom: 8px; }
.steps--status .is-current .steps__num { background: var(--blue-600); }
.steps--status .is-current { border-color: var(--blue-500); }
.steps--status .is-done .steps__num { background: var(--success); }

/* ==========================================================================
   Réclamations : conversation + lignes
   ========================================================================== */
.complaint-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--slate-100); color: var(--ink); }
.complaint-row:last-child { border-bottom: 0; }
.complaint-row:hover { color: var(--blue-600); }
.complaint-row__main { flex: 1; font-weight: 600; }
.complaint-row__cat { display: block; font-size: .8rem; color: var(--slate-500); font-weight: 400; }
.complaint-row__date { font-size: .82rem; color: var(--slate-500); white-space: nowrap; }

.conversation { display: grid; gap: 12px; }
.conversation__msg { display: flex; }
.conversation__msg.is-client { justify-content: flex-end; }
.conversation__msg.is-admin { justify-content: flex-start; }
.conversation__bubble { max-width: 85%; padding: 12px 16px; border-radius: 14px; font-size: .95rem; }
.conversation__msg.is-client .conversation__bubble { background: var(--blue-600); color: #fff; border-bottom-right-radius: 4px; }
.conversation__msg.is-admin .conversation__bubble { background: var(--slate-100); color: var(--ink); border-bottom-left-radius: 4px; }
.conversation__meta { font-size: .74rem; opacity: .8; margin: 0 0 4px; }
.conversation__text { margin: 0; white-space: pre-wrap; }
.conversation__att { display: flex; align-items: center; gap: 6px; font-size: .84rem; margin: 8px 0 0; opacity: .95; }
.conversation__att a { color: inherit; text-decoration: underline; }

.badge--nouvelle { background: #dbeafe; color: #1d4ed8; }
.badge--en_cours { background: #fef3c7; color: #b45309; }
.badge--en_attente_client { background: #e0e7ff; color: #4338ca; }
.badge--en_attente_interne { background: #e0e7ff; color: #4338ca; }
.badge--resolue { background: #dcfce7; color: #15803d; }
.badge--fermee { background: var(--slate-200); color: var(--slate-600); }
.badge--rejetee { background: #fee2e2; color: #b91c1c; }
.badge--basse { background: var(--slate-200); color: var(--slate-600); }
.badge--normale { background: #dbeafe; color: #1d4ed8; }
.badge--haute { background: #fef3c7; color: #b45309; }
.badge--critique { background: #fee2e2; color: #b91c1c; }

/* Badge « Promotion » (produits à la une, catalogue, fiche produit) */
.promo-badge {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: var(--blue-600, #2563eb); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.promo-badge--inline { position: static; display: inline-block; margin: 0 0 10px; }

/* ==========================================================================
   Product Showcase (accueil) — carrousel infini sans dépendance JS externe
   ========================================================================== */
.product-showcase__header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.product-showcase__heading { flex: 1; min-width: 260px; }
.product-showcase__heading .section-head { margin: 0; }
.product-showcase__heading .section-head--left { text-align: left; }

/* Contrôles masqués sans JS : le contenu reste un simple bandeau défilable. */
.product-showcase__controls { display: none; gap: 10px; }
.product-showcase--enhanced .product-showcase__controls { display: inline-flex; }

.product-showcase__btn {
  width: 46px; height: 46px; border-radius: 999px; flex: none;
  border: 1px solid var(--slate-300); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.product-showcase__btn:hover { border-color: var(--blue-600); color: var(--blue-600); }
.product-showcase__btn:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.product-showcase__btn[hidden] { display: none; }

/* Sans JS : bandeau à défilement horizontal (tous les produits accessibles). */
.product-showcase__viewport {
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  padding-bottom: 6px;
}
.product-showcase__track { display: flex; gap: 24px; }
.product-showcase__slide { flex: 0 0 260px; min-width: 0; }

/* Amélioré (JS actif) : le viewport devient masqué, le défilement est piloté
   par transformation (loop). Les largeurs de slides sont fixées par le JS. */
.product-showcase--enhanced .product-showcase__viewport { overflow: hidden; }
.product-showcase--enhanced .product-showcase__track { will-change: transform; }
.product-showcase--enhanced .product-showcase__slide { flex: 0 0 auto; }

@media (max-width: 640px) {
  .product-showcase__btn { width: 40px; height: 40px; }
}

/* ==========================================================================
   Ancrage du formulaire de devis : le header sticky ne doit pas le recouvrir
   ========================================================================== */
#devis-form { scroll-margin-top: 96px; }

/* ==========================================================================
   Catalogue produits — filtres, recherche, tri (page /produits)
   ========================================================================== */
.catalog {
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: 40px;
  align-items: start;
}

/* ------------------------------ Aside filtres --------------------------- */
.catalog__aside {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.catalog__aside-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.catalog__aside-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1.02rem; margin: 0; color: var(--ink);
}
.catalog__aside-title .icon { color: var(--blue-600); }
.catalog__aside-close {
  display: none; border: 0; background: var(--slate-50); color: var(--slate-600);
  width: 34px; height: 34px; border-radius: 8px; align-items: center; justify-content: center; cursor: pointer;
}
.catalog__aside-close:hover { background: var(--slate-100); color: var(--ink); }

.catalog__reset {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.84rem; font-weight: 600; color: var(--blue-600);
  margin: 4px 0 10px;
}
.catalog__reset:hover { color: var(--blue-700); }

/* ------------------------------ Groupes de filtres ---------------------- */
.filter-group {
  border-top: 1px solid var(--slate-100);
  padding: 14px 0;
}
.filter-group:first-child { border-top: 0; padding-top: 0; }
.filter-group__title {
  display: flex; align-items: center; gap: 7px;
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: 0.92rem; color: var(--ink);
  padding-bottom: 10px; user-select: none;
}
.filter-group__title::-webkit-details-marker { display: none; }
.filter-group__title::after {
  content: ""; margin-left: auto; width: 8px; height: 8px;
  border-right: 2px solid var(--slate-500); border-bottom: 2px solid var(--slate-500);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.filter-group__title .icon { color: var(--blue-600); }
.filter-group[open] .filter-group__title::after { transform: rotate(-135deg) translateY(-2px); }
.filter-group__options { display: grid; gap: 2px; }

.filter-option {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 6px; border-radius: 8px; cursor: pointer;
  transition: background .15s ease;
}
.filter-option:hover { background: var(--slate-50); }
.filter-option input[type="checkbox"] {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.filter-option__box {
  flex: none; width: 18px; height: 18px; border: 2px solid var(--slate-300);
  border-radius: 5px; display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.filter-option input:checked + .filter-option__box {
  background: var(--blue-600); border-color: var(--blue-600);
}
.filter-option input:checked + .filter-option__box::after {
  content: ""; width: 9px; height: 5px; border-left: 2px solid #fff;
  border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px);
}
.filter-option input:focus-visible + .filter-option__box { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.filter-option__label { font-size: 0.9rem; color: var(--slate-700); flex: 1; }
.filter-option__count {
  font-size: 0.76rem; color: var(--slate-400); font-weight: 600;
  background: var(--slate-100); border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center;
}

/* ------------------------------ Slider de prix -------------------------- */
.price-range { padding-top: 6px; }
.price-range__slider { position: relative; height: 34px; margin-bottom: 6px; }
.price-range__track, .price-range__fill {
  position: absolute; left: 0; right: 0; top: 50%; height: 5px; transform: translateY(-50%);
  border-radius: 999px;
}
.price-range__track { background: var(--slate-200); }
.price-range__fill { background: var(--blue-600); }
.price-range__input {
  position: absolute; left: 0; top: 0; width: 100%; height: 34px;
  margin: 0; background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none;
}
.price-range__input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 999px; background: #fff;
  border: 3px solid var(--blue-600); cursor: pointer; pointer-events: auto;
}
.price-range__input::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 999px; background: #fff;
  border: 3px solid var(--blue-600); cursor: pointer; pointer-events: auto;
}
.price-range__value {
  font-size: 0.86rem; font-weight: 600; color: var(--ink);
  margin: 6px 0 12px;
}
.price-range__num {
  width: calc(50% - 6px); display: inline-block; padding: 8px 10px; margin-bottom: 8px;
}
.price-range__num + .price-range__num { margin-left: 8px; }
.catalog__apply { width: 100%; justify-content: center; }

/* ------------------------------ Colonne principale ---------------------- */
.catalog-toolbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.catalog-search { position: relative; flex: 1; min-width: 240px; }
.catalog-search__input {
  width: 100%; padding: 13px 50px 13px 46px; border-radius: var(--radius);
  border: 1px solid var(--slate-200); background: var(--slate-100);
  font-family: inherit; font-size: 0.95rem; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.catalog-search__input:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.catalog-search::before {
  content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border: 2px solid var(--slate-400); border-radius: 999px;
}
.catalog-search::after {
  content: ""; position: absolute; left: 29px; top: calc(50% + 4px); width: 8px; height: 2px;
  background: var(--slate-400); transform: rotate(45deg);
}
.catalog-search__btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--blue-600);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.catalog-search__btn:hover { background: var(--blue-700); }

.catalog-sort { display: flex; align-items: center; gap: 8px; }
.catalog-sort__label { font-size: 0.88rem; font-weight: 600; color: var(--slate-600); white-space: nowrap; }
.catalog-sort__select { position: relative; }
.catalog-sort__select::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--slate-500); border-bottom: 2px solid var(--slate-500);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.catalog-sort__select select {
  appearance: none; -webkit-appearance: none; padding: 11px 38px 11px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--slate-200); background: #fff;
  font-family: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer;
}
.catalog-sort__select select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }

/* Boutons mobiles (cachés sur desktop) */
.catalog-mobile { display: none; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

/* ------------------------------ Tuiles marques/catégories --------------- */
.catalog-tiles {
  display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 22px;border-bottom: 1px solid var(--slate-200);
}

/* Bandeau pleine largeur sous le hero : navigation par CATÉGORIE uniquement.
   Pastilles compactes, texte seul (pas d'icône) — les marques restent dans
   le filtre latéral « Marque ». */
.catalog-tiles-band {
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
}
.catalog-tiles-band .container { padding-top: 12px; padding-bottom: 12px; }
.cat-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.cat-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; min-height: 38px;
  background: var(--slate-50); border: 1px solid var(--slate-200);
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  color: var(--ink); transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.cat-pill:hover { border-color: var(--blue-500); background: var(--blue-100); color: var(--blue-700); }
.cat-pill:focus-visible { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.cat-pill.is-active {
  background: var(--blue-600); border-color: var(--blue-600); color: #fff;
}
.cat-pill.is-active:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-width: 132px; padding: 14px 16px;
  background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 12px;
  color: var(--ink); transition: all .18s ease; text-align: center;
}
.tile:hover { border-color: var(--blue-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tile.is-active { border-color: var(--blue-600); background: var(--blue-100); }
.tile__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--slate-200);
  font-size: 0.9rem; font-weight: 800; color: var(--blue-600);
}
.tile__mark--cat { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.tile__label { font-size: 0.82rem; font-weight: 600; }
.tiles-divider { width: 1px; align-self: stretch; background: var(--slate-200); }

/* ------------------------------ Chips de filtres actifs ----------------- */
.catalog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.catalog-chips .chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  border: 1px solid var(--blue-200, #bfdbfe); background: var(--blue-100); color: var(--blue-700);
  font-size: 0.84rem; border-radius: 999px; font-weight: 600;
}
.catalog-chips .chip:hover { border-color: var(--blue-500); background: var(--blue-100); }
.catalog-chips .chip .icon { opacity: .7; }
.catalog-chips .chip--price { background: var(--slate-100); color: var(--ink); border-color: var(--slate-300); }

/* ------------------------------ Compteur -------------------------------- */
.catalog-count { font-size: 0.92rem; color: var(--slate-600); margin: 0 0 20px; font-weight: 500; }
.catalog-count__note { color: var(--slate-400); }

/* ------------------------------ Pagination ------------------------------ */
.catalog-pagination { margin-top: 36px; display: grid; gap: 8px; justify-items: center; }
.catalog-pagination__info { font-size: 0.86rem; color: var(--slate-500); margin: 0; }
.catalog-pagination__nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.catalog-pagination__page {
  min-width: 38px; height: 38px; padding: 0 8px; display: inline-flex; align-items: center;
  justify-content: center; border: 1px solid var(--slate-300); border-radius: 10px;
  background: #fff; color: var(--slate-700); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
a.catalog-pagination__page:hover { border-color: var(--blue-600); color: var(--blue-700); background: var(--blue-100); }
.catalog-pagination__page.is-current {
  background: var(--blue-700); border-color: var(--blue-700); color: #fff; cursor: default;
}
.catalog-pagination__dots { display: inline-flex; align-items: center; padding: 0 2px; color: var(--slate-400); user-select: none; }
.catalog-pagination__disabled { opacity: 0.45; pointer-events: none; }

/* ------------------------------ Fond + drawer mobile -------------------- */
.filter-backdrop {
  position: fixed; inset: 0; z-index: 180; background: rgba(6,10,20,.45);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.filter-backdrop.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   Responsive catalogue
   ========================================================================== */
@media (max-width: 1024px) {
  .catalog { grid-template-columns: 1fr; gap: 24px; }
  .catalog__aside {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 190;
    width: min(340px, 88vw); max-width: 88vw;
    border-radius: 0; overflow-y: auto; padding: 20px;
    transform: translateX(-105%); transition: transform .28s ease;
    box-shadow: var(--shadow-lg); margin: 0;
  }
  body.filter-open .catalog__aside { transform: translateX(0); }
  .catalog__aside-close { display: inline-flex; }
  .catalog-mobile { display: flex; }
  .catalog-sort--desktop { display: none; }
}
@media (max-width: 640px) {
  .catalog-toolbar { gap: 12px; }
  .catalog-tiles { gap: 10px; }
  .tile { min-width: 108px; padding: 12px 12px; }
  /* Pastilles de catégories : repli naturel, jamais de débordement
     horizontal, cibles tactiles confortables conservées. */
  .catalog-tiles-band .container { padding-top: 10px; padding-bottom: 10px; }
  .cat-nav { gap: 6px; }
  .cat-pill {
    padding: 8px 12px; font-size: 0.8rem; min-height: 38px;
    white-space: normal; overflow-wrap: break-word; max-width: 100%;
  }
}

/* ==========================================================================
   Fiche produit — tableau de spécifications techniques
   ========================================================================== */
.product-detail__specs { margin: 22px 0; }
.product-detail__specs-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1rem; margin: 0 0 12px; color: var(--ink);
}
.product-detail__specs-title .icon { color: var(--blue-600); }
.spec-table {
  display: grid; gap: 0; margin: 0; border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm); overflow: hidden;
}
.spec-row {
  display: grid; grid-template-columns: 46% 54%; gap: 0;
  border-bottom: 1px solid var(--slate-100);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row:nth-child(odd) { background: var(--slate-50); }
.spec-row__name, .spec-row__value { margin: 0; padding: 9px 14px; font-size: 0.88rem; }
.spec-row__name { color: var(--slate-500); font-weight: 600; }
.spec-row__value { color: var(--ink); font-weight: 600; }
