/* ==========================================================================
   Emploi Maghreb — feuille de style unique (légère, mobile-first).
   Sommaire : jetons · base · boutons · en-tête · héros · sections ·
   cartes · listes/filtres · offre détaillée · FAQ · pagination ·
   états vides · 404 · pied de page · publicité · mode sombre.
   ========================================================================== */

/* --- Jetons ---------------------------------------------------------------- */
:root {
        --em-primary: #2563eb;
        --em-primary-dark: #1d4ed8;
        --em-primary-soft: #eff6ff;
        --em-primary-ink: #1e40af;
        --em-secondary: #0f172a;
        --em-text: #111827;
        --em-muted: #6b7280;
        --em-border: #e5e7eb;
        --em-bg: #ffffff;
        --em-bg-subtle: #f8fafc;
        --em-bg-card: #ffffff;
        --em-bg-soft: #eff6ff;
        --em-success: #047857;
        --em-success-soft: #ecfdf5;
        --em-danger: #b91c1c;
        --em-danger-soft: #fef2f2;
        --em-placeholder-a: #e0e7ff;
        --em-placeholder-b: #d1fae5;
        --em-placeholder-c: #fce7f3;
        --em-footer-bg: #0f172a;
        --em-footer-text: #94a3b8;
        --em-radius: 10px;
        --em-radius-sm: 8px;
        --em-container: 1200px;
        --em-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
        --em-shadow-lg: 0 10px 24px rgba(15, 23, 42, 0.1);
        --em-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        color-scheme: light;
}

/* --- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
        margin: 0;
        font-family: var(--em-font);
        font-size: 1rem;
        line-height: 1.6;
        color: var(--em-text);
        background: var(--em-bg);
        -webkit-font-smoothing: antialiased;
        overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

a { color: var(--em-primary); text-decoration: none; }
a:hover { color: var(--em-primary-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
        font-family: inherit;
        line-height: 1.25;
        color: var(--em-text);
        margin: 0 0 0.6em;
        font-weight: 700;
        overflow-wrap: break-word;
}
p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }

::selection { background: var(--em-primary-soft); }

:focus-visible {
        outline: 2px solid var(--em-primary);
        outline-offset: 2px;
        border-radius: 2px;
}

/* Lecture d’écran */
.screen-reader-text {
        position: absolute !important;
        width: 1px; height: 1px;
        margin: -1px; padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
}

/* Lien d’évitement */
.em-skip-link {
        position: fixed;
        top: 0; left: 0;
        z-index: 200;
        padding: 10px 18px;
        background: var(--em-primary);
        color: #fff;
        font-weight: 600;
        border-radius: 0 0 var(--em-radius-sm) 0;
        transform: translateY(-120%);
        transition: transform 0.15s ease;
}
.em-skip-link:focus { transform: translateY(0); color: #fff; text-decoration: none; }

/* Conteneurs */
.em-container {
        width: 100%;
        max-width: var(--em-container);
        margin-inline: auto;
        padding-inline: 16px;
}
.em-narrow { max-width: 760px; }
.em-main { display: block; padding-bottom: 56px; min-height: 40vh; }

/* --- Boutons & liens -------------------------------------------------------- */
.em-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        padding: 10px 20px;
        border: 1px solid transparent;
        border-radius: var(--em-radius-sm);
        font-family: inherit;
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
        cursor: pointer;
        transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.em-btn:hover { text-decoration: none; }

.em-btn--primary { background: var(--em-primary); color: #fff; }
.em-btn--primary:hover, .em-btn--primary:focus-visible { background: var(--em-primary-dark); color: #fff; }

.em-btn--secondary {
        background: var(--em-bg);
        color: var(--em-text);
        border-color: var(--em-border);
}
.em-btn--secondary:hover { border-color: var(--em-primary); color: var(--em-primary); }

.em-btn--ghost { background: transparent; color: var(--em-primary); }
.em-btn--ghost:hover { background: var(--em-primary-soft); }

.em-btn--sm { min-height: 38px; padding: 7px 14px; font-size: 0.875rem; }
.em-btn--lg { min-height: 52px; padding: 14px 28px; font-size: 1.05rem; }
.em-btn--block { width: 100%; }

.em-icon-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 40px; height: 40px;
        border: none;
        border-radius: var(--em-radius-sm);
        background: transparent;
        color: var(--em-text);
        cursor: pointer;
        transition: background-color 0.15s ease;
}
.em-icon-btn:hover { background: var(--em-primary-soft); color: var(--em-primary); }
.em-icon-btn:focus-visible { outline: 2px solid var(--em-primary); }

/* Badge de compteur (offres sauvegardées) */
.em-icon-btn__badge {
        position: absolute;
        top: 2px;
        right: 2px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: var(--em-primary);
        color: #fff;
        font-size: 0.66rem;
        font-weight: 800;
        line-height: 1;
        font-variant-numeric: tabular-nums;
        box-shadow: 0 0 0 2px var(--em-bg);
        pointer-events: none;
}
.em-icon-btn__badge--inline {
        position: static;
        box-shadow: none;
        background: var(--em-primary-soft);
        color: var(--em-primary-ink);
        border: 1px solid var(--em-primary);
        min-width: auto;
        height: auto;
        padding: 1px 7px;
        font-size: 0.75rem;
}

.em-link { color: var(--em-text); font-weight: 500; text-decoration: none; }
.em-link:hover { color: var(--em-primary); text-decoration: underline; }

.em-link-arrow {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-weight: 600;
        font-size: 0.925rem;
        color: var(--em-primary);
        white-space: nowrap;
}
.em-link-arrow:hover { color: var(--em-primary-dark); text-decoration: none; }
.em-link-arrow svg { flex: none; }

.em-muted-text { color: var(--em-muted); }

/* --- Badges & pastilles ------------------------------------------------------ */
.em-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 600;
        line-height: 1.3;
        white-space: nowrap;
}
.em-pill svg { flex: none; }
.em-pill--type { background: var(--em-primary-soft); color: var(--em-primary-ink); }
.em-pill--salary { background: var(--em-success-soft); color: var(--em-success); }
.em-pill--remote { background: var(--em-bg-subtle); color: var(--em-text); border: 1px solid var(--em-border); }
.em-pill--expired { background: var(--em-danger-soft); color: var(--em-danger); }

/* --- Formulaires -------------------------------------------------------------- */
input[type="text"], input[type="search"], input[type="email"], input[type="url"],
input[type="password"], input[type="number"], select, textarea {
        width: 100%;
        font-family: inherit;
        font-size: 0.95rem;
        color: var(--em-text);
        background: var(--em-bg);
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius-sm);
        padding: 10px 12px;
        min-height: 44px;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: var(--em-primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

label { font-size: 0.875rem; font-weight: 600; }

/* Formulaire de recherche compact */
.em-search-form { display: flex; gap: 8px; align-items: stretch; }
.em-search-form input[type="search"] { flex: 1; min-width: 0; }
.em-search-form__btn { flex: none; min-height: 44px; }

/* --- En-tête -------------------------------------------------------------------- */
.em-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--em-bg);
        border-bottom: 1px solid var(--em-border);
        transition: box-shadow 0.2s ease;
}
.em-header.is-scrolled { box-shadow: var(--em-shadow); }

