/* Global Styles */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;    
    font-family: Arial, sans-serif;
    background-color: #fff;
}

html {
    zoom: 1; /* Assure que le zoom est bien à 100% */
}

/* Header */
.header {
    position: relative;
    top: 0;
    width: 100%;
    height: 10%;
    min-height: 40px;
    color: #000000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 2px solid #000000;
    /*overflow: hidden; /* Empêche les éléments de dépasser */
    background-color: #3e4562; /* bleu foncé/gris futuriste */

}
  
.title {
    font-size: 1.5rem;
    margin: 0;
}

/* Main Content */

main {
    background: linear-gradient(135deg, #0d0d1a, #1a1a2e);
    overflow: hidden;
    z-index: 0;
    padding: 20px;
    padding-bottom: 20px;
    height:90%
  }
  
  /* Grille techno fine */
  main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
      linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
  }
  
  /* Glow dynamique flottant */
  main::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,255,255,0.15), transparent 70%);
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatGlow 12s ease-in-out infinite alternate;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
  }
  
  @keyframes floatGlow {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-40%, -60%) scale(1.3); }
  }
  
  

#scoreList li {
    font-size: 0.8rem; /* Ajuste la taille du texte */
    color: #ffffff; /* Optionnel : Définit une couleur */
    margin-bottom: 5px; /* Espacement entre les lignes */
}

#scoreList li span {
    font-size: 0.8rem; /* Taille plus petite pour l'ID */
    color: rgb(217, 217, 217);
}


.rules-section, .score-section {
    background-color: rgba(255, 255, 255, 0.06); /* blanc très transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* pour Safari */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.03); /* glow futuriste léger */
    color: #f0f0f0;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  /* Titre dans les panneaux */
  .rules-section .section-title,
  .score-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  

.rules-text {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.6;
}

.rules-text strong {
    color: #d2d2d2;
    font-weight: 600;
}

.rules-text .highlight {
    text-transform: uppercase;
    font-weight: 600;
}

/* Container for all commands */
.commands-container {
    display: flex; /* Aligne les éléments horizontalement */
    justify-content: space-between; /* Ajoute un espacement entre les blocs */
    align-items: center; /* Aligne verticalement les éléments */
    gap: 20px; /* Espace entre chaque commande */
    margin-top: 10px;
    flex-wrap: wrap; /* Force les éléments à aller à la ligne si nécessaire */

}


/* Individual command styling */
.command {
    display: flex; /* Aligne le texte et les images horizontalement */
    align-items: center; /* Centre les éléments verticalement */
    gap: 10px; /* Espace entre le texte et l'image */
}


.key-img-group {
    display: flex; /* Aligne les flèches horizontalement */
    gap: 10px; /* Espacement entre les images des flèches */
}

/* Key image styling */
.key-img {
    width: 40px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Ombre légère */
}

.key-img-spacebar {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Ombre légère */
}
.touch-img {
    width: 50px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Ombre légère */
}

#logo {
    height: 40px; /* Préserve les proportions du logo */
    width: auto; /* Préserve également la largeur */
    margin-top: 10px;
    margin-bottom: 10px;
}




/* Timer */
#timer {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Buttons */
button {
    width: 100%;
    padding: 10px;
    background-color: #ffc107;
    border: none;
    color: #343a40;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
button:hover {
    background-color: #e0a800;
}
/* Authentication Buttons */
.auth-buttons {
    display: flex;
    gap: 10px; /* Espacement entre les boutons */
    align-items: center;
    margin-right: 5%;
}

.btn-auth {
    background-color: #ffffff; /* Jaune cohérent */
    color: #000000; /* Contraste avec le jaune */
    padding: 6px 15px; /* Augmente l'espacement interne */
    font-size: 0.85rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 100px; /* Assure une largeur minimale suffisante */
    text-align: center; /* Centrage du texte */
    border: 2px solid #000000;
}

.btn-auth:hover {
    background-color: #000000; /* Jaune plus sombre au survol */
    color: #ffffff;
}


/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Background semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.profil-modal-content {
    background-color: #1b1f2a; /* non transparent, mais sombre et élégant */
    padding: 30px;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    color: #e0e0e0;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .profile-picture {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
  }
  
  .profile-info h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
  }
  
  .profile-section {
    display: flex;
    justify-content: space-between; /* facultatif */
    align-items: center;
    gap: 10px; /* espacement entre les deux si tu veux */
  }
  
  .profile-section h2,
  .profile-section button {
    flex: 1;
  }
  
  
  .separator {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .logout-btn {
    align-self: center;
    background-color: #ff4c4c;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .logout-btn:hover {
    background-color: #ff2f2f;
  }
  
.modal-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px; /* Taille maximale */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espacement entre les éléments */
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #333333;
    cursor: pointer;
    font-weight: bold;
}

