/* =====================================================================
   KADENCE — Site vitrine one-page
   Feuille de style principale
   ---------------------------------------------------------------------
   Sommaire :
   1.  Variables & thème (couleurs, typographie, espacements)
   2.  Reset & base
   3.  Utilitaires (conteneur, boutons, eyebrow, tags)
   4.  Arrière-plan animé (grille + flux de données)
   5.  Header / navigation
   6.  Hero
   7.  Bandeau de confiance
   8.  Problème / Solution
   9.  Solutions (grille de cartes)
   10. Comment ça marche (process)
   11. Pourquoi Kadence / preuve sociale
   12. CTA final + formulaire
   13. Footer
   14. Animations au scroll (reveal)
   15. Responsive (mobile-first ajustements)
   ===================================================================== */

/* =====================================================================
   1. VARIABLES & THÈME
   ===================================================================== */
:root {
  /* Fonds sombres */
  --c-bg:        #070a16;   /* bleu nuit profond, fond dominant */
  --c-bg-soft:   #0b1022;   /* variation légèrement plus claire */
  --c-bg-card:   rgba(255, 255, 255, 0.035); /* base glassmorphism */
  --c-border:    rgba(255, 255, 255, 0.09);
  --c-border-hi: rgba(120, 160, 255, 0.35);

  /* Accents lumineux (IA / automatisation) */
  --c-electric:  #3d7fff;   /* bleu électrique */
  --c-violet:    #9a6bff;   /* violet */
  --c-mint:      #35e0c4;   /* vert/turquoise néon — touche de chaleur tech */
  /* Accent MÉTIER (électricité) — ambre « sous tension », en complément du bleu/violet */
  --c-amber:     #ffb020;   /* ambre sécurité / électricité */
  --c-amber-hi:  #ffca6a;   /* ambre clair — texte lisible sur fond sombre */

  /* Dégradés */
  --grad-primary: linear-gradient(135deg, #3d7fff 0%, #9a6bff 100%);
  --grad-mint:    linear-gradient(135deg, #35e0c4 0%, #3d7fff 100%);
  --grad-text:    linear-gradient(120deg, #7fb0ff 0%, #b79bff 55%, #57e6cf 100%);

  /* Texte */
  --c-text:      #eef1fb;   /* texte principal */
  --c-muted:     #9aa4c0;   /* texte secondaire */
  --c-faint:     #6b769a;   /* texte discret / placeholders */

  /* Effets */
  --glow-blue:   0 0 40px rgba(61, 127, 255, 0.35);
  --glow-violet: 0 0 40px rgba(154, 107, 255, 0.30);
  --glow-amber:  0 0 26px rgba(255, 176, 32, 0.25);
  --shadow-card: 0 20px 50px rgba(3, 6, 18, 0.55);

  /* Typographie */
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  /* Layout */
  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(154, 107, 255, 0.35); color: #fff; }

/* =====================================================================
   3. UTILITAIRES
   ===================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Étiquette de section (« eyebrow ») — accent monospace */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mint);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--c-mint), transparent);
}

/* Titres de section */
.section-title {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  margin: 18px 0 16px;
}
.section-lead {
  color: var(--c-muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  max-width: 56ch;
}
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Texte en dégradé */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  position: relative;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--glow-blue);
  overflow: hidden;
}
/* Soulignement ambre « sous tension » sur le CTA principal */
.btn-primary::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px; bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--c-amber), transparent);
  opacity: 0.85;
}
.btn-primary:hover {
  transform: translateY(-3px);
  /* halo ambre : la « surtension » au survol */
  box-shadow: 0 14px 38px rgba(61, 127, 255, 0.35), 0 6px 26px rgba(255, 176, 32, 0.4);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-text);
  border-color: var(--c-border);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--c-border-hi);
  background: rgba(255, 255, 255, 0.07);
}
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Tags monospace (« Automatisation », « IA »…) */
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  background: rgba(255, 255, 255, 0.02);
}

/* Marqueur de contenu à compléter */
.placeholder-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: #ffcf6b;
  border: 1px dashed rgba(255, 207, 107, 0.5);
  background: rgba(255, 207, 107, 0.06);
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-block;
}

