/* ═══════════════════════════════════════
   LAYOUT — Login, Header, Navigation
═══════════════════════════════════════ */

/* LOGO — Premium Soft */

.logowrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  gap: 0;
  margin-top: -100px;
  margin-bottom: 12px;
}

.logoimg {
  width: clamp(380px, 20vw, 340px);
  height: auto;
  object-fit: contain;
  max-width: none;

  margin-bottom: -80px;

  animation: logoGlow 3s ease-in-out infinite;

  filter:
    drop-shadow(0 0 18px rgba(255,255,0,.08))
    drop-shadow(0 0 38px rgba(255,255,0,.06));
}

.logot {
  margin: 0;
  padding: 0;
  line-height: 1;

  font-family: var(--fb);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--y);

  letter-spacing: 15px;

  /* effet glow conservé */
  text-shadow:
    0 0 10px rgba(255,190,0,.25),
    0 0 20px rgba(255,190,0,.18),
    0 0 30px rgba(255,190,0,.12);
}

.logos {
  margin: 5px 0 5px;
  padding: 0;
  line-height: 1;

  font-family: var(--fm);
  font-size: .75rem;
  color: var(--txt3);

  letter-spacing: 5px;
  opacity: .75;
}

/* glow premium conservé */
@keyframes logoGlow {
  0%,100% {
    filter:
      drop-shadow(0 0 0px rgba(255,255,0,.08))
      drop-shadow(0 0 0px rgba(255,255,0,.04));
  }

  50% {
    filter:
      drop-shadow(0 0 0px rgba(255, 255, 255, 0.527))
      drop-shadow(0 0 10px rgba(255, 200, 1, 0.566));
  }
}
/* ═══════════════════════════════════════
   LOGIN
═══════════════════════════════════════ */
#s-login {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  min-height: 100vh;
  height: auto;

  overflow-y: auto;
  overflow-x: hidden;

  padding: 24px;
  position: relative;
}

#s-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, var(--ydim), transparent 65%);
  pointer-events: none;
}

.lcard {
  width: 100%;
  max-width: 420px;
  background: var(--c2);
  border: 2px solid var(--border2);
  border-radius: var(--r3);
  padding: 26px 28px;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,.9), 0 0 30px rgba(90,110,64,.08);
}
.lcard::before, .lcard::after {
  content: '';
  position: absolute;
  width: 74px;
  height: 24px;
}
.lcard::before { top: -2px; left: -2px; border-top: 3px solid var(--y); border-left: 3px solid var(--y); border-radius: var(--r3) 0 0 0; }
.lcard::after  { bottom: -2px; right: -2px; border-bottom: 3px solid var(--y); border-right: 3px solid var(--y); border-radius: 0 0 var(--r3) 0; }

.atabs { display: flex; background: var(--c3); border-radius: var(--r); margin-bottom: 26px; padding: 3px; gap: 3px; }
.atab  { flex: 1; padding: 11px; font-family: var(--fb); font-size: 17px; letter-spacing: 2px; color: var(--txt3); background: transparent; border: none; border-radius: 6px; cursor: pointer; }
.atab.on { background: var(--y); color: #000; }

.lfoot { text-align: center; font-family: var(--fm); font-size: 12px; color: var(--txt4); margin-top: 29px; }

/* ═══════════════════════════════════════
   BARRE DU HAUT — FUTURISTE PREMIUM
═══════════════════════════════════════ */

.hdr {
  height: var(--hdr);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;

  /* Effet verre futuriste */
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(6px);

  /* Bordure néon */
  border-bottom: 2px solid rgba(255, 217, 0, 0.513);
  box-shadow: 0 0 28px rgba(255, 208, 0, 0.306);
  overflow: hidden;
}

/* Ligne de scan animée */
.hdr::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--y), transparent);
  animation: hdrScan 4.4s linear infinite;
  opacity: 0.8;
}

@keyframes hdrScan {
  0% { transform: translateX(-100%); opacity: .2; }
  50% { opacity: .8; }
  100% { transform: translateX(100%); opacity: .2; }
}

/* LOGO ANIMÉ — Scan + Pulse */
.hdrbrand {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  animation: logoPulse 4.2s ease-in-out infinite;
  overflow: hidden;
}

@keyframes logoPulse {
  0%   { transform: scale(1);   filter: drop-shadow(0 0 2px var(--yglow)); }
  50%  { transform: scale(1.08); filter: drop-shadow(0 0 8px var(--yglow)); }
  100% { transform: scale(1);   filter: drop-shadow(0 0 2px var(--yglow)); }
}

/* Titre */
.hdrt {
  font-family: var(--fb);
  font-size: 26px;
  letter-spacing: 3px;
  color: var(--y);
  text-shadow: 0 0 14px var(--yglow), 0 0 4px var(--y);
}

/* Sous-titre */
.hdrs {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--txt3);
  margin-top: 2px;
}

/* Zone droite */
.hdrr {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Avatar */
.hdrav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,0,0.1);
  border: 2px solid var(--y);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fb);
  font-size: 18px;
  color: var(--y);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 12px var(--yglow);
  transition: 0.2s;
}

.hdrav:hover {
  box-shadow: 0 0 18px var(--yglow);
  transform: scale(1.05);
}

.hdrav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Bouton déconnexion */
.quitbtn {
  padding: 8px 14px;
  background: var(--red);
  border: none;
  border-radius: var(--r);
  font-family: var(--fb);
  font-size: 14px;
  letter-spacing: 1px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 25, 0, 0.609);
  transition: 0.2s;
}

.quitbtn:hover {
  box-shadow: 0 0 12px rgba(255, 25, 0, 0.6);
  transform: scale(1.05);
}


/* ═══════════════════════════════════════
   NAVIGATION BAS — FUTURISTE PREMIUM
═══════════════════════════════════════ */

.nav {
  position: relative;
  z-index: 50;
  height: var(--nav);
  display: flex;
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom);

  /* Effet verre futuriste */
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(6px);

  /* Bordure néon */
  border-top: 2px solid rgba(255, 255, 0, 0.45);
  box-shadow: 0 -2px 20px rgba(255, 255, 0, 0.25);
  overflow: hidden;
}

/* Ligne de scan animée */
.nav::before {
  content: "";
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--y), transparent);
  animation: navScan 2.4s linear infinite;
  opacity: 0.8;
}

@keyframes navScan {
  0% { transform: translateX(-100%); opacity: .2; }
  50% { opacity: .8; }
  100% { transform: translateX(100%); opacity: .2; }
}

/* Grille holographique */
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  opacity: 0.25;
}

/* Boutons */
.nvi {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 2px;
  position: relative;
  min-width: 0;
  transition: 0.2s;
}

/* Icône */
.nvi-i {
  font-size: 24px;
  color: var(--txt3);
  line-height: 1;
  transition: 0.2s;
}

/* Label */
.nvi-l {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--txt3);
  letter-spacing: .5px;
  transition: 0.2s;
}

/* État actif */
.nvi.on .nvi-i,
.nvi.on .nvi-l {
  color: var(--y);
  text-shadow: 0 0 10px var(--yglow);
}

/* Barre lumineuse sous l’icône active */
.nvi.on::before {
  content: "";
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 3px;
  background: linear-gradient(90deg, var(--olive), var(--y));
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 12px var(--yglow);
}

/* Hover futuriste */
.nvi:hover .nvi-i {
  transform: scale(1.1);
  color: var(--y);
  text-shadow: 0 0 8px var(--yglow);
}