.em-header__inner {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 62px;
}

.em-logo {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
}
.em-logo:hover { text-decoration: none; }
.em-logo__mark {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px; height: 36px;
        border-radius: 9px;
        background: var(--em-primary);
        color: #fff;
        font-size: 0.85rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        flex: none;
}
.em-logo__text { font-size: 1.075rem; font-weight: 800; color: var(--em-text); letter-spacing: -0.01em; }
.em-logo-img, .em-logo-img--header { max-height: 42px; width: auto; }
.custom-logo-link { display: inline-flex; }

.em-header__brand { flex: none; margin-right: 4px; }

.em-nav { display: none; }
.em-nav__list, .em-mobile-menu__list {
        display: flex;
        align-items: center;
        gap: 2px;
        list-style: none;
        margin: 0; padding: 0;
}
.em-nav__list li, .em-mobile-menu__list li { margin: 0; }

.em-nav__list a {
        display: inline-flex;
        align-items: center;
        padding: 9px 12px;
        font-size: 0.925rem;
        font-weight: 500;
        color: var(--em-text);
        border-radius: var(--em-radius-sm);
        text-decoration: none;
}
.em-nav__list a:hover { color: var(--em-primary); background: var(--em-primary-soft); text-decoration: none; }
.em-nav__list .current-menu-item > a,
.em-nav__list .current_page_item > a { color: var(--em-primary); }

.em-header__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.em-header__login { display: none; }
.em-header__cta { display: none; }

/* Icônes thème/menu : affichage selon le mode */
.em-theme-icon--moon, .em-menu-icon--close { display: none; }
[data-em-theme="dark"] .em-theme-icon--sun { display: none; }
[data-em-theme="dark"] .em-theme-icon--moon { display: block; }
.em-menu-toggle[aria-expanded="true"] .em-menu-icon--open { display: none; }
.em-menu-toggle[aria-expanded="true"] .em-menu-icon--close { display: block; }

/* Panneau recherche mobile */
.em-header__search { border-top: 1px solid var(--em-border); padding: 12px 0; background: var(--em-bg); }
.em-header__search[hidden] { display: none; }

/* Panneau menu mobile */
.em-mobile-menu { border-top: 1px solid var(--em-border); background: var(--em-bg); padding: 10px 0 18px; }
.em-mobile-menu[hidden] { display: none; }
.em-mobile-menu__list { flex-direction: column; align-items: stretch; gap: 2px; }
.em-mobile-menu__list a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 10px 12px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--em-text);
        border-radius: var(--em-radius-sm);
        text-decoration: none;
}
.em-mobile-menu__list a:hover, .em-mobile-menu__list .current-menu-item > a { background: var(--em-primary-soft); color: var(--em-primary); }
.em-mobile-menu__actions {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid var(--em-border);
        flex-wrap: wrap;
}
.em-mobile-menu__actions .em-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.em-mobile-menu__actions .em-link svg { flex: none; color: var(--em-muted); }
.em-mobile-menu__actions .em-link:hover svg { color: var(--em-primary); }

/* Très petits écrans : en-tête compact — le signet migre dans le menu mobile */
@media (max-width: 479px) {
        .em-header__inner { gap: 8px; }
        .em-header__brand { flex: 0 1 auto; min-width: 0; margin-right: 0; }
        .em-logo { gap: 8px; min-width: 0; }
        .em-logo__mark { width: 32px; height: 32px; border-radius: 8px; font-size: 0.75rem; }
        .em-logo__text { font-size: 0.95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .em-header__saved { display: none; }
        .em-logo-img, .em-logo-img--header { max-height: 34px; }
}

/* --- Héros ------------------------------------------------------------------------ */
.em-hero {
        background: var(--em-bg-soft);
        border-bottom: 1px solid var(--em-border);
        padding: 44px 0 40px;
}
.em-hero__title {
        font-size: clamp(1.65rem, 4.6vw, 2.5rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        max-width: 720px;
        margin-bottom: 0.45em;
}
.em-hero__subtitle {
        color: var(--em-muted);
        font-size: clamp(1rem, 2.6vw, 1.15rem);
        max-width: 640px;
        margin-bottom: 1.6em;
}

.em-hero__form {
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: var(--em-bg-card);
        border: 1px solid var(--em-border);
        border-radius: 14px;
        padding: 12px;
        box-shadow: var(--em-shadow-lg);
}
.em-hero__field { position: relative; display: flex; align-items: center; }
.em-hero__field .em-field-icon {
        position: absolute;
        left: 12px;
        display: inline-flex;
        color: var(--em-muted);
        pointer-events: none;
}
.em-hero__field input, .em-hero__field select {
        padding-left: 38px;
        border: none;
        background: transparent;
        min-height: 48px;
        box-shadow: none;
}
.em-hero__field input:focus, .em-hero__field select:focus { box-shadow: 0 0 0 2px var(--em-primary); border-radius: var(--em-radius-sm); }
.em-hero__submit { min-height: 48px; }

.em-hero__examples {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        margin: 18px 0 0;
        font-size: 0.875rem;
}
.em-hero__examples-label { color: var(--em-muted); font-weight: 600; }

/* Chiffres clés réels du héros (masqués si aucune offre publiée). */
.em-hero__stats {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 34px;
        margin: 30px 0 0;
        padding: 22px 26px;
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius);
        background: var(--em-bg-card);
}
.em-hero__stat {
        display: flex;
        align-items: baseline;
        gap: 8px;
        position: relative;
}
.em-hero__stat + .em-hero__stat { padding-left: 34px; }
.em-hero__stat + .em-hero__stat::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 26px;
        border-left: 1px solid var(--em-border);
}
.em-hero__stat strong {
        font-size: 1.45rem;
        font-weight: 800;
        color: var(--em-primary);
        font-variant-numeric: tabular-nums;
        line-height: 1;
}
.em-hero__stat span:not([hidden]) {
        color: var(--em-muted);
        font-size: 0.9rem;
        font-weight: 600;
}
@media (max-width: 567px) {
        .em-hero__stats { gap: 12px 20px; padding: 16px 18px; }
        .em-hero__stat + .em-hero__stat { padding-left: 20px; }
        .em-hero__stat + .em-hero__stat::before { height: 22px; }
        .em-hero__stat strong { font-size: 1.25rem; }
}

/* --- Puces / chips ----------------------------------------------------------------- */
.em-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 13px;
        border: 1px solid var(--em-border);
        border-radius: 999px;
        background: var(--em-bg);
        color: var(--em-text);
        font-size: 0.875rem;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
}
.em-chip:hover { border-color: var(--em-primary); color: var(--em-primary); text-decoration: none; }
.em-chip--solid { background: var(--em-primary-soft); border-color: transparent; color: var(--em-primary-ink); }
.em-chip--solid:hover { background: #dbeafe; color: var(--em-primary-ink); }

.em-chip-row, .em-popular__list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        list-style: none;
        margin: 0; padding: 0;
}
.em-chip-row li, .em-popular__list li { margin: 0; }

.em-popular { padding: 18px 0; border-bottom: 1px solid var(--em-border); }
.em-popular__title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--em-muted); margin-bottom: 10px; }

/* --- Sections ------------------------------------------------------------------------ */
.em-section { padding: 44px 0; }
.em-section--subtle { background: var(--em-bg-subtle); border-block: 1px solid var(--em-border); }
.em-section--seo { padding-top: 20px; }

