/* =============================================================
   ABSOLIS — BRAND SYSTEM v4
   Principe : un seul code visuel, appliqué partout.
   ============================================================= */

:root{
  /* Couleurs — palette restreinte, intentionnelle */
  --bg:        #FBFBF8;        /* off-white chaud */
  --bg-alt:    #F4F3ED;        /* section alternée */
  --bg-deep:   #0A0B0E;        /* bloc final foncé */
  --surface:   #FFFFFF;        /* cards */
  --ink:       #0A0B0E;        /* texte principal */
  --ink-2:     #3F434A;        /* texte secondaire */
  --muted:     #6E727A;        /* labels, méta — AA 4.66:1 sur --bg */
  --dim:       #B8BCC4;        /* lignes très faibles */
  --line:      #E8E7DE;        /* bordures standard */
  --line-2:    #D0CEC2;        /* bordures fortes */

  --cyan:      #37CAE2;        /* ACCENT — usage parcimonieux */
  --cyan-ink:  #04232A;
  --cyan-soft: #E5F7FB;
  --cyan-tint: rgba(55, 202, 226, 0.08);
  --field-border: #908D81;    /* bordure de champ — non-texte AA 3.3:1 */

  /* Typographie — ONE family, variable */
  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  /* Rythme */
  --maxw:   1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --pad-section: clamp(72px, 8vw, 112px);

  /* Radius — une échelle */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Shadows — une échelle */
  --shadow-sm: 0 1px 2px rgba(10,11,14,.04);
  --shadow-md: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 50px -30px rgba(10,11,14,.12);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.8) inset, 0 30px 80px -30px rgba(10,11,14,.18);

  /* Easings */
  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body{
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video, svg{ max-width: 100%; display: block; }
::selection{ background: var(--cyan); color: var(--cyan-ink); }
:focus-visible{ outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* =============== CONTAINER =============== */
.wrap{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
}

/* =============== TYPOGRAPHY — ECHELLE UNIQUE =============== */
h1, h2, h3, h4{
  font-family: var(--f-sans);
  color: var(--ink);
  margin: 0;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
}
h1{
  font-size: clamp(44px, 7vw, 100px);
  line-height: .96;
  letter-spacing: -0.04em;
  font-weight: 500;
}
h2{
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
}
h3{
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
em{
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
}

/* Lead text */
.lead{
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--ink-2);
  font-weight: 400;
  line-height: 1.6;
  max-width: 58ch;
}

/* =============== LABEL UNIQUE — pattern utilisé PARTOUT =============== */
/* Structure : une ligne courte et sobre, jamais dupliquée ailleurs.
   Format : "01 — LABEL"  — rien d'autre, jamais. */
.label{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.label::before{
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--cyan);
}
.label .n{ color: var(--ink); font-weight: 500; }

/* Tag (pour hero et emplacements spéciaux) */
.tag{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.tag::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(55,202,226,.5);
  animation: breathe 2.4s var(--ease) infinite;
  flex-shrink: 0;
}
@keyframes breathe{
  0%,100%{ opacity: .6; transform: scale(.9); }
  50%    { opacity: 1;  transform: scale(1.2); }
}

/* =============== TOP BAR =============== */
.topbar{
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  height: 72px;
  background: rgba(251, 251, 248, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: transform .45s var(--ease);
}
.topbar.hidden{ transform: translateY(-100%); }
.topbar-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand img{ height: 38px; width: auto; }
.brand-meta{ display: none; }
@media (min-width: 720px){
  .brand-meta{
    display: flex; flex-direction: column; line-height: 1.15;
    padding-left: 14px; margin-left: 4px;
    border-left: 1px solid var(--line);
  }
  .brand-meta .name{ font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
  .brand-meta .sub{
    font-family: var(--f-mono); font-size: 9.5px; color: var(--muted);
    letter-spacing: .16em; text-transform: uppercase;
  }
}

.nav{ display: flex; align-items: center; gap: 32px; }
.nav a{
  font-size: 13.5px; font-weight: 400;
  color: var(--ink-2);
  position: relative;
  transition: color .3s var(--ease);
}
.nav a::after{
  content: ""; position: absolute; left: 0; bottom: -4px;
  height: 1px; width: 0; background: var(--cyan);
  transition: width .35s var(--ease-out);
}
.nav a:hover{ color: var(--ink); }
.nav a:hover::after{ width: 100%; }

.nav-cta{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 20px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px; font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--r-pill);
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-cta:hover{
  background: var(--cyan);
  color: var(--cyan-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -12px rgba(55,202,226,.5);
}
.nav-cta .arrow{ transition: transform .3s var(--ease); }
.nav-cta:hover .arrow{ transform: translateX(3px); }
@media (max-width: 900px){ .nav{ display: none; } }

/* =============== HERO =============== */
/* Priorité : clarté instantanée. Tag → H1 → sub plain → CTAs → visuel. */
.hero{
  position: relative;
  padding-top: calc(72px + clamp(60px, 9vw, 100px));
  padding-bottom: clamp(60px, 8vw, 100px);
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute;
  top: -100px; right: -10%;
  width: min(700px, 70vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--cyan-tint), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

.hero-grid{
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 1000px){
  .hero-grid{ grid-template-columns: 1.1fr 1fr; }
}

.hero-copy{
  display: flex; flex-direction: column; gap: clamp(20px, 2vw, 28px);
}
.hero-copy .tag{
  align-self: flex-start;
  opacity: 0; transform: translateY(-8px);
  animation: slide .7s var(--ease-out) .1s forwards;
}
.hero-copy h1{
  max-width: 14ch;
}
.hero-copy h1 .line{ display: block; overflow: hidden; }
.hero-copy h1 .line span{
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  animation: rise 1s var(--ease-out) forwards;
}
.hero-copy h1 .line:nth-child(1) span{ animation-delay: .2s; }
.hero-copy h1 .line:nth-child(2) span{ animation-delay: .32s; }
.hero-copy h1 .line:nth-child(3) span{ animation-delay: .44s; }
@keyframes rise{ to { transform: translateY(0); opacity: 1; } }
@keyframes slide{ to { opacity: 1; transform: none; } }

.hero-copy .lead{
  max-width: 46ch;
  opacity: 0; transform: translateY(16px);
  animation: rise-soft .8s var(--ease-out) .7s forwards;
}
@keyframes rise-soft{ to { opacity: 1; transform: none; } }

.hero-ctas{
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 8px;
  opacity: 0; transform: translateY(16px);
  animation: rise-soft .8s var(--ease-out) .85s forwards;
}

.btn{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  font-family: var(--f-sans);
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: all .35s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary{
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover{
  background: var(--cyan);
  color: var(--cyan-ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(55,202,226,.5);
}
.btn:disabled{
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn-primary:disabled{
  background: var(--dim);
  color: var(--bg);
}
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover{
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn .arrow{ transition: transform .3s var(--ease); display: inline-block; }
.btn:hover .arrow{ transform: translate(3px, -3px); }
.btn:disabled .arrow{ transform: none; }

/* Hero video frame — élégant, pas envahissant */
.hero-video{
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-deep);
  opacity: 0;
  transform: translateY(20px) scale(.98);
  animation: video-in 1.1s var(--ease-out) .4s forwards;
  box-shadow: var(--shadow-lg);
}
@keyframes video-in{ to { opacity: 1; transform: none; } }
.hero-video video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero-video::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,14,.08) 0%, transparent 30%, transparent 70%, rgba(10,11,14,.4) 100%);
  pointer-events: none;
}
.hero-video .badge{
  position: absolute; top: 18px; left: 18px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: white;
  background: rgba(10,11,14,.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 7px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.15);
}
.hero-video .badge::before{
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px rgba(55,202,226,.7);
  animation: breathe 2s var(--ease) infinite;
}

/* Hero stats strip — juste sous le hero, unifié */
.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: clamp(40px, 5vw, 64px);
  opacity: 0; transform: translateY(20px);
  animation: rise-soft .9s var(--ease-out) 1s forwards;
  box-shadow: var(--shadow-md);
}
.hero-stat{
  padding: clamp(20px, 2vw, 28px) clamp(18px, 2vw, 28px);
  display: flex; flex-direction: column; gap: 10px;
  border-right: 1px solid var(--line);
}
.hero-stat:last-child{ border-right: 0; }
.hero-stat .v{
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
}
.hero-stat .v .sub{ color: var(--muted); font-weight: 500; font-size: .5em; margin-left: 2px; }
.hero-stat .v em{ font-weight: 500; }
.hero-stat .k{
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =============== HERO v2 — accueil, centré, plus de profondeur =============== */
/* Scopé sous .hero-v2 : n'affecte pas .hero (utilisé par les 14 autres pages). */
.hero-v2{
  position: relative;
  padding-top: calc(72px + clamp(60px, 9vw, 100px));
  padding-bottom: clamp(60px, 8vw, 100px);
  overflow: hidden;
  text-align: center;
}
.hero-v2::before{
  content: "";
  position: absolute;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--cyan-tint), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.hero-v2-inner{
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(20px, 2vw, 28px);
}
.hero-v2-inner .tag{ align-self: center; }
.hero-v2-inner h1{ max-width: 16ch; }
.hero-v2-inner .lead{ max-width: 52ch; margin-inline: auto; text-align: center; }
.hero-v2-inner .hero-ctas{ justify-content: center; }

/* Sélecteur de secteur — auto-identification facility manager, avant le CTA */
.sector-row{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.sector-row-label{
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-right: 4px;
}
.sector-row a{
  font-size: 13.5px; font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  transition: all .3s var(--ease);
}
.sector-row a:hover{
  color: var(--cyan-ink);
  background: var(--cyan-soft);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* Barre de preuves, sous les CTA */
.trust-row{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
  width: 100%;
}
.trust-row span{
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.trust-row span::before{
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan);
}

/* Visuel flottant : glow + ombre marqués */
.hero-v2-visual-wrap{
  position: relative;
  width: 100%;
  max-width: 920px;
  margin-top: clamp(48px, 5vw, 72px);
}
.hero-v2-visual-wrap::before{
  content: "";
  position: absolute;
  inset: -6%;
  background: radial-gradient(ellipse at center, rgba(55,202,226,.22), transparent 65%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.hero-v2-visual{
  position: relative;
  z-index: 1;
  aspect-ratio: 16/8;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--line-2);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 40px 100px -30px rgba(10,11,14,.35),
    0 0 0 1px rgba(255,255,255,.4);
}
.hero-v2-visual video{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-v2-visual::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,14,.10) 0%, transparent 30%, transparent 65%, rgba(10,11,14,.45) 100%);
  pointer-events: none;
}
.hero-v2-visual .badge{
  position: absolute; top: 18px; left: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: white; background: rgba(10,11,14,.42);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 7px 11px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.15);
}
.hero-v2-visual .badge::before{
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px rgba(55,202,226,.7);
}
.hero-v2 .hero-stats{ max-width: 720px; }

@media (max-width: 640px){
  .hero-v2-visual{ aspect-ratio: 4/5; border-radius: 20px; }
}

/* =============== MARQUEE =============== */
.marquee{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.marquee-track{
  display: flex;
  padding: 18px 0;
  width: max-content;
  animation: marquee 15s linear infinite;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--ink-2);
}
.marquee-track span{ display: inline-flex; align-items: center; padding: 0 36px; flex-shrink: 0; }
.marquee-track span::after{
  content: "✦";
  color: var(--cyan);
  margin-left: 36px;
  font-size: 12px;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}
@keyframes marquee-quad{
  from{ transform: translateX(0); }
  to  { transform: translateX(-25%); }
}
.marquee-track-quad{
  animation: marquee-quad 15s linear infinite !important;
}

/* =============== SECTIONS — PATTERN UNIQUE =============== */
section{ position: relative; padding: var(--pad-section) 0; }
.section-alt{ background: var(--bg-alt); border-block: 1px solid var(--line); }

/* Section head : TOUJOURS ce pattern et RIEN d'autre.
   - label "01 — TITRE"
   - h2 (grand)
   - lead (optionnel) */
.section-head{
  display: flex; flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(44px, 5vw, 68px);
  max-width: 900px;
}
.section-head h2{ max-width: 18ch; }
.section-head .lead{ max-width: 58ch; }

/* =============== §01 · COMMENT ÇA MARCHE =============== */
.equation{
  padding: clamp(48px, 7vw, 96px) 0 clamp(20px, 3vw, 28px);
  position: relative;
  border-top: 1px solid var(--line);
}
.equation-quote{
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(28px, 4.8vw, 68px);
  line-height: 1.06;
  color: var(--ink);
  letter-spacing: -0.035em;
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
}
.equation-quote .big{
  color: var(--ink);
  font-style: italic;
  font-weight: 500;
}
.equation-attrib{
  text-align: center;
  margin-top: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.pillars{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px){ .pillars{ grid-template-columns: repeat(3, 1fr); } }

.pillar{
  padding: clamp(40px, 4.5vw, 56px) 0;
  display: flex; flex-direction: column; gap: 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
@media (min-width: 900px){
  .pillar{
    padding: clamp(48px, 5vw, 64px) clamp(24px, 3vw, 40px);
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .pillar:first-child{ padding-left: 0; }
  .pillar:last-child{ padding-right: 0; border-right: 0; }
}
.pillar .n{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.pillar h3{ max-width: 18ch; }
.pillar p{
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.58;
  max-width: 34ch;
}

/* =============== §02 · LES ROBOTS (redesign total) =============== */
.robots{
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px){ .robots{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px){ .robots{ grid-template-columns: repeat(4, 1fr); } }

.robot{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow: var(--shadow-md);
}
.robot:hover{
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-lg);
}

/* Stage — fond propre, ombre douce sous le robot */
.robot-stage{
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(ellipse 80% 40% at 50% 88%, rgba(10,11,14,.10), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #F7F5EE 100%);
  display: grid; place-items: center;
  padding: 1% 1% 1%;
}
.robot-stage svg,
.robot-stage img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 1s var(--ease-out);
  filter: drop-shadow(0 22px 30px rgba(10,11,14,.08));
}
.robot:hover .robot-stage svg,
.robot:hover .robot-stage img{
  transform: translateY(-6px) scale(1.03);
}
.robot-stage-tag{
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  font-weight: 500;
}

.robot-info{
  padding: clamp(22px, 2.2vw, 28px);
  display: flex; flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--line);
  flex: 1;
}
.robot-name{
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.robot-name .name{
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}
.robot-name .code{
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.robot-tagline{
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 32ch;
}
.robot-tagline em{ color: var(--ink); font-style: italic; font-weight: 500; }

.robot-specs{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 4px;
}
.robot-spec{
  display: flex; flex-direction: column; gap: 4px;
  padding-right: 12px;
}
.robot-spec + .robot-spec{ border-left: 1px solid var(--line); padding-left: 12px; }
.robot-spec .k{
  font-family: var(--f-mono); font-size: 9.5px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.robot-spec .v{
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
}

.robot-ideal{
  display: flex; align-items: flex-start; gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.robot-ideal .lbl{
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.robot-ideal .val{
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.45;
  font-weight: 400;
}

/* Legend: une ligne sous les 3 cartes */
.robots-legend{
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.robots-legend .note{ max-width: 40ch; line-height: 1.5; }
.robots-legend em{ color: var(--ink); font-style: italic; font-weight: 500; }

/* =============== §03 · SECTEURS =============== */
.sectors{
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px){ .sectors{ grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px){ .sectors{ grid-template-columns: repeat(4, 1fr); } }

.sector{
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-alt);
  cursor: pointer;
  border: 1px solid var(--line);
}
.sector-img{
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease-out), filter .8s var(--ease);
  filter: brightness(.92) saturate(.9);
}
.sector:hover .sector-img{
  transform: scale(1.12);
  filter: brightness(1) saturate(1);
}
.sector::before{
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,11,14,.1) 0%, rgba(10,11,14,.2) 40%, rgba(10,11,14,.88) 100%);
  transition: background .5s var(--ease);
}
.sector:hover::before{
  background: linear-gradient(180deg, rgba(10,11,14,.05) 0%, rgba(10,11,14,.25) 50%, rgba(10,11,14,.92) 100%);
}
.sector-content{
  position: absolute; inset: 0;
  z-index: 3;
  padding: clamp(18px, 2vw, 24px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.sector-num{
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: white;
  background: rgba(10,11,14,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.18);
  width: fit-content;
  display: inline-flex; align-items: center; gap: 8px;
}
.sector-num::before{
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px rgba(55,202,226,.7);
}
.sector-bottom{ display: flex; flex-direction: column; gap: 12px; }
.sector-title{
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: white;
}
.sector-title em{ color: var(--cyan); font-style: italic; }
.sector-meta{
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18);
}
.sector-meta .arrow{
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  font-size: 12px;
  transition: all .35s var(--ease);
}
.sector:hover .sector-meta .arrow{
  background: var(--cyan); color: var(--cyan-ink);
  border-color: var(--cyan);
  transform: rotate(-45deg);
}

/* =============== PARTNER =============== */
.partner{
  padding: clamp(56px, 7vw, 88px) 0;
  text-align: center;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.partner .partner-kicker{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 16px;
}
.partner .partner-kicker::before,
.partner .partner-kicker::after{
  content: ""; width: 40px; height: 1px; background: var(--line-2);
}
.partner h3{
  font-size: clamp(24px, 3vw, 38px);
  color: var(--ink);
  max-width: 24ch;
  margin: 0 auto 32px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.partner h3 em{ color: var(--cyan); font-style: italic; }
.partner-logo{
  display: inline-flex;
  align-items: center;
  padding: 22px 44px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: all .4s var(--ease);
}
.partner-logo:hover{
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.partner-logo img{ height: 50px; width: auto; }

/* =============== §04 · AVANTAGES =============== */
/* MÊME carte que les robots : unification */
.benefits{
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px){ .benefits{ grid-template-columns: repeat(3, 1fr); } }

.benefit{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
  min-height: 360px;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow: var(--shadow-md);
}
.benefit:hover{
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-lg);
}
.benefit-head{
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.benefit-num{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.benefit-stage{
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.benefit h3{ max-width: 18ch; }

.benefit p{
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.benefit-foot{
  margin-top: auto;
  padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.benefit-foot .value{ color: var(--ink); font-weight: 500; }

/* =============== §05 · CRITÈRES =============== */
.criteria{
  display: grid; gap: clamp(36px, 5vw, 64px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px){ .criteria{ grid-template-columns: 1fr 1fr; } }
.crit-col{ position: relative; }
.crit-head{
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
}
.crit-head .title{ color: var(--ink); font-weight: 500; }
.crit-col.yes .crit-head .title{ color: var(--ink); }
.crit-head .count{ color: var(--muted); }

.crit-list{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.crit-item{
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.crit-item:last-child{ border-bottom: 0; }
.crit-ico{
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 11px;
  margin-top: 3px;
  font-family: var(--f-mono); font-weight: 500;
}
.crit-yes .crit-ico{ background: var(--cyan); color: var(--cyan-ink); }
.crit-no .crit-ico{
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-2);
}
.crit-k{
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 500; letter-spacing: -0.015em;
  line-height: 1.25;
}
.crit-v{
  font-size: 13.5px; color: var(--muted);
  margin-top: 4px; line-height: 1.5;
}
.crit-ref{
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  padding-top: 6px; align-self: start;
}

/* =============== §06 · FAQ =============== */
.faq-list{ border-top: 1px solid var(--line); }
.faq-list details{ border-bottom: 1px solid var(--line); }
.faq-list summary{
  list-style: none;
  display: grid;
  grid-template-columns: 48px 1fr 36px;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 3vw, 36px) 0;
  font-family: var(--f-sans);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
  transition: color .4s var(--ease);
}
.faq-list summary::-webkit-details-marker{ display: none; }
.faq-list summary:hover .plus{ border-color: var(--cyan); color: var(--ink); }
.faq-list summary .num{
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .2em; color: var(--muted);
  padding-top: 8px; align-self: start; font-weight: 500;
}
.faq-list summary .plus{
  justify-self: end;
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px; color: var(--ink-2);
  transition: all .4s var(--ease);
  flex-shrink: 0;
  background: var(--surface);
}
.faq-list details[open] summary .plus{
  background: var(--cyan);
  color: var(--cyan-ink);
  border-color: var(--cyan);
  transform: rotate(45deg);
}
.faq-answer{
  display: grid;
  grid-template-columns: 48px 1fr 36px;
  gap: 22px;
  padding-bottom: 32px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 1100px;
}
.faq-answer > *{ grid-column: 2; }

/* =============== §07 · FORMULAIRE =============== */
#candidater{ position: relative; overflow: hidden; }
#candidater::before{
  content: "";
  position: absolute;
  top: 0; right: -10%;
  width: min(600px, 60vw); height: min(600px, 60vw);
  background: radial-gradient(closest-side, var(--cyan-tint), transparent 70%);
  pointer-events: none;
  opacity: .8;
  filter: blur(40px);
}
.form-wrap{
  background:
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(244,243,237,.7) 100%),
    var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.form-head{
  display: flex; justify-content: space-between; align-items: start; gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.form-head h3{
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500; letter-spacing: -0.025em;
  max-width: 22ch;
}
.form-head .meta{
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.form-head .form-tag{
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan-ink);
  background: var(--cyan-soft);
  border: 1px solid var(--cyan);
  padding: 8px 12px;
  border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 8px;
  font-weight: 500;
  flex-shrink: 0;
}
.form-head .form-tag::before{
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  animation: breathe 2s var(--ease) infinite;
}

.steps{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  margin-bottom: 36px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.78);
  list-style: none;
}
.step{
  display: flex; flex-direction: column; gap: 6px;
  color: var(--muted);
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  position: relative;
  padding: 12px 12px 12px 18px;
  border-radius: 8px;
  background: transparent;
  font-weight: 400;
}
.step .n{ color: var(--muted); font-size: 10px; }
.step.active{
  color: var(--ink);
  background: var(--surface);
}
.step.active .n{ color: var(--cyan); }
.step.done{ color: var(--muted); }

.step.active::before,
.step.done::before{ background: var(--cyan); }

.field{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field-row{ display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px){ .field-row{ grid-template-columns: 1fr 1fr; gap: 24px; } }

.field label{
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.field input,
.field select,
.field textarea{
  font-family: var(--f-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--field-border);
  padding: 12px 14px;
  outline: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
  border-radius: var(--r-sm);
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder{ color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--cyan-tint);
  background: var(--surface);
}
.field textarea{ resize: vertical; min-height: 90px; }
.field select{
  color: var(--ink);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'><path d='M1 1l6 6 6-6' fill='none' stroke='%2337cae2' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.field.invalid label{ color: #B74444; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea{
  border-color: #E35D5D;
  box-shadow: 0 0 0 3px rgba(227,93,93,.12);
  background: #FFF7F7;
}

.consent{
  display: flex; align-items: flex-start; gap: 12px;
  margin: 24px 0 28px;
  font-size: 13px; color: var(--muted);
  max-width: 720px; line-height: 1.5;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
}
.consent input[type="checkbox"]{
  accent-color: var(--cyan);
  margin-top: 3px; width: 16px; height: 16px;
  flex-shrink: 0;
}
.consent.invalid{
  color: #B74444;
  border-color: #E35D5D;
  background: #FFF7F7;
}
.consent a{
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
}

.form-nav{
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.form-nav .side{
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}

.form-step{ display: none; }
.form-step.active{ display: block; animation: pane-in .5s var(--ease-out); }
@keyframes pane-in{
  from{ opacity: 0; transform: translateY(8px); }
  to  { opacity: 1; transform: none; }
}

.thanks{ display: none; text-align: center; padding: 40px 0; }
.thanks.active{ display: block; animation: pane-in .6s var(--ease-out); }
.thanks .mark{
  font-size: 52px; color: var(--cyan);
  margin-bottom: 16px; font-style: italic; font-weight: 300;
}
.thanks h3{
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500; letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.thanks p{
  color: var(--ink-2); max-width: 52ch;
  margin: 0 auto; line-height: 1.6;
}

.form-note{
  margin-top: 22px;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  text-align: center; line-height: 1.8;
}

@media (max-width: 640px){
  .steps{ grid-template-columns: 1fr; gap: 8px; }
  .step{ padding: 10px 12px 10px 14px; }
}

/* =============== FINAL CTA — DARK =============== */
.final-cta{
  background: var(--bg-deep);
  color: var(--bg);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(96px, 12vw, 160px);
}
.final-cta::before{
  content: "";
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(120vw, 900px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(55,202,226,.28), transparent 65%);
  opacity: .55; filter: blur(60px);
  pointer-events: none;
}
.final-cta .label{ justify-content: center; color: rgba(255,255,255,.5); }
.final-cta .label::before{ background: var(--cyan); }
.final-cta .label .n{ color: white; }
.final-cta h2{ color: white; max-width: 16ch; margin: 24px auto 28px; }
.final-cta h2 em{ color: var(--cyan); }
.final-cta .lead{ color: rgba(255,255,255,.72); margin: 0 auto 36px; text-align: center; }
.final-cta .hero-ctas{ justify-content: center; }
.final-cta .btn-primary{ background: var(--cyan); color: var(--cyan-ink); }
.final-cta .btn-primary:hover{ background: white; color: var(--bg-deep); }
.final-cta .btn-ghost{ color: white; border-color: rgba(255,255,255,.22); }
.final-cta .btn-ghost:hover{ border-color: white; }

/* =============== FOOTER =============== */
footer{
  padding: clamp(60px, 8vw, 96px) 0 36px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.foot-grid{
  display: grid; grid-template-columns: 1fr; gap: 36px;
}
@media (min-width: 800px){ .foot-grid{ grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }
.foot-brand img{ height: 46px; margin-bottom: 18px; }
.foot-brand p{
  color: var(--muted); font-size: 14px;
  max-width: 34ch; line-height: 1.55;
}
.foot-col h4{
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 18px;
  font-weight: 500;
}
.foot-col ul{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a{
  font-size: 14px; color: var(--ink-2);
  transition: color .25s var(--ease);
}
.foot-col a:hover{ color: var(--cyan); }
.foot-bottom{
  margin-top: clamp(44px, 6vw, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}

/* =============== REVEAL =============== */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .62s var(--ease-out), transform .62s var(--ease-out);
}
.reveal.visible{ opacity: 1; transform: none; }
.reveal.d1{ transition-delay: .07s; }
.reveal.d2{ transition-delay: .14s; }
.reveal.d3{ transition-delay: .21s; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal{ opacity: 1; transform: none; }
  .hero-copy h1 .line span{ transform: none; opacity: 1; }
}

.sector-cover{ position:absolute; inset:0; z-index:6; }
.robot{ position:relative; }
.robot-cover{ position:absolute; inset:0; z-index:6; }
/* =============================================================
   PIXEL-PERFECT REFINEMENTS — passe UI/UX (ui-ux-pro-max)
   Ajouts non destructifs : accessibilité, cibles tactiles,
   ancrage de scroll, états. L'ADN visuel reste identique.
   ============================================================= */

/* Ancrage : le topbar fixe (72px) ne masque plus les sections
   atteintes via les liens #how, #robots, #candidater, etc. */
html{ scroll-padding-top: 88px; }

/* Supprime le délai tactile de 300ms sur mobile */
a, button, .btn, summary, input, select, textarea, label{ touch-action: manipulation; }

/* Cibles tactiles >= 44px (skill : Touch & Interaction, CRITICAL) */
.nav-cta{ min-height: 44px; }
.chat-send-btn{ width: 40px; height: 40px; }
.faq-list summary{ min-height: 44px; }

/* Focus visible cohérent sur tous les éléments interactifs clés */
.btn:focus-visible,
.nav-cta:focus-visible,
.nav a:focus-visible,
.chat-chip:focus-visible,
.faq-list summary:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
/* Le focus clavier du résumé FAQ ne doit pas être confondu avec le hover */
.faq-list summary:focus-visible{ color: var(--ink); }

/* Liens cliquables : curseur explicite (skill : cursor-pointer) */
.sector, .robot, [role="button"]{ cursor: pointer; }

/* Réduction de mouvement : on neutralise aussi les boucles infinies
   (marquee, partenaires, point cyan) au-delà de la règle globale */
@media (prefers-reduced-motion: reduce){
  .marquee-track,
  .partners-track,
  .tag::before,
  .chat-dot,
  .form-head .form-tag::before{ animation: none !important; }
  .hero-copy .tag,
  .hero-copy .lead,
  .hero-ctas,
  .hero-stats,
  .hero-video{ opacity: 1 !important; transform: none !important; }
}

/* Cohérence : le lien "Nettoyage Spécialisé" en cyan garde un focus lisible */
.nav a[style*="--cyan"]:focus-visible{ outline-offset: 4px; }


/* =============================================================
   LA TRACE DU PROPRE — emphase signature (brandbook §03)
   Le mot-clé est posé dans une zone fraîchement nettoyée :
   texte encre (lisible), cyan derrière, incliné comme un coup
   de balai. Balayage à l'apparition au scroll.
   ============================================================= */
h1 em, h2 em, h3 em, .equation-quote .big, .hero-stat .v em{
  position: relative;
  font-style: italic;
  color: var(--ink);
  white-space: nowrap;
  padding: 0 .14em 0 .18em;
  z-index: 0;
}
h1 em::before, h2 em::before, h3 em::before,
.equation-quote .big::before, .hero-stat .v em::before{
  content: "";
  position: absolute;
  /* left positif : la trace (et son biseau) reste DANS la boîte de
     l'em — plus jamais rognée par l'overflow des lignes du héro */
  inset: .10em -.08em .02em .02em;
  z-index: -1;
  background: var(--cyan-soft);
  border-radius: .10em;
  border-left: 2px solid var(--cyan);   /* suit le rayon : plus de coin « croqué » */
  /* origine bas-gauche : le biseau s'ouvre vers la droite, jamais
     de débord à gauche du texte (corrige l'artefact héro) */
  transform: skewX(-8deg) scaleX(var(--sw, 1));
  transform-origin: 0 100%;
}
/* Balayage : la trace se dépose après l'apparition du titre */
.reveal em::before, .reveal .big::before{
  --sw: 0;
  transition: transform .7s var(--ease-out) .3s;
}
.reveal.visible em::before, .reveal.visible .big::before{ --sw: 1; }

/* Fonds sombres / images : le cyan vif EN texte y est lisible (10:1).
   La trace ne s'applique pas là. */
.final-cta h2 em, .sector-title em{
  color: var(--cyan);
  padding: 0;
  white-space: normal;
}
.final-cta h2 em::before, .sector-title em::before{ content: none; }

@media (prefers-reduced-motion: reduce){
  .reveal em::before, .reveal .big::before{ --sw: 1; transition: none; }
}

/* pastille topbar (lien transversal) : pas de soulignement nav */
.nav a.nav-pill::after{ content: none; }
.nav a.nav-pill:hover{ color: var(--cyan-ink); transform: translateY(-1px); }

/* =============================================================
   COUCHE « VIVANT » — micro-interactions signature
   Tout est dans le langage du balai : des balayages, jamais des
   fondus. Sobre, GPU-friendly, désactivé en reduced-motion.
   ============================================================= */

/* 1. SHEEN — un reflet de propre traverse la carte au survol */
.robot, .benefit{ overflow: hidden; }
.robot::after, .benefit::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    transparent 42%,
    rgba(55, 202, 226, 0.10) 50%,
    rgba(255, 255, 255, 0.16) 52%,
    transparent 60%);
  transform: translateX(-130%) skewX(-8deg);
  transition: transform .9s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.robot:hover::after, .benefit:hover::after{
  transform: translateX(130%) skewX(-8deg);
}

/* 2. RÉVÉLATION DES SECTEURS — l'image arrive "sale" (terne),
   l'arête du balai passe, elle ressort propre. Brandbook §09. */
.sector.reveal:not(.visible) .sector-img{
  filter: brightness(.62) saturate(.45);
}
.sector .sweep-edge{ display: none; }
.sector.reveal::after{
  content: "";
  position: absolute;
  top: -12%; bottom: -12%; left: -20%;
  width: 10px;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(55, 202, 226, .8);
  transform: skewX(-8deg);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}
.sector.reveal.visible::after{
  animation: sweep-clean 1.05s var(--ease-out) .1s forwards;
}
@keyframes sweep-clean{
  0%   { opacity: .85; left: -20%; }
  100% { opacity: 0;  left: 120%; }
}

/* 3. MARQUEE — tempo premium + pause à la lecture */
.marquee-track{ animation-duration: 28s; }
.marquee:hover .marquee-track{ animation-play-state: paused; }

/* 4. LIFT subtil des stats hero au survol */
.hero-stat{ transition: background .4s var(--ease); }
.hero-stat:hover{ background: var(--cyan-tint); }

/* Reduced motion : tout est neutralisé */
@media (prefers-reduced-motion: reduce){
  .robot::after, .benefit::after, .sector.reveal::after{ display: none; }
  .sector.reveal:not(.visible) .sector-img{ filter: brightness(.92) saturate(.9); }
}

/* =============================================================
   MOTION LAYER 2 — héro, navigation, scroll
   ============================================================= */

/* Lenis — recommandations officielles */
html.lenis, html.lenis body{ height: auto; }
.lenis.lenis-smooth{ scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent]{ overscroll-behavior: contain; }

/* BALAYAGE DU HÉRO — une arête de propre traverse le média, une fois,
   après le splash. S'applique à tous les types de héros du site. */
.hero-video::before,
.sector-hero-media::before,
.robot-hero-stage::before{
  content: "";
  position: absolute;
  top: -12%; bottom: -12%; left: -22%;
  width: 12px;
  background: var(--cyan);
  box-shadow: 0 0 26px rgba(55, 202, 226, .85);
  transform: skewX(-8deg);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: hero-sweep 1.2s var(--ease-out) 1s forwards;
}
@keyframes hero-sweep{
  0%   { opacity: .9; left: -22%; }
  100% { opacity: 0;  left: 122%; }
}

/* COMPTEURS — chiffres tabulaires pour éviter tout tressautement */
.equation-quote .big{ font-variant-numeric: tabular-nums; }

/* TRANSITIONS DE PAGE — wipe incliné (View Transitions API).
   Progressif : navigateurs non compatibles = navigation classique. */
@view-transition{ navigation: auto; }
::view-transition-old(root){
  animation: vt-out .4s var(--ease) both;
}
::view-transition-new(root){
  animation: vt-wipe .55s var(--ease-out) both;
}
@keyframes vt-out{
  to{ opacity: .35; }
}
@keyframes vt-wipe{
  from{ clip-path: polygon(0 0, 0 0, -14% 100%, -14% 100%); }
  to  { clip-path: polygon(0 0, 114% 0, 100% 100%, -14% 100%); }
}


/* =============== PERFORMANCE — CONTENT VISIBILITY =============== */
/* Allow browser to skip painting off-screen heavy sections */
#vapeur, #process, #sectors, #engagements, .partners-strip, .partners-strip-logos {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

@media (prefers-reduced-motion: reduce) {
  /* Freeze all scrolling / looping marquee animations */
  .marquee-track,
  .marquee-track-rev,
  .marquee-track-quad,
  .partners-track {
    animation: none !important;
  }
  /* Freeze hero sweep */
  .hero-video::before, .sector-hero-media::before, .robot-hero-stage::before {
    animation: none;
  }
  /* Freeze page transitions */
  ::view-transition-old(root), ::view-transition-new(root) {
    animation: none;
  }
  /* Freeze chatbot dot pulse */
  .chat-dot {
    animation: none;
  }
}
