
.category {
    margin-right: 40px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 30px;
    background-color: rgb(242, 242, 242);
}

.category_title {
    padding: 5px;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: center;
}

.category_content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.info-icon {
    display: none; /* Cache l'icône sur les écrans plus larges */
}

/* Assure-toi que l'élément parent a une position relative */
.nomme {
    position: relative; /* Important pour que l'icône soit positionnée correctement */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre l'affiche et les boutons */
    text-align: center;
    width: 150px; /* Taille fixe pour harmoniser */
    margin: 10px;
}

.nomme img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: transform 0.3s ease-in-out;
}

.nomme img:hover {
    transform: scale(1.1);
}

.vote-options {
    display: flex;
    justify-content: center; /* Centre les boutons sous l'affiche */
    gap: 10px; /* Espacement entre les boutons */
    margin-top: 5px;
}

.vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, transform 0.2s;
}

.vote-btn i {
    margin-right: 5px;
}

.vote-btn.selected {
    background-color: #0D9A0D !important;
    color: white;
}

.vote-btn:hover {
    transform: scale(1.1);
}

.vote-info {
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.vote-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.vote-card {
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.vote-card i {
    font-size: 20px;
    color: #007bff;
}

.vote-actions {
    margin-top: 15px;
}

.btn-info {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    margin: 5px;
}

.btn-info:hover {
    background-color: #0056b3;
}

.participants {
    margin-top: 20px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.instructions {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}


/* Tablettes */
@media (max-width: 991px) {
    .category_main {
        margin-right: 0;
    }
}

/* Téléphones */
@media (max-width: 767px) {
    .category_content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nomme {
        width: 100%; /* Pour éviter les dépassements */
        max-width: 200px;
    }

    .vote-options {
        flex-direction: column; /* Aligne les boutons verticalement si besoin */
    }

    .info-icon {
        display: block; /* Affiche l'icône sur les écrans mobiles */
        position: absolute;
        top: -15px; /* Ajuste la position en fonction de l'espacement souhaité */
        left: 50%;
        color: white;
        cursor: pointer;
        font-size: 24px; /* Ajuste la taille de l'icône si nécessaire */
        z-index: 10;
        background-color: transparent; /* Supprime le fond gris */
        border: none; /* Supprime la bordure du bouton */
        border-radius: 50%; /* Rend l'icône ronde */
        padding: 10px; /* Ajoute un espacement pour faire la taille du cercle */
    }

    .info-icon:hover {
        color: #0D9A0D; /* Change la couleur de l'icône lors du survol (si nécessaire) */
        transform: scale(1.2); /* Optionnel : agrandit l'icône au survol */
    }
}