.em-section__head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
        margin-bottom: 22px;
}
.em-section__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.em-section__count {
        display: inline-flex;
        align-items: center;
        vertical-align: middle;
        margin-left: 10px;
        padding: 3px 10px;
        border-radius: 999px;
        background: var(--em-success-soft);
        color: var(--em-success);
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1.4;
        white-space: nowrap;
        transform: translateY(-2px);
}
.em-section__sub { color: var(--em-muted); font-size: 0.925rem; margin: 4px 0 0; max-width: 560px; }

/* --- Grilles --------------------------------------------------------------------------- */
.em-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.em-grid--jobs { gap: 16px; }

/* --- Carte d’offre ------------------------------------------------------------------------ */
.em-job-card {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 8px 14px;
        background: var(--em-bg-card);
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius);
        padding: 16px;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.em-job-card:hover { border-color: #c7d2fe; box-shadow: var(--em-shadow); }

.em-job-card__logo { grid-row: 1; }
.em-job-card__logo .em-logo-img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: var(--em-bg-subtle); padding: 4px; }
.em-logo-placeholder {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 56px; height: 56px;
        border-radius: 10px;
        font-size: 1.35rem;
        font-weight: 800;
        color: var(--em-primary-ink);
}
.em-logo-placeholder--a { background: var(--em-placeholder-a); }
.em-logo-placeholder--b { background: var(--em-placeholder-b); color: var(--em-success); }
.em-logo-placeholder--c { background: var(--em-placeholder-c); color: #9d174d; }

.em-job-card__body { grid-row: 1; min-width: 0; }
.em-job-card__title { font-size: 1.02rem; font-weight: 700; margin: 0 0 2px; line-height: 1.35; }
.em-job-card__title a { color: var(--em-text); }
.em-job-card__title a:hover { color: var(--em-primary); text-decoration: none; }
.em-job-card__company { font-size: 0.875rem; color: var(--em-muted); margin: 0 0 8px; font-weight: 500; }
.em-job-card__company a { color: inherit; }
.em-job-card__company a:hover { color: var(--em-primary); }

.em-job-card__meta {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 14px;
        list-style: none;
        margin: 0; padding: 0;
        font-size: 0.8rem;
        color: var(--em-muted);
}
.em-job-card__meta li { display: inline-flex; align-items: center; gap: 5px; }
.em-job-card__meta svg { flex: none; opacity: 0.75; }

.em-job-card__aside {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        padding-top: 10px;
        border-top: 1px dashed var(--em-border);
}
.em-job-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.em-job-card--expired { opacity: 0.75; }

/* --- Tuiles métiers/villes ------------------------------------------------------------------- */
.em-tile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        background: var(--em-bg-card);
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius);
        padding: 16px;
        text-decoration: none;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.em-tile:hover { border-color: #c7d2fe; box-shadow: var(--em-shadow); text-decoration: none; }
.em-tile__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px; height: 42px;
        border-radius: 10px;
        background: var(--em-primary-soft);
        color: var(--em-primary);
        flex: none;
}
.em-tile__name { font-weight: 700; color: var(--em-text); }
.em-tile__count { font-size: 0.8rem; color: var(--em-muted); }
.em-tile__count--muted { color: var(--em-primary); font-weight: 600; }
.em-tile--city { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.em-tile--city .em-tile__icon { width: 38px; height: 38px; border-radius: 9px; }
.em-tile--city .em-tile__name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.em-tile--city .em-tile__count { flex: 0 0 auto; white-space: nowrap; }

/* --- Carte entreprise ------------------------------------------------------------------------ */
.em-company-card {
        display: flex;
        align-items: center;
        gap: 14px;
        background: var(--em-bg-card);
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius);
        padding: 16px;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.em-company-card:hover { border-color: #c7d2fe; box-shadow: var(--em-shadow); }
.em-company-card__logo { flex: none; }
.em-company-card__logo .em-logo-img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: var(--em-bg-subtle); padding: 4px; }
.em-company-card__body { flex: 1; min-width: 0; }
.em-company-card__title { font-size: 1rem; font-weight: 700; margin: 0; }
.em-company-card__title a { color: var(--em-text); }
.em-company-card__title a:hover { color: var(--em-primary); text-decoration: none; }
.em-company-card__sector, .em-company-card__city { font-size: 0.82rem; color: var(--em-muted); margin: 2px 0 0; }
.em-company-card__city { display: inline-flex; align-items: center; gap: 5px; }
.em-company-card__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.em-company-card__count { font-size: 0.8rem; color: var(--em-success); font-weight: 700; white-space: nowrap; }
.em-company-card__count--muted { color: var(--em-muted); font-weight: 500; }

/* --- Cartes article / guides -------------------------------------------------------------------- */
.em-post-card {
        background: var(--em-bg-card);
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius);
        overflow: hidden;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.em-post-card:hover { border-color: #c7d2fe; box-shadow: var(--em-shadow); }
.em-post-card__thumb { display: block; aspect-ratio: 16 / 9; background: var(--em-bg-subtle); }
.em-post-card__img { width: 100%; height: 100%; object-fit: cover; }
.em-post-card__body { padding: 16px; }
.em-post-card__cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; color: var(--em-primary); margin: 0 0 6px; }
.em-post-card__cat a { color: inherit; }
.em-post-card__title { font-size: 1rem; margin: 0 0 6px; line-height: 1.4; }
.em-post-card__title a { color: var(--em-text); }
.em-post-card__title a:hover { color: var(--em-primary); text-decoration: none; }
.em-post-card__excerpt { color: var(--em-muted); font-size: 0.875rem; margin: 0 0 10px; }
.em-post-card__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--em-muted); margin: 0; }

.em-guide-card {
        display: flex;
        flex-direction: column;
        gap: 8px;
        background: var(--em-bg-card);
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius);
        padding: 18px;
}
.em-guide-card__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px; height: 40px;
        border-radius: 10px;
        background: var(--em-primary-soft);
        color: var(--em-primary);
}
.em-guide-card__title { font-size: 1rem; margin: 0; }
.em-guide-card__title a { color: var(--em-text); }
.em-guide-card__title a:hover { color: var(--em-primary); text-decoration: none; }
.em-guide-card__text { color: var(--em-muted); font-size: 0.875rem; margin: 0; }

/* --- Carte d’appel --------------------------------------------------------------------------------- */
.em-cta-card {
        background: var(--em-primary-soft);
        border: 1px solid #dbeafe;
        border-radius: var(--em-radius);
        padding: 32px 24px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
}
.em-cta-card__title { font-size: 1.2rem; margin: 0; }
.em-cta-card__text { color: var(--em-primary-ink); max-width: 520px; margin: 0; }

/* --- Fil d’Ariane ------------------------------------------------------------------------------------ */
.em-breadcrumb { padding: 14px 0 4px; }
.em-breadcrumb__list {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 8px;
        list-style: none;
        margin: 0; padding: 0;
        font-size: 0.8rem;
        color: var(--em-muted);
}
.em-breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.em-breadcrumb__item a { color: var(--em-muted); }
.em-breadcrumb__item a:hover { color: var(--em-primary); }
.em-breadcrumb__item[aria-current="page"] { color: var(--em-text); font-weight: 600; }
.em-breadcrumb__sep { display: inline-flex; opacity: 0.6; }

