/* Fond sombre pour toute la page */
body {
    background-color: #121212; /* Fond sombre comme raptoreum.com */
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Style de la barre de navigation */
nav {
    background-color: #1a1a1a; /* Fond sombre pour la navigation */
    padding: 10px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    height: 40px;
}

/* Menu déroulant */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    width: 210px;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    min-height: 150px;
}

.dropdown-menu .dropdown-item {
    padding: 2px;
    text-decoration: none;
    color: white;
    transition: background-color 0.3s ease;
    display: block;
    margin: 3px 0;
}

/* Afficher le menu déroulant au survol */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Style de la liste de navigation */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    text-align: center;
    margin: 0 10px;
    color: white;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

.nav-item i {
    font-size: 25px;
    margin-bottom: 5px;
}

/* Effet de survol sur les icônes du menu */
.nav-item:hover {
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    background-color: #333;
    border-radius: 7px;
    padding: 0px;
}

/* Rendre l'élément actif même lorsqu'on n'est pas dessus */
.nav-item.active {
    background-color: #444;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

/* Ajustement du padding-top pour éviter que la barre de menu masque le contenu */
main {
    padding-top: 100px;
}

/* Grille des albums */
.music-grid {
    margin: 0 20px 20px 20px;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.album-card {
    background-color: #333;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: box-shadow 0.3s ease-in-out;
}

.album-card:hover {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.album-image-wrapper {
    position: relative;
    display: inline-block;
}

.album-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

.play-icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 30px;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 
        0 0 5px black, 
        0 0 10px black, 
        0 0 15px black;
}

.album-image-wrapper:hover .play-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile navigation */
@media screen and (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .album-title, .album-artist {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .nav-item i {
        font-size: 25px;
    }

    .album-card {
        padding: 5px;
    }

    .album-title, .album-artist {
        font-size: 12px;
    }

    .play-icon {
        font-size: 25px;
    }
}

/* === Application de la couleur de fond pour tous les blocs === */

/* Fond des sections (3 blocs principaux) */
.section {
    background-color: #333; /* Fond sombre pour chaque section */
    color: white; /* Texte clair pour contraster avec le fond sombre */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
}

/* Pour les titres des sections */
h2, h3 {
    color: #007bff; /* Garder la couleur bleue pour les titres */
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

/* Liste des audios (exemple) */
.audio-list li {
    background-color: #444; /* Un peu plus clair que #333 pour le contraste */
    color: white; /* Texte clair */
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

/* Changer la couleur de fond au survol */
.audio-list li:hover {
    background-color: #555;
}

/* === Style pour le bouton "Ajouter un audio" === */
.add-audio-button {
    background-color: #007bff; /* Fond bleu pour le bouton */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.add-audio-button:hover {
    background-color: #0056b3;
}

.add-audio-button:active {
    background-color: #004085;
}

/* === Supprimer la barre de défilement horizontale et ajuster les sections === */

/* Supprimer la barre de défilement horizontale */
body {
    overflow-x: hidden;
}

.container, .section {
    width: 100%;
    box-sizing: border-box;
}

/* Empêcher les éléments de dépasser du conteneur */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

/* === Ajustements pour la page mobile === */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        flex-direction: column;
        padding: 10px;
    }

    .audio-list, .audio-info {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 480px) {
    .audio-list, .audio-info {
        padding: 10px;
    }
}
.add-audio-button-container {
    text-align: center;
    margin-top: 20px;
}

.add-audio-button {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-align: center;
}

.add-audio-button:hover {
    background-color: #0056b3;
}

.add-audio-button i {
    margin-right: 10px;
}

.error-text {
    color: red;
    font-size: 0.9rem;
}
.form-group {
    margin-bottom: 20px;
}
input[type="text"], input[type="file"], input[type="email"],input[type="password"] {
    width: 100%;
    padding: 8px;
    background-color: #1a1a1a;
    color: white;
    border: 1px solid #444;
    border-radius: 5px;
}
.bottom-section {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.bottom-left, .bottom-center, .bottom-right {
    flex: 1;
    border: 1px solid #333;
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    min-width: 280px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .bottom-section {
        flex-direction: column;
    }

    .bottom-left, .bottom-center, .bottom-right {
        width: 100%;
    }
}

.form-group label {
    color: #007bff; /* bleu vif */
    font-weight: bold;
    font-size: 0.95rem; /* plus petit que les titres principaux */
}

#title-status {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    font-size: 1rem;
    font-weight: bold;
}

#title-status.visible {
    opacity: 1;
}

/* Style pour l'indicateur de chargement */
.loader {
  border: 8px solid #f3f3f3; /* Couleur de fond */
  border-top: 8px solid #3498db; /* Couleur de la partie tournante */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite; /* Animation de rotation */
  margin: 0 auto;
}

/* Animation de rotation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.success {
    color: green;
    font-weight: bold;
}
.error {
    color: red;
    font-weight: bold;
}

/* === Style pour le bouton "Mise à jour compte" === */
.submit-button {
    background-color: #007bff; /* Fond bleu pour le bouton */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0056b3;
}

.submit-button:active {
    background-color: #004085;
}

#audioMintedStatus {
    margin-top: 15px;
}
#mintButton {
    padding: 10px 20px;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

#mintButton:hover {
    background-color: #218838;
}

.success-message {
    color: green;
    background-color: #e6ffed;
    padding: 10px;
    border: 1px solid green;
    border-radius: 5px;
    margin-bottom: 15px;
}
.error-message {
    color: red;
    background-color: #ffe6e6;
    padding: 10px;
    border: 1px solid red;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* === Style pour la page faucet === */
/* --- Centrer le captcha sur la page faucet --- */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 10px 0 20px 0;
}

/* --- Bouton du faucet (même style que les boutons Tuneum) --- */
.btn {
    display: inline-block;
    background-color: #007BFF; /* Bleu Tuneum */
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.btn:active {
    background-color: #004085;
}
