@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-family: 'Crimson-text', serif;
}


.no-underline {
    text-decoration: none;
    color: #6f42c1;
    transition: color 0.2s ease-in-out,
    text-decoration 0.2s ease-in-out;
}

.no-underline:hover {
    text-decoration: underline;
    color: #2c067e;
}


/* Réinitialisation des styles par défaut */


/* Styles globaux */
body {
    font-family: Crimson-text, sans-serif;
    background-color: #464343;
    color: #000000;
    line-height: 1.6;
    padding: 1px;
    margin-bottom: 50px;
    margin-top: 0;
    background-image: url('/media/images/img-bg-8.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed; /* L'image reste fixe pendant le défilement */


}

/* En-tête */
header {
    background-color: transparent;
    color: #ffffff;
    padding-top: 0;
    text-align: center;
}

[role="banner"] {

    padding-top: 0;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

/*Navigation */
nav {
    background-color: #2f3844;
    border-bottom: 1px solid #ffffff;
    /*border-radius: 5px;*/
    padding: 1px 1px;
    margin-outside: 1px;
    text-align: center;
    /*overflow: hidden;*/
    font-family: Crimson-text, sans-serif;
    position: relative;
    z-index: 1;

}

/* Changement uniquement si le menu collapse est déplié */
#navbarNav.collapsing .nav-item,
#navbarNav.show .nav-item {
    text-transform: uppercase;

    padding: 10px 0; /* Ajuste l'espacement */
    text-align: left; /* Alignement centré (optionnel) */
    border-top: 1px solid #8f8a8a;
    font-weight: bold;


}

/*.navbar-nav {*/
/*    --bs-nav-link-color: rgb(255, 255, 255);*/
/*    --bs-nav-link-hover-color: rgba(193, 171, 191, 0.75);*/
/*}*/

/* Option pour forcer le comportement flex dans "show" */
#navbarNav.show .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Espacement entre les éléments */
}

/*nav ul {*/
/*    list-style-type: none;*/
/*    !*margin: 5px;*!*/
/*    !*padding: 5px;*!*/
/*    display: flex;*/
/*    !*justify-content: center;*!*/
/*    font-family: Crimson-text, sans-serif;*/
/*    !*border : 1px solid #000000;*!*/
/*    !*border-radius: 5px;*!*/
/*}*/

/*nav ul li {*/
/*    margin: 5px 5px;*/
/*    font-family: Crimson-text, sans-serif;*/
/*    color: #000000;*/


/*}*/

/*nav ul li a {*/
/*    color: #000000;*/
/*    text-decoration: none;*/
/*    padding: 10px 10px;*/
/*    display: block;*/
/*    font-family: Crimson-text, sans-serif;*/
/*}*/

/*nav ul li a:hover {*/
/*    background-color: #e9e5f8;*/
/*}*/

/*.nav-item {*/
/*    margin: 5px 5px;*/
/*    font-family: Crimson-text, sans-serif;*/
/*    color: #ffffff;*/
/*    background-color: #000000;*/
/*    border-radius: 25px;*/
/*    flex-shrink: 0;*/
/*}*/

/*.nav-item a {*/
/*    border: 1px solid #ffffff;*/
/*    border-radius: 25px;*/
/*    color: white;*/
/*"*/
/*}*/

/*.nav-link {*/
/*    white-space: nowrap;*/
/*}*/

/*.navbar {*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    flex-wrap: wrap;*/
/*    width: 100%;*/
/*    padding-top: 0;*/
/*    padding-bottom: 0;*/
/*    !*background-color: #343232;*!*/
/*    background-color: rgba(134, 131, 131, 0.15);*/
/*}*/

/*.navbar-toggler {*/
/*    background: #ffffff;*/
/*    color: #000000;*/
/*}*/

/*.navbar-brand {*/

/*}*/

.dropdown-menu {
    background-color: #1a1a1a;
    color: #ffffff;
    /*border: 1px solid #ffffff;*/
    border-radius: 25px;
    margin-top: 0;
    left: 50%;

}