/* --- En-tête de page ---------------------------------------------------------------------------------- */
.em-page-head { padding: 6px 0 20px; }
.em-page-title { font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 6px; }
.em-page-sub { color: var(--em-muted); font-size: 0.95rem; margin: 0; }
.em-intro { padding-bottom: 8px; }
.em-sublist-title { font-size: 1.15rem; margin: 0 0 14px; }

/* --- Liste + filtres -------------------------------------------------------------------------------------- */
.em-listing { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.em-listing__main { min-width: 0; }

.em-filters-toggle { width: 100%; margin-bottom: 12px; }
.em-filters { display: none; }
.em-filters.is-open { display: block; }

.em-filters {
        background: var(--em-bg-card);
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius);
        padding: 16px;
}
.em-filters__title { font-size: 1rem; margin: 0 0 14px; }
.em-filter { margin-bottom: 14px; }
.em-filter label { display: block; margin-bottom: 6px; }
.em-filter--check label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.em-filter--check input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--em-primary); }
.em-filters__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* --- Pagination --------------------------------------------------------------------------------------------- */
.em-pagination { margin-top: 28px; }
.page-numbers {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        list-style: none;
        margin: 0; padding: 0;
}
.page-numbers li { margin: 0; }
.page-numbers a, .page-numbers span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        min-height: 40px;
        padding: 6px 12px;
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius-sm);
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--em-text);
        text-decoration: none;
}
.page-numbers a:hover { border-color: var(--em-primary); color: var(--em-primary); }
.page-numbers .current { background: var(--em-primary); border-color: var(--em-primary); color: #fff; }
.page-numbers .dots { border-color: transparent; }

/* --- États vides ------------------------------------------------------------------------------------------------ */
.em-empty {
        background: var(--em-bg-card);
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius);
        padding: 44px 24px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
}
.em-empty__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 56px; height: 56px;
        border-radius: 50%;
        background: var(--em-bg-subtle);
        color: var(--em-muted);
}
.em-empty__title { font-size: 1.1rem; margin: 0; }
.em-empty__text { color: var(--em-muted); margin: 0 0 6px; max-width: 440px; }

/* --- Offre détaillée ------------------------------------------------------------------------------------------- */
.em-job-hero {
        display: flex;
        gap: 16px;
        align-items: flex-start;
        background: var(--em-bg-card);
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius);
        padding: 20px;
        margin-top: 6px;
}
.em-job-hero__logo { flex: none; }
.em-job-hero__logo .em-logo-img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: var(--em-bg-subtle); padding: 6px; }
.em-job-hero__logo .em-logo-placeholder { width: 72px; height: 72px; font-size: 1.6rem; border-radius: 12px; }
.em-job-hero__body { min-width: 0; flex: 1; }
.em-job-hero__title { font-size: clamp(1.25rem, 3.6vw, 1.7rem); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px; }
.em-job-hero__company { font-size: 1rem; color: var(--em-muted); margin: 0 0 12px; font-weight: 600; }
.em-job-hero__company a { color: inherit; }
.em-job-hero__company a:hover { color: var(--em-primary); }

.em-job-hero__meta {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 16px;
        list-style: none;
        margin: 0; padding: 0;
        font-size: 0.85rem;
        color: var(--em-muted);
}
.em-job-hero__meta li { display: inline-flex; align-items: center; gap: 6px; }
.em-job-hero__meta svg { flex: none; }
.em-job-hero__actions { margin: 14px 0 0; }

.em-single-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin-top: 20px; }

.em-job-section { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--em-border); }
.em-single > .em-job-section:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.em-job-section > h2 { font-size: 1.2rem; margin-bottom: 12px; }

/* Prose (contenus rédactionnels) */
.em-prose { font-size: 0.98rem; }
.em-prose p { margin: 0 0 1em; }
.em-prose h2 { font-size: 1.25rem; margin: 1.4em 0 0.6em; }
.em-prose h3 { font-size: 1.1rem; margin: 1.3em 0 0.5em; }
.em-prose h4 { font-size: 1rem; margin: 1.2em 0 0.5em; }
.em-prose ul, .em-prose ol { margin: 0 0 1em; padding-left: 1.35rem; }
.em-prose li { margin-bottom: 0.4em; }
.em-prose a { text-decoration: underline; }
.em-prose blockquote {
        margin: 1em 0;
        padding: 8px 16px;
        border-left: 3px solid var(--em-primary);
        background: var(--em-bg-subtle);
        border-radius: 0 var(--em-radius-sm) var(--em-radius-sm) 0;
}
.em-prose img { border-radius: var(--em-radius-sm); }
.em-prose > :last-child { margin-bottom: 0; }

.em-check-list { list-style: none; margin: 0; padding: 0; }
.em-check-list li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.em-check-list svg { flex: none; color: var(--em-success); margin-top: 3px; }

.em-notice {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 16px;
        border-radius: var(--em-radius-sm);
        margin-bottom: 24px;
        font-size: 0.9rem;
}
.em-notice svg { flex: none; margin-top: 2px; }
.em-notice p { margin: 0; }
.em-notice--warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

.em-apply-box {
        background: var(--em-primary-soft);
        border: 1px solid #dbeafe;
        border-radius: var(--em-radius);
        padding: 24px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
}
.em-apply-box .em-btn { width: 100%; max-width: 420px; }
.em-apply-box__note { color: var(--em-primary-ink); font-size: 0.875rem; margin: 0; }

.em-job-source {
        margin-top: 16px;
        padding: 14px 16px;
        background: var(--em-bg-subtle);
        border-radius: var(--em-radius-sm);
        font-size: 0.875rem;
}
.em-job-source__label { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--em-muted); }
.em-job-source__label svg { flex: none; }
.em-job-source__date { margin: 0 0 8px; color: var(--em-muted); }
.em-job-source a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

.em-job-links { margin-top: 28px; border-top: 1px solid var(--em-border); padding-top: 20px; }
.em-job-links__title { font-size: 1rem; margin: 0 0 12px; }
.em-job-links ul { list-style: none; margin: 0; padding: 0; }
.em-job-links li { margin-bottom: 4px; }
.em-job-links a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 500; }
.em-job-links a svg { flex: none; color: var(--em-primary); }

/* Barre latérale */
.em-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.em-aside__card { background: var(--em-bg-card); border: 1px solid var(--em-border); border-radius: var(--em-radius); padding: 20px; }
.em-aside__title { font-size: 1.02rem; margin: 0 0 14px; }
.em-aside__actions { margin-top: 16px; }
.em-aside__related { display: flex; flex-direction: column; gap: 12px; }
.em-aside__related .em-job-card { padding: 13px; box-shadow: none; }
.em-aside__related .em-job-card__logo, .em-aside__related .em-logo-placeholder { width: 44px; height: 44px; }
.em-aside__related .em-logo-img { width: 44px !important; height: 44px !important; }

.em-info-list { margin: 0; }
.em-info-list__row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
        padding: 9px 0;
        border-bottom: 1px solid var(--em-bg-subtle);
}
.em-info-list__row:last-child { border-bottom: none; }
.em-info-list dt { color: var(--em-muted); font-size: 0.82rem; flex: none; }
.em-info-list dd { margin: 0; font-size: 0.9rem; font-weight: 600; text-align: right; overflow-wrap: break-word; }

