/* === Base === */
body {
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin: 0;
}

h1 {
  margin-bottom: 30px;
  font-size: 2rem;
}

/* === Bouton retour accueil === */
#home-button {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
  background: #ff7b00;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  transition: background 0.3s, transform 0.2s;
}
#home-button:hover {
  background: #ff9800;
  transform: scale(1.05);
}

/* === Boutons couleurs === */
#buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.color-btn {
  width: 120px;
  height: 60px;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
}
.color-btn:hover {
  transform: scale(1.1);
}

/* === Zone résultat === */
#resultat {
  margin-top: 20px;
}

#resultat img {
  width: 90%;
  max-width: 400px;   /* Limite sur grand écran */
  height: auto;
  margin: 20px 0;
}

#action {
  font-size: 2rem;
  font-weight: bold;
}

/* === Media Queries === */

/* Tablettes */
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  .color-btn { width: 100px; height: 50px; font-size: 1rem; }
  #action { font-size: 1.5rem; }
  #home-button { font-size: 16px; padding: 8px 14px; }
}

/* Smartphones */
@media (max-width: 480px) {
  body { padding: 15px 10px; }
  h1 { font-size: 1.2rem; margin-bottom: 20px; }
  .color-btn { width: 80px; height: 45px; font-size: 0.9rem; }
  #action { font-size: 1.2rem; }
  #home-button { font-size: 14px; padding: 6px 12px; }
}