.dropdown-item {
    color: #ffffff;
    font-family: 'Crimson-text', serif;
    font-size: 15px;
}

/*.dropdown-toggle {*/
/*    color: #ffffff ; !* Force le texte blanc *!*/
/*    background-color: #000000;*/
/*}*/

/*.dropdown-toggle:hover {*/
/*    color: #000000;*/
/*    background-color: #ffffff;*/
/*}*/

/* Contenu principal */
main {
    /*padding: 5px;*/
    background-color: rgba(0, 0, 0, 0);
    color: #ffffff;
    padding-bottom: 20px;
    font-family: 'Crimson-text', serif;
}

.img-thumbnail-brand {
    padding: 0;
    margin: 0;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
}

/* Sections */
section {
    margin-bottom: 40px;
}


/* Paragraphes */
p {
    margin-bottom: 20px;
    font-family: 'Crimson-text', serif;
}

/* Liens */
a {
    color: #0a1928;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Boutons */
button {
    background-color: #ffffff;
    color: #c0c8ea;
    border: none;
    /*padding: 1px 1px;*/
    cursor: pointer;
    font-size: 1em;
}

button.blindtest {
    background-color: #0f5132;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #332a4d;
    color: #ffffff;

}


button:hover a {
    color: #ffffff;
    font-family: 'Crimson-text', serif;
}

/* Formulaires */

form {
    /*background-color: #ffffff;*/
    padding: 2px;
    border-radius: 2px;
    margin-bottom: 2px;
}

form label {
    display: block;
    margin-bottom: 10px;
    color: #000000;
}

form input, form textarea {
    width: 100%;
    padding: 1px;
    margin-bottom: 0;
    border: 1px solid #e70a0a;
    border-radius: 4px;
}

form input[type="submit"] {
    background-color: #FF8C00;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background-color: #FFA500;
}

/* Pied de page */

footer {
    background-color: transparent;
    border-top: 1px groove #000000;
    color: #ffffff;
    text-align: center;
    padding: 10px 1px;
    position: fixed;
    width: 100%;
    bottom: 0;
    height: 50px;
    margin-top: 10px;
}

footer p {
    margin: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: row;
    }

    /*nav ul li {*/
    /*    margin: 10px 0;*/
    /*}*/
    header h1 {
        font-size: 2em;
    }
}


.image-noir {

    background-color: #000000;
    border: 1px solid #ffffff;
    border-radius: 100px;
    margin-bottom: 10px;
    margin-left: 10px;
    padding: 5px;
}

.image-ronde {
    background-color: #000000;
    border-radius: 50%;
    width: 300px;
    height: 200px;
    object-fit: cover;
    border: 2px solid #ffffff; /* Ajout d'une bordure blanche */
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2); /* Ajouter une ombre */

}


label[for="id_contenu"] {
    color: white; /* Le texte du label devient blanc */
    font-weight: bold; /* Facultatif : rend le texte plus visible */
    font-size: 16px; /* Facultatif : ajuste la taille de la police */

}

.form-title h2, h3 {
    color: #000000;
    font-family: 'Crimson-text', serif;
}

.exercice h2 {
    color: #000000;
    font-family: 'Crimson-text', serif;
}

.exercice h3 {
    color: #000000;
    font-family: 'Crimson-text', serif;
}

div.exercice-aleatoire h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-family: 'Crimson-text', serif;
}

/*.accordion-body{*/
/*    background-color: #000000;*/
/*    color: #ffffff;*/
/*}*/

/* Lorsque la barre n'est pas effondrée (largeur supérieure à 992px - Bootstrap lg breakpoint) */
@media (min-width: 992px) {
    .nav-link {
        font-size: 1.25rem; /* Taille correspondant à fs-5 */
    }
}

/* Par défaut (barre effondrée ou pour petits écrans) */
@media (max-width: 991.98px) {
    .nav-link {
        font-size: 1rem; /* Taille de base ou personnalisée */
    }
}

