/* Importer les polices de caractères vintage / steampunk
   (@import déplacé en tête de fichier : requis par la spécification CSS pour être pris en compte) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Special+Elite&family=IM+Fell+English&family=Montserrat:wght@300;400;600&display=swap');

html, body {
  overflow: hidden;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Styles pour l'écran de connexion - Version steampunk / train de l'Avent */
.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 92vh;
  /* Arrière-plan dégradé acier / nuit polaire */
  background: linear-gradient(135deg, #050914, #0d131d, #131922, #0d131d, #050914);
  background-size: 400% 400%;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  animation: gradientShift 15s ease infinite;
}

/* Flocons de neige / blizzard givré pour l'écran de connexion */
.login-screen:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle, rgba(235, 242, 250, 0.55) 0 1.5px, transparent 2.5px),
    radial-gradient(circle, rgba(235, 242, 250, 0.35) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(220, 232, 245, 0.25) 0 2.5px, transparent 4px);
  background-size: 97px 113px, 61px 79px, 151px 137px;
  background-position: 0 0, 23px 41px, 67px 19px;
  z-index: -1;
}

.login-container {
  /* Panneau de contrôle en fer forgé avec rivets aux angles */
  background:
    radial-gradient(circle at 12px 12px, #c5a059 0 2.5px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 12px) 12px, #c5a059 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 12px calc(100% - 12px), #c5a059 0 2.5px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #c5a059 0 2.5px, transparent 3.5px),
    linear-gradient(160deg, rgba(19, 25, 34, 0.96), rgba(13, 19, 29, 0.96) 50%, rgba(5, 9, 20, 0.97));
  padding: 40px;
  border-radius: 12px;
  /* Ombre portée + biseau intérieur cuivré */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6),
              inset 0 0 3px 2px rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(197, 160, 89, 0.55); /* Encadrement laiton */
  text-align: center;
  max-width: 400px;
  width: 90%;
  z-index: 1;
  animation: fadeIn 1s ease-out;
  position: relative;
  overflow: auto;
  filter: brightness(1.1);
}

/* Liseré lumineux ambré façon lueur de lanterne */
.login-container:before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 12px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.3), transparent, rgba(212, 175, 55, 0.3), rgba(230, 126, 34, 0.2));
  animation: borderGlow 6s linear infinite;
}

.login-title {
  margin-bottom: 30px;
  color: #f3e3bf;
  font-size: 28px;
  font-weight: 400;
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  text-shadow: 0 0 15px rgba(255, 153, 0, 0.7), 0 2px 2px rgba(0, 0, 0, 0.8);
  position: relative;
  padding-bottom: 12px;
}

.login-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.95), transparent);
}

.login-input {
  width: 85%;
  padding: 16px;
  margin: 12px 0 22px 0;
  border: none;
  border-bottom: 2px solid rgba(197, 160, 89, 0.5);
  background-color: rgba(5, 9, 20, 0.7);
  color: #eadcc0;
  font-size: 17px;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.8px;
  box-sizing: border-box;
}

.login-input:focus {
  background-color: rgba(255, 153, 0, 0.1);
  border-color: rgba(255, 153, 0, 0.85);
  box-shadow: 0 0 15px rgba(255, 153, 0, 0.4);
  outline: none;
}

.login-input::placeholder {
  color: rgba(197, 160, 89, 0.65);
}

.login-btn {
  padding: 14px 28px;
  font-size: 1.0em;
  border: 1px solid rgba(197, 160, 89, 0.7);
  background-color: rgba(19, 25, 34, 0.9);
  color: #d4af37;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  border-radius: 6px;
  width: 85%;
  letter-spacing: 1.5px;
  box-shadow: 0 0 12px rgba(230, 126, 34, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.login-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 153, 0, 0.35), transparent);
  transition: left 0.5s ease;
}

.login-btn:hover {
  background-color: rgba(230, 126, 34, 0.3);
  color: #fff3d6;
  border-color: rgba(255, 153, 0, 0.95);
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.5);
}

.login-btn:hover:before {
  left: 100%;
}

.error-message {
  color: #e74c3c;
  margin-top: 18px;
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.8px;
  text-shadow: 0 0 8px rgba(231, 76, 60, 0.6);
}

.success-message {
  color: #2ecc71;
  margin-top: 18px;
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.8px;
  text-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}