/* --- Touches « métier électricien » (à utiliser avec parcimonie) --- */

/* Badge ambre « sous tension » : éclair + vocabulaire métier */
.badge-electric {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-amber-hi);
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.09);
}
.badge-electric svg { width: 13px; height: 13px; color: var(--c-amber); flex-shrink: 0; }

/* En-tête avec badge aligné à côté de l'eyebrow */
.head-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Séparateur = câble électrique légèrement ondulé, plein largeur, avec un
   éclair ambre intégré au centre (segment de câble « sous tension »).
   Plus grand et plus contrasté que la simple ligne précédente. */
.sep-cable {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
}
.sep-cable .cable { display: block; width: 100%; height: 30px; }
.sep-cable .cable .wire {
  fill: none;
  stroke: rgba(140, 170, 255, 0.42);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}
/* Segment central « sous tension » en ambre */
.sep-cable .cable .wire-live {
  stroke: var(--c-amber);
  stroke-opacity: 0.9;
  stroke-width: 1.8;
}
/* Éclair intégré, posé sur le câble */
.sep-cable .bolt {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 22px; height: 30px;
  color: var(--c-amber);
  filter: drop-shadow(0 0 9px rgba(255, 176, 32, 0.55));
}
.sep-cable .bolt svg { display: block; width: 100%; height: 100%; }

/* =====================================================================
   4. ARRIÈRE-PLAN ANIMÉ (grille + flux de données)
   Fixe, discret, derrière tout le contenu.
   ===================================================================== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% -10%, rgba(61, 127, 255, 0.15), transparent 60%),
    radial-gradient(50% 40% at 85% 15%, rgba(154, 107, 255, 0.13), transparent 60%),
    radial-gradient(45% 45% at 10% 40%, rgba(53, 224, 196, 0.07), transparent 60%),
    /* Zone ambrée « électricité » — chaude et discrète, en bas à droite */
    radial-gradient(42% 34% at 88% 84%, rgba(255, 176, 32, 0.07), transparent 62%),
    var(--c-bg);
}
/* Grille type circuit imprimé, très légère */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}
/* SVG de flux de données (défini dans le HTML), positionné en arrière-plan */
.bg-flow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3; /* atténué : ce n'est plus que du bruit ambiant, les motifs métier priment */
  width: 100%;
  height: 100%;
}
.bg-flow path { fill: none; }
/* Lignes de « flux de données » : tirets qui se déplacent le long du tracé */
.bg-flow .flow-line {
  stroke-width: 1.1;
  stroke-dasharray: 5 16;
  animation: flowDash 5s linear infinite;
}
.bg-flow .flow-line.slow { animation-duration: 8s; }
.bg-flow .flow-line.fast { animation-duration: 3.5s; }
@keyframes flowDash { to { stroke-dashoffset: -210; } }
/* Nœuds pulsants du circuit */
.bg-flow .flow-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 3.5s ease-in-out infinite;
}
@keyframes nodePulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

/* =====================================================================
   5. HEADER / NAVIGATION
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  transition: padding 0.35s ease, background 0.35s ease,
              box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.scrolled {
  padding: 12px clamp(20px, 5vw, 48px);
  background: rgba(7, 10, 22, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: 0.02em;
}
.brand .brand-mark {
  width: 30px; height: 30px;
  filter: drop-shadow(0 0 10px rgba(61, 127, 255, 0.6));
}
.brand span { color: var(--c-text); }

/* Liens de navigation */
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--c-muted);
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--c-text); }
.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* CTA réservé au menu mobile : masqué sur desktop (le CTA header suffit) */
.nav-cta-mobile { display: none; }

/* Bouton burger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   6. HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
}
.hero-inner { max-width: 820px; position: relative; z-index: 2; }

/* --- Schéma électrique du Hero (élément structurant, côté droit) ---
   Circuit reconnaissable (interrupteur, lampe, résistance, terre) en trait fin
   mais contrasté. Masqué du côté gauche pour préserver la lisibilité du texte. */
