* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.main-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.api-info {
    text-align: center;
    margin-bottom: 40px;
}

.api-info h2 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.api-info p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.endpoints {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.endpoint-group {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid #667eea;
}

.endpoint-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.endpoint-group h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.endpoint-group h3::before {
    content: "🔗";
    margin-right: 10px;
}

.endpoint-item {
    background: white;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #495057;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.4;
    max-width: 100%;
    box-sizing: border-box;
}

.endpoint-item:hover {
    background: #667eea;
    color: white;
    transform: scale(1.02);
}

.status {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 20px;
}

.footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    margin-top: 30px;
}

.footer a {
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-top: 10px;
}

.footer a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tech-stack {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.tech-stack h3 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 20px;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.tech-icon {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    min-width: 120px;
}

.tech-icon:hover {
    transform: scale(1.1);
}

.tech-icon .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tech-icon .name {
    font-weight: bold;
    color: #667eea;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .endpoints {
        gap: 15px;
    }
    
    .container {
        padding: 15px;
    }
}

/* Tableau des permissions */
.permissions-table {
    margin: 40px 0;
}

.permissions-table h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
}

table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

table tbody tr:hover {
    background-color: #f8f9fa;
}

table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

table tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

/* Styles pour les colonnes spécifiques */
table td:nth-child(1) {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #2c3e50;
}

table td:nth-child(2) {
    text-align: center;
    font-weight: bold;
}

table td:nth-child(3) {
    text-align: center;
    font-weight: bold;
}

table td:nth-child(4) {
    font-style: italic;
    color: #7f8c8d;
}

table td:nth-child(5) {
    color: #34495e;
}

/* Responsive pour le tableau */
@media (max-width: 768px) {
    .table-container {
        font-size: 0.8rem;
    }
    
    table th,
    table td {
        padding: 8px 5px;
    }
    
    table th:nth-child(5),
    table td:nth-child(5) {
        display: none;
    }
}

/* Séparateurs de catégories */
.category-separator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: bold;
    text-align: center;
    border: none !important;
}

.category-separator td {
    padding: 15px !important;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    border: none !important;
}

.category-separator:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    transform: none !important;
}

/* ===== TABLEAU MODERNE DES PERMISSIONS ===== */

.permissions-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.permissions-section h3 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

