/* Portail public Hall32 — aucune ressource externe (pas de Google Fonts) */
:root {
  --fond: #0a0a0a;
  --accent: #d6e23a;
  --texte: #f2f2f2;
  --texte-2: #8b8b8b;
  --police-titre: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --police-texte: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police-texte);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.grille-fond {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 100%);
}

.scene {
  position: relative;
  z-index: 1;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px;
}

.logo { height: 150px; width: auto; margin-bottom: 36px; }

.surtitre {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 18px;
  max-width: 700px;
  line-height: 1.7;
}

.titre {
  font-family: var(--police-titre);
  font-weight: 900;
  font-size: clamp(56px, 12vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}

.titre .accent { color: var(--accent); }

.sous-titre {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--texte-2);
  max-width: 560px;
  margin-bottom: 38px;
}

.bouton-principal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--accent);
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.09em;
  border-radius: 3px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.bouton-principal:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px var(--accent);
}

.applications {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 24px 90px;
}

.grille-apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.carte-app {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 6px;
  background: rgba(255,255,255,0.022);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, background .2s, transform .2s;
}

.carte-app:hover,
.carte-app:focus-visible {
  border-color: var(--accent);
  background: rgba(255,255,255,0.05);
  transform: translateY(-3px);
  outline: none;
}

.carte-visuel {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
}

.carte-initiale {
  display: inline-flex;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.carte-texte { flex: 1; min-width: 0; }

.carte-texte h2 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

.carte-texte p { font-size: 13.5px; color: var(--texte-2); line-height: 1.45; }

.carte-fleche {
  flex-shrink: 0;
  color: var(--texte-2);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .2s, transform .2s, color .2s;
}

.carte-app:hover .carte-fleche,
.carte-app:focus-visible .carte-fleche {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--accent);
}

.pied {
  position: relative;
  z-index: 1;
  padding: 26px 24px 40px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.pied p { font-size: 12.5px; color: var(--texte-2); }

/* Page 404 */
.erreur .titre { font-size: clamp(56px, 14vw, 140px); }

@media (max-width: 640px) {
  .logo { height: 110px; margin-bottom: 26px; }
  .scene { padding: 60px 20px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
