/* =====================================================================
   MGSDesk — site vitrine
   Jetons repris de l'interface (App.axaml) : accent #2563EB, Inter.
   ===================================================================== */

:root {
  --fond: #060a14;
  --fond-2: #0a1020;
  --surface: #0f1729;
  --surface-2: #131d33;
  --bordure: rgba(148, 163, 184, .14);
  --bordure-forte: rgba(148, 163, 184, .26);
  --texte: #e8edf6;
  --texte-doux: #9aa6bc;
  --texte-discret: #6b7890;
  --accent: #3b82f6;
  --accent-fort: #2563eb;
  --accent-clair: #8ab4ff;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --succes: #34d399;
  --avert: #fbbf24;
  --danger: #f87171;
  --rayon: 18px;
  --rayon-petit: 12px;
  --largeur: 1200px;
  --ombre: 0 30px 80px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(148, 163, 184, .08);
  --degrade: linear-gradient(135deg, #60a5fa 0%, #3b82f6 35%, #8b5cf6 100%);
  --police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(59, 130, 246, .45); color: #fff; }

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

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }

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

/* ---------- Typographie ---------- */

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -.035em; }
h3 { font-size: 1.25rem; letter-spacing: -.015em; }
p { margin: 0; }

.degrade-texte {
  background: var(--degrade);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.surtitre {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-clair);
  margin-bottom: 18px;
}
.surtitre::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--degrade);
}

.chapeau { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--texte-doux); max-width: 640px; }