.hero-schematic {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  /* fondu vers la gauche (zone de texte) et vers les bords */
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 52%, #000 88%, transparent 100%);
  mask-image: linear-gradient(100deg, transparent 20%, #000 52%, #000 88%, transparent 100%);
}
.hero-schematic svg {
  position: absolute;
  top: 50%; right: -1%;
  transform: translateY(-50%);
  width: min(720px, 78%);
  height: auto;
}
.hero-schematic .wire {
  fill: none;
  stroke: #8fa6dc;
  stroke-opacity: 0.55;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.hero-schematic .sym {
  fill: none;
  stroke: var(--c-amber);
  stroke-opacity: 0.85;
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
}
.hero-schematic .term { fill: var(--c-amber); }
.hero-schematic .term-b { fill: #8fa6dc; }
/* « Courant » qui circule sur le fil principal (petit tiret ambre animé) */
.hero-schematic .current {
  fill: none;
  stroke: var(--c-amber);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 2 200;
  vector-effect: non-scaling-stroke;
  animation: heroCurrent 4.5s linear infinite;
}
@keyframes heroCurrent { to { stroke-dashoffset: -202; } }

.hero .eyebrow { margin-bottom: 22px; }

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero p.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  color: var(--c-muted);
  max-width: 60ch;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

/* Chiffres clés / réassurance sous le hero */
.hero-stats {
  display: flex;
  gap: clamp(24px, 5vw, 56px);
  flex-wrap: wrap;
}
.hero-stats .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--c-text);
}
.hero-stats .stat-lbl {
  font-size: 0.85rem;
  color: var(--c-muted);
  max-width: 22ch;
}

/* Carte flottante « flux automatisé » à droite (desktop) */
.hero-visual {
  position: absolute;
  right: clamp(-40px, -2vw, 0px);
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  z-index: 2; /* au-dessus du schéma électrique */
  display: none; /* activée en desktop large */
}
.flow-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: floaty 6s ease-in-out infinite;
}
.flow-card:nth-child(2) { animation-delay: -2s; margin-left: 30px; }
.flow-card:nth-child(3) { animation-delay: -4s; }
.flow-card .flow-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(61, 127, 255, 0.14);
  color: var(--c-mint);
  flex-shrink: 0;
}
.flow-card .flow-t { font-size: 0.9rem; font-weight: 600; }
.flow-card .flow-s { font-family: var(--font-mono); font-size: 0.7rem; color: var(--c-mint); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* =====================================================================
   7. BANDEAU DE CONFIANCE
   ===================================================================== */
.trust {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 22px 0;
  background: rgba(255, 255, 255, 0.015);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--c-muted);
}
.trust-inner .dot { color: var(--c-mint); }

/* Espacement vertical générique des sections */
.section { padding: clamp(80px, 11vw, 130px) 0; position: relative; }

/* =====================================================================
   8. PROBLÈME / SOLUTION
   ===================================================================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.problem-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 30px 28px;
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.problem-card:hover { transform: translateY(-6px); border-color: rgba(255, 176, 32, 0.5); }
.problem-card .pc-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(154, 107, 255, 0.14);
  color: var(--c-violet);
  margin-bottom: 20px;
}
.problem-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
/* Ligne « avant » (tâche chronophage) */
.pc-before {
  font-size: 0.95rem;
  color: var(--c-muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--c-border);
}
/* Ligne « avec Kadence » (automatisation) */
.pc-after {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--c-text);
}
.pc-after .arrow { color: var(--c-mint); flex-shrink: 0; font-weight: 700; }
.pc-after b { color: var(--c-mint); font-weight: 600; }

/* =====================================================================
   9. SOLUTIONS (grille de cartes)
   ===================================================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.solution-card {
  position: relative;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 30px 28px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
/* Halo lumineux qui suit le survol (variable --mx/--my mises à jour en JS) */
.solution-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 176, 32, 0.16),
    transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* --- Carte mise en avant (devis = pain point n°1) ---
   Déclarée AVANT :hover pour que le survol ambre reste prioritaire. */
