/* ============================================
   POSTULER.CSS — Page Postuler (Glassmorphism)
   ============================================ */

.postuler-page {
    min-height: 90vh;
    background:
        linear-gradient(135deg, rgba(26,29,35,0.92) 0%, rgba(18,32,58,0.95) 100%),
        url('pergola.png') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

/* Cercles décoratifs en arrière-plan */
.postuler-page::before,
.postuler-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.postuler-page::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(44,95,158,0.2) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.postuler-page::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(44,95,158,0.12) 0%, transparent 70%);
    bottom: -80px;
    right: -80px;
}

/* ---- LAYOUT SPLIT ---- */
.postuler-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* ---- TEXTE GAUCHE ---- */
.postuler-text {
    flex: 1;
    color: #fff;
}

.postuler-badge {
    display: inline-block;
    background: rgba(44,95,158,0.3);
    border: 1px solid rgba(44,95,158,0.5);
    color: #7eb3f5;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.postuler-text h1 {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 22px;
    color: #fff;
}

.postuler-text h1 span {
    color: #5b9bd5;
}

.postuler-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    line-height: 1.85;
    margin-bottom: 35px;
}

/* Points forts */
.postuler-points {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.postuler-point {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.postuler-point-icon {
    width: 32px;
    height: 32px;
    background: rgba(44,95,158,0.25);
    border: 1px solid rgba(44,95,158,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* ---- FORMULAIRE GLASS ---- */
.postuler-form-box {
    flex: 0 0 480px;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 45px 40px;
    box-shadow:
        0 25px 50px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ---- STEPPER ---- */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    gap: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    transition: all 0.4s ease;
}

.step-label {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.4s ease;
}

.step-item.active .step-circle {
    background: #2c5f9e;
    border-color: #2c5f9e;
    color: #fff;
    box-shadow: 0 0 20px rgba(44,95,158,0.5);
}

.step-item.active .step-label {
    color: #7eb3f5;
}

.step-item.done .step-circle {
    background: rgba(44,95,158,0.4);
    border-color: #2c5f9e;
    color: #7eb3f5;
}

.step-item.done .step-label {
    color: rgba(255,255,255,0.5);
}

.step-line {
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0 8px;
    margin-bottom: 22px;
    transition: background 0.4s ease;
}

.step-line.done {
    background: rgba(44,95,158,0.5);
}

/* ---- PANELS ---- */
.form-panel {
    display: none;
    animation: fadeIn 0.35s ease;
}

.form-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-panel h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ---- INPUTS ---- */
.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 7px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.3);
}

.input-group input:focus,
.input-group select:focus {
    border-color: rgba(44,95,158,0.7);
    background: rgba(44,95,158,0.1);
    box-shadow: 0 0 0 3px rgba(44,95,158,0.15);
}

.input-group select option {
    background: #1a2535;
    color: #fff;
}

/* ---- UPLOAD CV ---- */
.file-upload-area {
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.03);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: rgba(44,95,158,0.6);
    background: rgba(44,95,158,0.08);
}

.file-upload-area.has-file {
    border-color: rgba(44,95,158,0.7);
    background: rgba(44,95,158,0.1);
    border-style: solid;
}

.upload-icon { font-size: 28px; margin-bottom: 8px; }

.upload-text {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

.upload-text strong {
    color: #7eb3f5;
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

/* ---- BOUTONS ---- */
.btn-next,
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #2c5f9e;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-next:hover,
.btn-submit:hover {
    background: #1a4a80;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44,95,158,0.4);
}

.btn-back {
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    padding: 0;
    transition: color 0.3s;
}

.btn-back:hover { color: rgba(255,255,255,0.8); }

/* ---- CONFIRMATION ---- */
.confirmation-box {
    text-align: center;
    padding: 20px 0;
}

.confirm-icon {
    width: 70px;
    height: 70px;
    background: rgba(44,95,158,0.2);
    border: 2px solid rgba(44,95,158,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.confirmation-box h3 {
    font-size: 22px;
    color: #fff;
    border: none;
    margin-bottom: 12px;
}

.confirmation-box p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
    .postuler-split {
        flex-direction: column;
        gap: 40px;
    }
    .postuler-form-box {
        flex: none;
        width: 100%;
    }
    .postuler-text h1 { font-size: 28px; }
}

@media (max-width: 768px) {
    .postuler-page {
        padding: 40px 0 50px;
        align-items: flex-start;
    }

    /* Texte gauche */
    .postuler-text { order: 2; }

    .postuler-badge {
        font-size: 11px;
        padding: 5px 13px;
        margin-bottom: 18px;
    }

    .postuler-text h1 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .postuler-text p {
        font-size: 14px;
        margin-bottom: 24px;
        line-height: 1.7;
    }

    .postuler-point { font-size: 13px; }

    .postuler-point-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    /* Formulaire */
    .postuler-form-box {
        order: 1;
        padding: 30px 20px;
        border-radius: 16px;
        width: 100%;
    }

    /* Stepper compact */
    .stepper { margin-bottom: 28px; }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .step-label { font-size: 10px; }

    .step-line { width: 36px; }

    /* Form panel */
    .form-panel h3 {
        font-size: 15px;
        margin-bottom: 18px;
    }

    /* Inputs */
    .input-group { margin-bottom: 13px; }

    .input-group label {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .input-group input,
    .input-group select {
        padding: 11px 14px;
        font-size: 14px;
        border-radius: 9px;
    }

    /* Upload area */
    .file-upload-area { padding: 20px 16px; }

    .upload-icon { font-size: 24px; margin-bottom: 6px; }

    .upload-text { font-size: 12px; }
    .upload-text strong { font-size: 13px; }

    /* Boutons */
    .btn-next,
    .btn-submit {
        padding: 13px;
        font-size: 14px;
    }

    /* Confirmation */
    .confirm-icon {
        width: 58px;
        height: 58px;
        font-size: 25px;
    }

    .confirmation-box h3 { font-size: 19px; }
    .confirmation-box p { font-size: 13px; }
}

@media (max-width: 380px) {
    .postuler-form-box { padding: 24px 16px; }
    .step-line { width: 24px; }
    .postuler-text h1 { font-size: 21px; }
}
