/* ==========================================================================
   SwitchPanel — site vitrine
   Reprend le thème du logiciel : fond nuit, palette sauge et émeraude,
   voyants verts, Plus Jakarta Sans et JetBrains Mono.
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/PlusJakartaSans-var.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/JetBrainsMono-var.woff2') format('woff2');
}

/* ---------- Jetons ---------- */
:root {
  --sage-100: #eaf3ed;
  --sage-200: #c9e2d3;
  --sage-300: #a2ccb4;
  --sage-400: #7fa993;
  --sage-500: #5d8c75;
  --teal-500: #3b746c;
  --teal-600: #2e5c56;
  --emerald: #0f766e;
  --led: #38ef7d;
  --led-glow: rgba(56, 239, 125, 0.55);

  --vlan-10: #10b981;
  --vlan-20: #3b82f6;
  --vlan-30: #f59e0b;
  --vlan-50: #a2ccb4;
  --vlan-99: #a78bfa;
  --vlan-off: #ef4444;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, 'Liberation Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
}

/* Sombre (thème par défaut du logiciel) */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0f14;
  --bg-alt: #0d141a;
  --bg-deep: #070b0f;
  --surface: rgba(18, 27, 34, 0.72);
  --surface-solid: #101820;
  --surface-2: #16222c;
  --text: #f0f7f3;
  --text-2: #b6c5bd;
  --text-3: #8aa397;
  --border: rgba(127, 169, 147, 0.16);
  --border-2: rgba(127, 169, 147, 0.30);
  --accent: #38ef7d;
  --accent-ink: #04150b;
  --grad-a: #eaf3ed;
  --grad-b: #38ef7d;
  --grad-c: #4e857c;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--border);
  --nav-bg: rgba(10, 15, 20, 0.72);
}

:root[data-theme="light"] {
  /* Palette « papier » : blanc cassé et vert sauge, moins éblouissant. */
  color-scheme: light;
  --bg: #e9eeeb;
  --bg-alt: #e1e8e3;
  --bg-deep: #0a0f14;
  --surface: rgba(244, 246, 243, 0.9);
  --surface-solid: #f4f6f3;
  --surface-2: #edf1ee;
  --text: #1d2b27;
  --text-2: #34443f;
  --text-3: #4e5d58;
  --border: rgba(52, 80, 72, 0.13);
  --border-2: rgba(52, 80, 72, 0.26);
  --accent: #2f6f64;
  --accent-ink: #ffffff;
  --grad-a: #1d2b27;
  --grad-b: #2f6f64;
  --grad-c: #4a7a70;
  --shadow: 0 24px 60px -36px rgba(29, 43, 39, 0.32), 0 0 0 1px var(--border);
  --nav-bg: rgba(233, 238, 235, 0.86);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 750; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: 0.88em; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
}
.skip:focus { top: 12px; }

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

.grad {
  background: linear-gradient(100deg, var(--grad-a) 0%, var(--grad-b) 55%, var(--grad-c) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--text-3); }

.led {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--led); box-shadow: 0 0 10px var(--led-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; box-shadow: 0 0 2px var(--led-glow); } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn .gh { fill: currentColor; stroke: none; }
.btn:hover .gh { transform: none; }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px var(--led-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--led-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
:root[data-theme="light"] .btn--primary { box-shadow: 0 10px 30px -12px rgba(47, 111, 100, 0.6); }
.btn--ghost { color: var(--text); border: 1px solid var(--border-2); background: var(--surface); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--border); background: transparent;
  color: var(--text-2); cursor: pointer; transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--surface); }
.icon-btn svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .i-moon,
:root:not([data-theme]) .i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -0.02em; font-size: 17px; }
.brand img { border-radius: 8px; }
.sp-mark { color: var(--accent); flex: none; display: block; width: 2.5em; height: 1em; stroke: none; }
.brand .sp-mark { font-size: 22px; }
.sim__brand .sp-mark { font-size: 18px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__sub { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; color: var(--text-2); white-space: nowrap; }
.nav__links { display: flex; gap: 4px; margin: 0 auto; }
.nav__links a {
  padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--surface); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 40px; overflow: hidden; isolation: isolate; }
