/* =====================================================
   FONTS
   ===================================================== */

@font-face {
  font-family: Cyber;
  src: url('/../public/police/Blender-Pro-Bold.otf');
}


/* =====================================================
   SYSTEM ACCESS PORT (ADMIN) — ROUES CRANTÉES
   ===================================================== */

#admin-button {
  position: fixed;
  top: 14px;
  right: 14px;

  width: 18px;  /* Taille légère mais visible */
  height: 18px;

  background: #0d1016;  /* Arrière-plan discret */
  border: 1px solid #2b2f36;
  border-radius: 50%; /* Forme ronde */
  cursor: pointer;

  opacity: 0.35;
  transition: opacity 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  z-index: 1000;
}

/* La roue crantée ajoutée via le ::before */
#admin-button::before {
  content: '⚙️'; /* Icône roue crantée */
  font-size: 16px;
  color: #6fa1d2;  /* Bleu pour la discrétion */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centrer l'icône */
  transition: color 0.25s ease;
}

/* Révéler l'élément et changer la couleur au survol */
#admin-button:hover {
  opacity: 1;
  border-color: #ff8c1a;  /* Orange au survol */
  background-color: #1a1208;
}

/* Changer la couleur de l'icône au survol */
#admin-button:hover::before {
  color: #ff8c1a;  /* L'orange au survol de la roue */
}

/* Aucune autre animation visible, effet minimaliste */
#admin-button:focus-visible {
  outline: 2px solid #ff8c1a;
  outline-offset: 4px;
}


 
/* =====================================================
   RESET & BASE
   ===================================================== */

* {
  box-sizing: border-box;

  border: 0px solid red; /* a mettre à 1 pour débug placements */
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1a1f26, #0b0e12);
  color: #d0d0d0;
  font-family: Cyber, sans-serif;
}


/* =====================================================
   SYSTEM FRAME (CONSOLE UI)
   ===================================================== */

.system-frame {
  max-width: 1200px;
  margin: 40px auto;
  padding: 32px;
  border: 1px solid #2b2f36;
  background: linear-gradient(180deg, #141820, #0d1016);
  box-shadow: 0 0 40px rgba(0,0,0,0.85);
  position: relative;
  overflow: hidden;
}


/* =====================================================
   HEADER SYSTEM
   ===================================================== */

.system-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.system-status-line {
  display: flex;
  gap: 6px;
  font-family: Cyber, sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.system-status-line .label {
  color: #8a8f98; /* gris système */
}

.system-status {
  color: #6fa1d2; /* bleu parfait */
}

.system-status.online {
  color: #6fa1d2; /* bleu */
}

.system-status.degraded {
  color: #ff8c1a; /* orange */
}

.system-status.offline {
  color: #ff4d4d; /* rouge */
}


/* =====================================================
   MENU DE SÉLECTION (MODULES)
   ===================================================== */

.menu-section {
  text-align: center;
  padding: 40px 0 60px;
}

.menu-title {
  font-family: Cyber, sans-serif;
  font-size: 16px;
  letter-spacing: 3px;
  color: #6fa1d2;
  margin-bottom: 40px;
}

.system-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}


/* =====================================================
   HUD — MODULE ACTIF
   ===================================================== */

.active-module {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;

  font-family: Cyber, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;

  color: #8a8f98; /* gris système */
}

.active-module .value {
  color: #ff8c1a; /* orange activation */
}

.active-module.hidden {
  display: none;
}


/* =====================================================
   CONTENU DYNAMIQUE
   ===================================================== */

.content-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.45s ease;
  pointer-events: none;
}

body.state-content .content-section {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* =====================================================
   TEXTE / COMPTEUR
   ===================================================== */

.typing-output {
  font-family: Cyber, sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  color: #6fa1d2;
  margin-bottom: 25px;
  opacity: 0.9;
}


.typing-output::after {
  content: '|';
  margin-left: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


/* =====================================================
   CONTENEUR ARTICLES
   ===================================================== */

.container2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}


/* =====================================================
   INTERFERENCE SCANLINE (DOUBLE / RENFORCÉE)
   ===================================================== */

.system-frame::after,
.system-frame::before {
  content: '';
  position: absolute;
  left: -5%;
  width: 110%;
  pointer-events: none;
  opacity: 0;
}

.system-frame::after {
  height: 14px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0.35),
    rgba(255,255,255,0)
  );
  top: 100%;
}

.system-frame::before {
  height: 22px;
  background: rgba(0,0,0,0.35);
  top: calc(100% + 18px);
}

.system-frame.scanline::after {
  animation: scanline-main 0.8s linear;
  opacity: 1;
}

.system-frame.scanline::before {
  animation: scanline-shadow 0.8s linear;
  opacity: 1;
}

@keyframes scanline-main {
  from {
    top: 105%;
  }
  to {
    top: -10%;
  }
}

@keyframes scanline-shadow {
  from {
    top: calc(105% + 18px);
  }
  to {
    top: -5%;
  }
}


/* =====================================================
   GLITCH GLOBAL (RARE)
   ===================================================== */

.glitch-on {
  animation: global-glitch 0.18s steps(2);
}

@keyframes global-glitch {
  0%   { transform: translate(0); filter: none; }
  25%  { transform: translate(-2px, 1px); filter: contrast(1.2); }
  50%  { transform: translate(2px, -1px); filter: hue-rotate(8deg); }
  100% { transform: translate(0); filter: none; }
}


/* =====================================================
   BOOT OVERLAY (PRÊT POUR ANIMATION)
   ===================================================== */

.boot-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
}


/* =====================================================
   ACCESSIBILITÉ / CONFORT
   ===================================================== */

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #6fa1d2;
  outline-offset: 4px;
}

/* =====================================================
   PIED DE PAGE 
   ===================================================== */

.system-footer {
  margin-top: 90px;        /* ⬅ espace fort avec le contenu */
  padding-top: 24px;

  border-top: 1px solid #2b2f36;

  display: flex;
  gap: 8px;
  justify-content: center;

  font-family: Cyber, sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;

  color: #6a7078;
  opacity: 0.55;
}

/* =====================================================
   MODAL (pop-up)
   ===================================================== */

.modal {
  display: none; /* Cacher par défaut */
  position: fixed;
  z-index: 70;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Fond sombre semi-transparent */
  overflow: auto;
  padding-top: 60px;
}

.modal-content {
  background-color: #1a1f26;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #2b2f36;
  min-width: 400px;
  max-width: 700px;
  color: #d0d0d0;
  font-family: Cyber, sans-serif;
  letter-spacing: 1px;
}

.close {
  color: #d0d0d0;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #ff8c1a; /* Orange au survol */
  text-decoration: none;
  cursor: pointer;
}

/* Texte en majuscules, couleur orange */
.uppercase {
  text-transform: uppercase;
  color: #FF8C00; /* Couleur orange */
}



/* Animation clignotante */
@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

#about-link {
  animation: blink 1.5s ease-in-out infinite; 
  text-decoration: none;
  color: #6fa1d2; /* Bleu parfait */
}




.back-cybr {
  position: absolute;
  top: 16px;
  left: 16px;

  width: 140px;
  height: 38px;

  font-size: 11px;
  letter-spacing: 2px;

  opacity: 0.85;
  z-index: 10;

  text-decoration: none;
  color: #6fa1d2;
}

.back-cybr:hover {
  opacity: 1;
}



