/* =========================================================
   SunWest — Recrutement / Offres d'emploi
   (tailles en px — corps de texte >= 16px)
   ========================================================= */

/* --- Grille d'offres --- */
.cpt-archive--offre {
    padding-top: 56px;
    padding-bottom: 72px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}
@media (max-width: 1024px) {
    .cpt-archive--offre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
    .cpt-archive--offre { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 48px; }
}

/* --- Carte offre --- */
.offre-card {
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(26, 26, 46, .08);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
}
.offre-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
}
.offre-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    width: 100%;
    color: inherit;
}
.offre-card__img { margin: 0; overflow: hidden; aspect-ratio: 16 / 10; background: #f2f4f8; }
.offre-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.offre-card:hover .offre-card__img img { transform: scale(1.04); }
.offre-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 26px 24px;
    flex: 1;
}
.offre-card__top { display: flex; flex-wrap: wrap; gap: 8px; }
.offre-card__type,
.offre-card__exp {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
}
.offre-card__type { background: #fef0dc; color: #d4800a; }
.offre-card__exp { background: #f2f4f8; color: #2e374d; }
.offre-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
}
.offre-card__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #555c6b;
    font-size: 16px;
    line-height: 1.45;
}
.offre-card__meta li { display: flex; align-items: flex-start; gap: 8px; }
.offre-card__meta li::before {
    content: "";
    margin-top: 9px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ec900a;
    flex-shrink: 0;
}
.offre-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #ec900a;
    font-size: 16px;
}
.offre-card__cta span { transition: transform .2s ease; }
.offre-card:hover .offre-card__cta span { transform: translateX(4px); }

/* --- Message "aucune offre" --- */
.recrut-empty {
    text-align: center;
    padding: 48px 20px 72px;
    color: #555c6b;
    font-size: 17px;
}
.recrut-empty a { color: #ec900a; font-weight: 600; }

/* --- Fiche offre (2 colonnes) --- */
.single-offre { padding-top: 40px; padding-bottom: 72px; }
.single-offre__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 1024px) {
    .single-offre__grid { grid-template-columns: 1fr; }
}
.single-offre__content { min-width: 0; }