/* Légende des rôles */
.roles-legend {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.roles-legend h4 {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legend-badge {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.legend-text {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

/* Tableau moderne */
.modern-table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    background: white;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.modern-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modern-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.modern-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.modern-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
}

.modern-table td {
    padding: 12px;
    vertical-align: middle;
}

/* Colonnes spécifiques */
.category-col { width: 10%; }
.route-col { width: 25%; }
.method-col { width: 10%; }
.auth-col { width: 15%; }
.roles-col { width: 20%; }
.desc-col { width: 20%; }

/* En-têtes de catégories */
.category-row {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
}

.category-header {
    font-weight: bold;
    font-size: 1rem;
    color: #495057;
    text-align: center;
    padding: 15px !important;
    border: none !important;
}

/* Cellules de catégorie */
.category-cell {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cellules de route */
.route-cell {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #495057;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 8px 12px !important;
}

/* Badges de méthode */
.method-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-badge.get {
    background: #28a745;
    color: white;
}

.method-badge.post {
    background: #007bff;
    color: white;
}

.method-badge.put {
    background: #ffc107;
    color: #212529;
}

.method-badge.patch {
    background: #17a2b8;
    color: white;
}

.method-badge.delete {
    background: #dc3545;
    color: white;
}

/* Badges d'authentification */
.auth-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-badge.public {
    background: #28a745;
    color: white;
}

.auth-badge.required {
    background: #dc3545;
    color: white;
}

/* Badges de rôles */
.role-badge {
    display: inline-block;
    padding: 3px 6px;
    margin: 2px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.role-badge.public {
    background: #28a745;
    color: white;
}

.role-badge.connected {
    background: #17a2b8;
    color: white;
}

.role-badge.admin {
    background: #dc3545;
    color: white;
}

.role-badge.technicien {
    background: #ffc107;
    color: #212529;
}

.role-badge.superadmin {
    background: #6f42c1;
    color: white;
}

/* Cellules de description */
.desc-cell {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .modern-table {
        font-size: 0.8rem;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 768px) {
    .legend-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-table-container {
        font-size: 0.7rem;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 6px 4px;
    }
    
    .route-cell {
        font-size: 0.7rem;
    }
    
    .role-badge {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
}

/* ===== SECTION DES MODÈLES ===== */

.models-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.models-section h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.models-section > p {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.model-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid #667eea;
}

.model-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.model-container h4 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.fields-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-category {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    width: 100%;
}

.field-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.field-category h5 {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
    font-weight: 600;
}

.field-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.field-category li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.9rem;
    line-height: 1.4;
}

.field-category li:last-child {
    border-bottom: none;
}

.field-category li:hover {
    color: #667eea;
}

.field-category code {
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

.field-category li:hover code {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
}

/* Responsive pour les modèles */
@media (max-width: 768px) {
    .models-section {
        padding: 20px;
    }
    
    .models-section h3 {
        font-size: 2rem;
    }
    
    .model-container {
        padding: 20px;
    }
    
    .model-container h4 {
        font-size: 1.5rem;
    }
    
    .fields-grid {
        gap: 15px;
    }
    
    .field-category {
        padding: 15px;
    }
    
    .field-category h5 {
        font-size: 1rem;
    }
    
    .field-category li {
        font-size: 0.85rem;
    }
    
    .field-category code {
        font-size: 0.8rem;
        padding: 1px 4px;
    }
}

/* Section des exemples */
.examples-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.examples-section h2 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.example-group {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.example-group h3 {
    color: #495057;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-example {
    background: #2d3748;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.code-example pre {
    margin: 0;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-example code {
    color: #e2e8f0;
    background: none;
    padding: 0;
    border: none;
    font-family: 'Courier New', monospace;
}

.info-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.info-box p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
}

.info-box li:before {
    content: "✨";
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 1.2rem;
}

/* Styles pour l'accordéon */
.accordion-item {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    will-change: transform;
}

.accordion-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.accordion-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

.accordion-header h4 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

.accordion-content {
    background: white;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.accordion-content.active {
    padding: 25px;
    max-height: 5000px;
    opacity: 1;
}

.accordion-content .fields-grid {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeInUp 0.3s ease-out;
}

/* Styles spécifiques pour les endpoints dans l'accordéon */
.accordion-content .endpoint-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #495057;
    border-left: 4px solid #667eea;
}

.accordion-content .endpoint-item:hover {
    background: #e9ecef;
    border-left-color: #764ba2;
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Styles spécifiques pour le tableau des permissions dans l'accordéon */
.accordion-content .permissions-table {
    margin: 0;
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.accordion-content .permissions-table table {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
}

.accordion-content .roles-legend {
    margin: 0 0 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.accordion-content .roles-legend h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.2rem;
}

.accordion-content .legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ULM (Unified Language Model) STYLES ===== */

.ulm-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.ulm-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.ulm-section > p {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.ulm-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ulm-model {
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #667eea;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ulm-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.ulm-header:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

.ulm-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.ulm-icon {
    font-size: 1.5rem;
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

.ulm-content {
    background: white;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.ulm-content.active {
    padding: 25px;
    max-height: 5000px;
    opacity: 1;
}

.ulm-fields, .ulm-enums {
    margin-bottom: 20px;
}

.ulm-fields:last-child, .ulm-enums:last-child {
    margin-bottom: 0;
}

.ulm-fields h4, .ulm-enums h4 {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
    font-weight: 600;
}

.ulm-fields ul, .ulm-enums ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ulm-fields li, .ulm-enums li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ulm-fields li:last-child, .ulm-enums li:last-child {
    border-bottom: none;
}

.ulm-fields code, .ulm-enums code {
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

.ulm-enums strong {
    color: #667eea;
    font-weight: 600;
}

/* Responsive pour les exemples */
@media (max-width: 768px) {
    .examples-section {
        padding: 20px;
    }
    
    .examples-section h2 {
        font-size: 2rem;
    }
    
    .example-group {
        padding: 15px;
    }
    
    .code-example {
        padding: 15px;
    }
    
    .code-example pre {
        font-size: 0.8rem;
    }
    
    .accordion-header {
        padding: 15px 20px;
    }
    
    .accordion-header h4 {
        font-size: 1.2rem;
    }
    
    .accordion-icon {
        font-size: 1.3rem;
        width: 25px;
        height: 25px;
    }
    
    .accordion-content .fields-grid {
        gap: 12px;
    }
    
    .accordion-content {
        padding: 0 15px;
    }
    
    .accordion-content.active {
        padding: 15px;
    }
    
    .accordion-content .roles-legend {
        padding: 15px;
    }
    
    .accordion-content .legend-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .accordion-content .permissions-table {
        font-size: 0.8rem;
    }
    
    /* ULM Responsive */
    .ulm-section {
        padding: 20px;
    }
    
    .ulm-section h2 {
        font-size: 2rem;
    }
    
    .ulm-header {
        padding: 15px 20px;
    }
    
    .ulm-header h3 {
        font-size: 1.2rem;
    }
    
    .ulm-icon {
        font-size: 1.3rem;
        width: 25px;
        height: 25px;
    }
    
    .ulm-content.active {
        padding: 15px;
    }
    
    .ulm-fields h4, .ulm-enums h4 {
        font-size: 1rem;
    }
    
    .ulm-fields li, .ulm-enums li {
        font-size: 0.85rem;
    }
    
    .ulm-fields code, .ulm-enums code {
        font-size: 0.8rem;
        padding: 1px 4px;
    }
}

/* Styles pour l'importation CSV */
.csv-import-section {
    background: #dbdbdb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.csv-import-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}

.csv-import-section p {
    color: #7f8c8d;
    margin-bottom: 25px;
}

.csv-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.csv-main-action {
    margin-bottom: 20px;
}

.csv-template-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
}

.step {
    margin-bottom: 30px;
}

.step h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.model-card {
    padding: 20px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    background: white;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.model-card:hover {
    border-color: #3498db;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.model-card.selected {
    border-color: #3498db;
    background: #e3f2fd;
}

.upload-area {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
}

.upload-area:hover {
    border-color: #3498db;
    background: #e3f2fd;
}

.upload-area.dragover {
    border-color: #3498db;
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.results {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    display: none;
}

.results.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.results.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.stat {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
}

.error-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
    background: white;
    border-radius: 6px;
    padding: 10px;
}

.error-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 14px;
}

.error-item:last-child {
    border-bottom: none;
}

/* Responsive pour le modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .model-grid {
        grid-template-columns: 1fr;
    }
    
    .csv-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}