/* JARVIS WEB : ecran de connexion, DA de l'app JARVIS (HUD) */
:root {
  --bg: #020817; --bg2: #050f1f; --bg3: #081629;
  --primary: #00d4ff; --primary-dim: #0099bb; --accent: #0066ff;
  --glow-sm: 0 0 6px #00d4ff88; --glow-md: 0 0 12px #00d4ff99, 0 0 24px #00d4ff44; --glow-lg: 0 0 20px #00d4ffcc, 0 0 50px #00d4ff55;
  --text: #c8e8f5; --text-dim: #5a8099; --text-bright: #e8f8ff;
  --border: #00d4ff33; --border-mid: #00d4ff66;
  --rouge: #ff3d5a; --vert: #00ffa3;
  --font-hud: 'Rajdhani', sans-serif; --font-mono: 'Share Tech Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font-hud); }
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }

#hex-canvas { position: fixed; inset: 0; z-index: 0; opacity: .35; pointer-events: none; }
.scan-container { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.scan-line { position: absolute; left: 0; right: 0; height: 2px; opacity: .15;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 40%, var(--accent) 60%, transparent 100%);
  animation: scan 8s linear infinite; }
.scan-line-2 { animation-delay: -4s; opacity: .08; }
@keyframes scan { from { top: -2px; } to { top: 100%; } }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, #000 120%); }

/* barre du haut */
.barre-haut { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--text-dim);
  border-bottom: 1px solid #00d4ff14; }
.bh-gauche { display: flex; align-items: center; gap: 10px; }
.point { width: 7px; height: 7px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 8px var(--vert); animation: clign 2.4s ease-in-out infinite; }
@keyframes clign { 50% { opacity: .35; } }

/* scene */
.scene { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px 40px; }