.offre-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px 30px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 40px;
}
.offre-hero__img { margin: -28px -30px 0; overflow: hidden; border-radius: 16px 16px 0 0; }
.offre-hero__img img { width: 100%; height: auto; display: block; max-height: 380px; object-fit: cover; }
.offre-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.offre-hero__type,
.offre-hero__exp {
    display: inline-flex; align-items: center;
    font-size: 15px; font-weight: 600;
    padding: 7px 16px; border-radius: 999px;
}
.offre-hero__type { background: #ec900a; color: #fff; }
.offre-hero__exp { background: #f2f4f8; color: #2e374d; }
.offre-hero__status {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 15px; font-weight: 600;
    padding: 7px 16px; border-radius: 999px;
}
.offre-hero__status--open { background: #e9f9ef; color: #15803d; }
.offre-hero__status--closed { background: #f3f4f6; color: #9ca3af; }
.offre-hero__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.offre-hero__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px 28px;
    margin: 0;
}
.offre-hero__facts div { display: flex; flex-direction: column; gap: 4px; }
.offre-hero__facts dt { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #9ca3af; font-weight: 600; }
.offre-hero__facts dd { margin: 0; font-size: 16px; color: #1a1a2e; font-weight: 600; }

/* --- Sections offre --- */
.offre-section { margin-bottom: 36px; }
.offre-section__title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fef0dc;
}
.offre-section__content { color: #2e374d; line-height: 1.7; font-size: 16px; }
.offre-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.offre-list li { position: relative; padding-left: 28px; color: #2e374d; line-height: 1.6; font-size: 16px; }
.offre-list li::before {
    content: "";
    position: absolute; left: 2px; top: 8px;
    width: 12px; height: 12px;
    border-radius: 4px;
    background: #fef0dc;
    border: 1px solid #ec900a;
}
.offre-list--avantages li::before { background: #ec900a; border-color: #ec900a; }
.offre-sublist__title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 24px 0 12px;
}
.offre-sublist__title:first-child { margin-top: 0; }

/* --- Étapes de candidature --- */
.offre-process { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.offre-process__step {
    position: relative;
    padding: 18px 20px 18px 60px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.offre-process__step::before {
    content: attr(data-n);
    position: absolute; left: 18px; top: 18px;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: #ec900a; color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
}
.offre-process__title { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: #1a1a2e; }
.offre-process__text { margin: 0; color: #555c6b; line-height: 1.6; font-size: 16px; }

/* --- FAQ --- */
.offre-faq { display: flex; flex-direction: column; gap: 10px; }
.offre-faq__item { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.offre-faq__q {
    padding: 16px 20px;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 44px;
}
.offre-faq__q::-webkit-details-marker { display: none; }
.offre-faq__q::after {
    content: "+";
    position: absolute; right: 18px; top: 50%;
    transform: translateY(-50%);
    font-size: 22px; color: #ec900a; line-height: 1;
}
.offre-faq__item[open] .offre-faq__q::after { content: "–"; }
.offre-faq__r { padding: 0 20px 18px; color: #555c6b; line-height: 1.6; font-size: 16px; }

/* --- Bloc postuler (sidebar) --- */
.single-offre__aside { position: relative; }
.offre-apply {
    padding: 32px 30px;
    background: #fef0dc;
    border-radius: 16px;
}
.offre-apply--sticky { position: sticky; top: 24px; }
@media (max-width: 1024px) {
    .offre-apply--sticky { position: static; }
}
.offre-apply__title { margin: 0 0 8px; font-size: 24px; color: #1a1a2e; }
.offre-apply__desc { margin: 0 0 22px; color: #555c6b; font-size: 16px; line-height: 1.5; }
.offre-apply__closed { text-align: center; padding: 12px 0; }
.offre-apply__alt {
    margin-top: 16px;
    padding: 0 8px;
    text-align: center;
    color: #555c6b;
    font-size: 15px;
}
.offre-apply__alt a { color: #ec900a; font-weight: 600; }
.offre-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #ec900a; color: #fff;
    padding: 13px 26px; border-radius: 999px;
    text-decoration: none; font-weight: 600; font-size: 16px;
    transition: background .2s ease, transform .2s ease;
}
.offre-btn:hover { background: #d4800a; transform: translateY(-2px); }
.offre-btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.offre-btn--download {
    background: #fef0dc; color: #1a1a2e;
    border: 2px solid #ec900a;
}
.offre-btn--download:hover { background: #f8dfb5; color: #1a1a2e; }
.offre-btn--lg { padding: 16px 32px; font-size: 17px; }
.offre-download {
    margin-top: 12px;
    padding: 28px 30px;
    background: #fff;
    border: 1px dashed #ec900a;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}
.offre-download__text { margin: 0; color: #555c6b; font-size: 16px; }

/* --- Page Recrutement : hero --- */
.page-recrutement { padding-bottom: 72px; }
.recrut-hero { margin-top: 16px; margin-bottom: 8px; }
.recrut-hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: #fef0dc;
    border: 1px solid #f3d9a6;
    border-radius: 20px;
    overflow: hidden;
    align-items: stretch;
}
.recrut-hero__body {
    padding: 44px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}
.recrut-hero__title { margin: 0; font-size: 34px; color: #1a1a2e; font-weight: 700; line-height: 1.2; }
.recrut-hero__text { margin: 0; color: #4b5563; line-height: 1.7; font-size: 17px; }
.recrut-hero__img { margin: 0; }
.recrut-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 260px; }
.offre-btn--hero { align-self: flex-start; }
@media (max-width: 820px) {
    .recrut-hero__inner { grid-template-columns: 1fr; }
    .recrut-hero__body { padding: 32px 26px; }
    .recrut-hero__img { display: none; }
}

.recrut-offers { margin-top: 24px; }
.page-recrutement .cpt-archive--offre { padding-top: 28px; padding-bottom: 8px; }
.recrut-offers__title,
.recrut-spontanee__title,
.recrut-pourquoi__title {
    font-size: 30px; font-weight: 600; color: #1a1a2e; margin: 0 0 8px;
}

/* --- Page Recrutement : pourquoi --- */
.recrut-pourquoi { margin-top: 56px; }
.recrut-pourquoi__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}
@media (max-width: 900px) { .recrut-pourquoi__grid { grid-template-columns: 1fr; } }
.recrut-pourquoi__item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px 22px;
}
.recrut-pourquoi__item-title { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: #1a1a2e; }
.recrut-pourquoi__item-text { margin: 0; color: #555c6b; line-height: 1.6; font-size: 16px; }

/* --- Candidature spontanée --- */
.recrut-spontanee {
    margin-top: 56px;
    padding: 40px 36px;
    background: #fef0dc;
    border-radius: 16px;
}
.recrut-spontanee__desc { margin: 0 0 24px; color: #555c6b; max-width: 720px; font-size: 16px; line-height: 1.6; }

/* --- Formulaires CF7 (scoped) --- */
.offre-apply .wpcf7-form,
.recrut-spontanee .wpcf7-form { display: flex; flex-direction: column; gap: 14px; }
.offre-apply .form-row,
.recrut-spontanee .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) {
    .offre-apply .form-row,
    .recrut-spontanee .form-row { grid-template-columns: 1fr; }
}
.offre-apply input[type="text"],
.offre-apply input[type="email"],
.offre-apply input[type="tel"],
.offre-apply textarea,
.recrut-spontanee input[type="text"],
.recrut-spontanee input[type="email"],
.recrut-spontanee input[type="tel"],
.recrut-spontanee textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    color: #1a1a2e;
}
.offre-apply input:focus,
.recrut-spontanee input:focus,
.offre-apply textarea:focus,
.recrut-spontanee textarea:focus {
    outline: none;
    border-color: #ec900a;
    box-shadow: 0 0 0 3px rgba(236, 144, 10, .15);
}
.offre-apply input[type="file"],
.recrut-spontanee input[type="file"] { font-size: 15px; color: #555c6b; }
.offre-apply .form-field label,
.recrut-spontanee .form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 16px;
}
.offre-apply input[type="submit"],
.recrut-spontanee input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ec900a;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.offre-apply input[type="submit"]:hover,
.recrut-spontanee input[type="submit"]:hover { background: #d4800a; transform: translateY(-2px); }