.modal-content h2 {
    margin: 0 0 10px 0;
    text-align: center;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espacement entre les champs */
}

form label {
    font-size: 1rem;
    font-weight: bold;
}

form input {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box; /* Inclut le padding dans la largeur */
}

form button {
    background-color: #ffc107;
    color: #343a40;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #e0a800; /* Teinte légèrement plus foncée au survol */
}

.btn-restart{
    max-width: 50%;
    height : auto;
}

/* Timer Section */
.timer-container {
    text-align: center; /* Centre le timer horizontalement */
    font-size: 2rem; /* Augmente légèrement la taille */
    margin-bottom: 20px; /* Espacement sous le timer */
    font-weight: 500;
}
.timer-item{
    font-size: 2rem;
    font-weight:500;
}

/* Button Section */
.button-container {
    display: flex;
    justify-content: center; /* Centre le bouton Restart */
    margin-bottom: 20px; /* Espacement sous le bouton */
}

/* Scoreboard Section */
.scoreboard-container h3 {
    text-align: center; /* Centre le titre du Scoreboard */
    margin-bottom: 10px;
    color: #fafafa; /* Conserve la couleur pour la cohérence */
}

.scoreboard-container ul {
    list-style: none; /* Retire les puces des listes */
    padding: 0; /* Supprime les marges internes */
    margin: 0; /* Supprime les marges externes */
    text-align: left; /* Aligne les scores à gauche */
}

.scoreboard-container ul li {
    font-size: 1.1rem; /* Taille réduite pour les éléments de liste */
    padding: 5px 0; /* Espacement vertical entre les scores */
    border-bottom: 1px solid #ddd; /* Ligne séparatrice entre les scores */
}



.profile-img{
    max-width: 50px;
    margin-right: 10%;
   
}


.user-name,
.user-id {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
}

.url-display-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.url-display {
    font-size: 0.9rem;
    color: #ffffff;
    margin: 0;
}

.change-url-modal.hidden {
    display: none;
}


.change-url-modal-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    text-align: center;
    z-index: 1010;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.hidden {
    display: none; /* Cache le modal par défaut */
}


/* Chat Section */
.chat-section {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%; /* Prend toute la largeur de la colonne */
    height: 300px; /* Taille fixe totale pour le chat */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Chat Messages */
.chat-messages {
    margin-top: 50px;
    flex-grow: 1;
    overflow-y: auto; /* Permet le défilement si nécessaire */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: rgba(100, 140, 255, 0.07); 
    height: 200px; /* Taille fixe pour la zone des messages */
}

/* Messages individuels */
.chat-messages div {

    margin-bottom: 10px;
    font-size: 0.9rem;
    word-wrap: break-word; /* Coupe les mots trop longs pour éviter de déborder */
}

/* Chat Input */
.chat-input {
    display: block;
    align-items: center;
    height: 50px; /* Taille fixe pour la zone d'entrée */
    width : 100%;
}

/* Champ d'entrée de texte */
#chatInput {
    flex-grow: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.8rem;
    height: 100%; /* Occupe toute la hauteur disponible */
    width: 100%;
    box-sizing: border-box; /* Inclut le padding dans la hauteur totale */
    background-color: rgba(100, 140, 255, 0.07); 
    color: white; /* texte tapé */


}
  
  /* Placeholder blanc */
  #chatInput::placeholder {
    color: rgba(255, 255, 255, 0.5); /* un peu plus doux que blanc pur */
  }
.btn-auth-chat{
    background-color: #ffffff; /* Jaune cohérent */
    color: #000000; /* Contraste avec le jaune */
    padding: 6px 15px; /* Augmente l'espacement interne */
    font-size: 0.85rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%; /* Assure une largeur minimale suffisante */
    text-align: center; /* Centrage du texte */
    border: 2px solid #000000;
    margin-top: 5px;
}
.btn-auth-chat:hover {
    background-color: #000000; /* Jaune plus sombre au survol */
    color: #ffffff;
}