.custom-badge-correction {
    display: inline-block;
    padding: 0.25em 0.4em; /* Exemple pour un badge */
    font-size: 1.25rem; /* Correspond à fs-5 */
    background-color: #96232a; /* bg-danger (rouge Bootstrap) */
    color: #fff;
    border-radius: 0.25rem; /* Badge arrondi */
    font-weight: 700; /* Style du texte pour le badge */
    text-align: center;
    vertical-align: baseline;
}

.custom-badge-aide {
    display: inline-block;
    padding: 0.25em 0.4em; /* Exemple pour un badge */
    font-size: 1.25rem; /* Correspond à fs-5 */
    background-color: #12540a; /* bg-danger (rouge Bootstrap) */
    color: #fff;
    border-radius: 0.25rem; /* Badge arrondi */
    font-weight: 700; /* Style du texte pour le badge */
    text-align: center;
    vertical-align: baseline;
}

.custom-badge-reset {
    display: inline-block;
    padding: 0.25em 0.4em; /* Exemple pour un badge */
    font-size: 1.25rem; /* Correspond à fs-5 */
    background-color: #540a30; /* bg-danger (rouge Bootstrap) */
    color: #fff;
    border-radius: 0.25rem; /* Badge arrondi */
    font-weight: 700; /* Style du texte pour le badge */
    text-align: center;
    vertical-align: baseline;
}

.custom-badge-reveal {
    padding: 5px 10px;
    border: none;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

#audio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Espacement entre les pistes */
    margin-top: 20px;
}

.track {
    /*display: flex;*/
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width:  100%;
    background: #2b123d;
}

.track-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.audio-element {
    width: 100%;
    max-width: 100%;
}

/*.accordion-toggler:hover {*/
/*  color: red; !* Couleur au survol *!*/
/*}*/
/*.accordion-toggler:hover:not(.collapsed) { !* Couleur au survol lorsque l'accordéon est ouvert  *!*/
/*    color: blue;*/
/*}*/

.accordion-toggler:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); /* remplacez FF0000 par le code couleur voulu */


}

.accordion-toggler:not(.collapsed):hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000000'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); /* remplacez FF0000 par le code couleur voulu */
}


.container-music {
    display: flex;

    align-items: center;
    flex-direction: column;
    height: 100vh;
    text-align: center;
}
.container-badge {
    display: flex;

    align-items: center;
    flex-direction: column;
    text-align: center;
}
.custom-badge-play {
    background-color: #05111e;
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 24px;
    border-radius: 10px;
    cursor: pointer;
    display: none; /* Initialement caché */
}
.custom-badge-stop {
    background-color: #a40000;
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 24px;
    border-radius: 10px;
    cursor: pointer;
    display: none; /* Initialement caché */
}
.custom-badge-replay {
    background-color: #631e7a;
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 24px;
    border-radius: 10px;
    cursor: pointer;
    display: none; /* Initialement caché */
}
.custom-badge-difficulte {

    background-color: #3f6900;
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 24px;
    border-radius: 10px;
    cursor: pointer;
    display : inline-flex;


}

.custom-badge-maj {

    background-color: #5b061b;
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 24px;
    border-radius: 10px;
    cursor: pointer;
    display : inline-flex;


}

.custom-quote {
    color: #1e0442; /* Changez cette couleur selon vos besoins */
    font-size: 16px; /* Vous pouvez également ajuster la taille de la police */
}
.custom-quote-label label {
    color: blue; /* Changez cette couleur selon vos besoins */
    font-size: 16px; /* Vous pouvez également ajuster la taille de la police */
}



.authors-list {
            /*{#position: absolute;#}*/
            top: 20px;
            right: 20px;
        }
.form-game .form-label {
    color: #ffffff; /* Changez cette couleur selon vos besoins */
    font-size: 16px; /* Vous pouvez également ajuster la taille de la police */
}
.assigned {
    
    text-decoration-color: black;
    text-decoration-line: line-through;
    text-decoration-thickness: 2px;
}

#authors-list-container {
    position: fixed;
    top: 50%;
    left: 80%;
    transform: translate(-50%, -50%);

    padding: 20px;
    border-radius: 8px;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
}

#authors-ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}