/**
 * Styles communs pour les modules en construction
 * Ce CSS peut être ajouté dans chaque fichier page-*.css /
 */

/* Style pour le message "module en construction" */
.module-coming-soon {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f9fafb;
    border-radius: 8px;
    margin: 2rem 0;
}

.module-coming-soon i {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.module-coming-soon h2 {
    color: #374151;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.module-coming-soon p {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .module-coming-soon {
        padding: 2rem 1rem;
    }
    
    .module-coming-soon h2 {
        font-size: 1.3rem;
    }
    
    .module-coming-soon p {
        font-size: 1rem;
    }
}

/**
 * Styles pour le module de gestion des licenciés
 */

/* Style pour la barre d'outils */
.licencies-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-box {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    margin-right: 1rem;
}

.filter-box {
    flex: 2;
    min-width: 450px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.actions-box {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (min-width: 992px) {
    .actions-box {
        margin-top: 0;
    }
}

/* Style pour le tableau des licenciés */
.licencies-table-container {
    overflow-x: auto;
}

.licencies-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.licencies-table th, 
.licencies-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.licencies-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.licencies-table th a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.licencies-table tbody tr:hover {
    background-color: #f5f5f5;
}

.actions-cell {
    display: flex;
    gap: 0.3rem;
}

.action-btn {
    padding: 0.25rem 0.5rem;
}

/* Style pour les badges de statut */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.badge-success {
    background-color: #28a745;
    color: #fff;
}

.badge-success-bold {
    background-color: #1e7e34;
    color: #fff;
    font-weight: bold;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-secondary {
    background-color: #6c757d;
    color: #fff;
}

.badge-danger {
    background-color: #ff0019;
    color: #fff;
    font-weight: bold;
}

.badge-info {
    background-color: #17a2b8;
    color: #fff;
}

.badge-primary {
    background-color: #007bff;
    color: #fff;
}

.badge-dark {
    background-color: #343a40;
    color: #fff;
}

/* Style pour les formulaires */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #6c757d;
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.form-check-input {
    float: left;
    margin-left: -1.5em;
}

.form-check-label {
    margin-bottom: 0;
}

/* Style pour la fiche détaillée des licenciés */
.licence-info-card {
    margin-bottom: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
}

.licence-header {
    display: flex;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.licence-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-right: 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
}

.licence-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.licence-photo-placeholder {
    font-size: 3rem;
    color: #adb5bd;
}

.licence-title {
    flex: 1;
}

.licence-title h2 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
}

.licence-title p {
    margin: 0;
    color: #6c757d;
}

.licence-content {
    padding: 1.5rem;
}

.info-section {
    margin-bottom: 1.5rem;
}

.info-section h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.info-item {
    margin-bottom: 0.5rem;
}

.info-label {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #212529;
}

.licence-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Style pour les documents */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.document-card {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.document-header {
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.document-icon {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.document-title {
    font-size: 1.1rem;
    margin: 0;
}

.document-content {
    padding: 1rem;
}

.document-description {
    margin-bottom: 1rem;
    color: #6c757d;
}

.document-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Style pour les exports */
.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.export-option {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1.5rem;
    background-color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.export-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.export-icon {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.export-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.export-description {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .licencies-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box, .filter-box {
        width: 100%;
        max-width: none;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .licence-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .licence-photo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}