/* ===== INSCRIPTION PAGE STYLES ===== */

/* Hero Section */
.inscription-hero {
    background: linear-gradient(135deg, #166534 0%, #0090b0 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.inscription-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.inscription-hero .breadcrumb {
    background: transparent;
    margin: 0 0 20px 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.inscription-hero .breadcrumb-item {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.inscription-hero .breadcrumb-item a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.inscription-hero .breadcrumb-item a:hover {
    opacity: 0.8;
}

.inscription-hero .breadcrumb-item.active {
    color: rgba(255,255,255,0.9);
}

.inscription-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.hero-features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.2rem;
    color: #ffd700;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Sidebar Info */
.info-sidebar {
    position: sticky;
    top: 100px;
}

.info-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
}

.info-header {
    background: linear-gradient(135deg, #166534 0%, #0090b0 100%);
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-header i {
    font-size: 1.2rem;
}

.info-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-content {
    padding: 20px;
}

/* Année Académique */
.academic-year {
    display: flex;
    align-items: center;
    gap: 15px;
}

.year-badge {
    background: linear-gradient(135deg, #166534 0%, #0090b0 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.status-active {
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Programme List */
.program-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.program-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.program-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.program-item i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.program-item span {
    font-weight: 500;
    color: #495057;
}

/* Document List */
.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.document-list li:last-child {
    border-bottom: none;
}

.document-list li:hover {
    background: rgba(22, 101, 52, 0.05);
    padding-left: 10px;
    border-radius: 8px;
}

.document-list li i {
    margin-right: 12px;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.document-list li span {
    flex: 1;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.4;
}

.document-note {
    margin-top: 15px;
    padding: 10px 12px;
    background: rgba(22, 101, 52, 0.05);
    border-left: 3px solid var(--primary-color, #166534);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.document-note i {
    color: var(--primary-color, #166534);
    font-size: 0.9rem;
}

.document-note small {
    color: #64748b;
    font-style: italic;
}

/* Access Conditions Styles */
.access-conditions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.condition-item {
    padding: 15px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.condition-item:hover {
    background: rgba(22, 101, 52, 0.05);
    border-color: rgba(22, 101, 52, 0.2);
    transform: translateX(5px);
}

.condition-level {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.condition-level i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.condition-level strong {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.condition-requirement {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
    margin-left: 30px;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
    text-decoration: none;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: #166534;
    color: #fff;
    transform: translateY(-2px);
}

.contact-link i {
    color: #166534;
    transition: color 0.3s ease;
}

.contact-link:hover i {
    color: #fff;
}

/* Formulaire d'inscription */
.inscription-form-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.form-header h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-header i {
    color: #166534;
}

.form-header p {
    color: #6c757d;
    margin: 0;
}

/* Form Sections */
.form-section {
    border-bottom: 1px solid #e9ecef;
}

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

.section-header {
    background: #f8f9fa;
    padding: 20px 30px;
    display: flex;
    justify-content: between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.section-header h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.section-header i {
    color: #166534;
}

.section-content {
    padding: 30px;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.required {
    color: #dc3545;
    font-weight: 700;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #166534;
    box-shadow: 0 0 0 0.2rem rgba(22, 101, 52, 0.25);
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* Document Fields */
.document-field {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* Form Actions */
.form-actions {
    padding: 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.form-actions .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, #166534 0%, #0090b0 100%);
    border: none;
    box-shadow: 0 5px 15px rgba(22, 101, 52, 0.3);
}

.form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 101, 52, 0.4);
}

.form-actions .btn-secondary {
    background: #6c757d;
    border: none;
}

.form-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

/* Animations */
@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    50% { 
        transform: translate(-30px, -30px) rotate(180deg); 
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .inscription-hero {
        padding: 60px 0 40px;
    }
    
    .hero-features {
        gap: 20px;
    }
    
    .info-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .form-actions .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .inscription-hero {
        padding: 40px 0 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-content {
        padding: 20px;
    }
    
    .form-header {
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .document-field .row {
        flex-direction: column;
    }
    
    .document-field .col-md-2 {
        margin-top: 10px;
    }
    
    .document-field .btn {
        width: 100%;
    }
}

/* Loading States */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success States */
.form-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.form-success i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 15px;
}

.form-success h3 {
    color: #155724;
    margin-bottom: 10px;
}

/* Print Styles */
@media print {
    .info-sidebar,
    .form-actions,
    .inscription-hero {
        display: none !important;
    }
    
    .inscription-form-container {
        box-shadow: none;
        border: 1px solid #000;
    }
}