/* ==========================================================================
   Arama Tech — Feuille de style principale
   Approche mobile-first : les styles de base ciblent le téléphone,
   les media queries (min-width) enrichissent pour tablette et ordinateur.
   --------------------------------------------------------------------------
   Sommaire
   1. Variables (couleurs, typo, espacements) + thèmes clair / sombre
   2. Base & reset
   3. Utilitaires (conteneur, boutons, titres de section)
   4. En-tête & navigation
   5. Héros
   6. Cartes services
   7. Cartes produits
   8. Pourquoi nous choisir & compteurs
   9. Bandeau d'appel à l'action
   10. Localisation & carte
   11. FAQ
   12. Catalogue (barre d'outils, filtres, recherche)
   13. Page À propos
   14. Pied de page
   15. Bouton WhatsApp flottant
   16. Animations (apparition au scroll, keyframes)
   17. Préférences d'accessibilité (mouvement réduit)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. POLICES (hébergées sur le site, licence SIL Open Font License)
   Inter (variable 400–600) et Poppins 500/600/700, sous-ensemble latin
   (couvre tous les caractères français : é, è, à, ç, œ, «, », etc.)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Polices de repli ajustées
   Le texte s'affiche d'abord avec une police système aux dimensions calées
   sur Inter / Poppins : rien ne « saute » quand les polices Google arrivent.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Roboto");
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Poppins Fallback";
  src: local("Arial"), local("ArialMT"), local("Roboto");
  size-adjust: 113.18%;
  ascent-override: 92.83%;
  descent-override: 30.94%;
  line-gap-override: 8.84%;
}

/* --------------------------------------------------------------------------
   1. VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Palette de marque */
  --c-deep: #0A1F44;          /* bleu profond */
  --c-electric: #1E5EFF;      /* bleu électrique */
  --c-cyan: #00D4FF;          /* accent cyan */
  --c-wa: #0F7A3F;            /* vert WhatsApp foncé (contraste AA avec le blanc) */
  --c-wa-hover: #0B6332;

  /* Thème clair (par défaut) */
  --bg: #F4F7FD;
  --bg-alt: rgba(226, 234, 250, 0.72);
  --surface: #FFFFFF;
  --surface-2: #F3F6FD;
  --border: rgba(10, 31, 68, 0.10);
  --border-strong: rgba(10, 31, 68, 0.18);
  --text: #0A1F44;
  --text-muted: #46557A;
  --primary: #1E5EFF;
  --primary-hover: #1746CC;
  --link: #1A52E0;
  --accent-text: #0A7EA4;
  --on-primary: #FFFFFF;
  --header-bg: rgba(244, 247, 253, 0.82);
  --chip-bg: rgba(30, 94, 255, 0.08);
  --chip-text: #1746CC;
  --focus: #1E5EFF;
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.06), 0 2px 8px rgba(10, 31, 68, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(10, 31, 68, 0.22);
  --glow: 0 0 0 1px rgba(0, 212, 255, 0.35), 0 18px 40px -16px rgba(30, 94, 255, 0.45);

  /* Fond de neurones (valeurs RVB lues par neurons.js) */
  --neuron-rgb: 30, 94, 255;
  --neuron-accent-rgb: 0, 160, 210;
  --neuron-opacity: 0.55;

  /* Typographie */
  --font-heading: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rayons, espacements, durées */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --gutter: 16px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s;
  --t: 0.35s;

  color-scheme: light;
}

/* Thème sombre : appliqué si le système le demande (sauf choix manuel « clair ») */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050B1A;
    --bg-alt: rgba(9, 20, 44, 0.72);
    --surface: #0C1833;
    --surface-2: #10204A;
    --border: rgba(148, 178, 255, 0.14);
    --border-strong: rgba(148, 178, 255, 0.26);
    --text: #E7EEFF;
    --text-muted: #A9B7D8;
    --primary: #1E5EFF;
    --primary-hover: #3A74FF;
    --link: #8DB4FF;
    --accent-text: #5CE1FF;
    --header-bg: rgba(5, 11, 26, 0.78);
    --chip-bg: rgba(92, 225, 255, 0.10);
    --chip-text: #9EEBFF;
    --focus: #5CE1FF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
    --glow: 0 0 0 1px rgba(0, 212, 255, 0.35), 0 18px 46px -16px rgba(0, 212, 255, 0.35);
    --neuron-rgb: 92, 160, 255;
    --neuron-accent-rgb: 0, 212, 255;
    --neuron-opacity: 0.5;
    color-scheme: dark;
  }
}