.solution-card.featured {
  border-color: rgba(154, 107, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(154, 107, 255, 0.16),
              0 18px 44px rgba(154, 107, 255, 0.16);
}
/* Deux badges alignés (Devis + Le plus demandé) */
.solution-card .sc-tags {
  position: absolute;
  top: 24px; right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Badge « Le plus demandé » — violet, cohérent avec la palette existante */
.tag-featured {
  border-color: rgba(154, 107, 255, 0.5);
  background: rgba(154, 107, 255, 0.14);
  color: #c9b3ff;
}

.solution-card:hover { transform: translateY(-8px); border-color: rgba(255, 176, 32, 0.5); }
.solution-card:hover::before { opacity: 1; }

.solution-card .sc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(61, 127, 255, 0.12);
  color: var(--c-electric);
  margin-bottom: 20px;
  transition: transform 0.35s ease;
}
.solution-card:hover .sc-icon { transform: scale(1.08) rotate(-3deg); }
.solution-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.solution-card p { font-size: 0.95rem; color: var(--c-muted); }
.solution-card .sc-tag {
  position: absolute;
  top: 24px; right: 24px;
}

/* Bandeau « + d'autres offres » */
.solutions-more {
  margin-top: 34px;
  text-align: center;
  color: var(--c-muted);
  font-size: 0.98rem;
}
.solutions-more b { color: var(--c-text); }

/* =====================================================================
   10. COMMENT ÇA MARCHE (process)
   ===================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.step-card {
  position: relative;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(255, 176, 32, 0.5); }
/* Numéro d'étape = « disjoncteur » ambre sous tension */
.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-amber-hi);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 176, 32, 0.5);
  background: rgba(255, 176, 32, 0.1);
  box-shadow: 0 0 16px rgba(255, 176, 32, 0.15);
  margin-bottom: 20px;
}
.step-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step-card p { font-size: 0.92rem; color: var(--c-muted); }
/* Câble ambre reliant les étapes = bus de 4 disjoncteurs (desktop) */
.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px; right: -13px;
  width: 26px; height: 2px;
  background: linear-gradient(90deg, rgba(255, 176, 32, 0.75), rgba(255, 176, 32, 0.2));
}
/* Borne de connexion (carré ambre) à la jonction du câble */
.step-card:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 48px; right: -16px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--c-amber);
  box-shadow: 0 0 9px rgba(255, 176, 32, 0.6);
  z-index: 2;
}

/* =====================================================================
   11. POURQUOI KADENCE / PREUVE SOCIALE
   ===================================================================== */
.why-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.why-list { list-style: none; display: grid; gap: 18px; margin-top: 8px; }
.why-list li { display: flex; gap: 14px; }
.why-list .wl-check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--glow-blue);
}
.why-list h4 { font-size: 1.02rem; margin-bottom: 2px; }
.why-list p { font-size: 0.92rem; color: var(--c-muted); }

/* Carte de positionnement « premier acteur dédié » */
.position-card {
  background: linear-gradient(160deg, rgba(61,127,255,0.12), rgba(154,107,255,0.08));
  border: 1px solid var(--c-border-hi);
  border-radius: var(--radius);
  padding: 34px 32px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}
.position-card .eyebrow { margin-bottom: 16px; }
.position-card h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: 14px;
}
.position-card p { color: var(--c-muted); font-size: 0.98rem; }

/* Bloc témoignages (structure prête, contenu placeholder) */
.testimonials {
  margin-top: 64px;
}
.testimonials-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.testimonials-head h3 { font-size: 1.4rem; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  backdrop-filter: blur(10px);
}
.testimonial-card .stars { color: #ffcf6b; letter-spacing: 3px; margin-bottom: 14px; font-size: 0.9rem; }
.testimonial-card blockquote {
  font-size: 0.98rem;
  color: var(--c-text);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(61,127,255,0.4), rgba(154,107,255,0.4));
  border: 1px solid var(--c-border);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--c-text);
}
.testimonial-author .ta-name { font-weight: 600; font-size: 0.92rem; }
.testimonial-author .ta-role { font-size: 0.8rem; color: var(--c-muted); }

/* =====================================================================
   12. CTA FINAL + FORMULAIRE
   ===================================================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: stretch;
}
.contact-copy .section-title { margin-top: 14px; }
.contact-copy .contact-points { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.contact-copy .contact-points li { display: flex; gap: 12px; color: var(--c-muted); }
.contact-copy .contact-points .cp-ic { color: var(--c-mint); flex-shrink: 0; }

/* Carte formulaire (glassmorphism) */
.contact-form {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 34px 32px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}
.form-row { margin-bottom: 18px; }
.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row label {
  display: block;
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-bottom: 7px;
  font-weight: 500;
}
.form-row label .req { color: var(--c-mint); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--c-faint); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-border-hi);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(61, 127, 255, 0.12);
}
.contact-form textarea { resize: vertical; min-height: 110px; }

