/*  Theme Name:   Thème enfant pour 7LifeRP 
Theme URI:    https://sevenliferp.fr
Description:  Description
Author:       Jawel  
Author URI:   https:// 
Template:     gameon  
Version:      0.1.0 */

/* Carrousel des avis */
.avis-carousel-container {
    display: flex;
    overflow: hidden;
    margin: 20px auto;
    max-width: 100%;
    justify-content: center;
    gap: 20px;
}

.avis-slide {
    width: 30%; /* Afficher 3 avis à la fois sur les grands écrans */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    text-align: center;
    box-sizing: border-box;
}

/* Pour les écrans moyens (tablettes) */
@media (max-width: 768px) {
    .avis-slide {
        width: 45%; /* Afficher 2 avis à la fois sur les écrans moyens */
    }
}

/* Pour les petits écrans (téléphones) */
@media (max-width: 480px) {
    .avis-slide {
        width: 100%; /* Afficher 1 avis à la fois sur les petits écrans */
    }
}

/* Caractéristiques des étoiles */
.star {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

/* Chemins des images d'étoiles du thème enfant */
.star.full {
    background-image: url('images/full_star.png'); /* Étoile pleine */
}

.star.half {
    background-image: url('images/half_star.png'); /* Demi-étoile */
}

.star.empty {
    background-image: url('images/empty_star.png'); /* Étoile vide */
}

/* Caractéristiques générales des avis */
.avis-comment {
    font-size: 16px;
    font-style: italic;
    color: #555;
}

.avis-user {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    text-align: right;
}

.avis-rating {
    margin-bottom: 5px;
    font-size: 16px;
    display: flex;
    justify-content: center; /* Aligner les étoiles horizontalement */
    gap: 2px; /* Espacement entre les étoiles */
}

.avis-rating strong {
    color: #333;
}

/* Points de navigation */
.dots-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #3498db;
}

/* Tableaux de classement */
.classement-table {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    font-family: "Arial", sans-serif;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.classement-table th, .classement-table td {
    padding: 12px 18px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.classement-table th {
    background-color: #2c3e50;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.classement-table tr:nth-child(even) {
    background-color: #f4f6f9;
}

.classement-table tr:nth-child(odd) {
    background-color: #ecf0f1;
}

.classement-table tr:hover {
    background-color: #bdc3c7;
}

.classement-table td {
    color: #2c3e50;
}

.classement-table .rank {
    color: #2c3e50;
    font-size: 18px;
    font-weight: bold;
    width: 60px;
}

.classement-table .vote-count {
    padding: 8px 16px;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 70px;
    max-width: 100px;
    width: auto;
    margin: 0 auto;
    text-align: center;
    transition: background-color 0.3s ease;
    height: 40px; /* Ajuste la hauteur des encadrés pour mieux les centrer */
}

/* Limiter la largeur de la colonne Nombre de votes */
.classement-table td:nth-child(3) {
    width: 120px; /* Réduit la largeur de la colonne des votes */
}

/* Dégradé de couleurs pour chaque plage de votes */
.classement-table .vote-count[data-votes="1"] {
    background: linear-gradient(to right, #ff6a00, #ff4500);
}

.classement-table .vote-count[data-votes="2"] {
    background: linear-gradient(to right, #ff9800, #ff5722);
}

.classement-table .vote-count[data-votes="3"] {
    background: linear-gradient(to right, #f39c12, #f1c40f);
}

.classement-table .vote-count[data-votes="4"] {
    background: linear-gradient(to right, #2ecc71, #27ae60);
}

/* Button styles for month toggle */
.button-container {
    text-align: center;
    margin: 20px 0;
}

.button-container button {
    background-color: #3498db;
    color: white;
    font-size: 16px;
    padding: 12px 30px;
    margin: 0 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button-container button:hover {
    background-color: #2980b9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .classement-table th, .classement-table td {
        font-size: 14px;
        padding: 8px 12px;
    }

    .classement-table .rank {
        font-size: 18px;
    }

    .classement-table .vote-count {
        font-size: 14px;
        display: flex; /* Assure un comportement flexbox */
        justify-content: center; /* Centre le contenu horizontalement */
        align-items: center; /* Centre le contenu verticalement */
    }

    .avis-slide {
        width: 45%; /* Afficher 2 avis à la fois sur les écrans moyens */
    }
}

@media (max-width: 480px) {
    .classement-table th, .classement-table td {
        font-size: 12px;
        padding: 6px 10px;
    }

    .classement-table .vote-count {
        font-size: 12px;
    }

    .avis-slide {
        width: 90%; /* Afficher 1 avis à la fois sur les petits écrans */
    }
}
