/* Modal d'Admission */
.admission-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.admission-modal-content {
    background: white;
    margin: 2rem auto;
    padding: 0;
    border-radius: 24px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.close-admission {
    position: sticky;
    top: 1rem;
    right: 1rem;
    float: right;
    font-size: 2rem;
    font-weight: 300;
    color: #718096;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
}

.close-admission:hover {
    background: #f1f3f5;
    color: #1a1a1a;
    transform: rotate(90deg);
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.progress-step.completed .step-circle {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #4f46e5;
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 1rem;
    position: relative;
}

.progress-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
    transition: width 0.6s ease;
}

.progress-step.completed + .progress-line::after {
    width: 100%;
}

/* Formulaire */
#admissionForm {
    padding: 2.5rem 3rem 2rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInRight 0.4s ease;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #718096;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group small {
    display: block;
    color: #718096;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-label {
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    cursor: pointer;
    accent-color: #4f46e5;
}

.checkbox-label span {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Récapitulatif */
.summary-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.summary-section h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.summary-section p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0.5rem 0;
}

.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #eff6ff;
    border-left: 4px solid #4f46e5;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.info-box svg {
    flex-shrink: 0;
    color: #4f46e5;
}

.info-box p {
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0;
}

/* Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 2rem;
}



.btn-primary.btn-nav {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn-secondary.btn-nav {
    background: #f1f3f5;
    color: #4a5568;
}

.btn-secondary.btn-nav:hover {
    background: #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .admission-modal-content {
        width: 95%;
        margin: 1rem auto;
    }

    .progress-container {
        padding: 1.5rem 1rem;
    }

    .step-circle {
        width: 38px;
        height: 38px;
    }

    .step-label {
        font-size: 0.7rem;
    }

    #admissionForm {
        padding: 1.5rem 1.25rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column-reverse;
    }

    .btn-nav {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .step-label {
        display: none;
    }
}