/* Style général */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #121212;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #e0e0e0;
  transition: background 0.3s, color 0.3s;
  text-align: center;
  padding: 0 10px;
  position: relative;
}

/* Logo animé */
.logo {
  width: 110px;
  max-width: 30vw;
  margin-bottom: 25px;
  animation: float 3s ease-in-out infinite;
  transition: filter 0.3s, box-shadow 0.3s;
  border-radius: 50%;
  box-shadow: 0px 6px 15px rgba(255, 255, 255, 0.4);
}

/* Mode clair -> ombre noire */
body.light .logo {
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

/* Texte principal */
h1 {
  font-size: 2.8em;
  font-weight: 600;
  animation: fadePulse 4s infinite;
  display: flex;
  align-items: center;   /* emojis alignés */
  justify-content: center;
  gap: 0.4em;
  flex-wrap: wrap;       /* permet de descendre si trop long */
}

.emoji {
  font-size: 1.5em;
  line-height: 1;
}

.title-text {
  line-height: 1.2;
}

p {
  font-size: 1.2em;
  margin-top: 10px;
}

/* Bouton thème */
.theme-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
  transition: transform 0.2s;
}

.theme-btn:hover {
  transform: scale(1.2);
}

/* Footer */
footer {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 0.9em;
  color: #b0b0b0; /* gris clair */
}

/* Mode clair */
body.light {
  background: #f4f4f4;
  color: #333;
}

body.light footer {
  color: #666; /* gris foncé en clair */
}

/* Animations */
@keyframes fadePulse {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* --- Responsive design --- */

/* Tablettes */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2em;
  }

  p {
    font-size: 1em;
  }

  .logo {
    width: 90px;
  }
}

/* Mobiles */
@media (max-width: 480px) {
  h1 {
    font-size: 1.6em;
    gap: 0.3em; /* réduit espace mais reste aligné */
  }

  .emoji {
    font-size: 1.6em;
  }

  p {
    font-size: 0.9em;
  }

  .logo {
    width: 70px;
  }

  footer {
    font-size: 0.8em;
  }
}