/* 
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    max-height: 80px;
    background: rgba(34, 34, 34, 0.75);
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}
*/

#cookie-banner {
    display: none;
    position: fixed;
    bottom: 20px; /* Remonte légèrement pour ne pas être collé en bas */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    max-height: 120px;
    background: rgba(34, 34, 34, 0.95);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden; /* ✅ Empêche le défilement vertical */
}

/* ✅ Espacement entre les boutons sans ajouter de div */
#cookie-banner button {
    margin: 10px; /* ✅ Ajoute un espace autour des boutons */
    padding: 10px 20px; /* ✅ Rend les boutons plus gros et visibles */
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

/* ✅ Styles des boutons */
#cookie-banner button:first-of-type {
    background: green;
    color: white;
}

#cookie-banner button:last-of-type {
    background: red;
    color: white;
}

/* ✅ Sur mobile : boutons en colonne */
/*
@media (max-width: 600px) {
    #cookie-banner {
        text-align: center;
    }
    
    #cookie-banner button {
        display: block; 
        width: 100%;
    }
}
*/
body {
            background-color: black;
            color: #E1F917;
            /*font-family: 'Playwrite IN';*/
            text-align: center;
            margin: 0;
            padding: 0; margin: 0;
            /*text-shadow: 4px 4px 4px #aaa;*/
}

.page {
    position: absolute;
    width: 100%;
    /*min-height: 100vh;*/
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px); /* Décalage latéral */
    transition: 
        opacity 0.5s ease, 
        visibility 0.5s ease, 
        transform 1.5s ease;
}

/* Page visible */
.page.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Ramène à sa position d'origine */
    display: block;
}

h2 {
    font-size: 2em;
    font-family: 'Allura', cursive;
}

.header-welcome img {
    display: block;
    margin: 20px auto;
    /*width: 679px;*/
    width: 340px;*/
    height: auto;
}

.button-continuer {
    background: none; /* Supprime le fond */
    border: none; /* Supprime la bordure */
    padding: 0; margin: 0; /* Supprime les marges internes */
    cursor: pointer; /* Curseur de lien au survol */
}

.button-continuer img {
    display: block;
    width: auto;
    height: auto;
}

.std-button {
    background: none; /* Supprime le fond */
    border: none; /* Supprime la bordure */
    padding: 0; margin: 0; /* Supprime les marges internes */
    cursor: pointer; /* Curseur de lien au survol */
}

.std-button img {
    display: block;
    width: auto;
    height: auto;
}

.header-snap img {
    width: 150px !important;
    height: auto;
    margin: 0 auto 10px auto;
    display: block;
}

.button-accepter {
    background: none; /* Supprime le fond */
    border: none; /* Supprime la bordure */
    padding: 0; margin: 0; /* Supprime les marges internes */
    cursor: pointer; /* Curseur de lien au survol */
}

.button-accepter img {
    display: block;
    width: auto;
    height: auto;
}

.content {
    max-width: 680px;
    font-family: 'Playwrite IN';
    font-size: 1em;
    margin: 20px auto;
    text-align: justify;
    color: white;
}

.highlight {
    color: #E1F917;
    font-weight: bold;
}

.button img {
    display: block;
    width: 200px;
    height: auto;
    margin: 20px auto;
}

.emoji {
    font-size: 1.5em;
}

.cgu {
    width: 100%; /* Prend toute la largeur */
    font-family: Arial, sans-serif; /* Police Arial */
    background-color: black; /* Couleur de fond */
    color: #E1F917; /* Couleur du texte */
    text-align: center; /* Texte centré */
    padding: 10px 0; /* Espace interne pour le texte */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5); /* Ombre légère */
    z-index: 1000; /* Pour s'assurer qu'elle est au-dessus des autres éléments */
}
.cgu a {
    color: #E1F917; /* Couleur du texte */
    text-decoration: none; /* Supprime le soulignement */
    font-size: 0.75em; /* Taille du texte */
    font-weight: bold; /* Texte en gras */
    padding: 10px;
}

.cgu a:hover {
    color: white; 
    text-decoration: underline; 
}

.text-3g {
    font-family: Arial, sans-serif; 
    font-size: 1em; 
}

#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(34, 34, 34, 0.9);
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.cookie-buttons button {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

.cookie-buttons button:first-child {
    background: green;
    color: white;
}

.cookie-buttons button:last-child {
    background: red;
    color: white;
}

/* Ajouts pour la partie record */

.hidden {
    display: none;
}
.blinking {
    animation: blink 1s infinite;
}
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.record-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

#recTimer {
    color: #E1F917;
    font-size: 24px;
    /*font-family: Arial, sans-serif;*/
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-align: center;
}

/* Page de validation */

