.flm-personnel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.flm-personnel-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.flm-search-box {
    flex: 1;
    display: flex;
    gap: 15px;
}

.search-input-wrapper,
.filter-wrapper {
    position: relative;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.search-input-wrapper {
    flex: 1;
}

.search-input-wrapper:focus-within,
.filter-wrapper:focus-within {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.search-icon,
.filter-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-size: 14px;
    pointer-events: none;
}

#flm-search {
    width: 100%;
    padding: 10px 35px 10px 35px;
    border: none;
    background: none;
    font-size: 14px;
    color: #2d3748;
}

#flm-search::placeholder {
    color: #a0aec0;
}

#flm-reset-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
    font-size: 12px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#flm-reset-search:hover {
    background: #e2e8f0;
    color: #4a5568;
}

.filter-wrapper {
    min-width: 180px;
}

#flm-filter-lieu {
    width: 100%;
    padding: 10px 12px 10px 35px;
    border: none;
    background: none;
    font-size: 14px;
    color: #2d3748;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

#flm-filter-lieu option {
    color: #2d3748;
    background: #fff;
}

.flm-personnel-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.flm-personnel-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    position: relative;
}

.flm-personnel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    font-size: 20px;
    color: #0073aa;
}

.card-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    flex: 1;
}

.card-body {
    padding: 20px;
}

.flm-personnel-card p {
    margin: 10px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flm-personnel-card p i {
    width: 16px;
    color: #0073aa;
}

.flm-personnel-card .fonction {
    font-weight: bold;
    color: #444;
}

.flm-personnel-card .lieu {
    color: #666;
    font-style: italic;
}

.flm-personnel-card a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.flm-personnel-card a:hover {
    color: #005177;
    text-decoration: underline;
}

.flm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 15px;
}

.flm-pagination button {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 15px;
    cursor: pointer;
    color: #0073aa;
    transition: all 0.2s ease;
}

.flm-pagination button:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #0073aa;
}

.flm-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #718096;
}

.pagination-info {
    font-size: 14px;
    color: #4a5568;
}

.current-page {
    font-weight: bold;
    color: #0073aa;
}

.flm-no-results {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.flm-no-results i {
    color: #0073aa;
    font-size: 20px;
}

.flm-stats-mini {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    min-width: 60px;
    padding: 10px 15px;
    text-align: center;
}

.flm-stats-mini .stat-number {
    font-size: 15px;
    font-weight: 600;
    color: #0073aa;
}

.telephone a {
    text-decoration: none;
}

.telephone-orange a {
    color: #EC7810;
}

.telephone-jaune a {
    color: #F3E600;
}

.telephone-rouge a {
    color: #E52421;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .flm-personnel-filters {
        flex-direction: column;
        gap: 15px;
        padding: 12px;
    }

    .flm-search-box {
        width: 100%;
        flex-direction: column;
    }

    .filter-wrapper {
        width: 100%;
        min-width: 0;
    }

    .flm-stats-mini {
        align-self: flex-end;
    }
}

.flm-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.flm-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.flm-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.flm-modal-close:hover {
    color: #333;
}

.suggestion-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

.submit-suggestion {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.submit-suggestion:hover {
    background: #005177;
}

.submit-suggestion:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    padding: 0;
    border: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flm-personnel-card:hover .card-actions {
    opacity: 1;
}

.suggest-edit-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    color: #666;
    padding: 3px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.suggest-edit-btn:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.suggest-edit-btn i {
    font-size: 11px;
}

.flm-stats {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-total {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #2c3e50;
}

.stat-total i {
    font-size: 24px;
    color: #0073aa;
    margin-bottom: 10px;
}

.stat-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #2c3e50;
}

.stat-item i {
    color: #0073aa;
    font-size: 16px;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    line-height: 1;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.stat-item .stat-number {
    font-size: 18px;
}

/* Responsive design pour les statistiques */
@media screen and (max-width: 768px) {
    .stat-details {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
}

/* Responsive design pour les filtres et stats */
@media screen and (max-width: 768px) {
    .flm-personnel-filters {
        flex-direction: column;
        gap: 15px;
    }

    .flm-search-box {
        width: 100%;
    }

    .flm-stats-mini {
        width: auto;
        align-self: flex-end;
    }
}