/* --- FAQ ------------------------------------------------------------------------------------------------------------ */
.em-faq { padding: 40px 0 8px; border-top: 1px solid var(--em-border); margin-top: 40px; }
.em-faq__title { margin-bottom: 18px; }
.em-faq__list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.em-faq__item {
        background: var(--em-bg-card);
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius-sm);
        overflow: hidden;
}
.em-faq__item summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 15px 16px;
        font-weight: 600;
        cursor: pointer;
        list-style: none;
}
.em-faq__item summary::-webkit-details-marker { display: none; }
.em-faq__item summary svg { flex: none; color: var(--em-muted); transition: transform 0.2s ease; }
.em-faq__item[open] summary svg { transform: rotate(180deg); }
.em-faq__answer { padding: 0 16px 16px; color: var(--em-muted); font-size: 0.92rem; }
.em-faq__answer p { margin: 0 0 0.8em; }
.em-faq__answer > :last-child { margin-bottom: 0; }

/* --- Article ---------------------------------------------------------------------------------------------------------- */
.em-post-head { padding: 10px 0 20px; }
.em-post-head__cat { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin: 0 0 8px; }
.em-post-head__cat a { color: var(--em-primary); }
.em-post-head__title { font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 10px; }
.em-post-head__meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        color: var(--em-muted);
        margin: 0;
}
.em-post-head__meta span { display: inline-flex; align-items: center; gap: 5px; }
.em-post-head__sep { opacity: 0.5; }

.em-post-thumb { margin: 0 0 24px; }
.em-post-thumb__img { width: 100%; border-radius: var(--em-radius); }

.em-post-tags { font-size: 0.875rem; color: var(--em-muted); }
.em-page-links { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.em-page-links__label {
        display: inline-flex;
        padding: 6px 12px;
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius-sm);
        font-weight: 600;
}

.em-search-inline { margin-top: 14px; max-width: 560px; }
.em-search-inline__hint { margin: 10px 0 0; font-size: 0.875rem; }
.em-search-inline__hint a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.em-search-inline__hint svg { flex: none; }

/* --- Commentaires ------------------------------------------------------------------------------------------------------ */
.em-comments { margin-top: 40px; border-top: 1px solid var(--em-border); padding-top: 28px; }
.em-comments__title { font-size: 1.15rem; }
.em-comments__hint, .em-comments__notes, .em-comments__closed { color: var(--em-muted); font-size: 0.875rem; }
.em-comments__list { list-style: none; margin: 0 0 24px; padding: 0; }
.em-comments__list li { margin: 0; }
.em-comments__list .comment-body {
        display: flex;
        gap: 12px;
        padding: 16px 0;
        border-bottom: 1px solid var(--em-bg-subtle);
}
.em-comments__list .avatar { border-radius: 50%; flex: none; }
.em-comments__list .comment-author { margin-bottom: 4px; font-weight: 600; font-size: 0.9rem; }
.em-comments__list .comment-metadata { font-size: 0.75rem; color: var(--em-muted); margin-bottom: 6px; }
.em-comments__list .comment-metadata a { color: inherit; }
.em-comments__list .comment-content { font-size: 0.92rem; }
.em-comments__list .comment-content p { margin: 0 0 0.6em; }
.em-comments__list .reply { font-size: 0.85rem; }
.em-comments__list .children { list-style: none; margin: 0; padding-left: 20px; }
.em-comment-form p { margin-bottom: 12px; }
.em-comment-form .em-btn { margin-top: 6px; }

/* --- 404 -------------------------------------------------------------------------------------------------------------------- */
.em-404 { text-align: center; padding: 40px 0 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.em-404__code { font-size: clamp(3.6rem, 12vw, 5.5rem); font-weight: 800; color: var(--em-primary); line-height: 1; margin: 0; letter-spacing: -0.03em; }
.em-404__title { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 6px 0 2px; }
.em-404__text { color: var(--em-muted); max-width: 480px; }
.em-404__search, .em-404__links { width: 100%; max-width: 560px; margin-top: 18px; text-align: left; }
.em-404__label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--em-muted); margin-bottom: 10px; }
.em-404__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* --- Widgets ------------------------------------------------------------------------------------------------------------------- */
.em-widgets { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; border-top: 1px solid var(--em-border); padding-top: 24px; }
.em-widget { background: var(--em-bg-card); border: 1px solid var(--em-border); border-radius: var(--em-radius); padding: 18px; }
.em-widget__title { font-size: 1rem; margin: 0 0 12px; }
.em-widget ul { list-style: none; margin: 0; padding: 0; }
.em-widget ul li { padding: 5px 0; border-bottom: 1px solid var(--em-bg-subtle); }
.em-widget ul li:last-child { border-bottom: none; }

/* --- Publicité ------------------------------------------------------------------------------------------------------------------- */
.em-ad {
        margin: 22px auto;
        padding: 8px;
        max-width: 100%;
        overflow: hidden;
        text-align: center;
}
.em-ad__label {
        display: block;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--em-muted);
        margin-bottom: 4px;
}
.em-ad--sidebar, .em-ad--header { margin: 12px 0; }