.hero__grid {
  position: absolute; z-index: -1; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 30%, transparent 75%);
  opacity: 0.6;
}
.hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--border-2); background: var(--surface); backdrop-filter: blur(10px);
}
.hero__title { margin-top: 28px; font-size: clamp(44px, 8.4vw, 104px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; }
.hero__lead { margin-top: 26px; max-width: 680px; font-size: clamp(17px, 2vw, 21px); color: var(--text-2); line-height: 1.55; }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__trust { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; color: var(--text-3); font-size: 14px; font-weight: 550; }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust svg { color: var(--accent); width: 16px; height: 16px; stroke-width: 2.4; }

.hero__visual { position: relative; margin-top: 72px; perspective: 1800px; }

.window {
  border-radius: 16px; overflow: hidden; background: var(--surface-solid);
  box-shadow: var(--shadow);
}
.window img { width: 100%; }
.window__bar {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.window__bar i:nth-child(1) { background: #ff5f57; }
.window__bar i:nth-child(2) { background: #febc2e; }
.window__bar i:nth-child(3) { background: #28c840; }
.window__bar span {
  margin: 0 auto; padding: 3px 14px; border-radius: 8px; font-size: 12px; color: var(--text-3);
  background: var(--bg); font-family: var(--font-mono); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.window--hero {
  position: relative;
  transform: rotateX(var(--tilt, 14deg)) scale(var(--zoom, 0.94));
  transform-origin: 50% 0;
  transition: transform 0.15s linear;
  box-shadow: 0 60px 140px -40px rgba(56, 239, 125, 0.25), var(--shadow);
}
.window--hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%);
}

.float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border-2);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  animation: float 6s ease-in-out infinite;
}
.float strong { display: block; font-size: 14px; letter-spacing: -0.01em; }
.float small { display: block; font-size: 12px; color: var(--text-3); }
.float--a { left: 0; top: 18%; }
.float--b { right: 0; top: 52%; animation-delay: -3s; }
.float__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(78, 133, 124, 0.22); color: var(--sage-300); }
.float__icon--ok { background: rgba(56, 239, 125, 0.16); color: var(--led); }
.float__icon svg { width: 20px; height: 20px; stroke-width: 2.2; }
:root[data-theme="light"] .float__icon { color: var(--teal-600); }
:root[data-theme="light"] .float__icon--ok { color: var(--accent); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Chiffres ---------- */
.stats { padding: 40px 0 20px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  padding: 28px 24px; border-radius: var(--radius-md); text-align: center;
  background: var(--surface); border: 1px solid var(--border);
}
.stat strong { display: block; font-size: clamp(34px, 4.2vw, 50px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 10px; font-size: 14px; color: var(--text-3); font-weight: 550; }

/* ---------- Sections ---------- */
.section { padding: 130px 0; position: relative; }
.section--tight { padding-top: 40px; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-deep); color: #f0f7f3; }
.section--dark .muted, .section--dark .section__lead { color: #8aa397; }
.section--dark .kicker { color: var(--led); }
.section__head { text-align: center; max-width: 820px; margin: 0 auto 64px; }
.section__head--left { text-align: left; margin: 0; }
.section__head h2 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.section__lead { margin-top: 22px; font-size: 19px; color: var(--text-2); }
.section__head--left .section__lead { max-width: 560px; }

.tag {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(56, 239, 125, 0.14); color: var(--led);
}
:root[data-theme="light"] .tag { background: rgba(47, 111, 100, 0.12); color: var(--accent); }
.tag--muted { background: rgba(239, 68, 68, 0.12); color: #f87171; }

.list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.list li { position: relative; padding-left: 32px; color: var(--text-2); }
.list li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background-position: center; background-repeat: no-repeat; background-size: 12px;
}
.list--check li::before {
  background-color: rgba(56, 239, 125, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338ef7d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .list--check li::before {
  background-color: rgba(47, 111, 100, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6f64' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.list--x li::before {
  background-color: rgba(239, 68, 68, 0.13);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
}

/* ---------- Avant / Après ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
/* Les blocs de code ne doivent jamais élargir la grille sur mobile. */
.compare > *, .split > *, .bento > *, .security > * { min-width: 0; }
.compare__card {
  padding: 40px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: flex-start;
}
.compare__card h3 { margin: 18px 0 24px; font-size: 28px; }
.compare__card--after { border-color: rgba(56, 239, 125, 0.32); background: linear-gradient(160deg, rgba(56, 239, 125, 0.08), transparent 45%), var(--surface); }
:root[data-theme="light"] .compare__card--after { border-color: rgba(47, 111, 100, 0.3); background: linear-gradient(160deg, rgba(47, 111, 100, 0.07), transparent 45%), var(--surface); }

.term {
  width: 100%; margin: 0; padding: 20px 22px; border-radius: var(--radius-sm);
  background: #05080b; color: #cfe3d8; border: 1px solid rgba(127, 169, 147, 0.16);
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.8; overflow-x: auto;
}
.term code { font-size: inherit; }
.t-p { color: #6b8f7d; }
.t-e { color: #f87171; }
.t-c { color: #6b8f7d; }

.mock-action {
  width: 100%; padding: 20px 22px; border-radius: var(--radius-sm);
  background: var(--surface-solid); border: 1px solid var(--border);
  display: grid; gap: 12px;
}
.mock-action__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-3); padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.mock-action__row b { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; }
.mock-action__diff { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.mock-action__diff > div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.mock-action__diff small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 700; }
.mock-action__diff span { font-size: 14px; font-weight: 650; }
.mock-action__diff .ok { color: var(--vlan-10); }
:root[data-theme="light"] .mock-action__diff .ok { color: var(--accent); }
.mock-action__diff svg { color: var(--text-3); width: 18px; height: 18px; }
.mock-action__btn {
  justify-self: end; padding: 8px 20px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink);
}
.mock-action__btn--ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border-2); }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--10 { background: var(--vlan-10); }
.dot--20 { background: var(--vlan-20); }
.dot--30 { background: var(--vlan-30); }
.dot--50 { background: var(--vlan-50); }
.dot--99 { background: var(--vlan-99); }
.dot--off { background: var(--vlan-off); }

/* ---------- Switch animé ---------- */
.switch {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 28px 32px; border-radius: 20px;
  background: linear-gradient(180deg, #1a252e, #0f171d);
  border: 1px solid rgba(127, 169, 147, 0.22);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f0f7f3;
}
.switch::before {
  content: ''; position: absolute; inset: 8px; border-radius: 14px; pointer-events: none;
  border: 1px dashed rgba(127, 169, 147, 0.12);
}
.switch__brand { display: grid; gap: 4px; font-size: 13px; }
.switch__brand b { font-size: 15px; letter-spacing: -0.01em; }
.switch__brand small { color: #8aa397; }
.switch__brand .led { margin-bottom: 4px; }
.switch__ports { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px 8px; }
.port {
  position: relative; aspect-ratio: 1 / 0.82; border-radius: 5px;
  background: #05080b; border: 1px solid rgba(127, 169, 147, 0.18);
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.4s;
}
.port::before {
  content: ''; position: absolute; left: 22%; right: 22%; bottom: 18%; height: 30%;
  border-radius: 2px; background: rgba(127, 169, 147, 0.10);
}
.port::after {
  content: ''; position: absolute; top: 5px; left: 5px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c, #1e2a32); box-shadow: 0 0 8px var(--c, transparent);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.port.is-up { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.port.is-blink::after { animation: blink 0.9s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.switch__uplinks { display: grid; gap: 10px; }
.switch__uplinks span {
  width: 46px; height: 34px; border-radius: 6px; background: #05080b;
  border: 1px solid rgba(59, 130, 246, 0.5); box-shadow: 0 0 14px -4px rgba(59, 130, 246, 0.8);
}
.legend { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; font-size: 14px; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative; overflow: hidden; padding: 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s var(--ease);
}
.tile:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 30px 60px -35px rgba(0, 0, 0, 0.6); }
.tile::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 239, 125, 0.10), transparent 60%);
}
.tile:hover::before { opacity: 1; }
.tile--wide { grid-column: span 2; }
.tile h3 { margin: 22px 0 10px; font-size: 22px; }
.tile p { color: var(--text-2); font-size: 16px; }
.tile__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(145deg, var(--teal-600), var(--emerald)); color: #e6fffa;
  box-shadow: 0 10px 24px -10px rgba(15, 118, 110, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.tile__icon svg { width: 24px; height: 24px; }
.tile__shotwrap {
  margin: 28px -32px -32px 32px; overflow: hidden;
  border-radius: 14px 0 0 0; border: 1px solid var(--border-2); border-right: 0; border-bottom: 0;
  box-shadow: -20px -10px 50px -30px rgba(0, 0, 0, 0.6);
}
.tile__shot {
  margin: 0; border: 0; border-radius: 0; box-shadow: none; width: 100%; max-width: none;
  transition: transform 1.2s var(--ease); transform-origin: top left;
}
.tile--split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: end; }
.tile__shotwrap--split { margin: 0 -32px -32px 0; }

/* ---------- Cartes ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 34px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.card h3 { margin: 20px 0 10px; font-size: 24px; }
.card p { color: var(--text-2); }
.badge { display: inline-flex; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge--99 { background: rgba(167, 139, 250, 0.15); color: #a78bfa; }
.badge--20 { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge--10 { background: rgba(16, 185, 129, 0.15); color: #10b981; }
:root[data-theme="light"] .badge--99 { color: #6d28d9; }
:root[data-theme="light"] .badge--20 { color: #1d4ed8; }
:root[data-theme="light"] .badge--10 { color: #047857; }
.card__emoji {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: var(--surface-2); color: var(--accent); border: 1px solid var(--border);
}
.card__emoji svg { width: 26px; height: 26px; }
.card--preset h3 { font-size: 26px; }
.card__sub { margin-top: -4px; font-size: 14px; color: var(--text-3) !important; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }

/* ---------- Sécurité ---------- */
.security { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.security .section__head { position: sticky; top: 110px; }
.shield { margin-top: 44px; width: 130px; }
.shield svg { width: 100%; height: auto; stroke: none; filter: drop-shadow(0 0 30px rgba(56, 239, 125, 0.35)); }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sec {
  padding: 28px; border-radius: var(--radius-md);
  background: rgba(18, 27, 34, 0.75); border: 1px solid rgba(127, 169, 147, 0.16);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.sec:hover { border-color: rgba(56, 239, 125, 0.4); transform: translateY(-3px); }
.sec h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.sec p { margin-top: 10px; font-size: 15px; color: #a9bcb2; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

/* ---------- Chat IA ---------- */
.chat {
  padding: 22px; border-radius: var(--radius-lg); display: grid; gap: 14px;
  background: var(--surface); border: 1px solid var(--border-2);
  box-shadow: 0 50px 100px -50px rgba(56, 239, 125, 0.35), var(--shadow);
}
.chat__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.chat__head small { margin-left: auto; font-size: 12px; color: var(--led); font-weight: 600; }
:root[data-theme="light"] .chat__head small { color: var(--accent); }
.chat__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(145deg, var(--teal-600), var(--emerald)); color: #e6fffa; }
.chat__avatar svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); font-size: 15px; color: var(--text-2); }
.bubble b { color: var(--text); }
.bubble--me { justify-self: end; border-radius: 18px 18px 6px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 550; }
.proposal { padding: 16px; border-radius: 16px; border: 1px solid rgba(56, 239, 125, 0.3); background: var(--surface-solid); display: grid; gap: 14px; }
.proposal__title { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; }
.proposal__btns { display: flex; gap: 10px; justify-content: flex-end; }
.proposal .mock-action__btn { justify-self: auto; }

/* ---------- Téléphone ---------- */
.phone {
  padding: 12px; border-radius: 48px;
  background: linear-gradient(145deg, #2a3740, #0d151b);
  box-shadow: 0 60px 120px -50px rgba(56, 239, 125, 0.35), 0 0 0 1px rgba(127, 169, 147, 0.25), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}
.phone img { border-radius: 38px; }

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step__n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-weight: 800; font-size: 18px; color: var(--accent-ink); background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 15%, transparent);
}
.step h3 { margin: 22px 0 8px; font-size: 22px; }
.step p { color: var(--text-2); font-size: 16px; }

.code { margin-top: 28px; border-radius: var(--radius-md); overflow: hidden; background: #05080b; border: 1px solid rgba(127, 169, 147, 0.18); }
.code__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid rgba(127, 169, 147, 0.14); font-size: 13px; color: #8aa397; font-weight: 600; }
.code__copy { font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 8px; border: 1px solid rgba(127, 169, 147, 0.3); background: transparent; color: #cfe3d8; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.code__copy:hover { border-color: var(--led); color: var(--led); }
.code pre { margin: 0; padding: 20px; overflow-x: auto; color: #cfe3d8; font-family: var(--font-mono); font-size: 14px; line-height: 1.8; }
.code pre code { font-size: inherit; }
.note { margin-top: 24px; color: var(--text-3); font-size: 15px; }
.note code { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.note--center { text-align: center; }

/* ---------- Qualité ---------- */
.quality { display: grid; grid-template-columns: repeat(6, 1fr); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--border); gap: 1px; }
.q { padding: 32px 18px; text-align: center; background: var(--bg); }
.q strong { display: block; font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; letter-spacing: -0.035em; }
.q > span { display: block; margin-top: 6px; font-size: 13px; color: var(--text-3); font-weight: 550; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); transition: border-color 0.3s; }
.faq details[open] { border-color: var(--border-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 650; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2);
  background-image: linear-gradient(var(--text-2), var(--text-2)), linear-gradient(var(--text-2), var(--text-2));
  background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--text-2); }
.faq code { padding: 2px 7px; border-radius: 6px; background: var(--surface-2); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 150px 0; text-align: center; overflow: hidden; isolation: isolate; }
.cta__glow { position: absolute; z-index: -1; inset: 0; background: radial-gradient(50% 60% at 50% 50%, rgba(56, 239, 125, 0.16), transparent 70%); }
:root[data-theme="light"] .cta__glow { background: radial-gradient(50% 60% at 50% 50%, rgba(47, 111, 100, 0.12), transparent 70%); }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta h2 { margin-top: 32px; font-size: clamp(38px, 6vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.cta p { margin-top: 22px; font-size: 19px; color: var(--text-2); }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 36px; background: var(--bg-alt); }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand p { margin-top: 12px; max-width: 300px; color: var(--text-3); font-size: 15px; }
.footer__cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer__cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 14px; }
.footer__cols a { display: block; padding: 4px 0; color: var(--text-3); font-size: 15px; transition: color 0.2s; }
.footer__cols a:hover { color: var(--accent); }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links a { padding: 8px 9px; font-size: 13.5px; }
  .quality { grid-template-columns: repeat(3, 1fr); }
  .security { grid-template-columns: 1fr; gap: 48px; }
  .security .section__head { position: static; }
  .shield { display: none; }
}

@media (max-width: 920px) {
  .nav__burger { display: inline-grid; }
  .nav__links {
    position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    padding: 12px 16px 20px; background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .nav.menu-open { background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .compare, .split, .cards3, .steps { grid-template-columns: 1fr; }
  .split { gap: 48px; }
  .split--reverse .phone-wrap { order: 2; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--split { grid-template-columns: 1fr; }
  .tile--split .tile__shotwrap { margin: 0 -32px -32px 32px; }
  .float { display: none; }
  .switch { grid-template-columns: 1fr; gap: 20px; }
  .switch__uplinks { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .nav__inner { padding: 0 16px; }
  .nav .btn--sm { display: none; }
  .hero { padding: 116px 0 24px; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .hero__visual { margin-top: 48px; }
  .section { padding: 88px 0; }
  .section--tight { padding-top: 24px; }
  .section__head { margin-bottom: 44px; }
  .section__lead { font-size: 17px; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile, .card, .step, .compare__card { padding: 26px; }
  .tile__shotwrap, .tile--split .tile__shotwrap { margin: 24px -26px -26px 26px; }
  .sec-grid { grid-template-columns: 1fr; }
  .switch { padding: 20px; }
  .switch__ports { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .quality { grid-template-columns: repeat(2, 1fr); }
  .mock-action__diff { grid-template-columns: 1fr; }
  .mock-action__diff svg { transform: rotate(90deg); justify-self: center; }
  .stat { padding: 22px 14px; }
  .faq summary { font-size: 16px; padding: 18px 20px; }
  .faq details p { padding: 0 20px 20px; }
  .cta { padding: 100px 0; }
  .footer__cols { gap: 36px; }
  .window__bar span { max-width: 70%; }
}

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

/* ---------- Simulateur ---------- */
html:not(.js) .sim { display: none; }
.js .sim__nojs { display: none; }
.sim__nojs { text-align: center; color: var(--text-2); }
.sim .window { max-width: 1180px; margin: 0 auto; }
.sim__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.sim__brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 15px; letter-spacing: -0.01em; }
.sim__brand img { width: 22px; height: 22px; flex: none; border-radius: 6px; }
.sim__roles { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.sim__roles button {
  font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-2); cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.sim__roles button:hover { color: var(--text); }
.sim__roles button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.sim__meta { display: inline-flex; align-items: center; gap: 10px; }
.sim__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--border);
}

.sim-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border-2);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
}
.sim-btn:hover:not(:disabled) { border-color: var(--accent); }
.sim-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.sim-btn--sm { padding: 6px 12px; font-size: 12.5px; }
.sim__roles button:focus-visible, .sim-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a.sim-btn { text-decoration: none; display: inline-flex; align-items: center; }
.sim__frame { background: #0b1210; }
.sim__frame iframe { display: block; width: 100%; height: min(820px, 80vh); min-height: 560px; border: 0; background: #0b1210; }
.sim__hint { max-width: 760px; margin: 24px auto 0; text-align: center; font-size: 15px; color: var(--text-2); }
.sim__hint b { color: var(--text); }

@media (max-width: 640px) {
  .sim__top { padding: 12px; }
  .sim__roles { order: 3; width: 100%; }
  .sim__roles button { flex: 1; padding: 7px 4px; font-size: 13px; }
  .sim__frame iframe { height: 78vh; min-height: 480px; }
}