.logo {
  position: absolute;
  top: 25px;
  left: 25px;
  width: 130px;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(255, 153, 0, 0.7));
  animation: pulseLogo 4s ease-in-out infinite;
}

.logo:hover {
  transform: scale(1.08);
}

/* Animations */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes borderGlow {
  0% { opacity: 0.4; }
  50% { opacity: 0.9; }
  100% { opacity: 0.4; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseLogo {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(255, 153, 0, 0.7));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 153, 0, 1));
  }
}

/* Arrière-plan : acier et nuit polaire */
body {
  background: linear-gradient(135deg, #050914, #0d131d, #131922, #0d131d, #050914);
  background-size: 400% 400%;
  color: #eadcc0; /* Texte parchemin */
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: gradientShift 15s ease infinite;
}

/* Blizzard givré : flocons de tailles variées */
body:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle, rgba(235, 242, 250, 0.5) 0 1.5px, transparent 2.5px),
    radial-gradient(circle, rgba(235, 242, 250, 0.3) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(220, 232, 245, 0.22) 0 2.5px, transparent 4px);
  background-size: 97px 113px, 61px 79px, 151px 137px;
  background-position: 0 0, 23px 41px, 67px 19px;
  z-index: -1;
}

/* Conteneur principal : panneau de contrôle en fer forgé, cadre cuivré, rivets */
.container {
  width: 90%;
  max-width: 650px;
  background:
    radial-gradient(circle at 14px 14px, #c5a059 0 3px, transparent 4px),
    radial-gradient(circle at calc(100% - 14px) 14px, #c5a059 0 3px, transparent 4px),
    radial-gradient(circle at 14px calc(100% - 14px), #c5a059 0 3px, transparent 4px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #c5a059 0 3px, transparent 4px),
    linear-gradient(160deg, rgba(19, 25, 34, 0.96), rgba(13, 19, 29, 0.96) 50%, rgba(5, 9, 20, 0.97));
  border-radius: 15px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7),
              inset 0 0 5px 3px rgba(212, 175, 55, 0.22);
  backdrop-filter: blur(18px);
  border: 3px solid rgba(197, 160, 89, 0.6); /* Encadrement laiton */
  padding: 45px;
  text-align: center;
  z-index: 1;
  animation: fadeIn 1s ease-out;
  position: relative;
  overflow: visible;
  filter: brightness(1.15);
}

/* Lueur de lanterne autour du conteneur */
.container:before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 15px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.3), transparent, rgba(212, 175, 55, 0.3), rgba(230, 126, 34, 0.2));
  animation: borderGlow 6s linear infinite;
}

/* Styles du menu déroulant pour la traduction */
#translate-dropdown {
  position: fixed;
  top: -10px;
  right: 25px;
  z-index: 9999;
}

.dropdown-btn {
  background-color: rgba(19, 25, 34, 0.92);
  color: #d4af37;
  padding: 10px 16px;
  font-size: 10px;
  border: 1px solid rgba(197, 160, 89, 0.6);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 120px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.dropdown-btn:hover {
  background-color: rgba(230, 126, 34, 0.28);
  border-color: rgba(255, 153, 0, 0.8);
  box-shadow: 0 0 12px rgba(255, 153, 0, 0.4);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(5, 9, 20, 0.97);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
  z-index: 1;
  width: 120px;
  top: 45px;
  right: 0;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.5);
}

.dropdown-content a {
  color: #d4af37;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
  font-size: 13px;
  letter-spacing: 0.8px;
}

.dropdown-content a:hover {
  background-color: rgba(230, 126, 34, 0.22);
}

/* Affichage du menu au clic */
#translate-dropdown:hover .dropdown-content {
  display: block;
  animation: fadeDown 0.3s ease-out;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Compteur à vapeur */
#countdown-timer {
  position: fixed;
  top: 60px;
  right: 100px;
  background: linear-gradient(160deg, rgba(19, 25, 34, 0.95), rgba(5, 9, 20, 0.95));
  padding: 14px 22px;
  border-radius: 12px;
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  letter-spacing: 1.8px;
  color: #ffb340;
  border: 2px solid rgba(197, 160, 89, 0.65);
  box-shadow: 0 0 15px rgba(230, 126, 34, 0.35), inset 0 0 6px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 9999;
  text-shadow: 0 0 8px rgba(255, 153, 0, 0.7);
  animation: glowCountdown 4s ease-in-out infinite alternate;
}

