/* ===========================================
   ANNUAIRE PUBLIC - STYLES
   =========================================== */

/* Header */
.annuaire-header {
    background: linear-gradient(135deg, #202d4b 0%, #4ccfde 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.annuaire-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.annuaire-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.annuaire-header-small {
    padding: 1.5rem 0;
    text-align: left;
    margin-bottom: 2rem;
}

.annuaire-header .breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.annuaire-header .breadcrumb a:hover {
    opacity: 1;
}

/* Container */
.annuaire-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Filtres */
.search-filters {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #202d4b;
    font-size: 0.9rem;
}

.filter-group label i {
    color: #4ccfde;
    margin-right: 0.25rem;
}

.filter-group input,
.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: #4ccfde;
    outline: none;
}

.filter-search {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .filter-search {
        grid-column: span 1;
    }
}

.filters-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Results info */
.results-info {
    margin-bottom: 1.5rem;
    color: #666;
}

.results-info strong {
    color: #202d4b;
}

/* Profils grid */
.profils-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 480px) {
    .profils-grid {
        grid-template-columns: 1fr;
    }
    
    .profil-card {
        flex-direction: column;
    }
    
    .profil-photo {
        width: 100%;
        min-width: auto;
        height: 200px;
    }
}

.profil-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
}

.profil-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.profil-photo {
    width: 160px;
    min-width: 160px;
    height: 190px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 8px;
}

.profil-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
}

.photo-placeholder i {
    font-size: 3rem;
    color: #ccc;
}

.photo-placeholder-large i {
    font-size: 6rem;
}

.profil-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.profil-name {
    font-size: 1.1rem;
    color: #202d4b;
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profil-title {
    color: #4ccfde;
    font-weight: 500;
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profil-location {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.profil-location i {
    color: #4ccfde;
    margin-right: 0.25rem;
}

.profil-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.tag {
    display: inline-block;
    background: #e8f7f9;
    color: #202d4b;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
}

.tag-more {
    background: #f0f0f0;
    color: #666;
}

.tag-secondary {
    background: #fff3cd;
    color: #856404;
}

.tag-tertiary {
    background: #e2e3e5;
    color: #383d41;
}

/* No results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-results i {
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results h3 {
    color: #202d4b;
    margin-bottom: 0.5rem;
}

/* Profil detail */
.profil-detail {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 3rem;
}

.profil-detail-header {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #eee;
}

.profil-detail-photo {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid #4ccfde;
}

.profil-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profil-detail-info h1 {
    font-size: 2rem;
    color: #202d4b;
    margin: 0 0 0.5rem;
}

.profil-title-large {
    font-size: 1.25rem;
    color: #4ccfde;
    font-weight: 500;
    margin: 0 0 1rem;
}

.profil-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.profil-meta i {
    color: #4ccfde;
    margin-right: 0.5rem;
}

.profil-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #d4edda;
    color: #155724;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.profil-detail-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    padding: 2rem;
}

.profil-detail-main {
    min-width: 0;
}

.profil-section {
    margin-bottom: 2rem;
}

.profil-section:last-child {
    margin-bottom: 0;
}

.profil-section h2 {
    font-size: 1.25rem;
    color: #202d4b;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4ccfde;
}

.profil-section h2 i {
    color: #4ccfde;
    margin-right: 0.5rem;
}

.profil-text {
    color: #444;
    line-height: 1.8;
}

.profil-tags-large {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profil-tags-large .tag {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

/* Sidebar */
.profil-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card,
.location-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.contact-card h3,
.location-card h3 {
    font-size: 1rem;
    color: #202d4b;
    margin: 0 0 1rem;
}

.contact-card h3 i,
.location-card h3 i {
    color: #4ccfde;
    margin-right: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #444;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: #4ccfde;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: #202d4b;
    text-decoration: none;
    transition: color 0.3s;
    word-break: break-all;
}

.contact-item a:hover {
    color: #4ccfde;
}

.location-card p {
    color: #444;
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
    .profil-detail-body {
        grid-template-columns: 1fr;
    }
    
    .profil-detail-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .contact-card,
    .location-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 600px) {
    .profil-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profil-meta {
        justify-content: center;
    }
    
    .annuaire-header h1 {
        font-size: 1.75rem;
    }
}