.entete-section { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.entete-section .chapeau { margin: 18px auto 0; }
.entete-section .surtitre::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--degrade); }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 12px;
  font-weight: 600; font-size: .98rem; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
}
.bouton svg { width: 18px; height: 18px; flex: none; }
.bouton-primaire {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(37, 99, 235, .7), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.bouton-primaire:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(37, 99, 235, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.bouton-secondaire { background: rgba(255, 255, 255, .04); border-color: var(--bordure-forte); color: var(--texte); }
.bouton-secondaire:hover { background: rgba(255, 255, 255, .08); border-color: rgba(148, 163, 184, .4); transform: translateY(-2px); }
.bouton-petit { height: 40px; padding: 0 16px; font-size: .9rem; border-radius: 10px; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.defilee {
  background: rgba(6, 10, 20, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-color: var(--bordure);
}
.nav-interieur { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.logo-marque {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, #3b82f6, #1d4ed8);
  box-shadow: 0 6px 18px -4px rgba(37, 99, 235, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.logo-marque svg { width: 19px; height: 19px; fill: #fff; }
.nav-liens { display: flex; gap: 4px; margin-left: auto; }
.nav-liens a {
  padding: 8px 14px; border-radius: 8px; font-size: .93rem; font-weight: 500; color: var(--texte-doux);
  transition: color .2s, background .2s;
}
.nav-liens a:hover { color: var(--texte); background: rgba(255, 255, 255, .05); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--bordure-forte);
  background: rgba(255, 255, 255, .04); cursor: pointer; place-items: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--texte); position: relative;
  transition: transform .25s ease, background .25s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav.ouverte .burger span { background: transparent; }
.nav.ouverte .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.ouverte .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Fond animé ---------- */

.halo { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.grille-fond {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

/* ---------- Hero ---------- */

.hero { position: relative; padding: 160px 0 100px; overflow: hidden; isolation: isolate; }
.hero .halo-1 { width: 620px; height: 620px; background: #2563eb; top: -220px; left: -160px; animation: flotte 18s ease-in-out infinite; }
.hero .halo-2 { width: 520px; height: 520px; background: #7c3aed; top: -120px; right: -180px; opacity: .4; animation: flotte 22s ease-in-out infinite reverse; }
.hero .halo-3 { width: 460px; height: 460px; background: #0891b2; top: 520px; left: 30%; opacity: .28; animation: flotte 26s ease-in-out infinite; }
@keyframes flotte {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.08); }
  66% { transform: translate(-40px, 70px) scale(.94); }
}

.hero-texte { text-align: center; max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.annonce {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 28px;
  border-radius: 999px; border: 1px solid var(--bordure-forte); background: rgba(15, 23, 41, .7);
  font-size: .86rem; color: var(--texte-doux); backdrop-filter: blur(8px);
  transition: border-color .2s, transform .2s;
}
.annonce:hover { border-color: rgba(138, 180, 255, .5); transform: translateY(-1px); }
.annonce b {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--degrade);
}
.annonce svg { width: 14px; height: 14px; }
.hero h1 { margin-bottom: 24px; }
.hero .chapeau { margin: 0 auto 38px; max-width: 680px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 26px;
  font-size: .86rem; color: var(--texte-discret);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--succes); }

.hero-scene { position: relative; margin: 80px auto 0; max-width: 1080px; perspective: 2000px; z-index: 1; }
.hero-scene .inclinable {
  transform: rotateX(18deg) scale(.96);
  transform-origin: 50% 0;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.hero-scene.visible .inclinable { transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, 0deg)) scale(1); }
.hero-scene::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -60px; height: 120px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, .45), transparent 70%);
  filter: blur(30px); z-index: -1;
}

.puce-flottante {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(15, 23, 41, .82); border: 1px solid var(--bordure-forte);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .6);
  font-size: .85rem; white-space: nowrap;
  animation: plane 6s ease-in-out infinite;
}
.puce-flottante small { display: block; color: var(--texte-discret); font-size: .74rem; }
.puce-flottante b { font-weight: 600; }
.puce-icone { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.puce-icone svg { width: 18px; height: 18px; }
.puce-1 { top: 16%; left: -60px; }
.puce-2 { top: 44%; right: -70px; animation-delay: -2s; }
.puce-3 { bottom: 10%; left: -40px; animation-delay: -4s; }
@keyframes plane { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Bandeau chiffres ---------- */

.chiffres { padding: 40px 0 20px; }
.chiffres-grille {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--bordure); border-radius: var(--rayon);
  background: linear-gradient(180deg, rgba(19, 29, 51, .6), rgba(10, 16, 32, .6));
  overflow: hidden;
}
.chiffre { padding: 28px 22px; text-align: center; border-right: 1px solid var(--bordure); }
.chiffre:last-child { border-right: 0; }
.chiffre strong { display: block; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; }
.chiffre span { font-size: .85rem; color: var(--texte-doux); }

/* ---------- Sections ---------- */

.section { position: relative; padding: 120px 0; }
.section-alt { background: linear-gradient(180deg, var(--fond) 0%, var(--fond-2) 12%, var(--fond-2) 88%, var(--fond) 100%); }

/* Étapes */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.etapes::before {
  content: ""; position: absolute; top: 46px; left: 16%; right: 16%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .5), rgba(139, 92, 246, .5), transparent);
}
.etape {
  position: relative; padding: 32px 28px; border-radius: var(--rayon);
  background: linear-gradient(180deg, rgba(19, 29, 51, .7), rgba(15, 23, 41, .4));
  border: 1px solid var(--bordure);
  transition: transform .3s ease, border-color .3s;
}
.etape:hover { transform: translateY(-6px); border-color: rgba(138, 180, 255, .3); }
.etape-num {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  font-weight: 700; font-size: 1.3rem; position: relative;
  background: var(--fond-2); border: 1px solid var(--bordure-forte);
}
.etape-num::after {
  content: ""; position: absolute; inset: -1px; border-radius: 16px; padding: 1px;
  background: var(--degrade);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.etape h3 { margin-bottom: 10px; }
.etape p { color: var(--texte-doux); font-size: .96rem; }
.etape .code-id {
  margin-top: 18px; display: inline-flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 1.05rem; letter-spacing: .06em;
  padding: 9px 14px; border-radius: 10px; background: rgba(59, 130, 246, .1); border: 1px solid rgba(59, 130, 246, .25);
  color: var(--accent-clair);
}

/* Rangées vitrine */
.vitrine { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.vitrine + .vitrine { margin-top: 140px; }
.vitrine.inverse { grid-template-columns: 1.15fr 1fr; }
.vitrine > * { min-width: 0; }
.vitrine.inverse .vitrine-texte { order: 2; }
.vitrine-texte h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 18px; }
.vitrine-texte .chapeau { font-size: 1.05rem; }
.liste-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.liste-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--texte-doux); font-size: .97rem; }
.liste-points li b { color: var(--texte); font-weight: 600; }
.coche {
  flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; margin-top: 1px;
  background: rgba(59, 130, 246, .14); color: var(--accent-clair);
}
.coche svg { width: 14px; height: 14px; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.etiquette {
  font-size: .8rem; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--bordure-forte); color: var(--texte-doux);
}

.vitrine-visuel { position: relative; perspective: 1600px; }
.vitrine-visuel .inclinable { transition: transform .5s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.vitrine-visuel::before {
  content: ""; position: absolute; inset: 8% 6%; border-radius: 40px; z-index: -1;
  background: var(--lueur, radial-gradient(circle at 50% 50%, rgba(59, 130, 246, .35), transparent 70%));
  filter: blur(50px);
}

/* Reflet balayant sur les captures */
.reflet { position: relative; overflow: hidden; }
.reflet::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 20;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .13) 48%, rgba(255, 255, 255, .02) 55%, transparent 65%);
  transform: translateX(-120%);
}
.visible .reflet::after, .reflet.visible::after { animation: balaye 1.6s .4s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes balaye { to { transform: translateX(120%); } }

/* ---------- Schéma sécurité ---------- */

.schema {
  position: relative; border-radius: 24px; padding: 40px 32px;
  background: linear-gradient(180deg, rgba(19, 29, 51, .85), rgba(10, 16, 32, .85));
  border: 1px solid var(--bordure); box-shadow: var(--ombre);
}
.schema-ligne { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; gap: 10px; }
.noeud { text-align: center; position: relative; z-index: 2; }
.noeud-boite {
  width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center;
  background: var(--fond-2); border: 1px solid var(--bordure-forte);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, .06);
}
.noeud-boite svg { width: 40px; height: 40px; }
.noeud b { display: block; font-size: .98rem; }
.noeud small { color: var(--texte-discret); font-size: .8rem; }
.noeud.relais .noeud-boite { width: 110px; height: 110px; border-style: dashed; box-shadow: none; }
.cadenas {
  position: absolute; top: -12px; right: calc(50% - 58px); width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; background: var(--succes); color: #052e1f;
  box-shadow: 0 6px 16px -4px rgba(52, 211, 153, .6);
}
.cadenas svg { width: 16px; height: 16px; }
.flux { position: absolute; top: 86px; left: 16%; right: 16%; height: 2px; z-index: 1; }
.flux-trait { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(138, 180, 255, .35) 0 8px, transparent 8px 16px); }
.paquet {
  position: absolute; top: -5px; width: 26px; height: 12px; border-radius: 4px;
  background: linear-gradient(90deg, #34d399, #22d3ee);
  box-shadow: 0 0 16px rgba(52, 211, 153, .8);
  animation: voyage 3.2s linear infinite;
}
.paquet:nth-child(3) { animation-delay: -1.06s; background: linear-gradient(90deg, #8b5cf6, #3b82f6); box-shadow: 0 0 16px rgba(139, 92, 246, .8); animation-direction: reverse; }
.paquet:nth-child(4) { animation-delay: -2.13s; }
@keyframes voyage { from { left: 0; } to { left: calc(100% - 26px); } }
.schema-legende {
  margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.schema-legende div {
  padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--bordure);
  font-size: .84rem; color: var(--texte-doux);
}
.schema-legende b { display: block; color: var(--texte); font-size: .9rem; margin-bottom: 2px; }
.octets {
  font-family: var(--mono); font-size: .72rem; color: var(--texte-discret); text-align: center; margin-top: 10px;
  letter-spacing: .04em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* ---------- Manette ---------- */

.scene-manette {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 11;
  background: radial-gradient(ellipse at 50% 0%, #1e1b4b 0%, #0b1020 70%);
  border: 1px solid var(--bordure); box-shadow: var(--ombre);
  display: grid; place-items: center;
}
.scene-manette .rayons {
  position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(139, 92, 246, .18) 20deg, transparent 40deg, transparent 90deg, rgba(59, 130, 246, .16) 110deg, transparent 130deg, transparent 180deg, rgba(34, 211, 238, .14) 200deg, transparent 220deg, transparent 270deg, rgba(139, 92, 246, .16) 290deg, transparent 310deg);
  animation: tourne 30s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }
.scene-manette svg.manette { width: 62%; position: relative; z-index: 2; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); animation: vibre 4s ease-in-out infinite; }
@keyframes vibre {
  0%, 82%, 100% { transform: translate(0, 0) rotate(0); }
  84% { transform: translate(-3px, 1px) rotate(-1deg); }
  86% { transform: translate(3px, -1px) rotate(1deg); }
  88% { transform: translate(-2px, 1px) rotate(-.6deg); }
  90% { transform: translate(2px, 0) rotate(.4deg); }
}
.scene-manette .hud {
  position: absolute; z-index: 3; font-size: .78rem; padding: 8px 12px; border-radius: 10px;
  background: rgba(10, 16, 32, .8); border: 1px solid var(--bordure-forte); backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 8px;
}
.hud-1 { top: 22px; left: 22px; }
.hud-2 { top: 22px; right: 22px; }
.hud-3 { bottom: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.hud kbd {
  font-family: var(--mono); font-size: .72rem; padding: 2px 7px; border-radius: 5px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--bordure-forte);
}
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--succes); box-shadow: 0 0 10px var(--succes); flex: none; }
.led.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Bento ---------- */

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; grid-auto-flow: dense; }
.carte {
  position: relative; padding: 28px; border-radius: var(--rayon); overflow: hidden;
  background: linear-gradient(180deg, rgba(19, 29, 51, .75), rgba(15, 23, 41, .5));
  border: 1px solid var(--bordure);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s;
}
.carte::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, .16), transparent 45%);
}
.carte:hover { transform: translateY(-4px); border-color: rgba(138, 180, 255, .28); }
.carte:hover::before { opacity: 1; }
.carte-large { grid-column: span 2; }
.carte-icone {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(59, 130, 246, .12); border: 1px solid rgba(59, 130, 246, .22); color: var(--accent-clair);
}
.carte-icone svg { width: 22px; height: 22px; }
.carte h3 { font-size: 1.08rem; margin-bottom: 8px; }
.carte p { color: var(--texte-doux); font-size: .92rem; }
.carte .ondes { display: flex; align-items: center; gap: 3px; height: 40px; margin-top: 22px; }
.carte .ondes i { flex: 1; border-radius: 3px; background: var(--degrade); animation: onde 1.2s ease-in-out infinite; }
@keyframes onde { 0%, 100% { height: 18%; } 50% { height: 100%; } }
.ecrans-mini { display: flex; gap: 10px; margin-top: 22px; align-items: flex-end; }
.ecrans-mini div {
  flex: 1; aspect-ratio: 16 / 10; border-radius: 6px; border: 2px solid var(--bordure-forte);
  background: linear-gradient(135deg, #1e3a8a, #312e81); position: relative;
}
.ecrans-mini div.actif { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59, 130, 246, .2); }
.ecrans-mini div:nth-child(2) { aspect-ratio: 10 / 14; flex: .55; }

