/* styles.css */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

/* Le wrapper garde une hauteur fixe */
.logo-wrapper {
  width: 100%;
  max-width: 300px;
  position: relative;
  aspect-ratio: 1 / 1; /* ou tu peux utiliser une hauteur fixe en px si tu préfères */
}

/* Statique avec animation */
.logo-static {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  animation: zoomIn 1s ease-out forwards;
  opacity: 0;
}

/* GIF sans animation */
.logo-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  opacity: 1;
}

/* Les logos se superposent dans le wrapper */
.logo,
.gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
}

/* Effet zoom uniquement sur le logo statique */
.logo {
  animation: zoomIn 1s ease-out forwards;
  opacity: 0;
}

/* GIF masqué au départ */
.gif {
  display: none;
}

/* Texte */
.message {
  font-size: 1.8rem;
  color: #ccc;
  line-height: 1.4;
  display: inline-block;
}

/* Animation des points */
.dots span {
  opacity: 0;
  animation: appearDot 3s infinite steps(1, end);
}

.dots span:nth-child(1) {
  animation-delay: 0.5s;
}
.dots span:nth-child(2) {
  animation-delay: 1s;
}
.dots span:nth-child(3) {
  animation-delay: 1.5s;
}

/* Keyframes */
@keyframes appearDot {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes zoomIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .message {
    font-size: 2rem;
  }
}