/* Style pour le rang du joueur connecté */
.player-rank-highlight {
    font-weight: bold;
    color: #000 !important; /* Noir pour cohérence */
    background-color: #ffffff !important; /* Légère surbrillance pour différencier */
    padding: 5px;
    border-radius: 5px; /* Coins arrondis pour une intégration fluide */
    margin-top: 10px; /* Espacement par rapport à la liste */
}

/* Style de base pour les nouvelles modales */
.modal-custom {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 300px;
    max-width: 80%;
    padding: 20px;
    display: none; /* Masqué par défaut */
}

/* Contenu de la modal */
.modal-custom-content {
    text-align: center;
}

/* Bouton de fermeture de la modal */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

/* Styles pour les images dans les modales */
.modal-image {
    display: block;
    margin: 0 auto; /* Centrer horizontalement */
    max-width: 100%; /* Empêcher les images de dépasser la largeur */
    max-height: 150px; /* Limiter la hauteur */
    border-radius: 8px; /* Coins arrondis pour les images */
    object-fit: cover; /* Assure un bon ajustement des images */
    margin-bottom: 15px; /* Espacement sous l'image */
}
/* Styles pour le texte des modales */
.modal-content p {
    text-align: center; /* Centrer le texte */
    font-size: 1.2rem; /* Agrandir la taille du texte */
    font-weight: bold; /* Rendre le texte plus visible */
    margin: 10px 0; /* Ajouter un peu d'espace autour du texte */
    color: #333; /* Couleur neutre pour un bon contraste */
}

.footer {
    background-color: #3e4562; /* bleu foncé/gris futuriste */
    padding-top: 5px;
    padding-bottom: 0;
    font-size: 0.7rem; /* Taille de texte */
    color: #333; /* Couleur du texte */
    text-align: center; /* Texte centré */
    border-top: 1px solid #e0e0e0; /* Ligne légère en haut */
}

.footer .escape-info {
    margin: 0; /* Supprime tout espacement autour */
    font-size: 0.7rem; /* Ajuste la taille du texte si nécessaire */
    color: #666; /* Couleur discrète */
}
.user-url {
    font-size: 0.7rem;
    color: #555; /* Couleur légèrement différente pour distinguer l'URL */
    margin-top: 5px; /* Espacement entre le texte et l'URL */
    margin-bottom : 0px;
    word-break: break-word; /* Permet de gérer les URL longues */
}

.title {
    font-family: 'Arial', sans-serif; /* Police simple et moderne */
    font-size: 2rem; /* Taille de texte adaptée pour un header */
    font-weight: bold; /* Texte en gras pour mettre en valeur */
    color: #333; /* Couleur sombre mais pas trop agressive */
    text-transform: uppercase; /* Texte en majuscules pour plus d'impact */
    margin: 0; /* Supprime les marges par défaut */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* Ajoute une ombre discrète */
}

.text-center {
    min-height: 0; /* Ajuste correctement la hauteur */
    overflow: hidden; /* Empêche le débordement */
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-center-footer{
    display: flex;
    flex-direction: column; /* Aligne les éléments verticalement */
    justify-content: center; /* Centre verticalement les éléments */
    align-items: center; /* Centre horizontalement les éléments */
    text-align: center; /* Centre le texte à l'intérieur des éléments */
    height: 100%; /* S'assure que l'espace vertical est bien pris en compte */
}

.container-fluid {
    max-width: 100vw; /* Empêche Bootstrap de forcer un zoom */
}




#game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 90vw; /* Ne dépasse pas la largeur de l'écran */
    height: auto;
}

#game-map {
    width: 100%;
    height: auto;
    max-height: 80vh; /* Empêche que le SVG devienne trop grand */
    z-index: 1;
}


/* Effet d'apparition */
#levelImage.show {
    opacity: 1;
    transform: scale(1.2);
}

/* Effet de rebond après apparition */
#levelImage.bounce {
    animation: bounce 3s ease-out;
}

@keyframes bounce {
    0% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1.2); }
}

/* Conteneur du niveau */
.level-display {
    text-align: center; /* Centre l'image et le texte */
    margin-top: 10px; /* Espacement sous le timer */
}

