/* =================================================
   PAGE : LISTE DES PROFILS
   Scope : .page-liste-profils UNIQUEMENT
================================================= */

/* Layout principal */
.page-liste-profils {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

/* Titre de page */
.page-liste-profils .page-title {
    grid-column: 1 / -1;
    font-size: 28px;
    text-align: center;
    color: #e040fb;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Section contenant les profils */
.page-liste-profils #liste-profils {
    display: contents;
}

/* Carte profil */
.page-liste-profils .profil {
    display: flex;
    align-items: center;
    background: #2e1a4c;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.page-liste-profils .profil:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.7);
}

/* Image profil */
.page-liste-profils .profil img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #e040fb;
}

/* Infos profil */
.page-liste-profils .profil-info {
    flex: 1;
    text-align: left;
}

.page-liste-profils .profil-info h2 {
    margin: 0 0 5px 0;
    color: #ffffff;
}

.page-liste-profils .profil-info p {
    margin: 3px 0;
    color: #c2c2d6;
}

.page-liste-profils .profil-info .profil-domaine {
    color: #e040fb;
    font-style: italic;
}

/* Bouton "En savoir plus" */
.page-liste-profils .profil-info a {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 18px;
    background: #e040fb;
    color: #121025;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.page-liste-profils .profil-info a:hover {
    background: #d500f9;
}

/* Statut en ligne / hors ligne */
.page-liste-profils .status-dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 8px;
}

.page-liste-profils .en_ligne {
    background-color: #2ecc71;
}

.page-liste-profils .hors_ligne {
    background-color: #e74c3c;
}

/* Likes */
.page-liste-profils .like-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.page-liste-profils .action-like img {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Hover icône */
.page-liste-profils .action-like:hover img {
    transform: scale(1.12);
}

/* Icône par défaut */
.page-liste-profils .action-like img {
    content: url("/illustration/coeur-vide.png");
}

/* Icône likée */
.page-liste-profils .action-like.liked img {
    content: url("/illustration/coeur-rouge.png");
}

.page-liste-profils .likes-compteur {
    color: #e0b3ff;
    font-weight: bold;
    font-size: 16px;
}

/* =================================================
   RESPONSIVE
================================================= */

@media (max-width: 900px) {
    .page-liste-profils {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 600px) {
    .page-liste-profils .profil {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-liste-profils .profil img {
        margin-bottom: 10px;
        margin-right: 0;
    }
}