/* Score display : manomètre émeraude */
#score-display {
  position: fixed;
  top: 110px;
  right: 147px;
  background: linear-gradient(160deg, rgba(19, 25, 34, 0.95), rgba(5, 9, 20, 0.95));
  padding: 12px 20px;
  border-radius: 10px;
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  letter-spacing: 1.2px;
  color: #2ecc71;
  border: 2px solid rgba(197, 160, 89, 0.55);
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.3), inset 0 0 6px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 9999;
  text-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
  animation: glowScore 3s ease-in-out infinite alternate;
}

/* Animation lumineuse douce pour le score */
@keyframes glowScore {
  from {
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3), inset 0 0 6px rgba(0, 0, 0, 0.8);
  }
  to {
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6), inset 0 0 6px rgba(0, 0, 0, 0.8);
  }
}

/* Animation lumineuse douce - lanterne de locomotive */
@keyframes glowCountdown {
  from {
    box-shadow: 0 0 12px rgba(230, 126, 34, 0.3), inset 0 0 6px rgba(0, 0, 0, 0.8);
  }
  to {
    box-shadow: 0 0 25px rgba(255, 153, 0, 0.6), inset 0 0 6px rgba(0, 0, 0, 0.8);
  }
}

/* Logo animé */
.logo {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 60px;
  z-index: 2;
  filter: drop-shadow(0 0 12px rgba(255, 153, 0, 0.8));
  animation: pulseLogo 4s ease-in-out infinite;
  animation: logoBounce 3s ease-in-out infinite;
}

@keyframes pulseLogo {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(255, 153, 0, 0.8));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(255, 153, 0, 1));
  }
}

/* Titre gravé façon plaque de locomotive */
h1 {
  font-family: 'Cinzel', serif;
  font-size: 2em;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #f3e3bf;
  text-shadow: 0 0 18px rgba(255, 153, 0, 0.75), 0 2px 3px rgba(0, 0, 0, 0.9);
  margin-bottom: 25px;
  font-weight: 400;
  padding-bottom: 15px;
  position: relative;
}

h1:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 1), transparent);
}

/* Boutons : plaques de laiton sur fer forgé */
button {
  padding: 14px 28px;
  font-size: 1.0em;
  border: 1px solid rgba(197, 160, 89, 0.7);
  background-color: rgba(19, 25, 34, 0.9);
  color: #d4af37;
  text-transform: uppercase;
  margin-top: 25px;
  font-family: 'Cinzel', serif;
  border-radius: 6px;
  width: calc(45% - 10px);
  letter-spacing: 1.5px;
  box-shadow: 0 0 12px rgba(230, 126, 34, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 153, 0, 0.35), transparent);
  transition: left 0.5s ease;
}

button:hover {
  background-color: rgba(230, 126, 34, 0.28);
  color: #fff3d6;
  border-color: rgba(255, 153, 0, 0.95);
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.5);
}

button:hover:before {
  left: 100%;
}

/* Style de la popup : hublot de locomotive */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(160deg, rgba(19, 25, 34, 0.98), rgba(5, 9, 20, 0.98));
  color: #ffb340;
  padding: 30px 45px;
  border-radius: 10px;
  backdrop-filter: blur(18px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(230, 126, 34, 0.35);
  text-align: center;
  font-family: 'IM Fell English', serif;
  font-size: 1.3em;
  opacity: 0;
  transition: all 0.4s ease-in-out;
  z-index: 9999;
  border: 2px solid rgba(197, 160, 89, 0.65);
  max-width: 85%;
  letter-spacing: 0.8px;
}

/* Effet d'apparition : braise */
.popup.show {
  opacity: 1;
  animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
  from { box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(230, 126, 34, 0.35); }
  to { box-shadow: 0 0 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 153, 0, 0.55); }
}

/* Bouton "Voir la solution" discret */
#solutionBtn {
  border: 1px solid rgba(197, 160, 89, 0.4);
  background-color: transparent;
  color: rgba(197, 160, 89, 0.7);
  font-size: 0.8em;
  padding: 8px 15px;
  width: calc(35% - 10px);
  opacity: 0.8;
  transition: all 0.3s ease;
}

#solutionBtn:hover {
  opacity: 1;
  color: rgba(255, 179, 64, 0.95);
  border-color: rgba(255, 153, 0, 0.7);
  background-color: rgba(230, 126, 34, 0.1);
}

