/* ==========================================================================
   MEDIA PROCESS — Feuille de style principale
   Thème sombre bleuté · aucune ressource externe (compatible CSP stricte)
   ========================================================================== */

/* ---------- Polices (auto-hébergées, licence SIL OFL) ---------- */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --bg: #050b16;
  --bg-2: #081224;
  --surface: #0c1a2e;
  --surface-2: #11233d;
  --surface-3: #17304f;
  --line: rgba(130, 180, 240, 0.14);
  --line-strong: rgba(130, 180, 240, 0.3);

  --text: #e9f1fb;
  --muted: #a3b5cc;
  --faint: #6f85a1;

  --brand: #135893;
  --brand-2: #1f74c4;
  --accent: #43a9ff;
  --accent-2: #8fdcff;
  --ok: #3ee6a8;
  --warn: #ffb547;
  --danger: #ff6b7a;

  --grad: linear-gradient(120deg, #8fdcff 0%, #43a9ff 45%, #1f74c4 100%);
  --grad-btn: linear-gradient(135deg, #2b8cf0 0%, #135893 100%);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(67, 169, 255, 0.35), 0 12px 40px -10px rgba(67, 169, 255, 0.45);

  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(31, 116, 196, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(19, 88, 147, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(67, 169, 255, 0.35); color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #001;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #001; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.4em;
  margin: 0 0.1em;
  font-family: var(--font-mono);
  font-size: 0.85em;
  text-align: center;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
}

/* ---------- LED ---------- */
.led {
  display: inline-block;
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: #33465f;
  transition: background 0.4s, box-shadow 0.4s;
}
.led--ok {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(62, 230, 168, 0.18), 0 0 12px rgba(62, 230, 168, 0.8);
  animation: led-pulse 2.4s ease-in-out infinite;
}
@keyframes led-pulse {
  50% { box-shadow: 0 0 0 5px rgba(62, 230, 168, 0.06), 0 0 6px rgba(62, 230, 168, 0.4); }
}

/* ---------- Boutons ---------- */
.btn {
  --pad-y: 14px;
  --pad-x: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--sm { --pad-y: 10px; --pad-x: 18px; font-size: 0.92rem; }
.btn--primary {
  background: var(--grad-btn);
  box-shadow: 0 10px 30px -10px rgba(43, 140, 240, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(67, 169, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(67, 169, 255, 0.1);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.35s, border-color 0.35s, height 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  --header-h: 64px;
  background: rgba(5, 11, 22, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex: none;
}
.brand__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  box-shadow: 0 6px 18px -6px rgba(31, 116, 196, 0.8);
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand__icon { transform: rotate(-8deg) scale(1.06); }
.brand__word { width: auto; height: 20.4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list {
  display: flex;
  gap: 4px;
  margin: 0; padding: 0;
  list-style: none;
}
.nav__list a {
  position: relative;
  display: block;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__list a:hover,
.nav__list a.is-active { color: #fff; }
.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); }

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .burger { display: block; z-index: 2; }
  .brand { position: relative; z-index: 2; }
  /* backdrop-filter ferait du header le bloc conteneur du menu plein écran : on le désactive ici */
  .site-header.is-scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(5, 11, 22, 0.96);
  }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 96px 24px 48px;
    background: rgba(5, 11, 22, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 6px; }
  .nav__list a { font-size: 1.5rem; padding: 10px 16px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 20px) 0 0;
  overflow: hidden;
  isolation: isolate;
}
/* Bandeau défilant des secteurs, juste sous le bouton de contact */
.hero > .ticker { margin-top: 56px; }
/* Encart de présentation, juste sous la barre de navigation */
.hero__top { flex: none; }
.hero__top .status-chip {
  max-width: 100%;
  margin: 0;
  gap: 0.5em;
  padding: 0.4em 0.95em 0.4em 0.75em;
  font-size: clamp(1rem, 2.1vw, 1.6rem); /* x2 sur grand écran, sur une ligne jusqu'à la tablette */
  line-height: 1.3;
  text-wrap: balance;
}
.hero__top .status-chip .led { width: 0.38em; height: 0.38em; }
/* Les marques, juste avant le bouton de contact */
.hero__copy .hero__brands {
  gap: 0.35em 0.9em;
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: 0.05em;
  color: var(--muted);
}
@media (max-width: 680px) {
  .hero__top .status-chip { border-radius: 16px; }
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(0.8) hue-rotate(-8deg);
  transform: scale(1.06);
  animation: hero-zoom 30s ease-in-out infinite alternate;
}
@keyframes hero-zoom { to { transform: scale(1.14) translate(-1%, -1%); } }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 75% 30%, rgba(31, 116, 196, 0.22), transparent 70%),
    linear-gradient(90deg, rgba(5, 11, 22, 0.92) 0%, rgba(5, 11, 22, 0.6) 55%, rgba(5, 11, 22, 0.75) 100%),
    linear-gradient(180deg, rgba(5, 11, 22, 0.4) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
.hero__net {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(48px, 5vw, 72px);
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(12, 26, 46, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 600px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 36px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 32px; padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero__brands li { transition: color 0.3s; }
.hero__brands li:hover { color: var(--accent-2); }
.hero__copy .hero__brands { align-items: center; gap: 0.75em 1.1em; }
.hero__brands img {
  display: block;
  width: auto;
  height: 0.9em;
  opacity: 0.72;
  transition: opacity 0.3s;
}
.hero__brands li:hover img { opacity: 1; }

/* Terminal */
.terminal {
  position: relative;
  background: rgba(6, 14, 28, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow), 0 0 80px -30px rgba(67, 169, 255, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.6s var(--ease);
}
.terminal:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }
.terminal__title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
}
.terminal__body {
  margin: 0;
  padding: 20px 22px 24px;
  min-height: 252px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.85;
  color: #cfe3f7;
  white-space: pre-wrap;
}
.terminal__body .t-cmd { color: #fff; }
.terminal__body .t-cmd::before { content: "$ "; color: var(--ok); }
.terminal__body .t-info { color: var(--accent-2); }
.terminal__body .t-ok { color: #cfe3f7; }
.terminal__body .t-ok::first-letter { color: var(--ok); }
.terminal__body .t-scene { color: var(--warn); }
.caret {
  display: inline-block;
  width: 0.6em; height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 32px;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Bandeau défilant ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: rgba(8, 18, 36, 0.6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 50s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker span::after {
  content: "";
  width: 7px; height: 7px;
  margin: 0 28px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  opacity: 0.7;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(84px, 11vw, 140px);
}
.section--alt {
  background: linear-gradient(180deg, transparent 0%, rgba(17, 35, 61, 0.38) 12%, rgba(17, 35, 61, 0.38) 88%, transparent 100%);
}
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__lead { font-size: 1.12rem; color: var(--muted); }
.section-head__lead u {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow span {
  padding: 3px 8px;
  border: 1px solid rgba(67, 169, 255, 0.4);
  border-radius: 6px;
  color: var(--accent-2);
  letter-spacing: 0.05em;
}

/* ---------- Révélation au défilement ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Expertises ---------- */
.xp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.xp-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(12, 26, 46, 0.6) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.xp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(67, 169, 255, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.xp-card:hover { transform: translateY(-6px); border-color: rgba(67, 169, 255, 0.45); box-shadow: var(--shadow); }
.xp-card:hover::before { opacity: 1; }
.xp-card__icon {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(43, 140, 240, 0.25), rgba(19, 88, 147, 0.15));
  border: 1px solid rgba(67, 169, 255, 0.3);
}
.xp-card__icon svg {
  width: 32px; height: 32px;
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.xp-card__code {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ok);
}
.xp-card h3 { font-size: 1.22rem; }
.xp-card p:not(.xp-card__code) { color: var(--muted); font-size: 0.97rem; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0; padding: 8px 0 0;
  list-style: none;
}
.tags li {
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(67, 169, 255, 0.08);
  border: 1px solid rgba(67, 169, 255, 0.2);
  border-radius: 999px;
}

/* ---------- Secteurs (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 290px;
  grid-auto-flow: dense;
  gap: 16px;
}
.sector {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  isolation: isolate;
  outline-offset: 4px;
}
.sector--wide { grid-column: span 2; }
.sector--full { grid-column: 1 / -1; } /* toute la largeur, quel que soit le nombre de colonnes */
.sector--tall { grid-row: span 2; }
.sector__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.8s;
}
.sector__img--alt { opacity: 0; }
.sector__img--low { object-position: 50% 70%; } /* cadre plus bas : sujet dans la moitié inférieure de la photo */
.sector::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.05) 0%, rgba(5, 11, 22, 0.35) 40%, rgba(5, 11, 22, 0.94) 100%);
  transition: background 0.5s;
}
/* Ligne de balayage façon « scan » au survol */
.sector::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -30%;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(67, 169, 255, 0.18) 80%, rgba(143, 220, 255, 0.55) 100%);
  opacity: 0;
  pointer-events: none;
}
.sector:hover::after,
.sector:focus-visible::after { animation: scan 1.1s var(--ease) forwards; }
@keyframes scan {
  0% { top: -30%; opacity: 1; }
  100% { top: 110%; opacity: 0; }
}
.sector:hover .sector__img,
.sector:focus-visible .sector__img { transform: scale(1.07); }
.sector--duo:hover .sector__img--alt,
.sector--duo:focus-visible .sector__img--alt { opacity: 1; }
.sector:hover::before,
.sector:focus-visible::before {
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.15) 0%, rgba(5, 11, 22, 0.5) 40%, rgba(5, 11, 22, 0.96) 100%);
}
.sector__body {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 24px;
}
.sector__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(5, 11, 22, 0.6);
  border: 1px solid rgba(67, 169, 255, 0.35);
  border-radius: 6px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.sector h3 { margin-bottom: 6px; font-size: 1.32rem; }
.sector__body > p:not(.sector__tag) {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #c4d2e4;
}
.sector__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0; padding: 0;
  list-style: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s, margin 0.4s;
}
.sector__chips li {
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(67, 169, 255, 0.2);
  border: 1px solid rgba(67, 169, 255, 0.4);
  border-radius: 999px;
}
.sector:hover .sector__chips,
.sector:focus-visible .sector__chips,
.sector:focus-within .sector__chips { max-height: 80px; opacity: 1; margin-top: 12px; }

/* La carte « imaginaire » a une bordure animée */
.sector--dream { border: 0; padding: 1px; }
.sector--dream > .sector__img { inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); border-radius: calc(var(--radius) - 1px); }
.sector--dream {
  background: conic-gradient(from var(--angle, 0deg), #43a9ff, #a45bff, #ff4fd8, #3ee6a8, #43a9ff);
  animation: dream-spin 6s linear infinite;
}
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes dream-spin { to { --angle: 360deg; } }
.sector--dream::before { inset: 1px; border-radius: calc(var(--radius) - 1px); }

@media (hover: none) {
  .sector__chips { max-height: 80px; opacity: 1; margin-top: 12px; }
}

/* ---------- Démo ---------- */
.demo { overflow: hidden; }
.demo::before {
  content: "";
  position: absolute;
  inset: 10% -20% auto;
  height: 70%;
  background: radial-gradient(closest-side, rgba(31, 116, 196, 0.18), transparent);
  pointer-events: none;
}
.demo__stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-areas:
    "room panel"
    "console panel";
  gap: 24px;
  align-items: start;
}
.demo__stage > * { min-width: 0; }
.demo__stage .room { grid-area: room; }
.demo__stage .panel { grid-area: panel; }
.demo__stage .console { grid-area: console; }
.demo__hint {
  margin-top: 28px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--faint);
}

/* La salle */
.room {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0a1422;
  box-shadow: var(--shadow);
}
.room__svg { width: 100%; height: auto; }
.room__label {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text);
  background: rgba(5, 11, 22, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.room__hud {
  position: absolute;
  right: 14px; bottom: 14px;
  display: flex;
  gap: 8px;
}
.room__hud span {
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-2);
  background: rgba(5, 11, 22, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.room__blinds { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.room__dim,
.room__cones,
.room__pools,
.room__glow,
.room__tint { transition: opacity 1.4s var(--ease); }
.room__cones { mix-blend-mode: screen; }
.room__glow { opacity: 0.8; }
.room[data-source="off"] .room__glow { opacity: 0; }
.room[data-source="slides"] .room__glow { opacity: 1; }

.scr { opacity: 0; transition: opacity 0.7s; }
.room[data-source="off"] .scr--off,
.room[data-source="logo"] .scr--logo,
.room[data-source="slides"] .scr--slides,
.room[data-source="visio"] .scr--visio,
.room[data-source="disco"] .scr--disco { opacity: 1; }
.scr__title { font-family: var(--font-display); font-size: 22px; font-weight: 600; fill: #fff; }
.scr__sub { font-family: var(--font-body); font-size: 11px; fill: #cfe3f7; opacity: 0.8; }
.scr__slide-title { font-family: var(--font-display); font-size: 13px; font-weight: 600; fill: #fff; }
.bar { transform-box: fill-box; transform-origin: 50% 100%; }
.room[data-source="slides"] .bar { animation: bar-grow 1s var(--ease) both; }
.room[data-source="slides"] .bar:nth-child(2) { animation-delay: 0.12s; }
.room[data-source="slides"] .bar:nth-child(3) { animation-delay: 0.24s; }
.room[data-source="slides"] .bar:nth-child(4) { animation-delay: 0.36s; }
@keyframes bar-grow { from { transform: scaleY(0); } }
.visio__speaker { animation: speaker 8s steps(1) infinite; }
@keyframes speaker {
  0% { transform: translate(0, 0); }
  25% { transform: translate(158px, 0); }
  50% { transform: translate(0, 87px); }
  75% { transform: translate(158px, 87px); }
}
.eq rect { transform-box: fill-box; transform-origin: 50% 100%; animation: eq 0.7s ease-in-out infinite alternate; }
.eq rect:nth-child(2n) { animation-duration: 0.5s; }
.eq rect:nth-child(3n) { animation-duration: 0.9s; animation-delay: -0.3s; }
.eq rect:nth-child(4n) { animation-delay: -0.5s; }
@keyframes eq { from { transform: scaleY(0.15); } to { transform: scaleY(1); } }

.room__waves { opacity: 0; transition: opacity 0.6s; }
.room__waves path { animation: wave 1.4s ease-out infinite; }
.room__waves .w2 { animation-delay: 0.35s; }
@keyframes wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

.room__air { opacity: 0; stroke: #8fdcff; transition: opacity 0.6s; }
.room.is-hvac .room__air { opacity: 0.8; }
.room.is-hvac .room__air path { animation: air 1.2s linear infinite; }
.room.is-heat .room__air { stroke: #ffb27a; }
@keyframes air { from { transform: translateY(-6px); opacity: 0; } 50% { opacity: 1; } to { transform: translateY(10px); opacity: 0; } }

.room__devled { animation: led-blink 1.6s steps(1) infinite; }
@keyframes led-blink { 50% { opacity: 0.25; } }

.room__disco { opacity: 0; mix-blend-mode: screen; transition: opacity 0.6s; }
.room__disco circle { transform-box: fill-box; transform-origin: center; filter: url(#f-blur); }
.room.is-disco .room__disco { opacity: 0.55; }
.room.is-disco .room__disco circle { animation: disco-move 3s ease-in-out infinite alternate; }
.room.is-disco .room__disco circle:nth-child(2) { animation-duration: 2.2s; }
.room.is-disco .room__disco circle:nth-child(3) { animation-duration: 3.6s; animation-direction: alternate-reverse; }
.room.is-disco .room__disco circle:nth-child(4) { animation-duration: 2.7s; }
@keyframes disco-move {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(180px, 60px) scale(1.4); }
  100% { transform: translate(-60px, 140px) scale(0.8); }
}
.room.is-disco .cone-stop { animation: disco-color 1.8s linear infinite; }
@keyframes disco-color {
  0% { stop-color: #ff4fd8; }
  25% { stop-color: #43a9ff; }
  50% { stop-color: #3ee6a8; }
  75% { stop-color: #ffb547; }
  100% { stop-color: #ff4fd8; }
}

/* L'écran tactile */
.panel { display: grid; gap: 16px; }
.panel__screen {
  padding: 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, #0c1729, #08111f);
  border: 10px solid #121a26;
  box-shadow:
    0 0 0 1px #2a3546,
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    var(--shadow),
    0 0 60px -20px rgba(67, 169, 255, 0.45);
}
.panel__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 4px 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.panel__room { font-family: var(--font-display); font-weight: 600; }
.panel__clock {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.scenes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s, box-shadow 0.25s;
}
.scene svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scene:hover { color: #fff; border-color: var(--line-strong); }
.scene:active { transform: scale(0.95); }
.scene[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(43, 140, 240, 0.45), rgba(19, 88, 147, 0.45));
  border-color: rgba(67, 169, 255, 0.7);
  box-shadow: 0 0 24px -6px rgba(67, 169, 255, 0.7);
}
.scene--fun[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.45), rgba(67, 169, 255, 0.45));
  border-color: rgba(255, 79, 216, 0.7);
  box-shadow: 0 0 24px -6px rgba(255, 79, 216, 0.8);
}

.ctrls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ctrl {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.ctrl--full { grid-column: 1 / -1; }
.ctrl__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.ctrl__head output {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
}
.ctrl__row { display: flex; align-items: center; gap: 10px; }
.ctrl__row .range { flex: 1; }

.range {
  --val: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent) 0 var(--val), rgba(255, 255, 255, 0.1) var(--val) 100%);
}
.range::-moz-range-track {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent) 0 var(--val), rgba(255, 255, 255, 0.1) var(--val) 100%);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 4px rgba(67, 169, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.5);
}
.range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 4px rgba(67, 169, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.seg { display: flex; gap: 6px; }
.seg button,
.icon-btn {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 6px 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.12s;
}
.seg svg,
.icon-btn svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.seg button:hover,
.icon-btn:hover { color: #fff; border-color: var(--line-strong); }
.seg button:active,
.icon-btn:active { transform: scale(0.94); }
.seg button[aria-pressed="true"],
.seg button.is-active {
  color: #fff;
  background: rgba(67, 169, 255, 0.28);
  border-color: rgba(67, 169, 255, 0.7);
}
.icon-btn { flex: none; width: 42px; }
.icon-btn .mute-x { display: none; }
.icon-btn[aria-pressed="true"] { color: var(--danger); border-color: rgba(255, 107, 122, 0.6); }
.icon-btn[aria-pressed="true"] .mute-x { display: block; }
.icon-btn[aria-pressed="true"] .mute-w { display: none; }

/* Journal des commandes */
.console {
  padding: 14px 16px;
  background: #03070e;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.console__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.console__log {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 128px;
  margin: 0; padding: 0;
  list-style: none;
  overflow: hidden;
}
.console__log li {
  display: flex;
  gap: 8px;
  line-height: 1.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #c7d6e8;
  animation: log-in 0.35s var(--ease);
}
@keyframes log-in { from { opacity: 0; transform: translateY(6px); } }
.log__time { color: var(--faint); }
.log__sys { min-width: 9ch; font-weight: 700; }
.log__sys--crestron { color: #43a9ff; }
.log__sys--lutron { color: #ffd27a; }
.log__sys--extron { color: #3ee6a8; }
.log__sys--amx { color: #ff8fb1; }
.log__sys--dsp { color: #b7a6ff; }
.log__sys--hvac { color: #8fdcff; }
.log__sys--mp { color: #ff4fd8; }
.log__msg { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Plateformes ---------- */
.brands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0; padding: 0;
  list-style: none;
}
.brand-tile {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 28px 22px 24px;
  background: linear-gradient(180deg, var(--surface), rgba(12, 26, 46, 0.55));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.brand-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(62, 230, 168, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}
.brand-tile:hover { transform: translateY(-4px); border-color: rgba(62, 230, 168, 0.45); }
.brand-tile:hover::before { opacity: 1; }
.brand-tile .led { position: absolute; top: 18px; right: 18px; }
.brand-tile.is-visible .led {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(62, 230, 168, 0.18), 0 0 12px rgba(62, 230, 168, 0.8);
}
.brand-tile:nth-child(2) .led { transition-delay: 0.25s; }
.brand-tile:nth-child(3) .led { transition-delay: 0.5s; }
.brand-tile:nth-child(4) .led { transition-delay: 0.75s; }
.brand-tile:nth-child(5) .led { transition-delay: 1s; }
.brand-tile:nth-child(6) .led { transition-delay: 1.25s; }
/* Logos des marques (en blanc pour le fond sombre) : ils tiennent lieu de titre */
.brand-tile__logo {
  display: block;
  width: auto;
  height: 32px;
  max-width: calc(100% - 10px); /* dégage la LED en haut à droite */
  margin-bottom: 14px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.9;
  transition: opacity 0.4s;
}
.brand-tile:hover .brand-tile__logo { opacity: 1; }
.brand-tile__name {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-tile__desc { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.brand-tile--more .brand-tile__name { font-size: 1.35rem; line-height: 32px; margin-bottom: 14px; } /* aligné sur la hauteur des logos */
.brand-tile--more .brand-tile__name { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Méthode ---------- */
.steps {
  --progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  margin: 0; padding: 0;
  list-style: none;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 27px; left: 28px; right: 28px;
  height: 2px;
  border-radius: 2px;
}
.steps::before { background: var(--line-strong); }
.steps::after {
  background: var(--grad);
  transform: scaleX(var(--progress));
  transform-origin: left;
  box-shadow: 0 0 14px rgba(67, 169, 255, 0.7);
}
.step { position: relative; }
.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--bg-2);
  border: 1px solid rgba(67, 169, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 0 0 6px var(--bg);
  transition: background 0.3s, color 0.3s;
}
.step:hover .step__num { background: var(--brand-2); color: #fff; }
.step h3 { font-size: 1.15rem; }
.step p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Références : cartes clients (sans logo) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
  margin: 0; padding: 0;
  list-style: none;
}
.client {
  --c: 67, 169, 255;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 18px 20px;
  overflow: hidden;
  background:
    radial-gradient(140px 100px at 100% 0%, rgba(var(--c), 0.2), transparent 70%),
    linear-gradient(150deg, var(--surface-2), var(--surface) 70%);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.client--media { --c: 177, 140, 255; }
.client--auto { --c: 62, 230, 168; }
.client--wide { grid-column: span 2; }
/* Reflet qui balaie la carte au survol */
.client::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-18deg);
  transition: left 0.8s var(--ease);
  pointer-events: none;
}
.client:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--c), 0.6);
  box-shadow: 0 18px 40px -20px rgba(var(--c), 0.7);
}
.client:hover::after { left: 130%; }
.client__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  color: rgb(var(--c));
  background: rgba(var(--c), 0.14);
  border: 1px solid rgba(var(--c), 0.4);
  border-radius: 14px;
  transition: transform 0.4s var(--ease);
}
.client:hover .client__icon { transform: rotate(-8deg) scale(1.08); }
.client__icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.client__text { display: grid; gap: 4px; min-width: 0; }
.client__name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}
.client__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--c));
}
.client--more {
  background:
    linear-gradient(150deg, var(--surface-2), var(--surface) 70%) padding-box,
    linear-gradient(120deg, #43a9ff, #b18cff, #3ee6a8) border-box;
  border: 1px solid transparent;
}
.client--more .client__name { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Apparition en cascade */
.clients.is-visible .client { animation: client-in 0.7s var(--ease) backwards; }
.clients.is-visible .client:nth-child(4n+2) { animation-delay: 0.08s; }
.clients.is-visible .client:nth-child(4n+3) { animation-delay: 0.16s; }
.clients.is-visible .client:nth-child(4n+4) { animation-delay: 0.24s; }
@keyframes client-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
@media (max-width: 900px) {
  .clients { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .clients { gap: 10px; }
  .client { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 14px; }
  .client--wide { flex-direction: row; align-items: center; }
  .client__icon { width: 38px; height: 38px; border-radius: 11px; }
  .client__icon svg { width: 20px; height: 20px; }
  .client__name { font-size: 1.05rem; }
  .client__tag { font-size: 0.62rem; }
}
.refs__note { margin: 28px auto 0; max-width: 640px; text-align: center; font-size: 0.92rem; color: var(--faint); }

/* ---------- Équipe ---------- */
.team {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.team__visual { position: relative; height: 460px; }
.team__ph {
  position: absolute;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease), z-index 0s;
}
.team__ph--1 { top: 0; left: 0; width: 78%; height: 46%; transform: rotate(-3deg); }
.team__ph--2 { top: 30%; right: 0; width: 62%; height: 44%; transform: rotate(4deg); z-index: 1; }
.team__ph--3 { bottom: 0; left: 6%; width: 64%; height: 36%; transform: rotate(-1.5deg); }
.team__ph:hover { transform: rotate(0) scale(1.03); z-index: 2; }

.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.person {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.person__avatar {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  flex: none;
  border-radius: 16px;
  background: var(--grad-btn);
  box-shadow: 0 8px 22px -8px rgba(43, 140, 240, 0.8);
}
.person__avatar svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.person img.person__avatar { object-fit: cover; padding: 0; }
.person h3 { margin-bottom: 2px; font-size: 1.12rem; }
.person__role {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.person p:last-child { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Carte des co-gérants : diagramme « pieuvre » (les deux noms au centre, les compétences autour, les valeurs en bas) */
.octo-card {
  margin: clamp(48px, 7vw, 72px) 0 0;
  padding: 26px 22px 30px;
  background:
    radial-gradient(circle at 50% 45%, rgba(31, 116, 196, 0.16), transparent 55%),
    linear-gradient(180deg, var(--surface), rgba(12, 26, 46, 0.6));
  border: 1px solid var(--line);
  border-radius: 26px;
}
.octo {
  position: relative;
  aspect-ratio: 1 / 0.5;
}
.octo__arms {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.octo__arms--tall { display: none; }
.octo__arms path {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.octo__base path { stroke: rgba(67, 169, 255, 0.4); stroke-width: 2; }
.octo__pulse path {
  stroke: var(--accent-2);
  stroke-width: 3;
  stroke-dasharray: 10 600;
  filter: drop-shadow(0 0 4px rgba(143, 220, 255, 0.9));
  animation: octo-pulse 3.6s linear infinite;
}
.octo__pulse path:nth-child(2) { animation-delay: -0.72s; }
.octo__pulse path:nth-child(3) { animation-delay: -1.44s; }
.octo__pulse path:nth-child(4) { animation-delay: -2.16s; }
.octo__pulse path:nth-child(5) { animation-delay: -2.88s; }
@keyframes octo-pulse { to { stroke-dashoffset: -610; } }

/* La bulle centrale avec les deux co-gérants */
.octo__center {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 31%;
  aspect-ratio: 1;
  padding: 12px;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--surface-3), var(--bg-2) 75%);
  border: 1px solid rgba(67, 169, 255, 0.55);
  box-shadow: 0 0 0 6px rgba(67, 169, 255, 0.08), 0 0 50px -6px rgba(67, 169, 255, 0.6);
  transform: translate(-50%, -50%);
}
.octo__center::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(143, 220, 255, 0.6);
  animation: octo-breath 3s ease-out infinite;
  pointer-events: none;
}
@keyframes octo-breath { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.22); opacity: 0; } }
.octo__duo { display: flex; gap: clamp(32px, 4vw, 52px); }
.octo__person { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.octo__person .person__avatar { width: 48px; height: 48px; border-radius: 14px; }
.octo__person .person__avatar svg { width: 24px; height: 24px; }
.octo__person h3 { margin: 0; font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.15; }
.octo__center .person__role { margin: 44px 0 0; font-size: 0.72rem; line-height: 1.6; }

/* Les compétences au bout des bras (disposées en pentagone) */
.octo__nodes {
  position: absolute;
  inset: 0;
  margin: 0; padding: 0;
  list-style: none;
}
.octo__nodes li {
  --s: 1;
  position: absolute;
  display: grid;
  gap: 3px;
  width: max-content;
  max-width: 28%;
  padding: 12px 18px;
  text-align: center;
  background: rgba(17, 35, 61, 0.94);
  border: 1px solid rgba(67, 169, 255, 0.45);
  border-radius: 16px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(var(--s));
  transition: transform 0.5s var(--ease), opacity 0.5s, background 0.25s, border-color 0.25s;
}
.octo__nodes strong { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: #fff; }
.octo__nodes span { font-size: 0.85rem; line-height: 1.35; color: var(--muted); }
.octo__nodes li:hover { --s: 1.05; background: rgba(31, 116, 196, 0.4); border-color: var(--accent-2); }
.octo__nodes li:nth-child(1) { left: 50%; top: 9%; }
.octo__nodes li:nth-child(2) { left: 84%; top: 34%; transition-delay: 0.1s; }
.octo__nodes li:nth-child(3) { left: 73%; top: 86%; transition-delay: 0.2s; }
.octo__nodes li:nth-child(4) { left: 27%; top: 86%; transition-delay: 0.3s; }
.octo__nodes li:nth-child(5) { left: 16%; top: 34%; transition-delay: 0.4s; }
.octo__nodes li:hover { transition-delay: 0s; }
.js .octo-card:not(.is-visible) .octo__nodes li { --s: 0.5; opacity: 0; }

/* Les valeurs, en bas du cadre */
.octo-card__values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0 0; padding: 0;
  list-style: none;
}
.octo-card__values li {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 10px 14px;
  text-align: center;
  background: rgba(67, 169, 255, 0.08);
  border: 1px solid rgba(67, 169, 255, 0.3);
  border-radius: 14px;
}
.octo-card__values strong { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; color: var(--accent-2); }
.octo-card__values span { font-size: 0.82rem; line-height: 1.35; color: var(--muted); }

@media (max-width: 900px) {
  .octo { aspect-ratio: 1 / 0.95; }
  .octo__arms--wide { display: none; }
  .octo__arms--tall { display: block; }
  .octo__center { width: 42%; max-width: 300px; }
  .octo__nodes li { max-width: 44%; }
  .octo__nodes li:nth-child(1) { left: 50%; top: 9%; }
  .octo__nodes li:nth-child(2) { left: 78%; top: 24%; }
  .octo__nodes li:nth-child(3) { left: 75%; top: 88%; }
  .octo__nodes li:nth-child(4) { left: 25%; top: 88%; }
  .octo__nodes li:nth-child(5) { left: 22%; top: 24%; }
  .octo-card__values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .octo-card { padding: 18px 10px 22px; }
  .octo { aspect-ratio: 1 / 1.5; }
  .octo__center { width: 62%; padding: 8px; gap: 6px; }
  .octo__duo { flex-direction: column; gap: 14px; }
  .octo__person { flex-direction: row; gap: 8px; text-align: left; }
  .octo__person .person__avatar { width: 30px; height: 30px; border-radius: 9px; }
  .octo__person .person__avatar svg { width: 16px; height: 16px; }
  .octo__person h3 { font-size: 1.05rem; }
  .octo__center .person__role { margin-top: 18px; font-size: 0.6rem; letter-spacing: 0.05em; line-height: 1.4; }
  .octo__nodes li { max-width: 46%; padding: 9px 10px; }
  .octo__nodes strong { font-size: 0.92rem; }
  .octo__nodes span { font-size: 0.74rem; }
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0; padding: 0;
  list-style: none;
}
.values li {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(67, 169, 255, 0.08), transparent);
  border-radius: 0 12px 12px 0;
}
.values strong { font-family: var(--font-display); font-weight: 600; }
.values span { font-size: 0.82rem; line-height: 1.4; color: var(--muted); }

/* ---------- Bandeau d'appel ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 12vw, 150px) 0;
  text-align: center;
  isolation: isolate;
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 300px at 50% 50%, rgba(31, 116, 196, 0.35), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, rgba(5, 11, 22, 0.55) 30%, rgba(5, 11, 22, 0.55) 70%, var(--bg) 100%);
}
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cta-band p { max-width: 560px; margin: 0 auto 32px; font-size: 1.15rem; color: #c4d2e4; }

/* Invitation à la démo : texte plus large, gros bouton animé */
.cta-band--try p { max-width: 680px; margin-bottom: 40px; }
.cta-band--try .cta-band__bg { opacity: 0.42; filter: saturate(0.45) brightness(0.85); }
.btn--xl {
  --pad-y: 14px;
  --pad-x: 40px;
  gap: 16px;
  padding-left: 14px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  box-shadow: 0 18px 50px -14px rgba(67, 169, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn__icon {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.btn--xl .btn__icon svg {
  width: 34px; height: 34px;
  transform-origin: 50% 85%;
  animation: tap 1.8s var(--ease) infinite;
}
@keyframes tap {
  0%, 55%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(3px) scale(0.86); }
}
/* Onde qui s'échappe du bouton, comme un écran tactile qu'on effleure */
.btn--xl::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid rgba(143, 220, 255, 0.7);
  pointer-events: none;
  animation: ring 2.2s ease-out infinite;
}
@keyframes ring {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(1.12, 1.35); opacity: 0; }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.coords { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.coords li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(12, 26, 46, 0.6);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.coords li:hover { border-color: var(--line-strong); transform: translateX(4px); }
.coords__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  background: rgba(67, 169, 255, 0.12);
  border: 1px solid rgba(67, 169, 255, 0.3);
}
.coords__icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.coords strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.coords a, .coords span { color: var(--text); text-decoration: none; font-weight: 600; word-break: break-word; }
.coords a:hover { color: var(--accent-2); }

.form {
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(180deg, var(--surface), rgba(12, 26, 46, 0.7));
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.field label span { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(3, 8, 16, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fdcff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}
.field select option { background: var(--surface); color: var(--text); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(3, 8, 16, 0.8);
  box-shadow: 0 0 0 4px rgba(67, 169, 255, 0.18);
}
.was-validated .field input:invalid,
.was-validated .field textarea:invalid,
.was-validated .field--check input:invalid + label { border-color: var(--danger); }
.was-validated .field input:invalid,
.was-validated .field textarea:invalid { box-shadow: 0 0 0 3px rgba(255, 107, 122, 0.15); }
.was-validated .field--check input:invalid + label { color: var(--danger); }

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
}
.field--check input {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.field--check label { font-weight: 500; font-size: 0.86rem; line-height: 1.5; }

/* Captcha : écran façon pupitre de contrôle + champ de saisie */
.captcha {
  display: grid;
  grid-template-columns: minmax(0, 200px) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.captcha__screen {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 200 / 64;
  overflow: hidden;
  background: #050b16;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: inset 0 0 18px rgba(67, 169, 255, 0.12);
}
.captcha__screen > * { grid-area: 1 / 1; }
.captcha__img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.captcha__img[hidden] { display: none; }
.captcha__msg { padding: 0 10px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); text-align: center; }
.captcha__msg:empty { display: none; }
.captcha__msg.is-error { color: var(--danger); }
.captcha__screen.is-loading .captcha__img { opacity: 0.25; }
.captcha__refresh {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  color: var(--accent);
  background: rgba(3, 8, 16, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.4s var(--ease);
}
.captcha__refresh:hover { color: var(--text); border-color: var(--accent); }
.captcha__refresh:active { transform: rotate(-120deg); }
.captcha__refresh svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.captcha__refresh[disabled] { opacity: 0.5; cursor: wait; }
.field .captcha__input {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
}
.field .captcha__input::placeholder { font-family: var(--font-body); font-size: 0.9rem; letter-spacing: normal; color: var(--faint); }
.field__help { margin: 0; font-size: 0.8rem; color: var(--faint); }
@media (max-width: 480px) {
  .captcha { grid-template-columns: minmax(0, 200px) auto; }
  .captcha__input { grid-column: 1 / -1; }
}

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 8px;
}
.form__legal { margin: 0; flex: 1 1 220px; font-size: 0.8rem; color: var(--faint); }
.form__status { margin: 18px 0 0; font-weight: 600; min-height: 1.5em; }
.form__status.is-success { color: var(--ok); }
.form__status.is-error { color: var(--danger); }
.form.is-sent .btn__label::after { content: " ✓"; }

/* ---------- Pied de page ---------- */
.site-footer {
  padding: 72px 0 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 18, 36, 0.6), #03070e);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.site-footer__brand img { width: 312px; max-width: 100%; margin-bottom: 18px; }
.site-footer__brand p { max-width: 340px; font-size: 0.92rem; color: var(--muted); }
.site-footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-footer nav a:hover { color: #fff; }
.site-footer__trust { display: grid; align-content: start; gap: 10px; }
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--faint);
}
.site-footer__bottom p { margin: 0; }
.to-top { color: var(--muted); text-decoration: none; }
.to-top:hover { color: #fff; }

/* ---------- Notifications ---------- */
.toasts {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 80;
  display: grid;
  gap: 10px;
  max-width: min(380px, calc(100vw - 40px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(12, 26, 46, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: toast-in 0.45s var(--ease);
}
.toast.is-leaving { animation: toast-out 0.35s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Mode fête (code secret) ---------- */
body.is-party main { animation: party-hue 4s linear infinite; }
@keyframes party-hue { to { filter: hue-rotate(360deg); } }
.confetti {
  position: fixed;
  top: -20px;
  z-index: 90;
  width: 10px; height: 14px;
  border-radius: 2px;
  pointer-events: none;
  animation: confetti-fall var(--dur, 2.6s) cubic-bezier(0.3, 0.6, 0.5, 1) forwards;
}
@keyframes confetti-fall {
  to { transform: translate(var(--dx, 0), 105vh) rotate(var(--rot, 540deg)); opacity: 0.8; }
}

/* ---------- Pages secondaires ---------- */
.page {
  padding: calc(var(--header-h) + 64px) 0 96px;
}
.page .container { max-width: calc(860px + 2 * var(--gutter)); }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.6em; }
.page h2 { font-size: 1.5rem; margin-top: 2.2em; }
.page p, .page li { color: #c4d2e4; }
.page ul { padding-left: 1.2em; }
.page .todo {
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--warn);
  background: rgba(255, 181, 71, 0.1);
  border: 1px dashed rgba(255, 181, 71, 0.5);
  border-radius: 6px;
}
.page table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.page th, .page td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.page th { color: var(--muted); font-weight: 600; }
.site-header--solid {
  background: rgba(5, 11, 22, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; text-decoration: none; color: var(--muted); }
.back-link:hover { color: #fff; }

/* Page 404 */
.lost {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
  text-align: center;
}
.lost__tv {
  width: min(520px, 100%);
  margin: 0 auto 36px;
  padding: 14px;
  border-radius: 22px;
  background: #121a26;
  box-shadow: 0 0 0 1px #2a3546, var(--shadow), 0 0 80px -20px rgba(67, 169, 255, 0.4);
}
.lost__tv svg { width: 100%; border-radius: 12px; }
.lost__noise { animation: noise 0.25s steps(2) infinite; }
@keyframes noise { 50% { transform: translateX(-2%); } }
.lost h1 { font-size: clamp(2rem, 5vw, 3rem); }
.lost p { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .xp-grid { grid-template-columns: repeat(2, 1fr); }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .demo__stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "room" "panel" "console";
    max-width: 760px;
    margin-inline: auto;
  }
  .values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1023px) {
  .hero__inner { grid-template-columns: 1fr; }
  .terminal { transform: none; max-width: 560px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 280px; }
  .steps { grid-template-columns: 1fr; gap: 6px; padding-left: 0; }
  .steps::before,
  .steps::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .steps::after { transform: scaleY(var(--progress)); transform-origin: top; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding-bottom: 18px; }
  .step__num { grid-row: span 2; margin: 0; }
  .step h3 { margin: 12px 0 4px; }
  .team { grid-template-columns: 1fr; }
  .team__visual { height: 420px; max-width: 620px; width: 100%; margin-inline: auto; }
  .contact { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .hero > .ticker { margin-top: 44px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .terminal__body { min-height: 0; font-size: 0.72rem; padding: 16px; }
  .xp-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .sector--wide { grid-column: auto; }
  .sector--tall { grid-row: auto; }
  .brands { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr; }
  .team__visual { height: 340px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .scenes { grid-template-columns: repeat(3, 1fr); }
  .scene { font-size: 0.78rem; padding: 10px 4px 8px; }
  .ctrls { grid-template-columns: 1fr; }
  .room__hud { display: none; }
  .room__label { top: 8px; left: 8px; padding: 4px 9px; font-size: 0.64rem; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { transform: none; }
  .ticker__track { animation: none; }
}

/* ---------- Impression ---------- */
@media print {
  .site-header, .hero__bg, .ticker, .demo, .cta-band, .toasts, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