/* ---------- Modes vidéo ---------- */

.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mode {
  padding: 26px 24px; border-radius: var(--rayon); border: 1px solid var(--bordure);
  background: rgba(15, 23, 41, .6); position: relative; overflow: hidden;
}
.mode.vedette { border-color: rgba(59, 130, 246, .5); background: linear-gradient(180deg, rgba(37, 99, 235, .16), rgba(15, 23, 41, .6)); }
.mode-entete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mode h3 { font-size: 1.05rem; }
.mode-badge { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(59, 130, 246, .2); color: var(--accent-clair); }
.mode p { color: var(--texte-doux); font-size: .88rem; min-height: 4.2em; }
.jauges { margin-top: 18px; display: grid; gap: 10px; }
.jauge { font-size: .76rem; color: var(--texte-discret); }
.jauge div { display: flex; justify-content: space-between; margin-bottom: 5px; }
.jauge-barre { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.jauge-barre i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--degrade); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.visible .jauge-barre i { width: var(--v); }

/* ---------- Galerie ---------- */

.onglets {
  display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; margin: 0 auto 40px;
  background: rgba(15, 23, 41, .8); border: 1px solid var(--bordure); flex-wrap: wrap; justify-content: center;
}
.onglets-centre { display: flex; justify-content: center; }
.onglet {
  border: 0; background: transparent; cursor: pointer; padding: 10px 18px; border-radius: 10px;
  font-size: .9rem; font-weight: 500; color: var(--texte-doux); transition: color .2s, background .2s;
}
.onglet:hover { color: var(--texte); }
.onglet[aria-selected="true"] { background: linear-gradient(180deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 6px 18px -6px rgba(37, 99, 235, .8); }
.galerie-scene { position: relative; max-width: 1060px; margin: 0 auto; }
.galerie-panneau { display: none; }
.galerie-panneau.actif { display: block; animation: apparait .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes apparait { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.galerie-legende { text-align: center; color: var(--texte-doux); margin-top: 28px; font-size: .95rem; }
.zoomable { cursor: zoom-in; }

.visionneuse {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 24px;
  background: rgba(3, 6, 12, .86); backdrop-filter: blur(10px);
}
.visionneuse.ouverte { display: grid; animation: fondu .3s ease; }
.visionneuse-contenu { width: min(1400px, 100%); max-height: 92vh; overflow: auto; animation: zoom .4s cubic-bezier(.2, .8, .2, 1); }
.visionneuse-fermer {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--bordure-forte); background: rgba(15, 23, 41, .9); display: grid; place-items: center;
}
.visionneuse-fermer svg { width: 20px; height: 20px; }
@keyframes fondu { from { opacity: 0; } }
@keyframes zoom { from { transform: scale(.92); opacity: 0; } }

/* ---------- Plateformes ---------- */

.plateformes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plateforme {
  padding: 28px 24px; border-radius: var(--rayon); border: 1px solid var(--bordure);
  background: rgba(15, 23, 41, .55); text-align: center;
}
.plateforme svg { width: 40px; height: 40px; margin: 0 auto 16px; }
.plateforme h3 { font-size: 1.05rem; margin-bottom: 6px; }
.plateforme p { color: var(--texte-doux); font-size: .86rem; }
.statut { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: .76rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.statut.dispo { background: rgba(52, 211, 153, .12); color: var(--succes); }
.statut.bientot { background: rgba(251, 191, 36, .1); color: var(--avert); }
.statut.test { background: rgba(138, 180, 255, .12); color: var(--accent-clair); }
.plateforme.inactive { opacity: .7; }

/* ---------- Tarifs ---------- */

.bascule {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 auto 48px; font-size: .92rem; color: var(--texte-doux);
}
.bascule-centre { display: flex; justify-content: center; }
.interrupteur {
  width: 52px; height: 30px; border-radius: 999px; border: 1px solid var(--bordure-forte); cursor: pointer;
  background: rgba(255, 255, 255, .06); position: relative; transition: background .25s;
}
.interrupteur::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: transform .25s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.interrupteur[aria-checked="true"] { background: var(--accent-fort); }
.interrupteur[aria-checked="true"]::after { transform: translateX(22px); }
.bascule .economie { font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(52, 211, 153, .14); color: var(--succes); }
.bascule .actif { color: var(--texte); font-weight: 600; }

.tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.offre {
  position: relative; display: flex; flex-direction: column; padding: 34px 30px; border-radius: 22px;
  background: rgba(15, 23, 41, .6); border: 1px solid var(--bordure);
  transition: transform .3s ease, border-color .3s;
}
.offre:hover { transform: translateY(-6px); border-color: rgba(138, 180, 255, .28); }
.offre.recommandee {
  background: linear-gradient(180deg, rgba(37, 99, 235, .18), rgba(15, 23, 41, .7) 45%);
  border-color: transparent;
}
.offre.recommandee::before {
  content: ""; position: absolute; inset: 0; border-radius: 22px; padding: 1.5px; pointer-events: none;
  background: var(--degrade);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.offre-ruban {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; background: var(--degrade); color: #fff; white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(99, 102, 241, .7);
}
.offre h3 { font-size: 1.2rem; }
.offre .pour { color: var(--texte-doux); font-size: .9rem; margin-top: 6px; min-height: 2.9em; }
.prix { margin: 26px 0 6px; display: flex; align-items: baseline; gap: 6px; min-height: 58px; }
.prix .montant { font-size: 2.8rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.prix .montant.a-venir { font-size: 1.7rem; letter-spacing: -.02em; }
.prix .periode { color: var(--texte-doux); font-size: .9rem; }
.prix-note { font-size: .8rem; color: var(--texte-discret); min-height: 1.4em; }
.offre .bouton { margin: 26px 0; width: 100%; }
.offre ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: .92rem; color: var(--texte-doux); }
.offre li { display: flex; gap: 11px; align-items: flex-start; }
.offre li svg { width: 18px; height: 18px; flex: none; color: var(--succes); margin-top: 2px; }
.offre li.titre-liste { color: var(--texte); font-weight: 600; font-size: .86rem; margin-top: 4px; }
.tarifs-note {
  margin-top: 36px; text-align: center; color: var(--texte-discret); font-size: .88rem;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.tarifs-note svg { width: 16px; height: 16px; color: var(--avert); }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border-radius: 14px; border: 1px solid var(--bordure); background: rgba(15, 23, 41, .55);
  transition: border-color .2s, background .2s;
}
.faq details[open] { border-color: rgba(138, 180, 255, .3); background: rgba(19, 29, 51, .75); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px;
  background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa6bc' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .reponse { padding: 0 24px 22px; color: var(--texte-doux); font-size: .95rem; }
.faq .reponse code { font-family: var(--mono); font-size: .85em; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .06); color: var(--texte); }

/* ---------- Appel final ---------- */

.appel {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 90px 32px; border-radius: 32px; border: 1px solid var(--bordure-forte);
  background: radial-gradient(ellipse at 50% 120%, rgba(37, 99, 235, .55), transparent 60%), linear-gradient(180deg, #0f1a33, #0a1020);
}
.appel .grille-fond { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 20%, transparent 70%); z-index: -1; }
.appel h2 { margin-bottom: 18px; }
.appel .chapeau { margin: 0 auto 36px; }
.appel .hero-actions { margin-bottom: 18px; }
.appel small { color: var(--texte-discret); font-size: .84rem; }
.appel .bouton { position: relative; }
.appel .bouton .recommande {
  position: absolute; top: -10px; right: 12px; padding: 2px 9px; border-radius: 999px;
  font-size: .68rem; font-weight: 600; letter-spacing: .02em;
  background: var(--succes); color: #052e1c; box-shadow: 0 4px 14px -4px rgba(52, 211, 153, .6);
}

/* ---------- Pied de page ---------- */

.pied { padding: 80px 0 40px; border-top: 1px solid var(--bordure); margin-top: 120px; }
.pied-grille { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.pied p { color: var(--texte-doux); font-size: .9rem; margin-top: 16px; max-width: 320px; }
.pied h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--texte-discret); margin-bottom: 18px; font-weight: 600; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.pied ul a { color: var(--texte-doux); transition: color .2s; }
.pied ul a:hover { color: var(--texte); }
.pied-bas {
  margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--bordure);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .84rem; color: var(--texte-discret);
}

/* ---------- Apparition au défilement ---------- */

.revele { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.revele.visible { opacity: 1; transform: none; }
.revele[data-delai="1"] { transition-delay: .08s; }
.revele[data-delai="2"] { transition-delay: .16s; }
.revele[data-delai="3"] { transition-delay: .24s; }
.revele[data-delai="4"] { transition-delay: .32s; }

/* =====================================================================
   CAPTURES DE L'APPLICATION — recréées en HTML à partir des jetons réels.
   1em = 10 px « design » quelle que soit la largeur (unités conteneur).
   Règle : seuls les nœuds de texte changent de font-size.
   ===================================================================== */

.win {
  --a-fond: #f4f6fa; --a-surface: #fff; --a-surface2: #f1f4f9; --a-survol: #e8edf5;
  --a-bordure: #e3e8ef; --a-bordure-forte: #cdd5e0; --a-texte: #0f172a; --a-doux: #5a6578; --a-discret: #8a94a6;
  --a-accent: #2563eb; --a-accent-doux: #ebf2ff; --a-accent-texte: #1d4ed8;
  --a-succes: #16a34a; --a-succes-doux: #ecfdf3; --a-avert: #b45309; --a-avert-doux: #fff7e6; --a-danger: #dc2626;
  --a-champ: #fff;
  container-type: inline-size;
  border-radius: 12px; overflow: hidden; box-shadow: var(--ombre);
  background: var(--a-fond); color: var(--a-texte); text-align: left;
  font-family: "Inter", "Segoe UI", sans-serif; line-height: 1.35;
  user-select: none;
}
.win.sombre {
  --a-fond: #0b1220; --a-surface: #111a2b; --a-surface2: #182235; --a-survol: #1f2a40;
  --a-bordure: #223049; --a-bordure-forte: #2f3d5a; --a-texte: #e6ebf4; --a-doux: #94a1b8; --a-discret: #67748c;
  --a-accent: #3b82f6; --a-accent-doux: #16284a; --a-accent-texte: #8ab4ff;
  --a-succes: #34d399; --a-succes-doux: #0e2a22; --a-avert: #fbbf24; --a-avert-doux: #2a2210; --a-danger: #f87171;
  --a-champ: #0e1626;
}
.w { font-size: calc(100cqw / 112); }
.w svg { width: 1.5em; height: 1.5em; fill: currentColor; flex: none; }

.w-titre {
  height: 3.2em; display: flex; align-items: center; padding: 0 0 0 1.2em; gap: .8em;
  background: var(--a-surface); border-bottom: 1px solid var(--a-bordure);
}
.w-titre .t { font-size: 1.2em; color: var(--a-doux); }
.w-titre .ctrl { margin-left: auto; display: flex; height: 100%; }
.w-titre .ctrl i { width: 4.6em; height: 100%; display: grid; place-items: center; color: var(--a-doux); }
.w-titre .ctrl i::before { content: ""; width: 1em; height: 1em; }
.w-titre .ctrl i.min::before { height: 1px; background: currentColor; }
.w-titre .ctrl i.max::before { border: 1px solid currentColor; border-radius: 2px; }
.w-titre .ctrl i.fer::before {
  background: linear-gradient(45deg, transparent 46%, currentColor 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, currentColor 46% 54%, transparent 54%);
}
.w-logo { width: 1.6em; height: 1.6em; border-radius: .4em; background: var(--a-accent); display: grid; place-items: center; color: #fff; }
.w-logo svg { width: 1em; height: 1em; }

/* Barre d'application */
.w-barre {
  height: 6em; display: flex; align-items: center; gap: 1.2em; padding: 0 2em;
  background: var(--a-surface); border-bottom: 1px solid var(--a-bordure);
}
.w-barre .marque { width: 3.4em; height: 3.4em; border-radius: .9em; background: var(--a-accent); display: grid; place-items: center; color: #fff; }
.w-barre .marque svg { width: 1.8em; height: 1.8em; }
.w-barre .nom b { display: block; font-size: 1.5em; font-weight: 600; }
.w-barre .nom span { font-size: 1.15em; color: var(--a-doux); }
.w-barre .droite { margin-left: auto; display: flex; align-items: center; gap: 1em; }
.w-txt-doux { font-size: 1.2em; color: var(--a-doux); }
.w-puce { display: flex; align-items: center; gap: .8em; padding: .5em 1.1em; border-radius: 99em; background: var(--a-surface2); border: 1px solid var(--a-bordure); }
.w-puce span { font-size: 1.2em; font-weight: 500; }
.w-led { width: .8em; height: .8em; border-radius: 50%; background: var(--a-succes); box-shadow: 0 0 0 .3em var(--a-succes-doux); }
.w-sep-v { width: 1px; height: 2.4em; background: var(--a-bordure); }
.w-bouton-fantome { display: flex; align-items: center; gap: .7em; padding: .7em 1.2em; border-radius: .8em; border: 1px solid var(--a-bordure-forte); background: var(--a-surface); }
.w-bouton-fantome span { font-size: 1.25em; font-weight: 500; }

.w-corps { display: grid; grid-template-columns: 38.4em 1fr; height: 62em; }
.w-gauche { border-right: 1px solid var(--a-bordure); padding: 2em 2.4em; display: flex; flex-direction: column; gap: 1.4em; overflow: hidden; }
.w-droite { padding: 2em 2.8em; display: flex; flex-direction: column; gap: 1.6em; overflow: hidden; }
.w-h { font-size: 2em; font-weight: 700; letter-spacing: -.02em; }
.w-sous { font-size: 1.25em; color: var(--a-doux); margin-top: .3em; }
.w-carte { background: var(--a-surface); border: 1px solid var(--a-bordure); border-radius: 1.2em; padding: 1.6em; display: flex; flex-direction: column; gap: 1.2em; }
.w-etiq { font-size: 1.05em; font-weight: 600; letter-spacing: .08em; color: var(--a-discret); }
.w-id { display: flex; align-items: center; justify-content: space-between; }
.w-id b { font-family: var(--mono); font-size: 2.8em; font-weight: 600; letter-spacing: .04em; }
.w-icone { width: 3.2em; height: 3.2em; border-radius: .8em; display: grid; place-items: center; color: var(--a-doux); }
.w-icone:hover { background: var(--a-survol); }
.w-trait { height: 1px; background: var(--a-bordure); }
.w-champ {
  height: 3.6em; border-radius: .8em; border: 1px solid var(--a-bordure-forte); background: var(--a-champ);
  display: flex; align-items: center; padding: 0 1.2em; justify-content: space-between; color: var(--a-doux);
}
.w-champ span { font-size: 1.35em; color: var(--a-texte); letter-spacing: .1em; }
.w-champ span.ph { color: var(--a-discret); letter-spacing: 0; }
.w-champ.focus { border-color: var(--a-accent); box-shadow: 0 0 0 .3em var(--a-accent-doux); }
.w-ligne { display: flex; gap: .8em; align-items: center; }
.w-ligne > .w-grand { flex: 1; }
.w-btn-primaire { height: 3.6em; border-radius: .8em; background: var(--a-accent); color: #fff; display: flex; align-items: center; justify-content: center; gap: .7em; padding: 0 1.6em; }
.w-btn-primaire span { font-size: 1.3em; font-weight: 600; }
.w-btn { height: 3.6em; min-width: 3.6em; border-radius: .8em; border: 1px solid var(--a-bordure-forte); background: var(--a-surface); display: flex; align-items: center; justify-content: center; gap: .7em; padding: 0 1.2em; color: var(--a-texte); }
.w-btn span { font-size: 1.25em; font-weight: 500; }
.w-info { font-size: 1.15em; color: var(--a-succes); }
.w-entete-carte { display: flex; gap: 1.2em; align-items: center; }
.w-pastille { width: 3.6em; height: 3.6em; border-radius: 1em; background: var(--a-accent-doux); color: var(--a-accent-texte); display: grid; place-items: center; }
.w-titre-carte { font-size: 1.4em; font-weight: 600; }
.w-otp { border-radius: .8em; background: var(--a-surface2); border: 1px solid var(--a-bordure); padding: 1em; text-align: center; }
.w-otp b { font-family: var(--mono); font-size: 2.2em; letter-spacing: .25em; color: var(--a-accent-texte); }
.w-otp small { display: block; font-size: 1.1em; color: var(--a-doux); margin-top: .2em; }
.w-bascules { display: flex; flex-direction: column; gap: 1em; }
.w-bascule-l { display: flex; justify-content: space-between; align-items: center; }
.w-bascule-l span { font-size: 1.25em; }
.w-switch { width: 4em; height: 2.2em; border-radius: 99em; background: var(--a-accent); position: relative; flex: none; }
.w-switch::after { content: ""; position: absolute; top: .3em; right: .3em; width: 1.6em; height: 1.6em; border-radius: 50%; background: #fff; }
.w-switch.off { background: var(--a-bordure-forte); }
.w-switch.off::after { right: auto; left: .3em; }

.w-connexion { display: flex; gap: 1em; }
.w-connexion .w-champ { flex: 1; height: 4.4em; }
.w-connexion .w-champ span { font-size: 1.8em; font-family: var(--mono); letter-spacing: .12em; }
.w-connexion .w-btn-primaire { height: 4.4em; padding: 0 2.2em; }
.w-curseur { display: inline-block; width: 1px; height: 1.2em; background: var(--a-accent); vertical-align: middle; animation: clignote 1s steps(1) infinite; margin-left: 2px; }
@keyframes clignote { 50% { opacity: 0; } }
.w-tabs { display: flex; gap: .4em; border-bottom: 1px solid var(--a-bordure); }
.w-tab { padding: .9em 1.4em; position: relative; color: var(--a-doux); }
.w-tab span { font-size: 1.3em; font-weight: 500; }
.w-tab.on { color: var(--a-accent-texte); }
.w-tab.on::after { content: ""; position: absolute; left: .6em; right: .6em; bottom: -1px; height: 2px; border-radius: 2px; background: var(--a-accent); }
.w-outils { display: flex; gap: 1em; }
.w-outils .w-champ { flex: 1; height: 3.4em; }
.w-outils .w-champ span { font-size: 1.25em; letter-spacing: 0; }
.w-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4em; }
.w-machine { border-radius: 1.2em; border: 1px solid var(--a-bordure); background: var(--a-surface); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.w-machine:hover { transform: translateY(-.3em); box-shadow: 0 1em 2em -1em rgba(15, 23, 42, .3); }
.w-vignette { height: 8.4em; position: relative; display: grid; place-items: center; color: rgba(255, 255, 255, .92); }
.w-vignette svg { width: 3.4em; height: 3.4em; }
.w-vignette .etoile { position: absolute; top: .8em; right: .8em; width: 1.6em; height: 1.6em; color: #fde68a; }
.w-vignette .enligne { position: absolute; top: 1em; left: 1em; width: .9em; height: .9em; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 .25em rgba(255, 255, 255, .35); }
.w-machine-info { padding: 1em 1.2em; }
.w-machine-info b { display: block; font-size: 1.3em; font-weight: 600; }
.w-machine-info span { font-size: 1.12em; color: var(--a-doux); font-family: var(--mono); }
.w-pied { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--a-discret); }
.w-pied span { font-size: 1.15em; }

/* Session */
.w-session-barre {
  height: 5.2em; display: flex; align-items: center; gap: .6em; padding: 0 1.4em;
  background: var(--a-surface); border-bottom: 1px solid var(--a-bordure);
}
.w-onglet-session { display: flex; align-items: center; gap: .8em; padding: .7em 1.2em; border-radius: .8em; background: var(--a-accent-doux); color: var(--a-accent-texte); margin-right: .8em; }
.w-onglet-session span { font-size: 1.25em; font-weight: 600; }
.w-outil { display: flex; align-items: center; gap: .6em; padding: .75em 1em; border-radius: .7em; color: var(--a-doux); }
.w-outil span { font-size: 1.2em; font-weight: 500; }
.w-outil.on { background: var(--a-surface2); color: var(--a-texte); box-shadow: inset 0 0 0 1px var(--a-bordure); }
.w-outil.accent { color: var(--a-accent-texte); }
.w-session-barre .w-sep-v { height: 2.6em; margin: 0 .4em; }
.w-session-barre .fin { margin-left: auto; display: flex; gap: .6em; align-items: center; }
.w-badge-e2e { display: flex; align-items: center; gap: .6em; padding: .55em 1em; border-radius: 99em; background: var(--a-succes-doux); color: var(--a-succes); }
.w-badge-e2e span { font-size: 1.1em; font-weight: 600; }
.w-badge-e2e svg { width: 1.3em; height: 1.3em; }

.w-ecran-distant {
  position: relative; height: 57em; overflow: hidden;
  background: radial-gradient(ellipse at 20% 0%, #4f46e5 0%, transparent 55%), radial-gradient(ellipse at 100% 100%, #0891b2 0%, transparent 50%), linear-gradient(135deg, #1e1b4b, #0f172a 60%, #082f49);
}
.w-ecran-distant .vague {
  position: absolute; inset: auto -10% -30% -10%; height: 70%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, rgba(147, 197, 253, .35), transparent 60%);
  filter: blur(2em);
}
.d-fenetre {
  position: absolute; border-radius: .8em; overflow: hidden; background: #fff; color: #0f172a;
  box-shadow: 0 2em 4em -1em rgba(0, 0, 0, .55);
}
.d-fenetre .barre { height: 2.8em; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; padding: 0 1em; gap: .5em; }
.d-fenetre .barre i { width: 1em; height: 1em; border-radius: 50%; background: #d1d5db; }
.d-fenetre .barre span { font-size: 1.1em; color: #6b7280; margin-left: .6em; }
.d-tableur { left: 5%; top: 8%; width: 56%; height: 70%; }
.d-tableur .grille { display: grid; grid-template-columns: 3em repeat(6, 1fr); font-size: 1em; }
.d-tableur .grille div { border-right: 1px solid #eef0f3; border-bottom: 1px solid #eef0f3; height: 2.6em; display: flex; align-items: center; padding: 0 .6em; }
.d-tableur .grille div span { font-size: 1.05em; color: #374151; white-space: nowrap; overflow: hidden; }
.d-tableur .grille .h { background: #f9fafb; }
.d-tableur .grille .h span { color: #9ca3af; font-weight: 600; }
.d-tableur .grille .sel { box-shadow: inset 0 0 0 2px #16a34a; }
.d-graph { right: 5%; top: 14%; width: 34%; height: 46%; background: #0f172a; color: #e2e8f0; }
.d-graph .barre { background: #111827; border-color: #1f2937; }
.d-graph .barre span { color: #9ca3af; }
.d-graph .barres { display: flex; align-items: flex-end; gap: .8em; height: 70%; padding: 1.6em 1.6em 1em; }
.d-graph .barres i { flex: 1; border-radius: .4em .4em 0 0; background: linear-gradient(180deg, #60a5fa, #6366f1); animation: monte 2.4s ease-in-out infinite alternate; transform-origin: bottom; }
.d-graph .barres i:nth-child(2n) { animation-delay: -.6s; background: linear-gradient(180deg, #22d3ee, #3b82f6); }
.d-graph .barres i:nth-child(3n) { animation-delay: -1.2s; }
@keyframes monte { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.d-taches {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4.4em; display: flex; align-items: center; justify-content: center; gap: .9em;
  background: rgba(15, 23, 42, .72); backdrop-filter: blur(1em); border-top: 1px solid rgba(255, 255, 255, .08);
}
.d-taches i { width: 2.8em; height: 2.8em; border-radius: .6em; background: rgba(255, 255, 255, .12); }
.d-taches i:nth-child(1) { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.d-taches i:nth-child(3) { background: linear-gradient(135deg, #34d399, #059669); }
.d-taches i:nth-child(4) { background: linear-gradient(135deg, #fbbf24, #d97706); }
.d-taches .heure { position: absolute; right: 1.6em; color: #e2e8f0; font-size: 1.1em; text-align: right; line-height: 1.2; }
.d-curseur { position: absolute; width: 2.2em; height: 2.2em; left: 46%; top: 52%; z-index: 5; animation: deplace 9s ease-in-out infinite; filter: drop-shadow(0 .2em .3em rgba(0, 0, 0, .5)); }
.d-curseur svg { width: 100%; height: 100%; }
@keyframes deplace {
  0%, 100% { left: 46%; top: 52%; }
  25% { left: 30%; top: 36%; }
  50% { left: 72%; top: 34%; }
  75% { left: 62%; top: 66%; }
}
.w-stats {
  position: absolute; right: 1.4em; bottom: 6em; z-index: 6; padding: 1em 1.2em; border-radius: .9em;
  background: rgba(15, 23, 42, .78); color: #e2e8f0; backdrop-filter: blur(1em); border: 1px solid rgba(255, 255, 255, .1);
  display: grid; gap: .4em; min-width: 19em;
}
.w-stats div { display: flex; justify-content: space-between; gap: 2em; }
.w-stats span { font-size: 1.1em; color: #94a3b8; }
.w-stats b { font-size: 1.1em; font-weight: 600; font-family: var(--mono); }
.w-stats b.vert { color: #4ade80; }

/* Écran verrouillé */
.w-verrou {
  position: relative; height: 62em; overflow: hidden; display: grid; place-items: center; color: #fff; text-align: center;
  background: radial-gradient(ellipse at 30% 20%, #1d4ed8, transparent 55%), radial-gradient(ellipse at 80% 80%, #7c3aed, transparent 50%), #0b1020;
}
.w-verrou::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(3em); background: rgba(2, 6, 23, .25); }
.w-verrou > * { position: relative; }
.w-verrou .avatar { width: 12em; height: 12em; border-radius: 50%; margin: 0 auto 1.6em; background: linear-gradient(135deg, #e2e8f0, #94a3b8); display: grid; place-items: center; color: #475569; }
.w-verrou .avatar svg { width: 6em; height: 6em; }
.w-verrou .qui { font-size: 2.6em; font-weight: 600; }
.w-verrou .mdp { width: 30em; height: 3.8em; margin: 2em auto 0; border-radius: .6em; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-bottom: 2px solid #60a5fa; display: flex; align-items: center; padding: 0 1.2em; gap: .5em; }
.w-verrou .mdp i { width: .9em; height: .9em; border-radius: 50%; background: #fff; }
.w-verrou .mdp i:nth-child(n+6) { animation: tape .4s ease both; }
.w-verrou .heure { position: absolute; left: 4em; bottom: 4em; text-align: left; }
.w-verrou .heure b { display: block; font-size: 7em; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.w-verrou .heure span { font-size: 1.8em; opacity: .85; }
.w-badge-securise {
  position: absolute; top: 2em; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .8em;
  padding: .8em 1.6em; border-radius: 99em; background: rgba(251, 191, 36, .16); border: 1px solid rgba(251, 191, 36, .45); color: #fde68a;
  white-space: nowrap;
}
.w-badge-securise span { font-size: 1.3em; font-weight: 600; }
.w-sas {
  position: absolute; right: 3em; bottom: 3.6em; display: flex; align-items: center; gap: .6em;
}
.w-sas kbd { font-family: var(--mono); font-size: 1.3em; padding: .4em .8em; border-radius: .5em; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); border-bottom-width: 3px; color: #fff; }
.w-sas b { font-size: 1.3em; opacity: .6; }
.w-sas.presse kbd { animation: appuie 3s ease-in-out infinite; }
.w-sas.presse kbd:nth-of-type(2) { animation-delay: .1s; }
.w-sas.presse kbd:nth-of-type(3) { animation-delay: .2s; }
@keyframes appuie { 0%, 70%, 100% { transform: none; border-bottom-width: 3px; } 76%, 86% { transform: translateY(2px); border-bottom-width: 1px; background: rgba(96, 165, 250, .4); } }

/* Paramètres */
.w-param { display: grid; grid-template-columns: 22em 1fr; height: 62em; }
.w-param-nav { background: var(--a-surface); border-right: 1px solid var(--a-bordure); padding: 2em 1.2em; display: flex; flex-direction: column; gap: .3em; }
.w-param-nav .w-etiq { padding: 0 1em 1em; }
.w-param-nav a { display: flex; align-items: center; gap: 1em; padding: .9em 1em; border-radius: .8em; color: var(--a-doux); }
.w-param-nav a span { font-size: 1.3em; font-weight: 500; }
.w-param-nav a.on { background: var(--a-accent-doux); color: var(--a-accent-texte); }
.w-param-corps { padding: 2.4em 3em; display: flex; flex-direction: column; gap: 1.6em; overflow: hidden; }
.w-reglage { display: grid; grid-template-columns: 1fr 22em; gap: 2em; align-items: center; }
.w-reglage b { display: block; font-size: 1.3em; font-weight: 500; }
.w-reglage small { display: block; font-size: 1.1em; color: var(--a-doux); margin-top: .2em; }
.w-curseur-plage { display: flex; align-items: center; gap: 1.2em; }
.w-curseur-plage .rail { flex: 1; height: .5em; border-radius: 99em; background: var(--a-bordure); position: relative; }
.w-curseur-plage .rail i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99em; background: var(--a-accent); width: var(--p); }
.w-curseur-plage .rail i::after { content: ""; position: absolute; right: -.9em; top: 50%; transform: translateY(-50%); width: 1.8em; height: 1.8em; border-radius: 50%; background: #fff; border: 2px solid var(--a-accent); box-shadow: 0 .2em .5em rgba(15, 23, 42, .2); }
.w-curseur-plage em { font-style: normal; font-size: 1.2em; font-family: var(--mono); min-width: 3.5em; text-align: right; }
.w-select { height: 3.4em; border-radius: .8em; border: 1px solid var(--a-bordure-forte); background: var(--a-champ); display: flex; align-items: center; justify-content: space-between; padding: 0 1.1em; color: var(--a-doux); }
.w-select span { font-size: 1.2em; color: var(--a-texte); }
.w-encodeurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.w-encodeur { padding: 1.1em 1.2em; border-radius: 1em; border: 1px solid var(--a-bordure); background: var(--a-surface2); }
.w-encodeur b { display: block; font-size: 1.2em; font-weight: 600; }
.w-encodeur span { font-size: 1.05em; color: var(--a-succes); }
.w-encodeur.ko span { color: var(--a-discret); }

/* Tunnels */
.w-tunnels { padding: 2.4em 2.8em; display: flex; flex-direction: column; gap: 1.6em; height: 50em; }
.w-table { border: 1px solid var(--a-bordure); border-radius: 1em; overflow: hidden; background: var(--a-surface); }
.w-table .l { display: grid; grid-template-columns: 6em 5em 1.2fr 1.6fr 4.5em 1.4fr 7.5em; align-items: center; padding: 0 1.4em; height: 4.2em; border-top: 1px solid var(--a-bordure); }
.w-table .l:first-child { border-top: 0; background: var(--a-surface2); height: 3.4em; }
.w-table .l:first-child span { color: var(--a-discret); font-weight: 600; font-size: 1.05em; letter-spacing: .03em; }
.w-table .l span { font-size: 1.18em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-table .mono { font-family: var(--mono); font-size: 1.1em !important; }
.w-proto { display: inline-block; padding: .2em .6em; border-radius: .4em; font-size: 1em !important; font-weight: 600; background: var(--a-accent-doux); color: var(--a-accent-texte); }
.w-proto.udp { background: #f3e8ff; color: #7e22ce; }
.sombre .w-proto.udp { background: #2e1a47; color: #d8b4fe; }
.w-etat { display: inline-flex; align-items: center; gap: .5em; color: var(--a-succes); }
.w-etat::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: currentColor; }
.w-formulaire { display: grid; grid-template-columns: 1fr 1fr 1.4fr .7fr 1.4fr .7fr auto; gap: .8em; align-items: end; }
.w-formulaire label { display: block; font-size: 1.05em; color: var(--a-doux); margin-bottom: .4em; }

/* Copie de fichiers */
.w-copie { padding: 2.4em 2.8em; display: flex; flex-direction: column; gap: 1.2em; height: 50em; }
.w-fichier { display: grid; grid-template-columns: 3.6em 1fr 12em; gap: 1.2em; align-items: center; padding: 1.2em 1.4em; border-radius: 1em; background: var(--a-surface); border: 1px solid var(--a-bordure); }
.w-fichier .ic { width: 3.6em; height: 3.6em; border-radius: .9em; display: grid; place-items: center; color: #fff; }
.w-fichier b { display: block; font-size: 1.3em; font-weight: 500; }
.w-fichier small { font-size: 1.1em; color: var(--a-doux); }
.w-progression { height: .6em; border-radius: 99em; background: var(--a-bordure); overflow: hidden; margin-top: .6em; }
.w-progression i { display: block; height: 100%; background: var(--a-accent); border-radius: 99em; width: var(--p); }
.w-progression i.anim { animation: progresse 4s ease-in-out infinite; }
@keyframes progresse { 0% { width: 8%; } 80%, 100% { width: 100%; } }
.w-fichier .droite { text-align: right; }
.w-fichier .droite span { font-size: 1.15em; font-family: var(--mono); color: var(--a-doux); }
.w-fichier .droite span.ok { color: var(--a-succes); font-family: inherit; font-weight: 600; }

/* Variante « fenêtre ombrée flottante » */
.w-superposee { position: absolute; width: 58%; right: -6%; bottom: -12%; z-index: 4; }

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 1100px) {
  .puce-1 { left: -10px; }
  .puce-2 { right: -10px; }
  .puce-3 { left: 10px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .plateformes { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1200px) {
  .nav-actions .bouton-secondaire { display: none; }
}

@media (max-width: 1060px) {
  .nav-liens { display: none; }
  .burger { display: grid; }
  .nav-actions { margin-left: auto; }
  .nav.ouverte { background: rgba(6, 10, 20, .96); backdrop-filter: blur(16px); }
  .nav.ouverte .nav-liens {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    padding: 12px 16px 24px; background: rgba(6, 10, 20, .98); border-bottom: 1px solid var(--bordure);
  }
  .nav.ouverte .nav-liens a { padding: 14px 12px; font-size: 1.02rem; }
}

@media (max-width: 960px) {
  .vitrine, .vitrine.inverse { grid-template-columns: 1fr; gap: 48px; }
  .vitrine.inverse .vitrine-texte { order: 0; }
  .vitrine + .vitrine { margin-top: 100px; }
  .etapes { grid-template-columns: 1fr; }
  .etapes::before { display: none; }
  .tarifs { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .chiffres-grille { grid-template-columns: repeat(3, 1fr); }
  .chiffre:nth-child(3) { border-right: 0; }
  .chiffre:nth-child(n+4) { border-top: 1px solid var(--bordure); }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-grille > :first-child { grid-column: 1 / -1; }
  .w-superposee { position: relative; width: 88%; right: auto; bottom: auto; margin: -14% 0 0 auto; }
}

@media (max-width: 640px) {
  .conteneur { padding: 0 16px; }
  .hero { padding: 120px 0 60px; }
  .section { padding: 84px 0; }
  .entete-section { margin-bottom: 44px; }
  .hero-actions .bouton { width: 100%; }
  .hero-scene { margin-top: 56px; }
  .puce-flottante { padding: 8px 11px; font-size: .74rem; gap: 8px; border-radius: 11px; }
  .puce-flottante small { font-size: .66rem; }
  .puce-icone { width: 28px; height: 28px; border-radius: 8px; }
  .puce-icone svg { width: 14px; height: 14px; }
  .puce-1 { top: -26px; left: 4px; }
  .puce-2 { top: auto; bottom: -30px; right: 4px; }
  .puce-3 { display: none; }
  .chiffres-grille { grid-template-columns: repeat(2, 1fr); }
  .chiffre { border-right: 1px solid var(--bordure) !important; border-top: 1px solid var(--bordure); }
  .chiffre:nth-child(-n+2) { border-top: 0; }
  .chiffre:nth-child(2n) { border-right: 0 !important; }
  .chiffre:last-child { grid-column: 1 / -1; border-right: 0 !important; }
  .bento, .modes, .plateformes { grid-template-columns: 1fr; }
  .carte-large { grid-column: auto; }
  .schema { padding: 28px 16px; }
  .noeud-boite { width: 64px; height: 64px; border-radius: 16px; }
  .noeud-boite svg { width: 28px; height: 28px; }
  .noeud.relais .noeud-boite { width: 76px; height: 76px; }
  .cadenas { right: calc(50% - 44px); width: 26px; height: 26px; }
  .flux { top: 62px; }
  .noeud b { font-size: .84rem; }
  .noeud small { font-size: .7rem; }
  .schema-legende { grid-template-columns: 1fr; }
  .appel { padding: 64px 20px; border-radius: 24px; }
  .pied-grille { grid-template-columns: 1fr; }
  .onglet { padding: 9px 12px; font-size: .84rem; }
  .scene-manette .hud { font-size: .68rem; padding: 6px 9px; }
  .hud-2 { display: none !important; }
  .hud-3 { white-space: normal; width: calc(100% - 28px); justify-content: center; flex-wrap: wrap; bottom: 14px; text-align: center; }
  .hud-1 { top: 14px; left: 14px; }
  .scene-manette { aspect-ratio: 1 / 1; }
  .scene-manette svg.manette { width: 78%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .revele { opacity: 1; transform: none; }
}
