/* Design System Stagey v2 - Page de Maintenance (Thème Sombre & Épuré) */

:root {
  --primary: #569bff;
  --primary-hover: #3b82f6;
  --background: #171717;
  --foreground: #fafafa;
  --card-bg: rgba(23, 23, 23, 0.4);
  --card-border: rgba(255, 255, 255, 0.05);
  --muted: #a3a3a3;
  --border: rgba(255, 255, 255, 0.08);
  --badge-bg: rgba(86, 155, 255, 0.12);
  --badge-color: #569bff;
  
  --font-title: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  
  --shadow: none;
  --radius: 24px;
}

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

html {
  font-size: 16px;
  background-color: var(--background);
}

body {
  font-family: var(--font-body);
  color: var(--foreground);
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  overflow-y: auto;
  padding: 2rem 0;
}

/* Grille de fond sombre extrêmement subtile et aérée */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='80' height='80' fill='none' stroke='rgba(255, 255, 255, 0.015)'%3E%3Cpath d='M0 .5H31.5V32'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.radial-fade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, var(--background) 70%);
  pointer-events: none;
  z-index: 2;
}

/* Conteneur principal aéré */
.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 720px; /* Élargi pour un rendu plus horizontal et aéré */
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* Réduit pour éviter le scroll */
}

/* Logo SVG */
.logo-svg {
  height: 32px; /* Plus petit sur mobile */
  width: auto;
  opacity: 0.95;
  color: var(--foreground);
  transition: transform 0.2s ease;
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .logo-svg {
    height: 42px; /* Taille normale sur desktop */
    margin-bottom: 2.25rem;
  }
}

.logo-svg:hover {
  transform: scale(1.02);
}

/* Carte centrale - Plus compacte verticalement */
.card {
  width: 100%;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem; /* Réduit sur mobile */
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .card {
    padding: 2.25rem 2rem; /* Taille normale sur desktop */
  }
}

/* Typographie épurée */
h1 {
  font-family: var(--font-title);
  font-size: 1.65rem; /* Réduit sur mobile */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

@media (min-width: 640px) {
  h1 {
    font-size: 2.5rem;
  }
}

.description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem; /* Réduit */
  max-width: 95%;
}

/* Informations temporelles aérées */
.time-info {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem; /* Réduit */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.info-item {
  display: flex;
  flex-direction: column; /* Verticalisé par défaut sur mobile */
  align-items: flex-start;
  font-size: 0.9rem;
  gap: 0.25rem; /* Petit espace vertical */
  width: 100%;
}

@media (min-width: 480px) {
  .info-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.info-label {
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  width: auto;
}

@media (min-width: 480px) {
  .info-label {
    width: 110px; /* Aligné sur grand écran */
  }
}

.info-value {
  font-weight: 600;
  color: var(--foreground);
  text-align: left; /* Aligné à gauche sur mobile */
  word-break: break-word;
  max-width: 100%;
}

@media (min-width: 480px) {
  .info-value {
    text-align: right; /* Aligné à droite sur desktop */
    max-width: 360px;
  }
}

/* Compte à rebours */
.countdown-container {
  width: 100%;
}

.countdown-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.countdown-timer {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}

/* Boutons d'action */
.button-group {
  display: flex;
  gap: 0.85rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 48px;
  padding: 0 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
}

.button-primary {
  background-color: var(--primary);
  color: #171717; /* Texte sombre sur bouton clair en dark mode */
}

.button-primary:hover {
  background-color: #7bb1ff;
  transform: translateY(-1px);
}

.button-primary:active {
  transform: translateY(0);
}

.button-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.button-outline:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--muted);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.animate-spin-hover:hover {
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 1rem;
}

.footer p {
  font-size: 0.78rem;
  color: var(--muted);
}
