/* styles spécifiques à la page "Carrière" */
/* Les classes communes aux pages intérieures (.section, .wrap, .eyebrow, .sec-head, .ph,
   .split, .grid, .checklist, .timeline, .cta-band, …) sont fournies par
   assets/css/inner-pages.css et style.css, chargés globalement. */

/* ─── FRISE DU PROCESSUS — icônes animées dans les pastilles de la frise ─── */
.timeline.tl-icon-line {
    padding-left: 54px;
}

.timeline.tl-icon-line::before {
    left: 17px;
}

.timeline.tl-icon-line .tl-item {
    padding-bottom: 30px;
}

.timeline.tl-icon-line .tl-item::before {
    display: none;
}

.timeline.tl-icon-line .tl-item .tl-icon {
    position: absolute;
    left: -54px;
    top: -1px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #2e5bff;
    display: grid;
    place-items: center;
    z-index: 1;
    animation: tl-icon-pulse 2.6s ease-in-out infinite;
}

.timeline.tl-icon-line .tl-item .tl-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px dotted #2e5bff;
    animation: tl-icon-spin 5s linear infinite;
}

.timeline.tl-icon-line .tl-item .tl-icon svg {
    position: relative;
    width: 17px;
    height: 17px;
}

@keyframes tl-icon-spin {
    to {
        transform: rotate(360deg);
    }
}

.timeline.tl-icon-line .tl-item h3 {
    margin-top: 6px;
}

@keyframes tl-icon-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(46, 91, 255, 0.22);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(46, 91, 255, 0);
    }
}

/* ─── MISE EN PAGE OFFRES + PROCESSUS ─────────────────── */
.split.jobs-layout {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
    gap: 56px;
}

@media (max-width: 900px) {
    .split.jobs-layout {
        grid-template-columns: 1fr;
    }
}

/* ─── BARRE D'OUTILS (compteur + bascule d'affichage) ──── */
.jobs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}

.jobs-count {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #5b6b82;
}

.view-toggle {
    display: inline-flex;
    gap: 6px;
    background: #f2f5fa;
    border: 1px solid #e6ecf4;
    border-radius: 12px;
    padding: 4px;
}

.vtbtn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: #5b6b82;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    border-radius: 9px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.vtbtn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.vtbtn.is-active {
    background: #ffffff;
    color: #2e5bff;
    box-shadow: 0 6px 16px rgba(16, 38, 76, 0.08);
}

/* ─── OFFRES — VUE CARTES (par défaut) ────────────────── */
.jobs[data-view="card"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media (max-width: 640px) {
    .jobs[data-view="card"] {
        grid-template-columns: 1fr;
    }
}

.jobs[data-view="card"] .job-item {
    flex-direction: column;
    align-items: stretch;
}

.jobs[data-view="card"] .ji-apply {
    margin-top: 18px;
}

.jobs[data-view="card"] .ji-apply .btn {
    display: block;
    text-align: center;
    width: 100%;
}

/* ─── OFFRES — VUE LISTE ──────────────────────────────── */
.jobs[data-view="list"] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jobs[data-view="list"] .job-item {
    flex-direction: row;
    align-items: center;
}

.jobs[data-view="list"] .ji-apply {
    flex: none;
}

@media (max-width: 640px) {
    .jobs[data-view="list"] .job-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .jobs[data-view="list"] .ji-apply {
        width: 100%;
    }

    .jobs[data-view="list"] .ji-apply .btn {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* ─── CARTE / LIGNE D'OFFRE ───────────────────────────── */
.job-item {
    display: flex;
    gap: 22px;
    background: #ffffff;
    border: 1px solid #e6ecf4;
    border-radius: 18px;
    padding: 24px 26px;
    transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s;
}

.job-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(16, 38, 76, 0.10);
    border-color: transparent;
}

.ji-main {
    flex: 1;
    min-width: 0;
}

.ji-main h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #142036;
}

.ji-desc {
    color: #5b6b82;
    font-size: 14px;
    margin-top: 6px;
    line-height: 1.6;
}

.ji-apply {
    flex: none;
}

/* ─── AVANTAGES (perks) ───────────────────────────────── */
.perk {
    background: #ffffff;
    border: 1px solid #e6ecf4;
    border-radius: 18px;
    padding: 26px 24px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.perk:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(16, 38, 76, 0.10);
    border-color: transparent;
}

.perk .pic {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #e7edff;
    color: #2e5bff;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.perk .pic svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.8;
}

.perk h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #142036;
    margin-bottom: 8px;
}

.perk p {
    color: #5b6b82;
    font-size: 14px;
    line-height: 1.6;
}

/* ─── GALERIE PHOTO (vie d'équipe) ────────────────────── */
.gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 420px;
}

.gallery .ph:nth-child(1) {
    grid-row: span 2;
}

.gallery .ph:nth-child(4) {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .gallery {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }

    .gallery .ph {
        height: 160px;
    }

    .gallery .ph:nth-child(1) {
        grid-row: span 1;
    }

    .gallery .ph:nth-child(4) {
        grid-column: span 2;
    }
}
