#popup-overlay-astuces {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond noir semi-transparent */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#popup-content-astuces {
    background-image: url('/logos/astuces.jpg'); /* Remplace par l'URL de ton image */
    background-size: cover;
    background-position: center;
    padding: 60px;
    border-radius: 20px;
    width: 70%;
    max-width: 800px;
    max-height: 70vh; /* Limite la hauteur de la popup à 70% de la hauteur de la fenêtre */
    text-align: center;
    transform: scale(0);
    transition: transform 0.5s ease-in-out;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto; /* Ajoute un ascenseur vertical si le contenu dépasse */
}

#popup-overlay-astuces.active {
    display: flex;
}

#popup-content-astuces.active {
    transform: scale(1); /* Apparition progressive */
}

.popup-content-text-astuces {
    background-color: rgba(0, 100, 0, 0.7); /* Fond vert foncé semi-transparent */
    color: white;
    padding: 20px;
    border-radius: 10px; /* Coins arrondis */
    max-width: 90%;
    margin: 0 auto; /* Centrer le conteneur */
    display: inline-block; /* Limite le fond à la taille du texte */
}

.popup-content-text-astuces p {
    color: white;
    font-family: 'Friandise', serif;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.popup-content-text-astuces h2 {
    color: white;
    font-family: 'Friandise', serif;
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
}

/* Centrage du bouton */
#close-astuce {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#close-astuce:hover {
    background-color: #45a049;
}

/* Animation de scintillement pour le contour */
.popup-content-text-astuces {
    border: 2px solid transparent;
    animation: scintillement 1.5s infinite;
}

@keyframes scintillement {
    0% {
        border-color: rgba(255, 255, 255, 0.1);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.8);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Darker background */
.popup-content-text-astuces {
    background-color: rgba(0, 50, 0, 0.7); /* Ajuste à un vert plus foncé */
}
.admin-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    position: relative;
    z-index: 1100; /* Ajoute un z-index plus élevé pour que les boutons soient au-dessus du contenu */
}

.btn-admin {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 1100; /* S'assurer que les boutons sont bien visibles */
}

.btn-admin:hover {
    background-color: #45a049;
}
#test-button {
    position: fixed;
    top: 50px;
    left: 50px;
    padding: 10px 20px;
    background-color: red;
    color: white;
    z-index: 9999;
}