/* Bouton "Indice" */
#hintBtn {
  border: 1px solid rgba(197, 160, 89, 0.65);
  background-color: rgba(212, 175, 55, 0.1);
  color: rgba(212, 175, 55, 0.95);
  font-size: 0.9em;
  transition: all 0.3s ease;
}

#hintBtn:hover {
  background-color: rgba(230, 126, 34, 0.25);
  color: #fff3d6;
  border-color: rgba(255, 153, 0, 0.9);
}

/* Champ de réponse : plaque gravée */
input[type="text"] {
  width: 85%;
  padding: 14px;
  margin: 22px 0;
  border: none;
  border-bottom: 2px solid rgba(197, 160, 89, 0.5);
  background-color: rgba(5, 9, 20, 0.7);
  color: #eadcc0;
  font-size: 17px;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.8px;
}

input[type="text"]:focus {
  background-color: rgba(255, 153, 0, 0.1);
  border-color: rgba(255, 153, 0, 0.85);
  box-shadow: 0 0 15px rgba(255, 153, 0, 0.4);
  outline: none;
}

/* Effet de placeholder */
input[type="text"]::placeholder {
  color: rgba(197, 160, 89, 0.65);
}

/* Style pour les flèches de navigation : médaillons de laiton */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(212, 175, 55, 0.9);
  font-size: 2.0em;
  cursor: pointer;
  user-select: none;
  z-index: 10;
  transition: all 0.3s ease;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(13, 19, 29, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.55);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.arrow:hover {
  color: #fff3d6;
  background-color: rgba(230, 126, 34, 0.3);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.5);
}

.arrow-left {
  left: 25px;
}

.arrow-right {
  right: 25px;
}

/* Transition pour les énigmes */
.enigme-container {
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}

.enigme-hidden {
  opacity: 0;
}

/* Pied de page */
.footer-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  width: 90%;
  max-width: 650px;
  color: rgba(197, 160, 89, 0.85);
  font-size: 0.9em;
  letter-spacing: 1.2px;
}

#legal-mentions-link {
  font-size: 0.9em;
  color: rgba(197, 160, 89, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

#legal-mentions-link:hover {
  color: #ffb340;
  text-shadow: 0 0 8px rgba(255, 153, 0, 0.75);
}

#footer-text {
  font-size: 0.9em;
  color: rgba(197, 160, 89, 0.85);
}

/* Mentions légales : registre du chef de train */
.legal-container {
  max-width: 95%;
  margin: 15px auto;
  padding: 30px;
  background-color: rgba(13, 19, 29, 0.97);
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(197, 160, 89, 0.3);
  font-family: 'Montserrat', sans-serif;
  color: #eadcc0;
  line-height: 1.7;
  overflow-y: auto;
  max-height: 70vh;
  border: 2px solid rgba(197, 160, 89, 0.55);
}

.legal-container h1 {
  font-size: 2em;
  color: #d4af37;
  text-align: center;
  margin-bottom: 25px;
  letter-spacing: 3px;
  text-shadow: 0 0 15px rgba(255, 153, 0, 0.6), 0 2px 3px rgba(0, 0, 0, 0.9);
}

.legal-container p, .legal-container ul {
  font-size: 1.05em;
  color: #eadcc0;
}

/* Ajuster le défilement global */
body {
  overflow: hidden;
}

.container {
  overflow-y: auto;
  max-height: calc(100vh - 40px);
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 160, 89, 0.6) rgba(5, 9, 20, 0.8);
}

/* Style pour les barres de défilement */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(5, 9, 20, 0.8);
}

::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, 0.55);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 153, 0, 0.8);
}

/* Animations pour les messages de réponse */
.animate-correct {
  animation: pulseSuccess 0.9s;
}

.animate-incorrect {
  animation: pulseError 0.9s;
}

@keyframes pulseSuccess {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); }
  70% { box-shadow: 0 0 0 25px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

@keyframes pulseError {
  0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.6); }
  70% { box-shadow: 0 0 0 25px rgba(231, 76, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Effet de particules : flocons / escarbilles flottantes */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: rgba(235, 242, 250, 0.6);
  border-radius: 50%;
  animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100vh) translateX(30px);
    opacity: 0;
  }
}

#hintText,
#solutionText,
#message {
  margin-top: 20px;
  font-size: 1.1em;
  text-shadow: 0 0 10px rgba(255, 153, 0, 0.35);
}