/* ==========================================================================
   1. BARRES DE RECHERCHE & CARTES DE RÉSULTATS
   ========================================================================== */
.search-container {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    text-align: center;
}

.search-bar {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: var(--secondary-color);
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.card {
    background: white;
    padding: 20px;
    width: 100%;
    max-width: 550px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px 20px;
}

.card h2 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
    text-align: center;
    grid-column: 1 / -1;
}

.card-item {
    display: block;
    font-size: 0.95rem;
    word-break: break-word;
}

.card-item strong {
    color: #555;
    display: inline-block;
    margin-right: 4px;
}

.no-result {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    color: #999;
}

/* ==========================================================================
   2. TAGS DE SÉLECTION & SUGGESTIONS PRÉDICTIVES
   ========================================================================== */
.search-users-container {
    position: relative;
    width: 100%;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 15px; 
}

.tags-container:empty {
    margin: 0;
    padding: 0;
    min-height: 0;
}

.user-tag {
    background-color: #e0f3ff;
    color: #008cd4;
    border: 1px solid #b3e0ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.user-tag:hover {
    background-color: #d0ecff;
}

.remove-tag-btn {
    cursor: pointer;
    color: #ff4d4d;
    font-size: 1.1em;
    line-height: 1;
    font-weight: bold;
    padding: 0 2px;
    transition: color 0.2s ease;
}

.remove-tag-btn:hover {
    color: #cc0000;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 99999;
    display: none;
    margin-top: -1px;
}

.suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    text-align: left;
    font-size: 0.95em;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f0f8ff;
    color: #1EBCFF;
}

@media (max-width: 768px) {
    .search-container, 
    .search-bar {
        width: 95%;
    }
}