/* Thème sombre choisi manuellement via le bouton */
:root[data-theme="dark"] {
  --bg: #050B1A;
  --bg-alt: rgba(9, 20, 44, 0.72);
  --surface: #0C1833;
  --surface-2: #10204A;
  --border: rgba(148, 178, 255, 0.14);
  --border-strong: rgba(148, 178, 255, 0.26);
  --text: #E7EEFF;
  --text-muted: #A9B7D8;
  --primary: #1E5EFF;
  --primary-hover: #3A74FF;
  --link: #8DB4FF;
  --accent-text: #5CE1FF;
  --header-bg: rgba(5, 11, 26, 0.78);
  --chip-bg: rgba(92, 225, 255, 0.10);
  --chip-text: #9EEBFF;
  --focus: #5CE1FF;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(0, 212, 255, 0.35), 0 18px 46px -16px rgba(0, 212, 255, 0.35);
  --neuron-rgb: 92, 160, 255;
  --neuron-accent-rgb: 0, 212, 255;
  --neuron-opacity: 0.5;
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. BASE & RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

/* Le fond est posé sur body uniquement : il se propage au viewport,
   ce qui permet au canvas des neurones (z-index négatif) de rester visible. */
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--t) ease, color var(--t) ease;
}

body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 7vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* Focus visible et cohérent pour la navigation au clavier */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(0, 212, 255, 0.3); }

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--t-fast) ease;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Canvas des neurones : fixe, derrière tout le contenu */
#neurons {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
/* Apparition en fondu une fois la page chargée (voir neurons.js) */
#neurons.is-ready { opacity: var(--neuron-opacity); }

/* --------------------------------------------------------------------------
   3. UTILITAIRES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 64px; position: relative; }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-electric), var(--c-cyan));
}

.lead { font-size: 1.08rem; color: var(--text-muted); }
.muted { color: var(--text-muted); }

.text-gradient {
  background: linear-gradient(100deg, var(--c-electric) 0%, var(--c-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Boutons */
.btn {
  --btn-bg: var(--primary);
  --btn-bg-hover: var(--primary-hover);
  --btn-color: var(--on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-color);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) ease, transform var(--t-fast) ease,
              box-shadow var(--t) var(--ease), border-color var(--t-fast) ease;
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--wa { --btn-bg: var(--c-wa); --btn-bg-hover: var(--c-wa-hover); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: var(--chip-bg);
  --btn-color: var(--text);
  border-color: var(--border-strong);
}
.btn--light { --btn-bg: #FFFFFF; --btn-bg-hover: #E8F0FF; --btn-color: var(--c-deep); }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 0.92rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Petit badge / pastille */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Fil d'Ariane */
.breadcrumb { font-size: 0.9rem; margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); }
.breadcrumb li + li::before { content: "›"; color: var(--text-muted); }
.breadcrumb a { color: var(--link); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Grilles */
.grid { display: grid; gap: 20px; }
.grid--services { grid-template-columns: 1fr; }
.grid--products { grid-template-columns: 1fr; }
.service-group-heading {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 1.15rem;
}
.service-group-heading:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   4. EN-TÊTE & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height var(--t) var(--ease);
}
/* Le fond givré est porté par un pseudo-élément : un backdrop-filter sur
   l'en-tête lui-même casserait le positionnement fixe du menu mobile. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px -18px rgba(10, 31, 68, 0.5);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  opacity: 0;
  transition: opacity var(--t) ease;
}
/* Effet au scroll : en-tête plus compact, fond givré visible */
.site-header.is-scrolled { --header-h: 60px; }
.site-header.is-scrolled::before { opacity: 1; }
.header-actions { position: relative; z-index: 95; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand svg { width: 36px; height: 36px; flex: none; }
.brand span span { color: var(--accent-text); }

.header-actions { display: flex; align-items: center; gap: 6px; }
body.nav-open .site-header::before { opacity: 1; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--t-fast) ease, transform var(--t-fast) ease, background-color var(--t-fast);
}
.icon-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }

/* Icônes du bouton de thème : soleil en mode sombre, lune en mode clair */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Burger (mobile) */
.nav-toggle .burger { position: relative; width: 20px; height: 14px; }
.nav-toggle .burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t) var(--ease), opacity var(--t-fast) ease, top var(--t) var(--ease);
}
.nav-toggle .burger span:nth-child(1) { top: 0; }
.nav-toggle .burger span:nth-child(2) { top: 6px; }
.nav-toggle .burger span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Panneau de navigation mobile */
.site-nav {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 90;
  width: min(86vw, 360px);
  padding: calc(var(--header-h) + 24px) 24px 32px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 50px -20px rgba(0, 0, 0, 0.45);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform var(--t) var(--ease), visibility 0s linear var(--t);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}
.site-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--t) var(--ease), visibility 0s;
}
.nav-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.nav-link:hover { background: var(--chip-bg); }
.nav-link[aria-current="page"] { color: var(--accent-text); background: var(--chip-bg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 11, 26, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t) ease;
}
.nav-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.header-cta { display: none; }

/* --------------------------------------------------------------------------
   5. HÉROS
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 56px;
  position: relative;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 1.1rem; max-width: 600px; margin-bottom: 28px; }
.hero .btn-row .btn { flex: 1 1 220px; }

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; }

/* Visuel du héros : panneau vitré + pastilles flottantes */
.hero-visual { position: relative; max-width: 520px; margin-inline: auto; width: 100%; }
.hero-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 70%, transparent));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.28), transparent 65%);
  pointer-events: none;
}
.hero-panel svg { width: 100%; height: auto; position: relative; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-chip i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.18);
}
.float-chip--1 { top: -14px; left: 8%; }
.float-chip--2 { bottom: 22%; right: -6px; animation-delay: -2s; }
.float-chip--3 { bottom: -16px; left: 14%; animation-delay: -4s; }

/* --------------------------------------------------------------------------
   6. CARTES SERVICES
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) ease;
}
/* Survol : élévation + léger halo cyan */
.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--glow);
  border-color: rgba(0, 212, 255, 0.45);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.97rem; }
.card .card-actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--c-electric), var(--c-cyan));
  box-shadow: 0 10px 24px -10px rgba(30, 94, 255, 0.7);
}
.card-icon svg { width: 26px; height: 26px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--link);
  min-height: 44px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--t-fast) ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   7. CARTES PRODUITS
   -------------------------------------------------------------------------- */
.product-card { padding: 0; overflow: hidden; }
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-media .chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(5, 11, 26, 0.72);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.product-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.product-body h3 { font-size: 1.08rem; }
.product-body p { font-size: 0.94rem; margin-bottom: 14px; }

.feature-list { list-style: none; display: grid; gap: 6px; margin-bottom: 18px; font-size: 0.9rem; }
.feature-list li { display: flex; gap: 8px; align-items: flex-start; }
.feature-list li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    linear-gradient(135deg, var(--c-electric), var(--c-cyan));
}
.product-body .btn { margin-top: auto; }

/* Squelette de chargement */
.skeleton {
  min-height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}

.center-cta { display: flex; justify-content: center; margin-top: 36px; }

/* --------------------------------------------------------------------------
   8. POURQUOI NOUS CHOISIR & COMPTEURS
   -------------------------------------------------------------------------- */
.why-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.why-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--t) ease, transform var(--t) var(--ease);
}
.why-item:hover { border-color: rgba(0, 212, 255, 0.45); transform: translateY(-3px); }
.why-item .card-icon { width: 44px; height: 44px; margin: 0; flex: none; border-radius: 12px; }
.why-item .card-icon svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.why-item p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.stat {
  padding: 22px 16px;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--c-deep), #10307A);
  color: #fff;
  border: 1px solid rgba(0, 212, 255, 0.25);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 80%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.25), transparent 60%);
}
.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.88rem; color: #C9D7FF; }

/* --------------------------------------------------------------------------
   9. BANDEAU D'APPEL À L'ACTION
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #0A1F44 0%, #1036A0 55%, #1E5EFF 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.45), transparent 60%);
  z-index: -1;
  animation: pulse-glow 8s ease-in-out infinite;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #D6E2FF; max-width: 620px; }
.cta-band .eyebrow { color: #9EEBFF; }

/* --------------------------------------------------------------------------
   10. LOCALISATION & CARTE
   -------------------------------------------------------------------------- */
