/* =================================================================
   carriere.css — Styles partagés : Carrière, Postuler, Suivi
   ================================================================= */

/* ── Hero ──────────────────────────────────────────────────────── */
.carriere-hero {
    position: relative;
    min-height: 420px;
    background: url('../images/services/postule.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
}
.carriere-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.72) 0%, rgba(0,92,185,.60) 100%);
}
.carriere-hero .hero-content { position: relative; z-index: 2; }

/* ── Poste card ────────────────────────────────────────────────── */
.poste-card {
    border: 1.5px solid #e8edf3;
    border-radius: 14px;
    background: #fff;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.poste-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,.10);
}
.poste-card .poste-icon {
    width: 54px; height: 54px;
    border-radius: 12px;
    background: #eef3ff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: #0d6efd;
    margin-bottom: 16px;
    flex-shrink: 0;
}

/* ── Avantage card ─────────────────────────────────────────────── */
.avantage-card {
    border-radius: 14px;
    padding: 26px 22px;
    background: #f8faff;
    border: 1.5px solid #e4ecff;
    transition: background .2s, box-shadow .2s;
    height: 100%;
}
.avantage-card:hover { background: #fff; box-shadow: 0 8px 28px rgba(13,110,253,.09); }
.avantage-card .av-icon {
    font-size: 1.8rem;
    color: #0d6efd;
    margin-bottom: 12px;
    display: block;
}

/* ── Skill badge ───────────────────────────────────────────────── */
.skill-badge {
    display: inline-block;
    background: #f0f4ff;
    color: #0d6efd;
    border-radius: 20px;
    padding: 3px 11px;
    font-size: .75rem;
    font-weight: 500;
    margin: 3px 3px 0 0;
}

/* ── Stats bar ─────────────────────────────────────────────────── */
.stat-item { border-right: 1.5px solid rgba(255,255,255,.2); }
.stat-item:last-child { border-right: none; }
@media(max-width:767px) {
    .stat-item { border-right: none; border-bottom: 1.5px solid rgba(255,255,255,.2); padding-bottom: 20px; margin-bottom: 20px; }
}

/* ── Étapes recrutement ────────────────────────────────────────── */
.etape-item { position: relative; }
.etape-num {
    font-size: 3rem;
    font-weight: 800;
    color: #0d6efd;
    opacity: .15;
    line-height: 1;
}
.etape-content { margin-top: -20px; padding-left: 8px; }

/* ── CTA spontanée ─────────────────────────────────────────────── */
.cta-spontane {
    background: linear-gradient(135deg, #0d6efd 0%, #0a4fcf 100%);
    border-radius: 18px;
    color: #fff;
    padding: 52px 40px;
}

/* ── Bannières offre / spontanée ───────────────────────────────── */
.offre-banner {
    background: #f8faff;
    border: 1.5px solid #e4ecff;
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 28px;
}
.spontanee-banner {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    border: 1.5px solid #a7f3d0;
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 28px;
}

/* ── Wizard steps ──────────────────────────────────────────────── */
.wiz-steps  { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 36px; }
.wiz-step   { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; max-width: 200px; position: relative; }
.wiz-step::after {
    content: ''; position: absolute; top: 18px; left: calc(50% + 20px);
    width: calc(100% - 40px); height: 3px; background: #dee2e6; border-radius: 2px;
}
.wiz-step:last-child::after { display: none; }
.wiz-step.active::after,
.wiz-step.done::after { background: #0d6efd; }
.wiz-dot {
    width: 38px; height: 38px; border-radius: 50%;
    background: #e9ecef; color: #adb5bd;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; font-weight: 700; border: 3px solid #dee2e6;
    transition: all .25s; z-index: 1; position: relative;
}
.wiz-step.active .wiz-dot { background: #0d6efd; color: #fff; border-color: #0d6efd; box-shadow: 0 0 0 5px rgba(13,110,253,.15); }
.wiz-step.done .wiz-dot   { background: #198754; color: #fff; border-color: #198754; }
.wiz-label { font-size: .78rem; font-weight: 600; color: #adb5bd; text-align: center; }
.wiz-step.active .wiz-label { color: #0d6efd; }
.wiz-step.done .wiz-label   { color: #198754; }

/* ── Wizard panes ──────────────────────────────────────────────── */
.wiz-pane { display: none; animation: wizFadeIn .3s; }
.wiz-pane.active { display: block; }
@keyframes wizFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Wizard nav ────────────────────────────────────────────────── */
.wiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid #f0f0f0; }

/* ── Pell richtext overrides ───────────────────────────────────── */
.pell-content { min-height: 140px; font-size: .93rem; line-height: 1.6; }
.pell { border: 1px solid #dee2e6; border-radius: .375rem; overflow: hidden; }
.pell:focus-within { border-color: #86b7fe; box-shadow: 0 0 0 .25rem rgba(13,110,253,.25); }
.pell-actionbar { background: #f8f9fa; border-bottom: 1px solid #dee2e6; padding: 6px 10px; }
.pell-button { color: #495057; }

/* ── Suivi : statut ────────────────────────────────────────────── */
.status-badge-wrap {
    text-align: center;
    padding: 36px 24px 24px;
    border-bottom: 1px solid #f0f0f0;
}
.status-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
}

/* ── Suivi : grille d'infos ────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:576px) { .info-grid { grid-template-columns: 1fr; } }
.info-item {
    background: #f8faff;
    border: 1.5px solid #e4ecff;
    border-radius: 12px;
    padding: 14px 16px;
    transition: background .2s, box-shadow .2s;
}
.info-item:hover { background: #fff; box-shadow: 0 4px 16px rgba(13,110,253,.08); }
.info-item .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: #94a3b8; font-weight: 600; }
.info-item .value { font-size: .95rem; font-weight: 600; color: #1e293b; margin-top: 4px; }

/* ── Suivi : timeline ──────────────────────────────────────────── */
.timeline { padding: 0; list-style: none; position: relative; }
.timeline::before {
    content: ''; position: absolute;
    left: 20px; top: 8px; bottom: 8px;
    width: 2px; background: #e9ecef;
}
.tl-item { display: flex; gap: 16px; padding: 12px 0; position: relative; }
.tl-dot {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0; z-index: 1;
    border: 3px solid;
}
.tl-dot.done    { background: #d1fae5; border-color: #10b981; color: #047857; }
.tl-dot.current { background: #dbeafe; border-color: #3b82f6; color: #1d4ed8; }
.tl-dot.pending { background: #f3f4f6; border-color: #d1d5db; color: #9ca3af; }
.tl-content { padding-top: 8px; }

/* ── Suivi : section QR ────────────────────────────────────────── */
.qr-section {
    text-align: center;
    padding: 28px;
    border-top: 1px solid #f0f0f0;
    background: #f8faff;
}
