/* =============================================================
# Fichier     : index.css
# Chemin      : 3x0c3t.com/style/index.css
# Auteur      : 3x0c3t
# Version     : 1.2
# Date        : 20250612-10:00
# Description : Styles spécifiques à la page index.html
#               Fond sombre radial et barre de progression avec
#               texte centré dedans.
============================================================== */

@import url('./colors.css');

body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;

  /* Dégradé radial : clair en périphérie, sombre au centre */
  background: radial-gradient(circle, var(--bg-color-light) 0%, var(--bg-color-dark) 70%);
  height: 100%;
  box-sizing: border-box;
  color: var(--text-color-light);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

/* === Logo === */
.logo-container {
  margin-bottom: 20px;
}

.logo {
  max-width: 200px;
  height: auto;
}

/* === Image M4sk === */
.m4sk-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.m4sk {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 15px var(--shadow-color-primary-light);
  animation: hueRotate 6s infinite linear;
  filter: saturate(2) contrast(1.5);
}

/* === Barre de progression sous m4sk === */
.progress-bar-container {
  position: relative;
  width: 80%;
  max-width: 300px;
  height: 25px;
  background-color: var(--progress-bg);
  border-radius: 12px;
  margin: 20px 0 0 0;
  overflow: hidden;
  box-shadow: 0 0 10px var(--shadow-color-primary-light);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background-color: var(--progress-fill);
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-light);
  font-weight: bold;
  font-size: 1rem;
  border-radius: 12px 0 0 12px;
  box-shadow: inset 0 0 8px var(--shadow-color-primary-strong);
}

.progress-text {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  color: transparent; /* On masque le texte car on l’a dans .progress-bar */
  pointer-events: none;
}

/* === Animations === */
@keyframes countdownScale {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.3);
  }
}

@keyframes hueRotate {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 400px) {
  .logo {
    max-width: 150px;
  }
  .m4sk {
    max-width: 200px;
  }
  .progress-bar-container {
    width: 90%;
  }
}