.logo { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin-bottom: 22px; }
.anneau { position: absolute; inset: 0; margin: auto; }
.anneau-ext { width: 132px; height: 132px; border-radius: 50%; border: 1px solid var(--border);
  border-top-color: var(--primary); border-bottom-color: var(--primary); animation: tourne 6s linear infinite; box-shadow: inset 0 0 18px #00d4ff22; }
.anneau-hex { width: 98px; height: 98px; overflow: visible; animation: tourne 10s linear infinite reverse, lueur 2.4s ease-in-out infinite; }
.anneau-hex polygon { fill: #00d4ff0d; stroke: var(--primary); stroke-width: 2.2; stroke-linejoin: round; }
.anneau-int { width: 62px; height: 62px; border-radius: 50%; border: 1px dashed var(--border-mid); animation: tourne 4s linear infinite; }
.coeur { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); box-shadow: var(--glow-lg); animation: pulse 2.4s ease-in-out infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes lueur { 50% { filter: drop-shadow(0 0 10px #00d4ffaa); } }
@keyframes pulse { 50% { transform: scale(.78); opacity: .75; } }

.titre { font-size: 46px; font-weight: 700; letter-spacing: 16px; padding-left: 16px; color: var(--primary); text-shadow: var(--glow-lg); line-height: 1; }
.sous-titre { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 4px; color: var(--text-dim); }
.sep { color: var(--primary-dim); margin: 0 6px; }

/* carte */
.carte { position: relative; width: 100%; max-width: 420px; margin-top: 34px; padding: 26px 26px 18px;
  background: linear-gradient(180deg, #081629e6 0%, #050f1fe6 100%); border: 1px solid var(--border);
  box-shadow: 0 0 40px #00d4ff0f, inset 0 0 30px #00d4ff08; backdrop-filter: blur(4px); }
.coin { position: absolute; width: 16px; height: 16px; border: 2px solid var(--primary); filter: drop-shadow(0 0 4px #00d4ff88); }
.c-hg { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.c-hd { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.c-bg { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.c-bd { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.carte-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid #00d4ff1f; }
.etiquette { font-size: 14px; font-weight: 600; letter-spacing: 4px; color: var(--text-bright); }
.etat { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--text-dim); }
.etat-point { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-dim); }
.etat.verif .etat-point { background: var(--primary); box-shadow: var(--glow-sm); animation: clign .6s infinite; }
.etat.verif { color: var(--primary); }
.etat.refus .etat-point { background: var(--rouge); box-shadow: 0 0 8px var(--rouge); }
.etat.refus { color: var(--rouge); }
.etat.ok .etat-point { background: var(--vert); box-shadow: 0 0 8px var(--vert); }
.etat.ok { color: var(--vert); }

.champ { display: block; margin-bottom: 18px; }
.champ-nom { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.5px; color: var(--text-dim); margin-bottom: 8px; }
.champ-cadre { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; background: #020817cc;
  border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; }
.champ-cadre:focus-within { border-color: var(--primary); box-shadow: var(--glow-sm), inset 0 0 12px #00d4ff12; }
.champ-prefixe { font-family: var(--font-mono); color: var(--primary-dim); font-size: 15px; }
.champ-cadre:focus-within .champ-prefixe { color: var(--primary); text-shadow: var(--glow-sm); }
.champ input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; color: var(--text-bright);
  font-family: var(--font-mono); font-size: 16px; letter-spacing: 1px; caret-color: var(--primary); }
.champ input:-webkit-autofill { -webkit-text-fill-color: var(--text-bright); transition: background-color 9999s; box-shadow: 0 0 0 40px #020817 inset; }
.voir { background: none; border: 0; color: var(--text-dim); cursor: pointer; display: grid; place-items: center; padding: 4px; }
.voir:hover, .voir.actif { color: var(--primary); }
.voir:focus-visible { outline: 1px solid var(--primary); }

.message { min-height: 20px; margin: -4px 0 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .5px; color: var(--text-dim); }
.message.erreur { color: var(--rouge); }

.bouton { position: relative; overflow: hidden; width: 100%; height: 50px; background: #00d4ff12; border: 1px solid var(--primary);
  color: var(--primary); font-family: var(--font-hud); font-size: 17px; font-weight: 700; letter-spacing: 6px; cursor: pointer;
  text-shadow: var(--glow-sm); transition: background .2s, color .2s, box-shadow .2s; }
.bouton:hover:not(:disabled) { background: var(--primary); color: var(--bg); text-shadow: none; box-shadow: var(--glow-md); }
.bouton:focus-visible { outline: 2px solid var(--text-bright); outline-offset: 3px; }
.bouton:disabled { cursor: default; opacity: .7; }
.bouton-balayage { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  background: linear-gradient(90deg, transparent, #00d4ff55, transparent); opacity: 0; }
.bouton.charge .bouton-balayage { opacity: 1; animation: balaye 1s linear infinite; }
@keyframes balaye { to { left: 100%; } }

.carte-pied { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.8px; color: #5a809999; }

.carte.secoue { animation: secoue .4s; }
@keyframes secoue { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.pied { position: relative; z-index: 3; text-align: center; padding: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 4px; color: #5a809980; }

/* acces autorise */
.acces { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: #020817f2; opacity: 0; pointer-events: none; transition: opacity .35s; }
.acces.visible { opacity: 1; pointer-events: auto; }
.acces-texte { font-size: 30px; font-weight: 700; letter-spacing: 10px; padding-left: 10px; color: var(--vert); text-shadow: 0 0 20px #00ffa3aa; }
.acces-barre { width: 260px; height: 2px; background: #00ffa322; overflow: hidden; }
.acces-plein { width: 0; height: 100%; background: var(--vert); box-shadow: 0 0 10px var(--vert); }
.acces.visible .acces-plein { animation: remplit .9s ease-out forwards; }
@keyframes remplit { to { width: 100%; } }

@media (max-width: 480px) {
  .titre { font-size: 36px; letter-spacing: 11px; padding-left: 11px; }
  .carte { padding: 22px 18px 16px; }
  .barre-haut { padding: 12px 16px; font-size: 10px; letter-spacing: 1px; }
  .sous-titre { letter-spacing: 2.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
