@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

/* --------------- */
/* GLOBAL */
/* --------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #555555;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #1c1c1e; /* Gris sombre */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

h1 {
    text-align: center;
    color: #AC94F4!important; /* Or */
    text-transform: uppercase!important;
    margin-bottom: 25px;
    font-size: 2em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

thead {
    background-color: #643B9F; /* Violet foncé */
    color: #ffffff;
}

th, td {
    padding: 15px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #555555; /* Gris pour les bordures */
    position: relative;
    color: #fff;
}

th {
    background: #333333 !important;
    color: #d4af37; /* Or */
}

tbody tr:nth-child(even) {
    background-color: #2a2a2d; /* Gris foncé */
}

tbody tr:hover {
    background-color: #000; /* Gris légèrement plus clair au survol */
}

.container .text {
    font-size: 25px;
    color: #d4af37; /* Or */
    font-weight: 500;
}

.table-secondary {
    background: #AC94F4!important;
    border: none!important;
    font-weight: normal!important;
}

.btn {
    border: none!important;
}
.btn-primary {
    background: #d4af37!important;
    color: #000!important;
}
.btn-success {
    background: #643B9F!important;
    color: #fff!important;
}
.container .heart-widget input,
.container .difficulty-widget input {
    display: none;
}

.heart-widget label, .difficulty-widget label {
    font-size: 18px;
    color: #3a3a3d; /* Or */
    padding: 3px;
    float: right;
    transition: all 0.2s ease;
    cursor: pointer;
}
/* Ajouter cette classe à votre fichier style.css */

/* Ajouter ces classes à votre fichier style.css */
.table-success-light td {
    background: #AC94F4!important; /* Vert pâle */
}

.table-success-dark td {
    background: #643B9F!important; /* Vert un peu plus foncé */
}
.table-success td {
    background: #AC94F4!important; /* Couleur vert pâle */
}

.table-warning td, .table-warning  {
    background: #855f52!important; /* Couleur vert pâle */
}
.table-error td, .table-error  {
    background: #ab0101!important; /* Couleur vert pâle */
}


/* --------------- */
/* TOGGLE */
/* --------------- */
.form-check-input:checked {
    background-color: #d4af37; /* Or */
    border-color: #d4af37;
}

.form-check-input {
    background-color: #444444;
}

/* --------------- */
/* DESIRE */
/* --------------- */
.heart-widget input.heart:not(:checked) ~ label:hover,
.heart-widget input.heart:not(:checked) ~ label:hover ~ label.fa-heart {
    color: #AC94F4; /* Rose profond */
    text-shadow: 1px 1px 2px #643B9F; /* Rose pour l'effet de survol */
    transform: rotate(-15deg) scale(1.3);
}

.heart-widget input:checked ~ label.fa-heart {
    color: #AC94F4; /* Rose vif */
}

/* --------------- */
/* ZERO */
/* --------------- */
input.rate-1:checked ~ label {
    color: #AC94F4;
}

input.rate-0:not(:checked) ~ label.fa-times:hover {
    color: #AC94F4; /* Rose profond */
    text-shadow: 1px 1px 1px #643B9F;
}

/* --------------- */
/* FIVE */
/* --------------- */
input.rate-7:checked ~ label.fa-heart {
    color: #AC94F4; /* Or */
    transform: rotate(15deg) scale(1.1);
}
div#progress-link-container, #progress-link-container-bottom {
    word-break: break-word;
}
/* --------------- */
/* BARRE DE PROGRESSION */
/* --------------- */
.progress-container {
    width: 100%;
    background-color: #444444; /* Gris foncé */
    border-radius: 5px;
    height: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0; /* Commence à 0% */
    background-color: #d4af37; /* Or */
    border-radius: 5px;
    transition: width 0.4s ease; /* Animation pour la progression */
    position: relative;
}

/* Texte du pourcentage */
#progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-weight: bold;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Conteneur de description */
.description-text, .description2-text {
    position: absolute;
    top: 100%; /* Positionné juste en dessous des icônes */
    left: 0;
    width: 100%;
    padding: 5px;
    background-color: #4b0082; /* Violet foncé */
    border: 1px solid #4b0082; /* Bordure or */
    border-radius: 5px;
    color: #ffffff;
    text-align: center;
    opacity: 0; /* Masquer par défaut */
    visibility: hidden; /* Masquer par défaut */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Transition douce */
    z-index: 10; /* Placer au-dessus des autres éléments */
}

/* Afficher la description lorsqu'elle a du contenu */
.description-text.show, .description2-text.show {
    opacity: 1;
    visibility: visible;
}

/* --------------- */
/* MEDIA QUERIES */
/* --------------- */
@media (max-width: 575px) {
    p, td, th {
        font-size: xx-small !important;
    }

    .heart-widget label, .difficulty-widget label {
        font-size: 13px;
        padding: 1px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    p, td, th {
        font-size: x-small !important;
    }

    .heart-widget label, .difficulty-widget label {
        font-size: 14px;
        padding: 2px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    p, td, th {
        font-size: small !important;
    }

    .heart-widget label, .difficulty-widget label {
        font-size: 16px;
        padding: 2px;
    }
}