/* Image */
#levelImage {
    width: 60px; /* Ajuste la taille de l’image pour ne pas être trop grande */
    display: block;
    margin: 0 auto; /* Centre l'image */
    opacity: 0;
    transform: scale(0.5); /* Commence plus petit */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}


#levelImage.show {
    opacity: 1;
    transform: scale(1.2);
}

/* Texte du niveau */
#levelText {
    font-size: 18px;
    font-weight: bold;
    color: #cccccc; /* Couleur verte pour rappeler ton thème */
    margin-top: 5px;
}



/* Masquer le bandeau sur les grands écrans */
.bottom-nav {
    display: none; /* Caché par défaut */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #000;
    display: flex;
    justify-content: space-around;
    align-items: center;

}

/* Boutons du menu bas */
.nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    background: none; /* Supprime l'arrière-plan */
    border: none; /* Supprime la bordure */
    outline: none; /* Supprime l'effet de sélection */
    flex-direction: column; /* Aligner l’image et le texte en colonne */
    align-items: center; /* Centrer horizontalement */
    justify-content: center; /* Centrer verticalement */
}

.nav-btn:focus,
.nav-btn:active {
    background: none !important; /* Empêche la mise en surbrillance */
    outline: none; /* Supprime la bordure de focus */
    box-shadow: none; /* Supprime tout effet de surbrillance */
}

/* Afficher le bandeau uniquement en dessous de 1399px */
@media (max-width: 1200px) {
    #nav-bar {
        display: flex; /* Afficher le bandeau */
    }
    .footer{
        display: none; /* Afficher le bandeau */

    }
    #profil{
        display : none !important;
    }

    
}
@media (min-width: 1201px) {
    #nav-bar {
        display: none; /* Afficher le bandeau */
    }
    .footer{
        display: flex; /* Afficher le bandeau */

    }
}
/* SECTIONS CACHÉES PAR DÉFAUT SUR MOBILE */
@media (max-width: 1200px) {
    #div-rules,
    #container-chat-message,
    #TopScores {
        display: none;
    }
    #container-chat-message{
        height: 60vh;
    }
    #chatMessages{
        height: 400px;
    }
    #div-rules-chat{
        padding-bottom: 30px;
    }
}

/* AFFICHER LA SECTION ACTIVE */
@media (max-width: 1200px) {
    .active {
        display: block !important;
    }
}

/* CACHER LE JEU LORSQUE UNE SECTION EST ACTIVE */
@media (max-width: 1200px) {
    #game-container.hidden {
        display: none;
    }
}

@media (max-width: 1200px) {
    #showLogin {
        display: none !important;
    }
    #showLoginMobile {
        display: inline-block;
    }
    #icon-reseau{
        display: none !important;
    }
}

/* En grand écran, afficher le bouton Connexion dans le header */
@media (min-width: 1201px) {
    #showLogin {
        display: inline-block;
    }
    #showLoginMobile {
        display: none !important;
    }
    #icon-reseau{
        display: flex !important;
    }
}

#gamebtn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
}

#gamebtn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
}

.game-icon {
    margin-top: -20px; /* Monte l’image */
    width: 80px; /* Ajuste la taille si besoin */
    height: auto;
}

#Topbtn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    margin-top: 5px;
}
#rulesbtn{
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    margin-top: 5px;
}
.rules-icon{
    width: 20px; /* Ajuste la taille si besoin */
    height: auto; 
}
.rank-icon{
    width: 30px; /* Ajuste la taille si besoin */
    height: auto; 
}
.nav-text {
    font-size: 12px; /* Taille du texte */
    color: #A7A7A7; /* Couleur du texte */
    margin-top: 5px; /* Espacement entre l'image et le texte */
    text-align: center;
}
.chat-icon{
    width: 20px; /* Ajuste la taille si besoin */
    height: auto; 
}
.connexion-icon{
    width: 30px; /* Ajuste la taille si besoin */
    height: auto; 
}
.account-icon{
    width: 30px; /* Ajuste la taille si besoin */
    height: auto; 
}
.separator {
    border: none;
    border-top: 2px solid rgba(0, 0, 0, 0.5);
    margin: 10px 0;
}
.modal-image-email {
    display: block;
    margin: 0 auto; /* Centrer horizontalement */
    width: 50px; /* Empêcher les images de dépasser la largeur */
    height: 50px; /* Limiter la hauteur */
    border-radius: 8px; /* Coins arrondis pour les images */
    object-fit: cover; /* Assure un bon ajustement des images */
    margin-bottom: 15px; /* Espacement sous l'image */
}
.error-message {
    color: red ! important;
    font-size: 0.9rem ! important;
    margin-top: 5px ! important;
    text-align: left ! important;
}
.forgot-password {
    text-align: left !important;
    margin-top: 0px;
    margin-bottom: 0px;
}

