:root {
  --bg: #050505;
  --panel: #0b0d10;
  --panel-soft: #11151b;
  --text: #f2f2f2;
  --muted: #8b95a1;
  --line: #7c8794;
  --cyan: #00e5ff;
  --violet: #7c3aed;
}

/* Reset */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 70% 10%,
      rgba(0, 229, 255, 0.09),
      transparent 32%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(124, 58, 237, 0.10),
      transparent 32%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    "IBM Plex Mono",
    monospace;

  overflow-x: hidden;
}

/* Grille de fond */

body::before {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    );

  background-size: 48px 48px;

  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.9),
      transparent 100%
    );

  z-index: 0;
}

/* Texture légère */

body::after {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;

  opacity: 0.06;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");

  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scanline */

.scanline {
  position: fixed;

  left: 0;
  right: 0;

  height: 120px;

  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(255, 255, 255, 0.035),
      transparent
    );

  opacity: 0.25;

  animation: scan 9s linear infinite;

  pointer-events: none;

  z-index: 4;
}

@keyframes scan {
  from {
    transform: translateY(-150px);
  }

  to {
    transform: translateY(110vh);
  }
}

/* Bandeau supérieur */

.topbar {
  position: relative;

  z-index: 3;

  height: 30px;

  display: flex;
  align-items: center;

  overflow: hidden;

  border-bottom:
    1px solid rgba(124, 135, 148, 0.35);

  color: var(--muted);

  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-track {
  display: flex;

  width: max-content;

  animation: marquee 24s linear infinite;
}

.topbar-track span {
  padding-right: 64px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-33.33%);
  }
}

/* Page principale */

.maintenance-page {
  position: relative;

  z-index: 3;

  min-height: calc(100vh - 30px);

  display: grid;
  place-items: center;

  padding: 40px 20px;
}

/* Carte */

.maintenance-card {
  position: relative;

  width: min(780px, 100%);

  padding: 58px;

  border:
    1px solid rgba(124, 135, 148, 0.55);

  background:
    linear-gradient(
      145deg,
      rgba(17, 21, 27, 0.95),
      rgba(5, 5, 5, 0.88)
    );

  clip-path:
    polygon(
      0 0,
      calc(100% - 34px) 0,
      100% 34px,
      100% 100%,
      34px 100%,
      0 calc(100% - 34px)
    );

  box-shadow:
    0 0 60px rgba(0, 229, 255, 0.05);
}

.maintenance-card::before {
  content: "";

  position: absolute;
  inset: 18px;

  border:
    1px solid rgba(0, 229, 255, 0.18);

  pointer-events: none;
}

/* Logo */

.logo-container {
  display: flex;

  margin-bottom: 34px;
}

.logo-mark {
  position: relative;

  width: 82px;
  height: 82px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid rgba(124, 135, 148, 0.6);

  background:
    rgba(11, 13, 16, 0.8);

  overflow: hidden;
}

.logo-mark::before,
.logo-mark::after {
  content: "";

  position: absolute;

  width: 16px;
  height: 16px;

  border-color: var(--cyan);
  border-style: solid;
}

.logo-mark::before {
  top: -4px;
  left: -4px;

  border-width: 2px 0 0 2px;
}

.logo-mark::after {
  right: -4px;
  bottom: -4px;

  border-width: 0 2px 2px 0;
}

.logo-mark img {
  width: 140%;
  height: 140%;

  object-fit: contain;

  filter:
    drop-shadow(
      0 0 10px rgba(0, 229, 255, 0.3)
    );
}

/* Statut */

.status-line {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 22px;

  color: var(--cyan);

  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: var(--cyan);

  box-shadow:
    0 0 12px rgba(0, 229, 255, 0.8);

  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

/* Titres */

h1 {
  margin-bottom: 30px;

  font-family:
    "Space Grotesk",
    sans-serif;

  font-size:
    clamp(64px, 12vw, 122px);

  line-height: 0.82;

  letter-spacing: -0.07em;

  text-transform: uppercase;
}

/* Texte */

.maintenance-message {
  max-width: 620px;

  color: var(--muted);

  font-size: 15px;
  line-height: 1.75;
}

.maintenance-message p {
  margin-bottom: 14px;
}

.maintenance-title {
  color: var(--text);

  font-family:
    "Space Grotesk",
    sans-serif;

  font-size:
    clamp(20px, 3vw, 30px);

  line-height: 1.15;

  text-transform: uppercase;
}

/* Bouton */

.maintenance-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 14px;

  margin-top: 34px;
  margin-bottom: 46px;
}

.btn {
  display: inline-flex;

  padding: 14px 20px;

  border: 1px solid var(--line);

  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  clip-path:
    polygon(
      0 0,
      calc(100% - 14px) 0,
      100% 14px,
      100% 100%,
      14px 100%,
      0 calc(100% - 14px)
    );

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary {
  border-color: var(--text);

  background: var(--text);

  color: var(--bg);
}

.btn:hover {
  transform: translateY(-2px);

  border-color: var(--cyan);

  color: var(--cyan);

  background: transparent;

  box-shadow:
    0 0 20px rgba(0, 229, 255, 0.18);
}

/* Informations techniques */

.system-info {
  display: flex;
  flex-wrap: wrap;

  justify-content: space-between;

  gap: 12px;

  padding-top: 20px;

  border-top:
    1px solid rgba(124, 135, 148, 0.35);

  color: var(--muted);

  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Responsive */

@media (max-width: 700px) {
  .maintenance-page {
    align-items: start;

    padding: 24px 14px;
  }

  .maintenance-card {
    padding: 36px 26px;
  }

  .logo-mark {
    width: 68px;
    height: 68px;
  }

  h1 {
    font-size: clamp(56px, 20vw, 86px);
  }

 .maintenance-page {
    position: relative;
    z-index: 3;

    min-height: calc(100vh - 30px);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
}

  .system-info {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scanline,
  .topbar-track,
  .status-dot {
    animation: none;
  }
}
.maintenance-card {
    position: relative;

    width: min(780px, 100%);
    padding: 58px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    border: 1px solid rgba(124,135,148,.55);
    background: linear-gradient(145deg, rgba(17,21,27,.95), rgba(5,5,5,.88));

    clip-path: polygon(
        0 0,
        calc(100% - 34px) 0,
        100% 34px,
        100% 100%,
        34px 100%,
        0 calc(100% - 34px)
    );
}