body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0088cc, #004080);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
  }
  
  .container {
    text-align: center;
    max-width: 800px;
    padding: 20px;
  }
  
  .title {
    font-size: 3em;
    margin-bottom: 0.2em;
  }
  
  .subtitle {
    font-size: 1.2em;
    margin-bottom: 2em;
    color: #e0e0e0;
  }
  
  .mode-box {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .mode-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 15px;
    width: 300px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }
  
  .mode-card:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .mode-card h2 {
    margin-top: 0;
  }
  
  .fade-in {
    animation: fade 1.2s ease forwards;
    opacity: 0;
  }
  
  @keyframes fade {
    to {
      opacity: 1;
    }
  }
  
  .footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 0.9em;
    color: #cccccc;
    pointer-events: none;
    user-select: none;
  }
  
  .topbar {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
  }
  
  .login-btn {
    background-color: #ffffff22;
    border: 1px solid #ffffff44;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .login-btn:hover {
    background-color: #ffffff33;
  }
  
  .register-link {
    display: inline-block;
    margin-top: 10px;
    color: #cccccc;
    font-size: 0.9em;
    text-decoration: none;
  }
  
  .register-link:hover {
    color: white;
    text-decoration: underline;
  }
  
  /* Ajoutez ce code à votre fichier styles.css */

/* Menu utilisateur */
.user-menu {
  position: relative;
}

.user-button {
  background-color: #ffffff22;
  border: 1px solid #ffffff44;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.user-button:hover {
  background-color: #ffffff33;
}

/* Dropdown menu */
.user-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #004080;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 180px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  margin-top: 10px;
  z-index: 100;
}

.user-dropdown.open {
  max-height: 200px;
  opacity: 1;
}

.dropdown-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #005c99;
}

/* Modal de profil */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 200;
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.3s forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: linear-gradient(135deg, #0088cc, #004080);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: modalContentSlideIn 0.3s forwards;
}

@keyframes modalContentSlideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8em;
  cursor: pointer;
  color: #cccccc;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: white;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9em;
  color: #e0e0e0;
}

.modal-content input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #005c99;
  background-color: rgba(255, 255, 255, 0.07);
  color: white;
  font-size: 1rem;
}

.modal-content button {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  border: none;
  border-radius: 8px;
  background-color: #00aaff;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #008ecc;
}

.error-msg {
  color: #ff8888;
  margin-top: 10px;
  font-size: 0.9em;
  text-align: center;
}

.modal-content input {
  width: 100%;
  padding: 12px 15px;
  margin-top: 5px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #005c99;
  background-color: rgba(255, 255, 255, 0.07);
  color: white;
  font-size: 1rem;
  box-sizing: border-box;
}

.captcha-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* Styles pour le bouton désactivé */
button[disabled] {
  background-color: #cccccc !important;
  cursor: not-allowed !important;
}

/* Assurer que le reCAPTCHA est bien visible sur le fond du modal */
#recaptcha {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 4px;
}

#recaptcha {
  background-color: transparent !important;
  padding: 0;
  margin: auto;
  display: flex;
  justify-content: center;
}

/* --- Styles pour le mode "En travaux" --- */

/* On grise la carte et on empêche le clic */
.mode-card.disabled {
  position: relative; /* Nécessaire pour positionner la banderole */
  opacity: 0.6;       /* Rend la carte semi-transparente */
  cursor: not-allowed; /* Affiche un sens interdit au survol */
  pointer-events: none; /* Désactive totalement les clics (JS ne se lancera pas) */
  overflow: hidden;    /* Pour couper la banderole qui dépasse */
  background-color: rgba(0, 0, 0, 0.2); /* Fond un peu plus sombre */
}

/* On annule l'effet de grossissement au survol défini plus haut */
.mode-card.disabled:hover {
  transform: none;
  background-color: rgba(0, 0, 0, 0.2);
}

/* Le conteneur de la banderole jaune */
.construction-banner {
  position: absolute;
  top: 50%;
  left: -20%; /* On fait déborder pour pouvoir incliner */
  width: 230%;
  background: #ffcc00; /* Jaune chantier */
  color: black;
  padding: 10px 0;
  transform: translateY(-50%) rotate(-5deg); /* Centré et incliné */
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  border-top: 4px solid black;
  border-bottom: 4px solid black;
  z-index: 10;
  
  /* Motif hachuré noir et jaune subtil en fond (optionnel) */
  background-image: linear-gradient(
    45deg, 
    rgba(0,0,0,0.1) 25%, 
    transparent 25%, 
    transparent 50%, 
    rgba(0,0,0,0.1) 50%, 
    rgba(0,0,0,0.1) 75%, 
    transparent 75%, 
    transparent
  );
  background-size: 20px 20px;
}

/* Le texte qui défile */
.scrolling-text {
  font-weight: 900;
  font-size: 1.2em;
  white-space: nowrap; /* Empêche le texte de passer à la ligne */
  text-transform: uppercase;
  animation: scroll 6s linear infinite; /* Animation de défilement */
}

/* L'animation */
@keyframes scroll {
  0% {
    transform: translateX(100%); /* Départ à droite */
  }
  100% {
    transform: translateX(-100%); /* Arrivée à gauche */
  }
}
.discord-float {
  position: static;
  right: 22px;
  bottom: 22px;
  z-index: 9999;

  /* zone cliquable */
  width: 96px;
  height: 96px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;

  transition: transform 140ms ease, filter 140ms ease;
}

.discord-float img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.discord-float:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.discord-float:active {
  transform: scale(0.98);
}

/* optionnel : un peu plus petit sur mobile */
@media (max-width: 480px) {
  .discord-float,
  .discord-float img {
    width: 72px;
    height: 72px;
  }
}

/* --- Styles pour les boutons flottants (Discord & PayPal) --- */
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: row; /* Pour aligner à droite */
  gap: 0px;
  z-index: 1000;
  align-items: flex-end;
}

.float-btn {
  width: 60px; /* Taille ajustée pour être moins envahissant */
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease;
  border-radius: 50%; /* Cercle parfait si l'image est transparente */
}

.float-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.float-btn:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.4));
}

/* --- Styles spécifiques pour le Modal de Bienvenue --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000; /* Au-dessus de tout */
  display: flex; /* Flex pour centrer */
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.welcome-content {
  background: linear-gradient(135deg, #004e92, #000428);
  border: 2px solid #00aaff;
  max-width: 600px;
  width: 90%;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  text-align: left;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.welcome-text p {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 12px;
  color: #e0e0e0;
}

.welcome-text b {
  color: #00aaff;
}

.modal-footer {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

.modal-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9em;
  color: #ccc;
  user-select: none;
}

.modal-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

#closeWelcomeBtn {
  background: #00aaff;
  border: none;
  padding: 12px 30px;
  color: white;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.3s;
  width: auto;
}

#closeWelcomeBtn:hover {
  background: #0088cc;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
}