/* Formulaire de recherche */
.avocats-search-form {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.avocats-search-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.avocats-search-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

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

.avocats-search-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.avocats-search-form input[type="text"],
.avocats-search-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.avocats-search-button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.avocats-search-button:hover {
    background: #1a252f;
}

/* Résultats */
.avocats-cabinet-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.avocats-cabinet-info {
    flex: 1;
    min-width: 250px;
    margin-right: 20px;
}

.avocats-cabinet-info h3 {
    margin-top: 0;
    color: #2c3e50;
}

.avocats-cabinet-location {
    color: #666;
    margin-bottom: 10px;
}

.avocats-cabinet-specialites {
    margin-bottom: 15px;
}

.avocats-view-details {
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
}

.avocats-view-details:hover {
    text-decoration: underline;
}

.avocats-cabinet-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
}

.avocats-action-button {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: opacity 0.3s;
}

.avocats-action-button:hover {
    opacity: 0.9;
    color: white;
}

.avocats-action-button.call {
    background: #27ae60;
}

.avocats-action-button.email {
    background: #3498db;
}

.avocats-action-button.whatsapp {
    background: #25D366;
}

.avocats-no-results {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Fiche détaillée */
.avocats-fiche {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.avocats-fiche-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
}

.avocats-fiche-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid white;
}

.avocats-fiche-content {
    padding: 20px;
}

.avocats-fiche-section {
    margin-bottom: 25px;
}

.avocats-fiche-section h3 {
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.avocats-fiche-actions {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
}

.avocats-fiche-actions .avocats-action-button {
    flex: 1;
    padding: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .avocats-cabinet-card {
        flex-direction: column;
    }
    
    .avocats-cabinet-info {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .avocats-cabinet-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .avocats-fiche-header {
        flex-direction: column;
        text-align: center;
    }
    
    .avocats-fiche-header img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .avocats-fiche-actions {
        flex-direction: column;
    }
}

/* CSS pour la carte */

.avocats-map-container {
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.avocats-map-container small {
    display: block;
    text-align: center;
    margin-top: 5px;
}

.avocats-map-container small a {
    color: #666;
    text-decoration: none;
}

.avocats-map-container small a:hover {
    text-decoration: underline;
}

#avocats-find-coordinates {
    text-decoration: none;
    color: #2271b1;
}

#avocats-find-coordinates:hover {
    text-decoration: underline;
}

.avocats-action-button.map {
    background: #e74c3c;
}

/* Formulaire de soumission public */
.avocats-submission-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.avocats-submission-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.avocats-submission-form .avocats-form-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.avocats-submission-form .avocats-form-section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

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

.avocats-submission-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.avocats-submission-form input[type="text"],
.avocats-submission-form input[type="email"],
.avocats-submission-form input[type="url"],
.avocats-submission-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.avocats-submission-form .avocats-form-row {
    display: flex;
    gap: 15px;
}

.avocats-submission-form .avocats-form-row .avocats-form-group {
    flex: 1;
}

.avocats-submit-button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.3s;
    width: 100%;
}

.avocats-submit-button:hover {
    background: #219653;
}

.avocats-submit-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

#avocats-submission-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

#avocats-submission-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#avocats-submission-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Interface admin des soumissions */
.avocats-status-filters {
    display: flex;
    gap: 5px;
}

.avocats-status-filters .button {
    text-decoration: none;
}

/* Tableaux scrollables */
.avocats-admin .wp-list-table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

.avocats-admin .wp-list-table thead,
.avocats-admin .wp-list-table tbody {
    display: table;
    width: 100%;
    min-width: 800px; /* Largeur minimale pour éviter le écrasement */
}

.avocats-admin .wp-list-table.widefat {
    border: 1px solid #ccd0d4;
    border-spacing: 0;
}

.avocats-admin .wp-list-table.widefat th,
.avocats-admin .wp-list-table.widefat td {
    padding: 8px 10px;
    vertical-align: middle;
}

/* Amélioration de l'apparence des tableaux */
.avocats-admin-container .wp-list-table {
    margin-top: 15px;
    background: white;
}

.avocats-admin-container .wp-list-table th {
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
}

.avocats-admin-container .wp-list-table tr:hover {
    background: #f8f9fa;
}

/* Responsive pour les tableaux */
@media (max-width: 1200px) {
    .avocats-admin .wp-list-table {
        font-size: 14px;
    }
    
    .avocats-admin .wp-list-table th,
    .avocats-admin .wp-list-table td {
        padding: 6px 8px;
    }
}

/* Styles spécifiques pour la page des soumissions */
.avocats-submission-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 200px;
}

.avocats-submission-actions .button {
    margin: 2px 0;
    text-align: center;
    font-size: 12px;
    padding: 4px 8px;
}

/* Modal */
#avocats-submission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.avocats-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.avocats-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avocats-modal-header h3 {
    margin: 0;
}

.avocats-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.avocats-modal-close:hover {
    color: #000;
}

.avocats-modal-body {
    padding: 20px;
}

.avocats-detail-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007cba;
}

.avocats-detail-section:last-child {
    border-bottom: none;
}

.avocats-detail-section h4 {
    margin-top: 0;
    color: #007cba;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.avocats-detail-section p {
    margin: 5px 0;
}

.avocats-detail-section ul {
    margin: 5px 0;
    padding-left: 20px;
}

/* Badges de statut */
.avocats-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.avocats-status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.avocats-status-approved {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.avocats-status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .avocats-submission-form .avocats-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .avocats-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .avocats-status-filters {
        flex-wrap: wrap;
    }
}