/* assets/style.css */
:root {
    --bleu-nuit: #0a192f;
    --bleu-ciel: #00b4d8;
    --blanc: #ffffff;
    --bleu-nuit-clair: #112240;
    --gris-clair: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, #1a2a4a 100%);
    min-height: 100vh;
    color: var(--blanc);
}

/* Header futuriste */
.modern-header {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--bleu-ciel);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-glow {
    text-shadow: 0 0 20px var(--bleu-ciel);
    letter-spacing: 2px;
}

/* Formulaire moderne */
.modern-form {
    background: rgba(17, 34, 64, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 180, 216, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.modern-form:hover {
    transform: translateY(-5px);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--bleu-ciel);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control, .form-select {
    background: rgba(10, 25, 47, 0.8);
    border: 2px solid rgba(0, 180, 216, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--blanc);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(10, 25, 47, 0.9);
    border-color: var(--bleu-ciel);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.3);
    color: var(--blanc);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Boutons modernes */
.btn-modern {
    background: linear-gradient(135deg, var(--bleu-ciel), #0077b6);
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    color: var(--blanc);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.4);
    color: var(--blanc);
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid var(--bleu-ciel);
    border-radius: 12px;
    padding: 10px 25px;
    color: var(--bleu-ciel);
    transition: all 0.3s ease;
}

.btn-outline-modern:hover {
    background: var(--bleu-ciel);
    color: var(--blanc);
    transform: translateY(-2px);
}

/* Tableau de bord admin */
.admin-card {
    background: var(--blanc);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.filter-section {
    background: var(--blanc);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.table-modern {
    background: var(--blanc);
    border-radius: 15px;
    overflow: hidden;
}

.table-modern thead {
    background: var(--bleu-nuit);
    color: var(--blanc);
}

.table-modern tbody tr:hover {
    background: rgba(0, 180, 216, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-form, .admin-card {
    animation: fadeIn 0.6s ease-out;
}

/* Mobile First */
@media (max-width: 768px) {
    .modern-form {
        margin: 15px;
        padding: 20px;
    }
    
    .btn-modern, .btn-outline-modern {
        width: 100%;
        margin-bottom: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .header-glow {
        font-size: 1.2rem;
    }
}

/* Styles pour les badges de statut */
.badge-en_attente {
    background-color: #ffc107;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.badge-inscrit {
    background-color: #28a745;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.badge-abandon {
    background-color: #dc3545;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

/* Amélioration du modal */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu-nuit-clair));
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Style pour l'impression */
@media print {
    body * {
        visibility: hidden;
    }
    .modal-dialog, .modal-content, .modal-body {
        visibility: visible;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .no-print {
        display: none !important;
    }
    .info-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}