/* Centrer la section validation sur la page */
#validation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*height: 100vh; /* Pleine hauteur de l'écran */
    text-align: center;
    background: transparent;
}

/* Centrer les boutons avec un bon espacement */
.validation-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px; /* Espacement entre les boutons */
}

.button-validation {
    background: none; /* Supprimer le fond */
    border: none; /* Supprimer la bordure */
    padding: 0; 
    margin: 0;
    cursor: pointer;
}

.button-validation img {
    display: block;
    width: auto;
    height: auto;
    background: transparent; 
}

/* page d'effets */

.effects-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.effect-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    padding: 2px;
    border: 2px solid #03ec00;
    border-radius: 8px;
}

.effect-name {
    flex-grow: 1;
    padding: 2px;
    background: none;
    border: none;
    color: #E1F917;
    font-size: 1.5em;
    text-align: left;
    text-decoration: none; /* Supprime le soulignement par défaut */
}

.effect-name:hover {
    text-decoration: underline; /* Ajoute le soulignement au survol */
    color: #F10082;
}

.play-btn, .choose-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
/*
.play-btn img, .choose-btn img {
    width: 50px;
    height: 50px;
}
*/
#effectName {
    font-size: 1.5em; /* Augmente la taille */
    font-weight: bold;
    color: #E1F917; /* Conserve la couleur du design */
    text-shadow: 2px 2px 4px rgba(255, 255, 0, 0.5);
}

/* Friends */

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: auto;
}

.friend-input-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    padding: 5px;
    border: 2px solid #03ec00;
    border-radius: 8px;
}

.friend-input-container label {
    color: #E1F917;
    font-size: 1em;
    font-weight: bold;
    padding-right: 10px;
}

.friend-input {
    flex-grow: 1;
    padding: 5px;
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    text-align: left;
}

.friend-input:focus {
    outline: none;
    border-bottom: 2px solid #F10082;
}

/* ✅ Centrage de l'image du Snapcode */
.snapcode-img {
    display: block;
    margin: 0 auto; /* ✅ Centre l'image horizontalement */
    max-width: 100%; /* ✅ Empêche l'image de dépasser son conteneur */
    height: auto; /* ✅ Conserve le ratio */
}

/* ✅ Cadre du Snapcode */
.snapcode-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    padding: 10px 20px;
    border: 2px solid #03ec00; /* ✅ Bordure verte comme les autres éléments */
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    margin: 20px auto;
}

/* ✅ Texte "SNAPCODE:" en Arial Bold */
.snapcode-label {
    font-family: Arial, sans-serif;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    margin-right: 10px;
}

/* ✅ Valeur dynamique du Snapcode */
#snapCode1 {
    font-family: 'Arial', sans-serif;
    font-size: 2em;
    color: #E1F917 !important; /* ✅ Texte jaune */
    font-weight: bold;
}

#snapCode3 {
    font-family: 'Arial', sans-serif;
    font-size: 2em;
    color: #E1F917 !important; /* ✅ Texte jaune */
    font-weight: bold;
}

#snapCode5 {
    font-family: 'Arial', sans-serif;
    font-size: 2em;
    color: #E1F917 !important; /* ✅ Texte jaune */
    font-weight: bold;
}

/* ✅ Clignotement de "pendant une heure" */

.clignotant {
    animation: blink-animation 1s infinite alternate;
    color: #E1F917; /* ✅ Jaune pour rester visible */
    font-weight: bold;
}

/* ✅ Animation du clignotement */
@keyframes blink-animation {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* ✅ Style du SnapCode en Orbitron */
#snapCode2 {
    font-family: Arial, sans-serif;;
    font-size: 1em;
    font-weight: bold;
}

#snapCode4 {
    font-family: Arial, sans-serif;;
    font-size: 1em;
    font-weight: bold;
}

#snapCode6 {
    font-family: Arial, sans-serif;;
    font-size: 1em;
    font-weight: bold;
}

/* ✅ Centrer le texte de "valable" */
.valable {
    text-align: center;
    font-size: 1em;
    font-weight: bold;
}
/* ✅ Centrer toute la section startMobile */
#startMobile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; /* ✅ Centre aussi le texte */
    height: 100vh; /* ✅ Pleine hauteur pour bien centrer */
}
/* Centrer le texte */
#startMobile h2,
#startMobile p {
    text-align: center;
}

/* Centrer les images */
#startMobile .header-snap img {
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
}

/* Centrer les boutons */
#startMobile .button-validation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
}

#NoMessenger {
    font-family: Arial, sans-serif !important;
    color: white !important;
    background-color: black !important; /* S'assure que le fond est noir */

}

#NotCompat {
    font-family: Arial, sans-serif !important;
    color: white !important;
    background-color: black !important; /* S'assure que le fond est noir */
}
