:root {
  --bg: #0e0e0e;
  --fg: #e8e4dc;
  --muted: #9a958c;
  --line: #2a2a2a;
  --accent: #d4cfc4;
  --band-h: 25%;
  --font-ui: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "Liberation Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  line-height: 1.35;
}

/* Landing : tient exactement dans le viewport, jamais d’ascenseur */
body:has(.page) {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page {
  height: 100dvh;
  max-height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: grid;
  /* Hero + bandeau bas = 1/4 viewport */
  grid-template-rows: 1fr var(--band-h);
}

.hero {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #080808;
}

.hero canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.hero-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  height: 100%;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.band {
  min-height: 0;
  padding: clamp(0.45rem, 1.2vh, 0.9rem) clamp(0.75rem, 1.5vw, 1.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  overflow: hidden;
}

.band--sysket {
  border-right: 1px solid var(--line);
}

.band__label {
  margin: 0;
  font-size: clamp(0.62rem, 1.1vh, 0.72rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.band__title {
  margin: 0;
  font-size: clamp(0.9rem, 2vh, 1.05rem);
  font-weight: 600;
}

.band__scope {
  margin: 0;
  font-size: clamp(0.72rem, 1.5vh, 0.85rem);
  color: var(--muted);
}

.band__meta {
  margin: 0;
  font-size: clamp(0.72rem, 1.5vh, 0.9rem);
  color: var(--muted);
}

.band__meta a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.band--product {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #f4f1ea;
  isolation: isolate;
}

.band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4; /* transparence 60 % */
}

.band--product::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(8, 8, 8, 0.72) 0%,
    rgba(8, 8, 8, 0.45) 55%,
    rgba(8, 8, 8, 0.35) 100%
  );
  pointer-events: none;
}

.band__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-height: 0;
}

.band--product .band__label,
.band--product .band__meta {
  color: rgba(244, 241, 234, 0.82);
}

.band--product:hover::after,
.band--product:focus-visible::after {
  background: linear-gradient(
    90deg,
    rgba(8, 8, 8, 0.58) 0%,
    rgba(8, 8, 8, 0.32) 55%,
    rgba(8, 8, 8, 0.22) 100%
  );
}

.lang-switch {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  gap: 0.35rem;
}

.lang-switch button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(14, 14, 14, 0.75);
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.55rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--fg);
  border-color: var(--accent);
}

@media (max-width: 767px) {
  .page {
    /* ASCII 1/2 · produit 1/4 · SysKet 1/4 */
    grid-template-rows: 1fr 25% 25%;
  }

  .bands {
    display: contents;
  }

  .band--product {
    order: 2;
    border-top: 1px solid var(--line);
    border-right: none;
  }

  .band--sysket {
    order: 3;
    border-top: 1px solid var(--line);
    border-right: none;
  }

  .hero {
    order: 1;
  }
}

.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.legal-doc h1 {
  font-size: 1.5rem;
}

.legal-doc a {
  color: var(--accent);
}