/* Champ date + heure : hérite des bordures/couleurs communes.
   `color-scheme: dark` force le calendrier natif et son icône en thème sombre
   (sinon icône noire invisible sur fond sombre selon les navigateurs). */
.contact-form input[type="datetime-local"] {
  color-scheme: dark;
  min-height: 48px; /* cible tactile confortable + évite un champ écrasé sur iOS */
}
/* iOS Safari zoome automatiquement sur tout champ dont la police fait < 16px :
   on force 16px sur mobile pour TOUS les champs (nom, entreprise, téléphone,
   date et message) afin d'éviter ce zoom intempestif au tap. */
@media (max-width: 760px) {
  .contact-form input,
  .contact-form textarea { font-size: 16px; }
}
.contact-form input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.75;
}
.contact-form input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }

/* Aide sous le champ */
.field-hint {
  margin-top: 7px;
  font-size: 0.78rem;
  color: var(--c-muted);
}
/* Erreur de créneau sous le champ */
.field-error {
  display: none;
  margin-top: 7px;
  font-size: 0.8rem;
  color: #ffb3ab;
}
.field-error.show { display: block; }
.contact-form input.field-invalid { border-color: rgba(255, 138, 128, 0.6); }
.form-consent {
  font-size: 0.78rem;
  color: var(--c-muted);
  margin: 4px 0 20px;
}
/* Message de confirmation (affiché en JS) */
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(53, 224, 196, 0.4);
  background: rgba(53, 224, 196, 0.08);
  color: var(--c-mint);
  font-size: 0.92rem;
  margin-top: 18px;
}
.form-success.show { display: flex; }

/* Message d'erreur (webhook injoignable / réponse invalide) */
.form-error {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 138, 128, 0.45);
  background: rgba(255, 138, 128, 0.09);
  color: #ffb3ab;
  font-size: 0.92rem;
  margin-top: 18px;
}
.form-error.show { display: flex; }
.form-error svg { flex-shrink: 0; margin-top: 2px; }
.form-error a { color: #ffd0cb; text-decoration: underline; }

/* Bouton en cours d'envoi */
.btn[aria-busy="true"] { opacity: 0.65; cursor: progress; }

/* =====================================================================
   13. FOOTER
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 56px 0 30px;
  background: rgba(3, 5, 14, 0.6);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--c-border);
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--c-muted); font-size: 0.92rem; }
.footer-links { display: flex; gap: clamp(30px, 6vw, 70px); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-mint);
  margin-bottom: 15px;
}
.footer-col a {
  display: block;
  color: var(--c-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--c-text); }
/* Réseaux sociaux */
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  display: grid; place-items: center;
  color: var(--c-muted);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.socials a:hover { color: var(--c-text); border-color: var(--c-border-hi); transform: translateY(-3px); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--c-faint);
}

/* =====================================================================
   14. ANIMATIONS AU SCROLL (reveal)
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
/* Décalage progressif pour les grilles */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* Respect de la préférence « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   15. RESPONSIVE
   ===================================================================== */
/* Grand desktop : on affiche la carte flottante du hero */
@media (min-width: 1120px) {
  .hero-inner { max-width: 640px; }
  .hero-visual { display: block; }
}

/* Tablette */
@media (max-width: 960px) {
  .problem-grid,
  .solutions-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card:not(:last-child)::after { display: none; }
  .why-wrap,
  .contact-wrap { grid-template-columns: 1fr; }
}

/* Mobile : menu déroulant */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    background: rgba(9, 12, 26, 0.96);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--c-border);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }
  .nav-cta-mobile { display: inline-flex; font-size: 1rem; } /* CTA affiché dans le menu */
  .header-actions .btn { display: none; } /* CTA header masqué, présent dans le menu */
}

/* Petit mobile */
@media (max-width: 560px) {
  .problem-grid,
  .solutions-grid,
  .process-grid,
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .footer-top { flex-direction: column; }
}
