/* ==========================================================================
   offre-emploi-v1.css — Page d'une offre d'emploi — NVI Facility

   Chargé uniquement sur les pages /offre-emploi/<slug>/ (inc/enqueue.php).

   Le nom du fichier porte sa version (-v1) : le cache serveur LWS indexe les
   fichiers statiques par NOM et ignore le paramètre ?ver. Pour publier une
   modification de ce fichier, le renommer en -v2 et pointer l'enqueue dessus.

   NVI Facility | Matrix Digital
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Icônes dans les tags — complète .offre-tag (main.css)
   -------------------------------------------------------------------------- */
.offre-tag svg {
    width:  14px;
    height: 14px;
    flex:   0 0 auto;
}

/* Tags utilisés par les offres mais sans couleur dans main.css */
.tag-exp {
    background: rgba(33, 118, 174, .10);
    color: #1a5c8a;
}

.tag-etu {
    background: rgba(142, 36, 170, .10);
    color: #7b1fa2;
}

.tag-salaire {
    background: rgba(67, 160, 71, .12);
    color: #2e7d32;
}

/* --------------------------------------------------------------------------
   2. Carte de l'offre en pleine page
   -------------------------------------------------------------------------- */
.offre-single-section .container {
    max-width: 860px;
}

.offre-single-card {
    padding: 0;
}

.offre-single-head {
    padding: 28px 28px 22px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.offre-single-head .offre-titre {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--navy);
}

.offre-single-body {
    padding: 26px 28px 30px;
}

.offre-single-body .offre-description {
    font-size: 1rem;
    color: var(--gray-dark);
    margin-bottom: 28px;
}

.offre-single-body .offre-description h2,
.offre-single-body .offre-description h3,
.offre-single-body .offre-description h4 {
    font-family: var(--font-condensed);
    color: var(--navy);
    margin: 1.6em 0 .5em;
    font-size: 1.125rem;
    letter-spacing: .01em;
}

/* --------------------------------------------------------------------------
   3. Candidature
   -------------------------------------------------------------------------- */
.offre-single-actions {
    padding-top: 22px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.offre-single-actions .offre-postuler svg {
    width:  18px;
    height: 18px;
    flex:   0 0 auto;
}

.offre-single-aide {
    margin: 14px 0 0;
    font-size: .875rem;
    color: var(--gray-mid);
    line-height: 1.6;
}

.offre-single-aide a {
    color: var(--cyan);
    text-decoration: underline;
}

.offre-close-notice {
    margin: 0;
    padding: 14px 16px;
    border-left: 4px solid var(--color-chauffeurs);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background: rgba(245, 124, 0, .08);
    color: #a24b00;
    font-size: .9375rem;
    line-height: 1.6;
}

.offre-single-retour {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--navy);
    transition: var(--transition);
}

.offre-single-retour svg {
    width:  16px;
    height: 16px;
    flex:   0 0 auto;
}

.offre-single-retour:hover {
    color: var(--cyan);
    gap: 11px;
}

/* --------------------------------------------------------------------------
   4. Mode sombre — les variables suffisent, seules les bordures et les
      fonds rgba() codés en dur ont besoin d'un contre-pied.
   -------------------------------------------------------------------------- */
[data-theme="dark"] .offre-single-head,
[data-theme="dark"] .offre-single-actions {
    border-color: rgba(255, 255, 255, .10);
}

[data-theme="dark"] .tag-exp     { background: rgba(77, 207, 234, .14); color: #8fd4ee; }
[data-theme="dark"] .tag-etu     { background: rgba(206, 147, 216, .14); color: #d8aee0; }
[data-theme="dark"] .tag-salaire { background: rgba(129, 199, 132, .14); color: #a5d6a7; }

[data-theme="dark"] .offre-close-notice {
    background: rgba(245, 124, 0, .14);
    color: #f0a65c;
}

/* --------------------------------------------------------------------------
   5. Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

    .offre-single-head {
        padding: 22px 18px 18px;
    }

    .offre-single-head .offre-titre {
        font-size: 1.25rem;
    }

    .offre-single-body {
        padding: 20px 18px 24px;
    }

    .offre-single-body .offre-description {
        font-size: .9375rem;
    }

    .offre-single-actions .offre-postuler {
        display: flex;
        width: 100%;
        justify-content: center;
    }
}
