/* Formulaire de Certificats - Nouveau Design Complet */

/* Page principale */
.formulaire-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.form-hero {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5aa0 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.form-hero::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" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-description {
    margin-bottom: 2rem;
}

.hero-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.feature-item i {
    font-size: 1.2rem;
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.illustration-container {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===========================================
   PROCESS TIMELINE SECTION
   =========================================== */
.process-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a3a8f;
    margin-bottom: 1rem;
}

.section-title i {
    margin-right: 15px;
    color: #1a3a8f;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #1a3a8f, #2c5aa0);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a3a8f, #2c5aa0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    margin-left: 30px;
    max-width: 350px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 30px;
}

.process-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.process-card .card-header {
    padding: 0;
    background: none;
    border: none;
    margin-bottom: 15px;
}

.process-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a3a8f;
    margin: 0;
}

.process-card .card-body {
    padding: 0;
}

.process-card .card-body p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
}

/* ===========================================
   FORM SECTION
   =========================================== */
.form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.form-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f8f9fa;
}

.form-logo {
    margin-bottom: 20px;
}

.form-logo img {
    width: 80px;
    height: auto;
}

.form-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a3a8f;
    margin-bottom: 10px;
}

.form-title p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

/* Alert Messages */
.alert-session {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 30px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Form Section Cards */
.form-section-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-section-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px 30px;
    background: linear-gradient(135deg, #1a3a8f, #2c5aa0);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.section-number {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a3a8f;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: white;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0 0 0;
    font-size: 0.9rem;
}

.section-body {
    padding-left: 70px;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.form-label i {
    margin-right: 8px;
    color: #1a3a8f;
}

.input-group {
    position: relative;
}

.input-group-text {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    color: #6c757d;
    padding: 12px 16px;
    border-radius: 10px 0 0 10px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 0 10px 10px 0;
    border-left: none;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    border-color: #1a3a8f;
    box-shadow: 0 0 0 0.2rem rgba(26, 58, 143, 0.15);
    outline: none;
}

.form-control.user-connected {
    background: #e8f4fd;
    border-color: #17a2b8;
}

.form-control[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-select:focus {
    border-color: #1a3a8f;
    box-shadow: 0 0 0 0.2rem rgba(26, 58, 143, 0.15);
    outline: none;
}

.form-select.is-invalid {
    border-color: #dc3545;
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Error Messages */
.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.error-message i {
    font-size: 0.8rem;
}

/* Form Actions */
.form-actions {
    background: linear-gradient(135deg, #1a3a8f, #2c5aa0);
    border-radius: 15px;
    padding: 40px;
    margin-top: 40px;
    color: white;
}

.btn-primary {
    background: white;
    color: #1a3a8f;
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: #1a3a8f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-disclaimer {
    margin-top: 20px;
    opacity: 0.9;
    font-size: 0.9rem;
}

.form-disclaimer i {
    margin-right: 8px;
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 768px) {
    .form-hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .illustration-container {
        width: 250px;
        height: 250px;
        font-size: 6rem;
    }

    .process-timeline::before {
        left: 30px;
    }

    .timeline-item {
        justify-content: flex-start !important;
    }

    .timeline-item .timeline-content {
        margin-left: 30px !important;
        margin-right: 0 !important;
        text-align: left !important;
        max-width: none;
    }

    .timeline-marker {
        margin-left: -15px;
    }

    .form-card {
        padding: 30px 20px;
        margin-top: -30px;
    }

    .form-section-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px 20px;
    }

    .section-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .section-body {
        padding-left: 0;
    }

    .input-group-text {
        padding: 10px 12px;
    }

    .form-control {
        padding: 10px 12px;
    }

    .form-actions {
        padding: 30px 20px;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .form-section-card {
        border-radius: 10px;
        padding: 15px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .process-card {
        padding: 20px;
    }

    .process-title {
        font-size: 1.1rem;
    }
}