/* --- Pied de page ------------------------------------------------------------------------------------------------------------------- */
.em-footer {
        background: var(--em-footer-bg);
        color: var(--em-footer-text);
        padding: 48px 0 24px;
        margin-top: auto;
}
.em-footer a { color: var(--em-footer-text); }
.em-footer a:hover { color: #fff; text-decoration: none; }

.em-footer__grid {
        display: grid;
        gap: 32px;
        grid-template-columns: minmax(0, 1fr);
}

.em-footer__brand .em-logo { margin-bottom: 12px; }
.em-footer__brand .em-logo__mark { background: #1e293b; color: #fff; }
.em-footer__brand .em-logo__text { color: #fff; }
.em-logo--footer .em-logo__mark { background: #1e293b; }
.em-logo--footer .em-logo__text { color: #fff; }
.em-footer__text { font-size: 0.875rem; max-width: 340px; color: var(--em-footer-text); }

.em-footer__contact { list-style: none; margin: 12px 0 0; padding: 0; }
.em-footer__contact li { margin-bottom: 6px; }
.em-footer__contact a { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.em-footer__contact svg { flex: none; }

.em-footer__social { display: flex; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.em-footer__social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px; height: 36px;
        border: 1px solid #293548;
        border-radius: var(--em-radius-sm);
        color: var(--em-footer-text);
}
.em-footer__social a:hover { border-color: #475569; color: #fff; }

.em-footer__title {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: 700;
        color: #fff;
        margin: 0 0 14px;
}
.em-footer__list { list-style: none; margin: 0; padding: 0; }
.em-footer__list li { margin-bottom: 9px; }
.em-footer__list a { font-size: 0.9rem; }

.em-footer__bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid #1e293b;
}
.em-footer__copy { font-size: 0.82rem; margin: 0; }
.em-footer__top {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.8rem;
        font-weight: 600;
}

/* ==========================================================================
   Responsive — mobile d’abord, enrichissements progressifs.
   ========================================================================== */
@media (min-width: 560px) {
        .em-header__login { display: inline-flex; }
        .em-grid--companies, .em-grid--guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .em-grid--cats, .em-grid--cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
        .em-container { padding-inline: 24px; }
        .em-hero { padding: 56px 0 48px; }
        .em-hero__form { flex-direction: row; align-items: center; padding: 10px; }
        .em-hero__field { flex: 1 1 0; min-width: 0; }
        .em-hero__field + .em-hero__field { border-left: 1px solid var(--em-border); }
        .em-hero__field input, .em-hero__field select { min-height: 52px; }
        .em-hero__submit { flex: none; min-height: 52px; }
        .em-job-card { grid-template-columns: 64px minmax(0, 1fr); }
        .em-job-card__logo .em-logo-img, .em-job-card .em-logo-placeholder { width: 64px; height: 64px; }
        .em-grid--jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .em-grid--cats, .em-grid--cities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .em-grid--guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .em-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
        .em-apply-box .em-btn { width: auto; }
        .em-cta-card { padding: 40px 32px; }
        .em-sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .em-sitemap__list { columns: 2; column-gap: 28px; }
}

@media (min-width: 1024px) {
        .em-nav { display: block; margin-left: 16px; }
        .em-header__cta { display: inline-flex; }
        .em-menu-toggle, .em-search-toggle { display: none; }
        .em-header__search, .em-mobile-menu { display: none !important; }

        .em-listing { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
        .em-listing__side { position: sticky; top: 78px; }
        .em-filters { display: block; }
        .em-filters-toggle { display: none; }

        .em-job-card { grid-template-columns: 64px minmax(0, 1fr) auto; }
        .em-job-card__aside {
                grid-column: 3; grid-row: 1;
                flex-direction: column;
                align-items: flex-end;
                gap: 8px;
                border-top: none;
                padding-top: 0;
                margin-left: 8px;
        }
        .em-job-card__aside .em-link-arrow { font-size: 0.85rem; }

        .em-single-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
        .em-aside { position: sticky; top: 78px; }

        .em-grid--cats, .em-grid--cities { grid-template-columns: repeat(5, minmax(0, 1fr)); }
        .em-grid--jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .em-grid--list { grid-template-columns: minmax(0, 1fr); }

        .em-footer__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
        .em-section { padding: 56px 0; }
}

/* Réduction des animations si demandée par l’utilisateur */
@media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
        }
}

/* ==========================================================================
   v1.2 — Alertes e-mail, filtres actifs, plan du site, détails visuels.
   ========================================================================== */

/* ----- Messages de retour (variantes succès / information) ----- */
.em-notice--success { background: var(--em-success-soft); border: 1px solid #a7f3d0; color: #065f46; }
.em-notice--info { background: var(--em-primary-soft); border: 1px solid #bfdbfe; color: #1e40af; }
.em-notice--success svg { color: var(--em-success); }
.em-notice--info svg { color: var(--em-primary); }

/* ----- Formulaire d’alerte e-mail ----- */
.em-alert-form {
        background: var(--em-bg-card);
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius);
        padding: 20px;
        margin-top: 20px;
}
.em-alert-form__title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1.05rem;
        font-weight: 700;
        margin: 0 0 6px;
        color: var(--em-text);
}
.em-alert-form__title svg { color: var(--em-primary); flex: none; }
.em-alert-form__desc { color: var(--em-muted); font-size: 0.88rem; line-height: 1.5; margin: 0 0 12px; }
.em-alert-form__criteria {
        display: inline-block;
        background: var(--em-primary-soft);
        color: var(--em-primary-ink);
        font-size: 0.8rem;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 999px;
        margin: 0 0 14px;
        max-width: 100%;
}
.em-alert-form form { display: grid; gap: 10px; }
.em-alert-form label { font-size: 0.84rem; font-weight: 600; color: var(--em-text); }
.em-alert-form input[type="email"], .em-alert-form select {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius-sm);
        background: var(--em-bg);
        color: var(--em-text);
        font: inherit;
        font-size: 0.92rem;
}
.em-alert-form input[type="email"]:focus-visible, .em-alert-form select:focus-visible {
        outline: 2px solid var(--em-primary);
        outline-offset: 1px;
        border-color: var(--em-primary);
}
.em-alert-form .em-btn { margin-top: 4px; }
.em-alert-form__legal { color: var(--em-muted); font-size: 0.74rem; line-height: 1.45; margin: 2px 0 0; }
.em-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ----- Pastilles des filtres actifs ----- */
.em-active-filters { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.em-active-filters__label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--em-muted);
        font-size: 0.84rem;
        font-weight: 600;
        padding-top: 5px;
}
.em-active-filters__label svg { flex: none; }
.em-active-filters__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.em-active-filters__list li { margin: 0; }
.em-chip--filter {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        background: var(--em-primary-soft);
        border: 1px solid transparent;
        color: var(--em-primary-ink);
}
.em-chip--filter:hover { background: #dbeafe; color: #1e40af; }
.em-chip__remove { font-size: 15px; line-height: 1; opacity: 0.7; font-weight: 700; }
.em-chip--filter:hover .em-chip__remove { opacity: 1; }
.em-chip--clear { background: transparent; border: 1px dashed var(--em-border); color: var(--em-muted); }
.em-chip--clear:hover { border-color: var(--em-danger); color: var(--em-danger); }
.em-chip__count {
        background: var(--em-bg-subtle);
        border-radius: 999px;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 2px 8px;
        margin-left: 2px;
        color: var(--em-muted);
}

/* ----- Plan du site ----- */
.em-sitemap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 40px; padding: 8px 0 32px; }
.em-sitemap__group { min-width: 0; }
.em-sitemap__title {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--em-text);
        margin: 0 0 14px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--em-border);
}
.em-sitemap__title svg { color: var(--em-primary); flex: none; }
.em-sitemap__list { list-style: none; margin: 0; padding: 0; }
.em-sitemap__list li { margin: 0 0 9px; break-inside: avoid; }
.em-sitemap__list a { color: var(--em-text); font-size: 0.92rem; font-weight: 500; text-decoration: none; }
.em-sitemap__list a:hover { color: var(--em-primary); text-decoration: underline; text-underline-offset: 3px; }
.em-sitemap__list a:focus-visible { outline: 2px solid var(--em-primary); outline-offset: 2px; border-radius: 3px; }
.em-sitemap__count, .em-sitemap__date { color: var(--em-muted); font-size: 0.78rem; margin-left: 6px; }

/* ----- Shortcodes ----- */
.em-sc-empty { color: var(--em-muted); font-size: 0.92rem; padding: 18px 0; }
.em-sc-more { margin-top: 18px; }

/* ----- Pied de page : liens « plan du site » et « flux RSS » ----- */
.em-footer__meta { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; }
.em-footer__meta a { color: #94a3b8; font-size: 0.82rem; text-decoration: none; }
.em-footer__meta a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.em-footer__meta a:focus-visible { outline: 2px solid #cbd5e1; outline-offset: 2px; border-radius: 3px; }
@media (max-width: 767px) {
        .em-footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
        .em-footer__meta { gap: 14px; }
}

/* ----- Détails visuels (v1.2) ----- */
::selection { background: var(--em-primary); color: #fff; }
input::placeholder, textarea::placeholder, select::placeholder { color: var(--em-muted); opacity: 0.85; }
.em-card { transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease; }
.em-card:focus-within { border-color: var(--em-primary); box-shadow: 0 0 0 1px var(--em-primary); }
.em-btn { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease; }
.em-btn:active { transform: translateY(1px) scale(0.99); }
.em-prose a { text-underline-offset: 3px; }
a:focus-visible { outline-offset: 2px; }

/* ----- Variantes sombres des composants v1.2 ----- */
[data-em-theme="dark"] .em-notice--success { background: #0c2b25; border-color: #14532d; color: #6ee7b7; }
[data-em-theme="dark"] .em-notice--info { background: #13233f; border-color: #1e3a8a; color: #93c5fd; }
[data-em-theme="dark"] .em-chip--filter { background: #13233f; color: #93c5fd; }
[data-em-theme="dark"] .em-chip--filter:hover { background: #1a2f52; color: #bfdbfe; }
[data-em-theme="dark"] .em-chip__count { background: #0b1220; color: #94a3b8; }
[data-em-theme="dark"] .em-sitemap__list a { color: #cbd5e1; }
[data-em-theme="dark"] .em-sitemap__list a:hover { color: #93c5fd; }
[data-em-theme="dark"] .em-alert-form input[type="email"],
[data-em-theme="dark"] .em-alert-form select { background: #0b1220; border-color: #223047; color: #e5e7eb; }

/* ----- Impression : masquer les outils interactifs v1.2 ----- */
@media print {
        .em-alert-form, .em-active-filters, .em-chip--clear, .em-sc-more { display: none !important; }
        .em-sitemap { grid-template-columns: 1fr; }
        .em-sitemap__list { columns: 1; }
}

/* ==========================================================================
   Mode sombre — variables remplacées uniquement (aucune surcharge de layout).
   ========================================================================== */
[data-em-theme="dark"] {
        --em-primary: #3b82f6;
        --em-primary-dark: #60a5fa;
        --em-primary-soft: #13233f;
        --em-primary-ink: #93c5fd;
        --em-text: #e5e7eb;
        --em-muted: #94a3b8;
        --em-border: #223047;
        --em-bg: #0b1220;
        --em-bg-subtle: #0f172a;
        --em-bg-card: #111a2c;
        --em-bg-soft: #101b31;
        --em-success: #34d399;
        --em-success-soft: #0c2b25;
        --em-danger: #f87171;
        --em-danger-soft: #3a1720;
        --em-placeholder-a: #1c2a47;
        --em-placeholder-b: #12312b;
        --em-placeholder-c: #301b2c;
        --em-footer-bg: #080e1a;
        --em-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
        --em-shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.45);
        color-scheme: dark;
}
[data-em-theme="dark"] .em-job-card:hover,
[data-em-theme="dark"] .em-tile:hover,
[data-em-theme="dark"] .em-post-card:hover,
[data-em-theme="dark"] .em-company-card:hover { border-color: #31518a; }
[data-em-theme="dark"] .em-chip--solid:hover { background: #1a2f52; }
[data-em-theme="dark"] .em-cta-card, [data-em-theme="dark"] .em-apply-box { border-color: #1d2f4e; }
[data-em-theme="dark"] .em-notice--warning { background: #2b2410; border-color: #4a3a12; color: #fbbf24; }

/* Respect des préférences système (avant tout choix explicite) */
@media (prefers-color-scheme: dark) {
        :root:not([data-em-theme="light"]) {
                --em-primary: #3b82f6;
                --em-primary-dark: #60a5fa;
                --em-primary-soft: #13233f;
                --em-primary-ink: #93c5fd;
                --em-text: #e5e7eb;
                --em-muted: #94a3b8;
                --em-border: #223047;
                --em-bg: #0b1220;
                --em-bg-subtle: #0f172a;
                --em-bg-card: #111a2c;
                --em-bg-soft: #101b31;
                --em-success: #34d399;
                --em-success-soft: #0c2b25;
                --em-danger: #f87171;
                --em-danger-soft: #3a1720;
                --em-placeholder-a: #1c2a47;
                --em-placeholder-b: #12312b;
                --em-placeholder-c: #301b2c;
                --em-footer-bg: #080e1a;
                --em-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
                --em-shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.45);
                color-scheme: dark;
        }
        :root:not([data-em-theme="light"]) .em-job-card:hover,
        :root:not([data-em-theme="light"]) .em-tile:hover,
        :root:not([data-em-theme="light"]) .em-post-card:hover,
        :root:not([data-em-theme="light"]) .em-company-card:hover { border-color: #31518a; }
}

/* ==========================================================================
   v1.1 — Partage, sauvegarde, sommaire, barre mobile, retour en haut, polish.
   ========================================================================== */

/* Ancres : ne pas se cacher sous l’en-tête collant. */
[id] { scroll-margin-top: 84px; }

/* Micro-élévation douce des cartes au survol (desktop uniquement). */
@media (hover: hover) {
        .em-job-card, .em-tile, .em-post-card, .em-company-card {
                will-change: transform;
        }
        .em-job-card:hover { transform: translateY(-2px); }
        .em-tile:hover { transform: translateY(-2px); }
        .em-post-card:hover { transform: translateY(-2px); }
        .em-company-card:hover { transform: translateY(-2px); }
}

/* Pastilles supplémentaires */
.em-pill--new {
        background: var(--em-success-soft);
        color: var(--em-success);
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
}

/* --- Bouton de sauvegarde ------------------------------------------------- */
.em-save-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 38px;
        padding: 7px 14px;
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius-sm);
        background: var(--em-bg);
        color: var(--em-muted);
        font-family: inherit;
        font-size: 0.875rem;
        font-weight: 600;
        cursor: pointer;
        transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.em-save-btn:hover { border-color: var(--em-primary); color: var(--em-primary); }
.em-save-btn:focus-visible { outline: 2px solid var(--em-primary); outline-offset: 2px; }
.em-save-btn[aria-pressed="true"] {
        background: var(--em-primary-soft);
        border-color: transparent;
        color: var(--em-primary-ink);
}
.em-save-btn[aria-pressed="true"] .em-save-btn__icon svg { fill: currentColor; }
.em-save-btn--compact {
        min-width: 38px;
        min-height: 38px;
        padding: 7px;
}

/* --- Partage social --------------------------------------------------------- */
.em-share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.em-share__label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--em-muted);
}
.em-share__list {
        display: flex;
        align-items: center;
        gap: 6px;
        list-style: none;
        margin: 0;
        padding: 0;
}
.em-share__list li { margin: 0; }
.em-share__list a, .em-share__list button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: 1px solid var(--em-border);
        border-radius: 50%;
        background: var(--em-bg);
        color: var(--em-muted);
        cursor: pointer;
        transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.em-share__list a:hover, .em-share__list button:hover {
        border-color: var(--em-primary);
        color: var(--em-primary);
        background: var(--em-primary-soft);
        transform: translateY(-1px);
        text-decoration: none;
}
.em-share__list a:focus-visible, .em-share__list button:focus-visible {
        outline: 2px solid var(--em-primary);
        outline-offset: 2px;
}
.em-share__list button.is-copied { border-color: var(--em-success); color: var(--em-success); }

/* Zone outils dans l’en-tête d’offre */
.em-job-hero__tools {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: wrap;
        margin-top: 16px;
        padding-top: 14px;
        border-top: 1px dashed var(--em-border);
}
.em-job-hero__urgent { color: var(--em-danger); font-weight: 600; }
.em-job-hero__urgent svg { color: var(--em-danger); }

/* --- Page « Offres sauvegardées » --------------------------------------------- */
.em-saved-loading { color: var(--em-muted); padding: 24px 0; }
.em-saved-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 16px;
}
.em-saved-head__count { font-weight: 700; margin: 0; }

/* --- Sommaire automatique ------------------------------------------------------- */
.em-toc {
        background: var(--em-bg-subtle);
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius);
        padding: 18px 20px;
        margin-bottom: 28px;
}
.em-toc__title {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--em-muted);
        margin: 0 0 10px;
}
.em-toc__title::before {
        content: "";
        display: inline-block;
        width: 18px;
        height: 2px;
        background: var(--em-primary);
        border-radius: 2px;
}
.em-toc__list { margin: 0; padding-left: 1.25rem; }
.em-toc__list li { margin: 4px 0; }
.em-toc__list a { font-size: 0.92rem; font-weight: 500; }
.em-toc__list a:hover { text-decoration: underline; }

/* --- Barre de candidature mobile -------------------------------------------------- */
.em-apply-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: var(--em-bg-card);
        border-top: 1px solid var(--em-border);
        box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.12);
        padding: 10px 16px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        transform: translateY(110%);
        transition: transform 0.25s ease;
        visibility: hidden;
}
.em-apply-bar.is-visible { transform: translateY(0); visibility: visible; }
.em-apply-bar__title {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--em-text);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
}
.em-apply-bar__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.em-apply-bar__actions .em-btn { min-height: 40px; }

@media (min-width: 768px) {
        .em-apply-bar { display: none; }
}

/* --- Bouton flottant retour en haut ----------------------------------------------- */
.em-to-top {
        position: fixed;
        right: 18px;
        bottom: 18px;
        z-index: 80;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--em-primary);
        color: #fff;
        box-shadow: var(--em-shadow-lg);
        opacity: 0;
        transform: translateY(12px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease;
}
.em-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.em-to-top:hover { background: var(--em-primary-dark); color: #fff; }
.em-to-top:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 767px) {
        .em-to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* --- Mode sombre : nouveaux composants --------------------------------------------- */
[data-em-theme="dark"] .em-apply-bar { box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5); }
[data-em-theme="dark"] .em-share__list a:hover,
[data-em-theme="dark"] .em-share__list button:hover { background: var(--em-primary-soft); }
[data-em-theme="dark"] .em-toc { background: var(--em-bg-card); }

/* ==========================================================================
   Impression — offre d’emploi propre à l’imprimante.
   ========================================================================== */
@media print {
        .em-header,
        .em-header__search,
        .em-mobile-menu,
        .em-footer,
        .em-ad,
        .em-breadcrumb,
        .em-share,
        .em-save-btn,
        .em-to-top,
        .em-apply-bar,
        .em-pagination,
        .em-aside .em-aside__card:not(:first-child),
        .em-filters,
        .em-filters-toggle,
        .em-job-links,
        .em-icon-btn__badge,
        #em-commentaires,
        .em-related { display: none !important; }

        html, body { background: #fff !important; color: #111 !important; font-size: 12pt; }
        .em-container { max-width: 100%; padding: 0; }
        .em-single-layout { display: block; }
        .em-aside { display: none; }
        .em-main { padding: 0 !important; min-height: 0; }

        .em-job-hero { border: none; padding: 0; margin: 0 0 12pt; }
        .em-job-hero__logo { display: none; }
        .em-job-hero__title { font-size: 18pt; }
        .em-job-section { page-break-inside: avoid; }
        .em-prose a { color: #111 !important; text-decoration: none; }
        .em-pill { border: 1px solid #999; background: #fff !important; color: #111 !important; }

        a[href^="http"]::after {
                content: " (" attr(href) ")";
                font-size: 9pt;
                color: #555;
        }

        .em-apply-box { border: 1pt solid #999; background: #fff !important; padding: 10pt; }
        .em-apply-box .em-btn {
                display: none;
        }
        .em-apply-box__note::after {
                content: " — URL de candidature : " attr(data-href);
        }
}

/* --- Baromètre de l’emploi --------------------------------------------------------------------------------------- */
.em-baro__keys {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
}
.em-baro__key {
        background: var(--em-bg-card);
        border: 1px solid var(--em-border);
        border-radius: var(--em-radius);
        padding: 20px 18px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        transition: border-color .2s ease, transform .2s ease;
}
.em-baro__key:hover { border-color: var(--em-primary); }
.em-baro__key-value {
        font-size: 1.7rem;
        font-weight: 800;
        color: var(--em-primary);
        font-variant-numeric: tabular-nums;
        line-height: 1.1;
}
.em-baro__key-label { color: var(--em-muted); font-size: 0.9rem; font-weight: 600; }
.em-baro__meta {
        margin: 14px 0 0;
        color: var(--em-muted);
        font-size: 0.85rem;
}

/* Lignes de classement (barres relatives, 100 % CSS, aucune dépendance). */
.em-baro__rows {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
}
.em-baro__row {
        display: grid;
        grid-template-columns: minmax(110px, 180px) 1fr auto;
        align-items: center;
        gap: 14px;
}
.em-baro__row-label {
        font-size: 0.93rem;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
}
.em-baro__row-label a { color: inherit; text-decoration: none; }
.em-baro__row-label a:hover,
.em-baro__row-label a:focus-visible { color: var(--em-primary); text-decoration: underline; }
.em-baro__row-track {
        display: block;
        height: 12px;
        border-radius: 999px;
        background: var(--em-bg-subtle);
        overflow: hidden;
}
.em-baro__row-bar {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--em-primary), color-mix(in srgb, var(--em-primary) 70%, #ffffff));
        transform-origin: left center;
}
.em-baro__row-value {
        font-size: 0.85rem;
        color: var(--em-muted);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
        font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
        .em-baro__row-bar { animation: em-baro-grow .8s cubic-bezier(.22,.61,.36,1) both; }
        @keyframes em-baro-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.em-empty--baro { max-width: 560px; margin: 0 auto; }

@media (max-width: 860px) {
        .em-baro__keys { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
        .em-baro__row { grid-template-columns: 1fr auto; gap: 8px 12px; }
        .em-baro__row-track { grid-column: 1 / -1; order: 3; }
        .em-baro__keys { grid-template-columns: 1fr; }
        .em-baro__key { flex-direction: row; align-items: baseline; justify-content: space-between; }
}

/* Mode sombre : composants du baromètre. */
html[data-em-theme="dark"] .em-baro__key { background: var(--em-bg-card); }
html[data-em-theme="dark"] .em-baro__row-bar {
        background: linear-gradient(90deg, var(--em-primary), color-mix(in srgb, var(--em-primary) 60%, #0b1220));
}

/* Impression : baromètre lisible, barres en niveaux de gris. */
@media print {
        .em-baro__keys { grid-template-columns: repeat(2, 1fr); }
        .em-baro__key { border: 1pt solid #999; }
        .em-baro__row-bar { background: #555 !important; animation: none; }
}
