/* Styles pour la page de candidature aux vocations professionnelle */

.vocation-application-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Hero Section améliorée */
.hero-vocation {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

.hero-vocation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Cartes d'information */
.info-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 2rem;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.info-card .card-header {
    border: none;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.info-card .card-body {
    padding: 2rem;
    background: #fff;
}

/* Processus d'étapes */
.process-step {
    text-align: center;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
}

.step-1 { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); }
.step-2 { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); }
.step-3 { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); }
.step-4 { background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%); }

/* Formulaire amélioré */
.application-form {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-section {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

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

.form-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.form-section-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.form-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

/* Champs de formulaire améliorés */
.form-floating {
    position: relative;
}

.form-floating .form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-floating .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: translateY(-2px);
}

.form-floating label {
    padding: 1rem 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

/* Textarea amélioré */
.form-control.textarea-enhanced {
    min-height: 120px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-control.textarea-enhanced:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    min-height: 150px;
}

/* Boutons améliorés */
.btn-vocation {
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-vocation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-vocation:hover::before {
    left: 100%;
}

.btn-vocation:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary-vocation {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-success-vocation {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

/* Sections informatives */
.info-section {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #007bff;
}

.info-section h4 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.info-section h4 i {
    margin-right: 0.5rem;
    color: #007bff;
}

/* Contact cards */
.contact-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-primary { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); }
.contact-success { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); }
.contact-info { background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%); }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* Progress bar */
.progress-vocation {
    height: 8px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
    margin: 2rem 0;
}

.progress-bar-vocation {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #28a745 50%, #ffc107 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-vocation {
        padding: 3rem 0;
    }
    
    .process-step {
        padding: 1.5rem 0.5rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-vocation h1 {
        font-size: 2rem;
    }
    
    .form-section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .form-section-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .btn-vocation {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success/Error states */
.alert-vocation {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-weight: 500;
}

.alert-success-vocation {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger-vocation {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}
