/* ========================================== */
/* STRUCTURE DE BASE - RENCONTRE */
/* Pas de couleurs ici, uniquement la structure */
/* ========================================== */

body {
    background-image: url('body_photo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Compenser la navbar fixe */
.profil {
    margin-top: 100px !important;
}

/* Container principal */
.rencontre-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.rencontre-header h1 {
    margin: 0;
    font-size: 2em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-buttons {
    display: flex;
    gap: 15px;
}

/* Boutons header */
.btn-filtres,
.btn-gpt-cupidon {
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filtres {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-filtres:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-gpt-cupidon {
    background: linear-gradient(135deg, #ff6fa3, #ffb6c1);
    box-shadow: 0 4px 15px rgba(255, 107, 163, 0.4);
}

.btn-gpt-cupidon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 163, 0.6);
    background: linear-gradient(135deg, #ff84b0, #ffd1dc);
}

/* Panneau de filtres */
.panneau-filtres {
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.panneau-filtres h3 {
    margin: 0 0 20px 0;
    font-size: 1.3em;
}

.filtres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filtre-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filtre-item label {
    font-weight: 600;
    font-size: 0.95em;
}

.filtre-item input[type="text"],
.filtre-item input[type="number"],
.filtre-item select {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.filtre-item input:focus,
.filtre-item select:focus {
    outline: none;
}

.filtre-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filtre-range input {
    flex: 1;
}

.filtre-range span {
    font-size: 0.9em;
}

/* Actions filtres */
.filtres-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 15px;
}

.btn-reinitialiser,
.btn-appliquer {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.btn-reinitialiser:hover {
    transform: translateY(-1px);
}

.btn-appliquer {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-appliquer:hover {
    transform: translateY(-2px);
}

/* Grid des profils */
.profils-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 10px;
}

/* Carte de profil - version minimaliste */
.profil-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.profil-card:hover {
    transform: translateY(-5px);
}

.profil-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profil-card-info {
    padding: 10px;
    text-align: center;
}

.profil-card-pseudo {
    font-size: 0.95em;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profil-card-details {
    display: none;
}

.profil-card-localisation {
    display: none;
}

.profil-card-distance {
    display: inline-block;
    background: #e8f4fd;
    color: #667eea;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 600;
}

/* Badge priorité */
.badge-priorite {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
}

.badge-priorite.ville {
    background: linear-gradient(135deg, #ff6fa3, #ffb6c1);
    color: white;
}

.badge-priorite.proximite {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.badge-priorite.age {
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
    color: white;
}

/* Loader */
.loader {
    text-align: center;
    padding: 50px;
    font-size: 1.1em;
}

.aucun-profil {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1em;
    border-radius: 15px;
    grid-column: 1 / -1;
}

.aucun-profil h2 {
    margin-bottom: 15px;
    white-space: nowrap;
}

.aucun-profil p {
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .profil {
        margin-top: 70px !important;
    }

    .rencontre-header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        justify-content: center;
        padding: 12px 15px;
        text-align: center;
    }

    .rencontre-header h1 {
        font-size: 1.1em;
        white-space: nowrap;
        flex: 1 1 100%;
        margin: 0;
        text-align: center;
    }

    .header-buttons {
        flex-direction: row;
        gap: 8px;
        flex: 1 1 100%;
        justify-content: center;
    }

    .btn-filtres,
    .btn-gpt-cupidon {
        font-size: 0.8em;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .filtres-grid {
        grid-template-columns: 1fr;
    }

    .filtres-actions {
        flex-direction: column;
    }

    .btn-reinitialiser,
    .btn-appliquer {
        width: 100%;
    }

    .profils-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .profil-card-image {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .profils-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .profil-card-image {
        height: 110px;
    }

    .badge-priorite {
        font-size: 0.65em;
        padding: 3px 6px;
    }

    .profil-card-pseudo {
        font-size: 0.85em;
    }
}