.forgot-password a {
    color: #007bff; /* Bleu standard */
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.success-message {
    color: green !important;
    font-size: 0.9rem !important;
    margin-top: 5px !important;
    text-align: left !important;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    margin: 0 8px;
    color: #000000;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #00acee; /* Twitter blue par exemple */
}
.hamburger-menu {
    position: absolute;
    right: 20px;
    z-index: 10000;
    display: none; /* Caché sur grand écran */
  }
  
  .menu-icon {
    font-size: 30px;
    cursor: pointer;
    user-select: none;
  }
  
  #menu-toggle {
    display: none;
  }
  
  .menu-content {
    display: none;
    flex-direction: column;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    position: absolute;
    right: 0;
    top: 40px;
    min-width: 160px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10000;
    border-radius: 5px;

  }
  
  .menu-content a {
    text-decoration: none;
    color: black;
    padding: 8px 5px;
    font-size: 14px;
  }
  
  .menu-content a:hover {
    background-color: #f2f2f2;
  }
  
  #menu-toggle:checked + .menu-icon + .menu-content {
    display: flex;
  }
  
  /* Apparition seulement sur petits écrans */
  @media screen and (max-width: 1200px) {
    .hamburger-menu {
      display: block;
    }
  }
  

.footer a {
    color: #808080; /* gris clair */
    text-decoration: underline;
}

.footer a:hover {
    color: #686868; /* un gris un peu plus foncé au survol, optionnel */
}

.cookie-banner {
    display:"none" !important;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: #f0f0f0;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
}

.cookie-banner a {
    color: #ccc;
    text-decoration: underline;
}

.cookie-banner button {
    max-width: 100px;
    margin-left: 15px;
    padding: 8px 18px;
    background-color: #4CAF50; /* Vert vif */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0; /* Empêche le bouton de se compresser */
    white-space: nowrap; /* Empêche le retour à la ligne */
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
    background-color: #45a049; /* Vert légèrement plus foncé au survol */
}


/* Par défaut (mobile) : centre l’élément */
@media (max-width: 1200px) {
    .cookie-banner {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 100px;
    }
}

/* Sur desktop : remet en bas */
@media (min-width: 1201px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
        border-radius: 0;
        max-width: 100%;
        transform: none;
    }
}
.modal-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.share-options {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons-modal {
    display: flex;
    gap: 15px;
    font-size: 24px;
}

.social-icons-modal a {
    color: #333;
    transition: color 0.3s, transform 0.2s;
}

.social-icons-modal a:hover {
    transform: scale(1.2);
    color: #007bff;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    transition: transform 0.2s, color 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
    color: #007bff;
    background: none;

}

.share-label {
    font-size: 16px;
    font-weight: 500;
    margin-right: 10px;
    white-space: nowrap;
}
.small-text {
    font-size: 0.6em;
    color: #000000; /* facultatif : gris plus doux */
    font-style: italic;
}

#glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* pour qu'il reste derrière le texte */
    animation: glowPulse 2s infinite ease-in-out;
    background: radial-gradient(
      circle at center,
      rgba(255, 0, 0, 0.1) 0%,
      rgba(255, 0, 0, 0.3) 50%,
      rgba(255, 0, 0, 0.5) 100%,
      transparent 100%
    );
    pointer-events: none;
    transition: background 0.5s ease-in-out;
    border-radius: 12px; /* pour un arrondi propre si besoin */
  }
  
  
  

  @keyframes glowPulse {
    0% { opacity: 0.2; }
    50% { opacity: 0.6; }
    100% { opacity: 0.2; }
  }
  .flash-effect {
    position: absolute;
    background-color: red;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    transform-origin: center;
    border-radius: 20px;
    transition: all 0.3s ease-out;
  }
  .timer-container{
    position: relative;
  }

  .password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    flex: 1;
    padding-right: 40px; /* pour ne pas cacher le texte sous l'œil */
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    font-size: 18px;
}