.location-grid { display: grid; gap: 24px; }
.info-list { list-style: none; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .card-icon { width: 42px; height: 42px; margin: 0; border-radius: 12px; flex: none; }
.info-list .card-icon svg { width: 20px; height: 20px; }
.info-list strong { display: block; font-family: var(--font-heading); font-weight: 600; }
.info-list span, .info-list a { color: var(--text-muted); }
.info-list a { color: var(--link); }

/* Façade de carte : l'iframe Google Maps n'est chargée qu'au clic (performance + vie privée) */
.map-facade {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(rgba(30, 94, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(30, 94, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--surface);
}
.map-facade .pin {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--c-electric), var(--c-cyan));
  box-shadow: 0 0 0 10px rgba(0, 212, 255, 0.15), 0 0 0 22px rgba(0, 212, 255, 0.07);
}
.map-facade .pin svg { width: 26px; height: 26px; }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   11. FAQ (éléments <details> natifs, accessibles au clavier)
   -------------------------------------------------------------------------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--t) ease, box-shadow var(--t) ease;
}
.faq-item[open] { border-color: rgba(0, 212, 255, 0.45); box-shadow: var(--shadow-md); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat,
    linear-gradient(135deg, var(--c-electric), var(--c-cyan));
  transition: transform var(--t) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq-answer { padding: 0 20px 18px; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   12. CATALOGUE
   -------------------------------------------------------------------------- */
.page-hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 24px; }
.page-hero h1 { font-size: clamp(1.8rem, 6vw, 3rem); }

.toolbar {
  position: sticky;
  top: calc(var(--header-h) - 1px);
  z-index: 20;
  padding-block: 12px;
  margin-bottom: 20px;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
/* minmax(0, 1fr) : empêche la rangée de filtres d'élargir la grille sur mobile */
.toolbar-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

.search {
  position: relative;
}
.search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px 12px 46px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.search input::placeholder { color: var(--text-muted); opacity: 1; }
.search input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(30, 94, 255, 0.18); }

/* Boutons de filtre : défilement horizontal sur mobile */
.filters {
  /* position: relative : les libellés .visually-hidden (absolus) restent
     contenus et rognés par la zone défilante, sinon la page déborde. */
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  margin-inline: -2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.filter-btn {
  flex: none;
  scroll-snap-align: start;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 600 0.9rem var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease,
              border-color var(--t-fast) ease, transform var(--t-fast) ease;
}
.filter-btn:hover { border-color: var(--primary); transform: translateY(-1px); }
.filter-btn[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(30, 94, 255, 0.8);
}
.filter-btn .count { color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.filter-btn[aria-pressed="true"] .count { color: #fff; }

/* Le navigateur ne calcule pas l'affichage des cartes hors écran (gros gain sur mobile) */
#product-grid .product-card { content-visibility: auto; contain-intrinsic-size: auto 560px; }

.results-info { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 16px; }

/* Transition fluide lors du filtrage */
.grid--products.is-filtering { opacity: 0; transform: translateY(8px); }
.grid--products { transition: opacity 0.2s ease, transform 0.2s ease; }
.grid--products .product-card.card-in {
  animation: card-in 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-state[hidden] { display: none; }

.note {
  padding: 14px 18px;
  border-left: 4px solid var(--c-cyan);
  border-radius: var(--radius-sm);
  background: var(--chip-bg);
  font-size: 0.92rem;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   13. PAGE À PROPOS
   -------------------------------------------------------------------------- */
.split { display: grid; gap: 32px; align-items: center; }

.founder {
  display: grid;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.founder img {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
  margin-inline: auto;
}
.founder .role { color: var(--accent-text); font-weight: 600; margin-bottom: 12px; }

.values { list-style: none; display: grid; gap: 12px; }
.values li {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.values strong { display: block; font-family: var(--font-heading); }
.values span { color: var(--text-muted); font-size: 0.95rem; }

.service-detail {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + 16px);
  transition: border-color var(--t) ease, box-shadow var(--t) var(--ease);
}
.service-detail:hover { border-color: rgba(0, 212, 255, 0.45); box-shadow: var(--glow); }
.service-detail + .service-detail { margin-top: 16px; }
.service-detail .card-icon { margin-bottom: 0; }
.service-detail h3 { font-size: 1.25rem; }
.service-detail-heading {
  margin: 32px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.section-head + .service-detail-heading { margin-top: 0; }
.service-detail-heading + .service-detail { margin-top: 0; }
.service-detail ul { list-style: none; display: grid; gap: 6px; margin-bottom: 18px; }
.service-detail li { display: flex; gap: 8px; color: var(--text-muted); }
.service-detail li::before { content: "▹"; color: var(--accent-text); font-weight: 700; }

.formation-card .chip { align-self: flex-start; margin-bottom: 14px; }
.formation-card ul { list-style: none; display: grid; gap: 6px; margin-bottom: 18px; font-size: 0.94rem; color: var(--text-muted); }
.formation-card li { display: flex; gap: 8px; }
.formation-card li::before { content: "✓"; color: var(--accent-text); font-weight: 700; }

.timeline { list-style: none; display: grid; gap: 0; border-left: 2px solid var(--border-strong); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px; top: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-electric), var(--c-cyan));
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline strong { display: block; font-family: var(--font-heading); }
.timeline span { color: var(--text-muted); }

.zones { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

/* --------------------------------------------------------------------------
   14. PIED DE PAGE (toujours sombre)
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 40px;
  padding-top: 56px;
  background: #050B1A;
  color: #C3CFEA;
  border-top: 1px solid rgba(148, 178, 255, 0.14);
}
.site-footer a { color: #DCE6FF; text-decoration: none; }
.site-footer a:hover { color: #5CE1FF; text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer .brand span span { color: #5CE1FF; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
.footer-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.footer-list { list-style: none; display: grid; gap: 8px; font-size: 0.94rem; }
.footer-bottom {
  padding-block: 20px;
  border-top: 1px solid rgba(148, 178, 255, 0.14);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   15. BOUTON WHATSAPP FLOTTANT
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 95;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #18A957, var(--c-wa));
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(15, 122, 63, 0.7);
  text-decoration: none;
  transition: transform var(--t-fast) ease, box-shadow var(--t) ease;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #18A957;
  animation: ring 2.6s ease-out infinite;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float .wa-label {
  position: absolute;
  right: calc(100% + 12px);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity var(--t-fast) ease, transform var(--t-fast) ease;
}
.wa-float:hover .wa-label,
.wa-float:focus-visible .wa-label { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   16. ANIMATIONS
   -------------------------------------------------------------------------- */
/* Les éléments .reveal ne sont masqués que si JavaScript est actif (classe .js sur <html>) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Entrée du haut de page : pur CSS, sans attendre le JavaScript, et jamais
   totalement transparente (le titre compte pour le LCP de Lighthouse). */
.hero-in {
  animation: hero-in 0.8s var(--ease) both;
  animation-delay: var(--delay, 0s);
}
@keyframes hero-in {
  from { opacity: 0.35; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes ring {
  0% { transform: scale(1); opacity: 0.8; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}
@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — tablette (≥ 600px / 768px)
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .grid--services,
  .grid--products { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .hero .btn-row .btn { flex: 0 0 auto; }
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .section { padding-block: 88px; }
  .cta-band { padding: 56px 48px; }
  .location-grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .toolbar-inner { grid-template-columns: minmax(240px, 340px) 1fr; align-items: center; }
  .filters { flex-wrap: wrap; overflow: visible; padding-bottom: 4px; }
  .founder { grid-template-columns: 280px 1fr; align-items: center; padding: 32px; }
  .service-detail { grid-template-columns: auto 1fr; padding: 32px; }
  .split { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — ordinateur (≥ 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .grid--services { grid-template-columns: repeat(4, 1fr); }
  .grid--products { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-top: calc(var(--header-h) + 72px); padding-bottom: 88px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
  .cta-band-inner .btn-row { flex: none; }
  .wa-float { right: 24px; bottom: 24px; }

  /* Navigation horizontale : le panneau mobile devient une barre en ligne */
  .nav-toggle { display: none; }
  .nav-backdrop { display: none; }
  .site-nav {
    position: static;
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    flex-direction: row;
    overflow: visible;
    transition: none;
  }
  .nav-list { flex-direction: row; gap: 2px; }
  .nav-link { padding: 8px 14px; font-size: 0.97rem; }
  .site-nav .nav-extra { display: none; }
  .header-cta { display: inline-flex; }
}

@media (min-width: 1280px) {
  .grid--products { grid-template-columns: repeat(4, 1fr); }
  .grid--products.grid--featured { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   17. MOUVEMENT RÉDUIT : on coupe animations et transitions décoratives
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .card:focus-within, .btn:hover { transform: none; }
}
