/* ============================================================================
   Venacity Axis — axis.css
   Version : 1.1.3

   Styles spécifiques au portail Axis.
   Dépend de vnct-design-system.css (chargé avant).
   ============================================================================ */

/* --- Écran de login --- */
.axis-login {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  z-index: 9999;
  padding: var(--space-4);
}

.axis-login__card {
  width: 100%;
  max-width: 380px;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  text-align: center;
}

.axis-login__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.axis-login__logo {
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--accent);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.axis-login__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin: 0;
}

.axis-login__subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

.axis-login__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: left;
}

.axis-login__form .vnct-input {
  height: 44px;
  font-size: var(--text-base);
}

.axis-login__btn {
  width: 100%;
  height: 44px;
  font-size: var(--text-base);
}

.axis-login__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.axis-login__error {
  font-size: var(--text-sm);
  color: var(--danger);
  margin: var(--space-1) 0 0;
}

.axis-login__footer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
}

/* --- Hero section --- */
.axis-hero {
  text-align: center;
  padding: var(--space-16) var(--space-4) var(--space-8);
}

.axis-hero__logo {
  /* Hero landing : clamp fluid 40px → 60px, aligné sur l'écosystème.
     tracking-wide conservé pour l'identité OS distincte des hubs.
     Extraction dans le DS commun trackée dans Nexus #32. */
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-wide);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.axis-hero__logo span {
  color: var(--accent);
}

.axis-hero__tagline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* --- Logout button --- */
.axis-logout-wrapper {
  text-align: center;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.axis-logout-btn {
  background: none;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  font-family: var(--font-family);
}

.axis-logout-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* --- Tiles grid --- */
.axis-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-16);
}

@media (min-width: 769px) {
  .axis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .axis-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
}

/* Tile entrance animation (staggered) */
/* Delays hardcoded via :nth-child : étendus jusqu'à 12 pour couvrir les ajouts futurs.
   Au-delà de 12 tuiles, il faudra étendre la liste ou passer à un pattern JS. */
.axis-grid .vnct-tile {
  animation: vnct-tile-enter 550ms var(--ease-out-expo) backwards;
}
.axis-grid .vnct-tile:nth-child(1)  { animation-delay: 0.25s; }
.axis-grid .vnct-tile:nth-child(2)  { animation-delay: 0.35s; }
.axis-grid .vnct-tile:nth-child(3)  { animation-delay: 0.45s; }
.axis-grid .vnct-tile:nth-child(4)  { animation-delay: 0.55s; }
.axis-grid .vnct-tile:nth-child(5)  { animation-delay: 0.65s; }
.axis-grid .vnct-tile:nth-child(6)  { animation-delay: 0.75s; }
.axis-grid .vnct-tile:nth-child(7)  { animation-delay: 0.85s; }
.axis-grid .vnct-tile:nth-child(8)  { animation-delay: 0.95s; }
.axis-grid .vnct-tile:nth-child(9)  { animation-delay: 1.05s; }
.axis-grid .vnct-tile:nth-child(10) { animation-delay: 1.15s; }
.axis-grid .vnct-tile:nth-child(11) { animation-delay: 1.25s; }
.axis-grid .vnct-tile:nth-child(12) { animation-delay: 1.35s; }

/* Tile icon */
.axis-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.1);
  color: var(--accent);
}

.axis-tile-icon svg {
  width: 24px;
  height: 24px;
}

/* --- Nav desktop override --- */
.axis-nav .vnct-nav-desktop__separator {
  display: none;
}

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
  .axis-hero {
    padding: var(--space-10) var(--space-4) var(--space-6);
  }

  /* .axis-hero__logo responsive géré nativement par clamp() */

  .axis-hero__tagline {
    font-size: var(--text-base);
  }
}
