/* ============================================================
 * Sup'Affaires - Composants design system (prefixe sx-)
 *
 * Fichier PARTAGE entre agents de la refonte.
 * REGLE : ajoute tes blocs A LA FIN avec un commentaire de section
 * dedie (barres egales + nom du module). Ne reecris JAMAIS le fichier
 * entier. Ne place jamais une sequence de fermeture de commentaire a
 * l'interieur d'un autre commentaire (casse le parsing CSS).
 *
 * Design system : navy #003B60, texte #00253a, orange #FF7F00, cyan #4dc5ef,
 * niveaux BTS #FEAA01 / Bachelor #FE7B0B / Mastere #F82D3D, Montserrat,
 * boutons pilule, cartes arrondies ombre douce.
 *
 * Charge APRES live-main.css (cf inc/enqueue.php).
 * Prefixe sx- obligatoire : zero collision avec la pile live Impreza.
 * ============================================================ */

:root {
    --sx-navy: #003B60;
    --sx-ink: #00253a;
    --sx-orange: #FF7F00;
    --sx-orange-d: #e86f00;
    --sx-cyan: #4dc5ef;
    --sx-bts: #FEAA01;
    --sx-bachelor: #FE7B0B;
    --sx-mastere: #F82D3D;
    --sx-muted: #5f7785;
    --sx-line: #e4ebf0;
    --sx-bg-soft: #f4f8fb;
    --sx-shadow: 0 10px 30px rgba(0, 37, 58, .08);
    --sx-shadow-sm: 0 4px 16px rgba(0, 37, 58, .07);
    --sx-radius: 18px;
    --sx-radius-sm: 12px;
}

/* === offre-single (template single-offre-alternance) === */

.sx-offre {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    color: var(--sx-ink);
    background: #fff;
}
.sx-offre *,
.sx-offre *::before,
.sx-offre *::after { box-sizing: border-box; }

.sx-offre__wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Rangee de meta-infos sobre (sous la titlebar Impreza) --- */
.sx-ometa {
    background: #fff;
    border-bottom: 1px solid var(--sx-line);
}
.sx-ometa__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
}
.sx-ometa__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sx-ometa__list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--sx-navy);
    position: relative;
}
/* Separateur discret entre items (sauf le premier). */
.sx-ometa__list li:not(:first-child)::before {
    content: "";
    width: 1px;
    height: 15px;
    background: var(--sx-line);
    margin-right: 22px;
    margin-left: -22px;
}
.sx-ometa__list li i {
    color: var(--sx-orange);
    font-size: .92rem;
    line-height: 1;
}
.sx-ometa__strong { font-weight: 800; }
.sx-ometa__pub { color: var(--sx-muted); font-weight: 500; }
.sx-ometa__pub i { color: var(--sx-muted); }

/* Pastille niveau dans la rangee meta (point de couleur par diplome). */
.sx-ometa__niv {
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 5px 13px;
    border-radius: 999px;
    color: #fff;
    background: var(--sx-orange);
}
.sx-ometa__niv--bts { background: var(--sx-bts); color: var(--sx-navy); }
.sx-ometa__niv--bachelor { background: var(--sx-bachelor); }
.sx-ometa__niv--mastere { background: var(--sx-mastere); }

/* Statut "Recrutement en cours" / "Offre pourvue" : sobre, point de couleur. */
.sx-ometa__statut {
    margin-left: auto;
    font-weight: 700;
    color: #1c9650;
}
.sx-ometa__statut .sx-ometa__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}
.sx-ometa__statut.is-pourvue { color: var(--sx-muted); }
/* Pas de separateur avant le statut (il est pousse a droite). */
.sx-ometa__statut::before { display: none !important; }

/* --- Layout 2 colonnes --- */
.sx-offre { background: #fff; }
.sx-offre__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 46px;
    align-items: start;
    padding: 46px 0 64px;
}
.sx-offre__main { min-width: 0; }

/* --- Typographie contenu (.sx-prose) --- */
.sx-prose { font-size: 1.02rem; line-height: 1.72; color: #2a3f4c; }
/* Neutralise la police script "Lie to me" qu'Impreza force sur h4 (var --h4-font-family). */
.sx-prose,
.sx-prose h1, .sx-prose h2, .sx-prose h3, .sx-prose h4, .sx-prose h5, .sx-prose h6,
.sx-offre h1, .sx-offre h2, .sx-offre h3, .sx-offre h4, .sx-offre h5, .sx-offre h6 {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}
.sx-prose > *:first-child { margin-top: 0; }
.sx-prose p { margin: 0 0 1.15em; }
.sx-prose h2 {
    position: relative;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sx-navy);
    line-height: 1.25;
    margin: 2.1em 0 .7em;
    padding-left: 18px;
}
.sx-prose h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .12em;
    bottom: .12em;
    width: 5px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--sx-orange), var(--sx-orange-d));
}
.sx-prose h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--sx-navy);
    margin: 1.6em 0 .5em;
}
.sx-prose h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--sx-orange-d);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 1.5em 0 .4em;
}
.sx-prose a {
    color: var(--sx-navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 127, 0, .5);
    text-underline-offset: 3px;
    transition: color .15s;
}
.sx-prose a:hover { color: var(--sx-orange-d); }
.sx-prose ul, .sx-prose ol { margin: 0 0 1.3em; padding: 0; }
.sx-prose ul { list-style: none; }
.sx-prose ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: .6em;
}
.sx-prose ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .58em;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--sx-cyan);
    transform: rotate(45deg);
}
.sx-prose ol { padding-left: 1.3em; }
.sx-prose ol li { margin-bottom: .6em; padding-left: 6px; }
.sx-prose ol li::marker { color: var(--sx-orange); font-weight: 800; }
.sx-prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--sx-radius-sm);
    display: block;
}
.sx-prose strong { color: var(--sx-navy); font-weight: 700; }
.sx-prose blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 22px;
    border-left: 4px solid var(--sx-cyan);
    color: var(--sx-navy);
    font-style: italic;
}
.sx-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.sx-prose th, .sx-prose td { padding: 10px 12px; border: 1px solid var(--sx-line); text-align: left; }
.sx-prose th { background: var(--sx-bg-soft); color: var(--sx-navy); font-weight: 700; }

/* --- Sidebar sticky --- */
.sx-offre__aside { min-width: 0; }
@media (min-width: 981px) {
    .sx-sticky { position: sticky; top: 96px; }
}
.sx-scard {
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius);
    box-shadow: var(--sx-shadow-sm);
    padding: 24px 22px;
    margin-bottom: 18px;
}
.sx-scard__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--sx-navy);
    margin: 0 0 14px;
    padding-left: 13px;
    position: relative;
    line-height: 1.25;
}
/* Petite barre orange (rappel des H2 du site). */
.sx-scard__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .1em;
    bottom: .1em;
    width: 4px;
    border-radius: 4px;
    background: var(--sx-orange);
}

/* Carte Postuler : encadre blanc a bordure fine orange (langage du site). */
.sx-scard--apply {
    border: 1px solid rgba(255, 127, 0, .45);
    border-top: 3px solid var(--sx-orange);
}
.sx-scard--apply .sx-scard__lead {
    font-size: .92rem;
    line-height: 1.55;
    color: #50677a;
    margin: 0 0 18px;
}
/* Lien secondaire "Etre rappele" sous le bouton. */
.sx-scard__call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--sx-navy);
    text-decoration: none;
}
.sx-scard__call i { color: var(--sx-orange); }
.sx-scard__call:hover { color: var(--sx-orange-d); }

/* Boutons pilule */
.sx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    border-radius: 999px;
    padding: 14px 22px;
    font-family: inherit;
    font-size: .98rem;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s;
    line-height: 1.1;
}
.sx-btn--primary {
    background: var(--sx-orange);
    color: #fff;
}
.sx-btn--primary:hover,
.sx-btn--primary:focus-visible {
    background: var(--sx-orange-d);
    color: #fff;
}
.sx-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .4);
    margin-top: 12px;
}
.sx-btn--ghost:hover,
.sx-btn--ghost:focus-visible { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.sx-btn--outline {
    background: #fff;
    color: var(--sx-navy);
    border-color: var(--sx-orange);
}
.sx-btn--outline:hover,
.sx-btn--outline:focus-visible { background: var(--sx-orange); color: #fff; }

.sx-scard__note {
    font-size: .76rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .6);
    text-align: center;
    margin: 14px 0 0;
}

/* Carte formation liee */
.sx-flink {
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border-radius: var(--sx-radius-sm);
    padding: 6px;
    margin: -6px;
    transition: background .15s;
}
.sx-flink:hover,
.sx-flink:focus-visible { background: var(--sx-bg-soft); }
.sx-flink__media {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--sx-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: .72rem;
    text-align: center;
    line-height: 1.1;
}
.sx-flink__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-flink__body { min-width: 0; }
.sx-flink__niv {
    display: inline-block;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--sx-orange-d);
    margin-bottom: 3px;
}
.sx-flink__name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--sx-navy);
    line-height: 1.3;
    margin: 0;
}
.sx-flink__more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--sx-orange-d);
    margin-top: 12px;
    text-decoration: none;
}
.sx-flink__more:hover { gap: 9px; }

/* Carte ecole (contact) */
.sx-info { list-style: none; margin: 0; padding: 0; }
.sx-info li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: .9rem;
    line-height: 1.45;
    color: #44606e;
    padding: 9px 0;
    border-bottom: 1px solid var(--sx-line);
}
.sx-info li:last-child { border-bottom: none; }
.sx-info .sx-ico {
    flex: 0 0 auto;
    color: var(--sx-orange);
    font-size: 1rem;
    margin-top: 1px;
}
.sx-info a { color: var(--sx-navy); font-weight: 700; text-decoration: none; }
.sx-info a:hover { color: var(--sx-orange-d); }

/* --- Bandeau "Cette offre est pourvue ?" + autres offres --- */
.sx-related { background: var(--sx-bg-soft); padding: 56px 0 64px; }
.sx-related__head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.sx-related__eyebrow {
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--sx-orange);
    margin: 0 0 8px;
}
.sx-related__title {
    font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.95rem);
    font-weight: 800;
    color: var(--sx-navy);
    margin: 0 0 8px;
    line-height: 1.2;
}
.sx-related__sub { font-size: .98rem; color: var(--sx-muted); margin: 0; }
.sx-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Carte offre (.sx-card-offre) */
.sx-card-offre {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius);
    overflow: hidden;
    box-shadow: var(--sx-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
    border-top: 4px solid var(--sx-orange);
}
.sx-card-offre--bts { border-top-color: var(--sx-bts); }
.sx-card-offre--bachelor { border-top-color: var(--sx-bachelor); }
.sx-card-offre--mastere { border-top-color: var(--sx-mastere); }
.sx-card-offre:hover {
    transform: translateY(-2px);
    box-shadow: var(--sx-shadow);
}
.sx-card-offre__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 22px 24px;
    flex: 1;
}
.sx-card-offre__badges { display: flex; flex-wrap: wrap; gap: 7px; }
.sx-card-offre__niv {
    display: inline-block;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 11px;
    border-radius: 999px;
    color: #fff;
    background: var(--sx-orange);
}
.sx-card-offre__niv--bts { background: var(--sx-bts); color: var(--sx-navy); }
.sx-card-offre__niv--bachelor { background: var(--sx-bachelor); }
.sx-card-offre__niv--mastere { background: var(--sx-mastere); }
.sx-card-offre__lieu {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .74rem;
    font-weight: 600;
    color: var(--sx-muted);
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--sx-bg-soft);
}
.sx-card-offre__title {
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--sx-navy);
    margin: 0;
}
.sx-card-offre__title a { color: inherit; text-decoration: none; }
.sx-card-offre__title a:hover { color: var(--sx-orange-d); }
.sx-card-offre__excerpt {
    font-size: .9rem;
    line-height: 1.55;
    color: #5a7280;
    margin: 0;
}
.sx-card-offre__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    font-weight: 800;
    color: var(--sx-orange-d);
    text-decoration: none;
    padding-top: 6px;
}
.sx-card-offre__cta:hover { gap: 10px; }

/* --- Barre mobile sticky Postuler (barre blanche sobre, bordure haute) --- */
.sx-mbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 980;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--sx-line);
    box-shadow: 0 -4px 18px rgba(0, 37, 58, .1);
}
.sx-mbar__info { flex: 1; min-width: 0; color: var(--sx-navy); align-self: center; }
.sx-mbar__info b { display: block; font-size: .82rem; font-weight: 700; line-height: 1.15; }
.sx-mbar__info span { font-size: .72rem; color: var(--sx-muted); }
.sx-mbar .sx-btn { width: auto; flex: 0 0 auto; padding: 12px 26px; font-size: .92rem; }
.sx-mbar__call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1.5px solid var(--sx-orange);
    color: var(--sx-orange);
    text-decoration: none;
    font-size: 1.05rem;
}
.sx-mbar__call:hover { background: var(--sx-orange); color: #fff; }

/* --- Responsive --- */
@media (max-width: 980px) {
    .sx-offre__grid { grid-template-columns: 1fr; gap: 36px; padding: 32px 0 80px; }
    .sx-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sx-mbar { display: flex; }
    .sx-offre { padding-bottom: 72px; }
    /* La rangee meta passe en colonne, statut revient a gauche (plus de push). */
    .sx-ometa__inner { padding: 14px 20px; }
    .sx-ometa__statut { margin-left: 0; }
}
@media (max-width: 600px) {
    .sx-related__grid { grid-template-columns: 1fr; }
    .sx-ometa__list { gap: 8px 16px; }
    .sx-ometa__list li:not(:first-child)::before { display: none; }
    .sx-ometa__list li { flex: 0 0 100%; }
    .sx-ometa__niv { flex: 0 0 auto; }
    .sx-mbar__info { display: none; }
    .sx-mbar .sx-btn { flex: 1; }
}

/* --- Focus visible global du module --- */
.sx-offre a:focus-visible,
.sx-related a:focus-visible,
.sx-mbar a:focus-visible {
    outline: 3px solid var(--sx-cyan);
    outline-offset: 3px;
    border-radius: 6px;
}

/* === LISTING BLOG (Actualites & vie etudiante) - home.php === */

.sx-blog-section {
    padding: 46px 0 76px;
    background: #fff;
}
.sx-blog-section .l-section-h {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}
.sx-blog-section,
.sx-blog-section * { box-sizing: border-box; }

/* --- Hero compact navy --- */
.sx-blog-hero {
    text-align: center;
    background:
        radial-gradient(620px 240px at 88% -20%, rgba(77, 197, 239, .3), transparent 62%),
        radial-gradient(520px 220px at 2% 120%, rgba(255, 127, 0, .14), transparent 58%),
        linear-gradient(135deg, #00253a 0%, var(--sx-navy) 58%, #014e7e 100%);
    color: #fff;
    border-radius: 24px;
    padding: 48px 28px 42px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}
.sx-blog-hero__script {
    font-family: "Lie to me", "Montserrat", cursive;
    font-size: 32px;
    line-height: 1;
    color: var(--sx-cyan);
    margin: 0 0 4px;
}
.sx-blog-hero__title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 1.6rem + 2.4vw, 46px);
    line-height: 1.1;
    letter-spacing: -.01em;
    margin: 0 0 14px;
    color: #fff;
}
.sx-blog-hero__subtitle {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .82);
    max-width: 620px;
    margin: 0 auto;
}

/* --- Barre de filtres (pilules categories) --- */
.sx-blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 38px;
}
.sx-pill {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    color: var(--sx-navy);
    background: #fff;
    border: 2px solid var(--sx-line);
    border-radius: 999px;
    padding: 11px 18px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sx-pill:hover {
    border-color: var(--sx-orange);
    color: var(--sx-orange);
}
.sx-pill:focus-visible {
    outline: 3px solid var(--sx-cyan);
    outline-offset: 2px;
}
.sx-pill.is-active {
    background: var(--sx-orange);
    border-color: var(--sx-orange);
    color: #fff;
}
.sx-pill__count {
    font-size: 12px;
    font-weight: 700;
    background: rgba(0, 59, 96, .08);
    color: inherit;
    border-radius: 999px;
    padding: 2px 8px;
    min-width: 20px;
    text-align: center;
}
.sx-pill.is-active .sx-pill__count {
    background: rgba(255, 255, 255, .26);
}

/* --- Etat vide (filtre sans resultat) --- */
.sx-blog-empty {
    text-align: center;
    color: var(--sx-muted);
    padding: 36px 0;
    font-size: 16px;
}
.sx-blog-empty[hidden] { display: none; }

/* --- Badge categorie (.sx-cbadge : distinct de .sx-badge-niv du module offre) --- */
.sx-cbadge {
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--sx-navy);
    border-radius: 999px;
    padding: 6px 12px;
    line-height: 1;
}
.sx-cbadge--vie-etudiante { background: var(--sx-cyan); color: #00253a; }
.sx-cbadge--recrutement { background: var(--sx-orange); }
.sx-cbadge--entreprise-partenaire { background: var(--sx-navy); }

/* --- Article a la une (carte horizontale) --- */
.sx-feature {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    background: #fff;
    border-radius: var(--sx-radius);
    overflow: hidden;
    box-shadow: var(--sx-shadow);
    margin-bottom: 46px;
    border: 1px solid var(--sx-line);
}
.sx-feature.is-hidden { display: none; }
.sx-feature__media {
    position: relative;
    display: block;
    min-height: 330px;
    background: linear-gradient(135deg, #00253a, #4dc5ef);
    overflow: hidden;
}
.sx-feature__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}
.sx-feature__fallback,
.sx-blog-card__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: rgba(255, 255, 255, .92);
    background: linear-gradient(135deg, #00253a, #4dc5ef);
    letter-spacing: .02em;
}
.sx-feature__body {
    padding: 42px 42px 38px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.sx-feature__eyebrow {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sx-orange);
    margin: 0 0 10px;
}
.sx-feature .sx-cbadge { margin-bottom: 14px; }
.sx-feature__title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 1.3rem + 1vw, 31px);
    line-height: 1.2;
    margin: 0 0 14px;
    color: var(--sx-ink);
}
.sx-feature__title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
.sx-feature__title a:hover { color: var(--sx-orange-d); }
.sx-feature__excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--sx-muted);
    margin: 0 0 24px;
}
.sx-feature__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--sx-muted);
    width: 100%;
}
.sx-feature__cta { margin-left: auto; }

/* --- Bouton pilule du listing (distinct de .sx-btn width:100% du module offre) --- */
.sx-blog-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    border-radius: 999px;
    padding: 13px 24px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, border-color .2s ease, color .2s ease;
    cursor: pointer;
    border: 2px solid var(--sx-orange);
    background: var(--sx-orange);
    color: #fff;
}
.sx-blog-cta:hover {
    background: var(--sx-orange-d);
    border-color: var(--sx-orange-d);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Grille 3 colonnes --- */
.sx-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* --- Carte article --- */
.sx-blog-card {
    background: #fff;
    border-radius: var(--sx-radius);
    overflow: hidden;
    border: 1px solid var(--sx-line);
    box-shadow: var(--sx-shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}
.sx-blog-card.is-hidden { display: none; }
.sx-blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sx-shadow);
    border-color: var(--sx-orange);
}
.sx-blog-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.sx-blog-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #00253a, #4dc5ef);
}
.sx-blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* (zoom image au survol retire : grossissement transform:scale = effet "IA"). */
.sx-blog-card__media .sx-cbadge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.sx-blog-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.sx-blog-card__title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.32;
    margin: 0 0 10px;
    color: var(--sx-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sx-blog-card:hover .sx-blog-card__title { color: var(--sx-navy); }
.sx-blog-card__excerpt {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--sx-muted);
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sx-blog-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--sx-muted);
    padding-top: 14px;
    border-top: 1px solid var(--sx-line);
}
.sx-blog-card__rt { font-weight: 600; color: var(--sx-navy); }

/* --- No posts --- */
.sx-blog-noposts {
    text-align: center;
    color: var(--sx-muted);
    font-size: 17px;
    padding: 60px 0;
}

/* --- Pagination (override stylee de .supa-pagination) --- */
.sx-blog-section .supa-pagination { margin-top: 50px; }
.sx-blog-section .supa-pagination__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.sx-blog-section .supa-pagination__item { margin: 0; }
.sx-blog-section .supa-pagination__item .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 2px solid var(--sx-line);
    background: #fff;
    color: var(--sx-navy);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.sx-blog-section .supa-pagination__item .page-numbers:hover {
    border-color: var(--sx-orange);
    color: var(--sx-orange);
}
.sx-blog-section .supa-pagination__item .page-numbers.current {
    background: var(--sx-orange);
    border-color: var(--sx-orange);
    color: #fff;
}
.sx-blog-section .supa-pagination__item .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .sx-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .sx-feature { grid-template-columns: 1fr; }
    .sx-feature__media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
    .sx-blog-grid { grid-template-columns: 1fr; }
    .sx-blog-hero { padding: 36px 20px 32px; }
    .sx-feature__body { padding: 26px 22px 26px; }
    .sx-feature__cta { margin-left: 0; margin-top: 12px; width: 100%; }
    .sx-blog-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .sx-pill { flex: 0 0 auto; }
}

/* === offres-listing (template page-templates/template-offres.php) === */

.sx-offl {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    color: var(--sx-ink);
    background: var(--sx-bg-soft);
    padding-bottom: 0;
}
.sx-offl *,
.sx-offl *::before,
.sx-offl *::after { box-sizing: border-box; }
.sx-offl__wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 72px;
}

/* ---- HERO navy ---- */
.sx-offl-hero {
    position: relative;
    border-radius: 0 0 var(--sx-radius) var(--sx-radius);
    overflow: hidden;
    margin: 0 -24px 0;
    color: #fff;
}
.sx-offl-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 420px at 85% -15%, rgba(77, 197, 239, .26), transparent 60%),
        radial-gradient(900px 380px at -8% 130%, rgba(255, 127, 0, .16), transparent 55%),
        linear-gradient(135deg, #003251 0%, var(--sx-navy) 55%, #00263f 100%);
}
.sx-offl-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .55;
}
.sx-offl-hero__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 48px;
}
.sx-offl-hero__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: rgba(255, 255, 255, .68);
    margin-bottom: 22px;
}
.sx-offl-hero__crumbs a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .15s; }
.sx-offl-hero__crumbs a:hover,
.sx-offl-hero__crumbs a:focus-visible { color: #fff; }
.sx-offl-hero__crumbs span[aria-hidden] { color: rgba(255, 255, 255, .4); }
.sx-offl-hero__crumbs .sx-current { color: #fff; font-weight: 600; }
.sx-offl-hero__script {
    font-family: "Lie to me", "Montserrat", cursive;
    color: var(--sx-cyan);
    font-size: 1.5rem;
    line-height: 1;
    margin: 0 0 10px;
    font-weight: 400;
}
.sx-offl-hero__title {
    font-size: clamp(1.7rem, 1.05rem + 2.6vw, 2.8rem);
    line-height: 1.12;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    max-width: 20ch;
    letter-spacing: -.01em;
}
.sx-offl-hero__subtitle {
    font-size: 1.04rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .82);
    margin: 0 0 30px;
    max-width: 56ch;
}

/* Stats live */
.sx-offl-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sx-offl-stat {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    padding: 14px 22px;
    min-width: 130px;
    backdrop-filter: blur(2px);
}
.sx-offl-stat__num {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--sx-orange);
    line-height: 1;
}
.sx-offl-stat__lbl {
    font-size: .8rem;
    color: rgba(255, 255, 255, .78);
    margin-top: 6px;
    font-weight: 500;
}

/* ---- BARRE DE FILTRES (une seule, compacte, en flux) ---- */
.sx-offl-filters {
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: 999px;
    box-shadow: var(--sx-shadow-sm);
    margin: 0;
}
.sx-offl-filters__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 10px 14px;
}
.sx-offl-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.sx-offl-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid var(--sx-line);
    background: #fff;
    color: var(--sx-navy);
    border-radius: 999px;
    padding: 9px 16px;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
    line-height: 1;
}
.sx-offl-pill:hover { border-color: var(--sx-navy); background: var(--sx-bg-soft); }
.sx-offl-pill.is-active {
    background: var(--sx-navy);
    border-color: var(--sx-navy);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 59, 96, .18);
}
.sx-offl-pill__count {
    font-size: .72rem;
    font-weight: 700;
    opacity: .6;
}
.sx-offl-pill.is-active .sx-offl-pill__count { opacity: .85; }

/* Point de couleur niveau (pilules niveau + carte) */
.sx-offl-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--sx-muted);
    flex: 0 0 auto;
}
.sx-offl-pill--bts .sx-offl-dot { background: var(--sx-bts); }
.sx-offl-pill--bachelor .sx-offl-dot { background: var(--sx-bachelor); }
.sx-offl-pill--mastere .sx-offl-dot { background: var(--sx-mastere); }

/* Recherche (filtre principal, a gauche) */
.sx-offl-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 250px;
    min-width: 200px;
}
.sx-offl-search__ico {
    position: absolute;
    left: 16px;
    color: var(--sx-muted);
    display: inline-flex;
    pointer-events: none;
}
/* Specificite (0,2,1) volontaire : la pile CSS live cible
   `input[type="search"],...,select { padding:0 var(--inputs-padding,.6em) }`
   avec une specificite (0,1,1) qui ecraserait `.sx-offl-search__input` (0,1,0)
   peu importe l'ordre de chargement, et collerait l'icone loupe sur le texte.
   On bat cette regle en qualifiant par le parent + l'element input. */
.sx-offl-search input.sx-offl-search__input {
    width: 100%;
    border: 1.5px solid var(--sx-line);
    border-radius: 999px;
    padding: 11px 18px 11px 42px;
    font-family: inherit;
    font-size: .88rem;
    color: var(--sx-ink);
    background: var(--sx-bg-soft);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
    -webkit-appearance: none;
    appearance: none;
}
.sx-offl-search__input::placeholder { color: var(--sx-muted); }
.sx-offl-search input.sx-offl-search__input:focus {
    outline: none;
    border-color: var(--sx-orange);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 127, 0, .14);
}

/* Ville : select custom leger (a droite) */
.sx-offl-ville {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.sx-offl-ville__label {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--sx-muted);
}
.sx-offl-ville__field {
    position: relative;
    display: flex;
    align-items: center;
}
.sx-offl-ville__ico {
    position: absolute;
    left: 13px;
    color: var(--sx-orange);
    display: inline-flex;
    pointer-events: none;
}
.sx-offl-ville__caret {
    position: absolute;
    right: 13px;
    color: var(--sx-muted);
    display: inline-flex;
    pointer-events: none;
}
.sx-offl-ville__select {
    border: 1.5px solid var(--sx-line);
    border-radius: 999px;
    padding: 10px 34px 10px 34px;
    font-family: inherit;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--sx-navy);
    background: #fff;
    cursor: pointer;
    max-width: 230px;
    text-overflow: ellipsis;
    transition: border-color .16s ease, box-shadow .16s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.sx-offl-ville__select:hover { border-color: var(--sx-navy); }
.sx-offl-ville__select:focus {
    outline: none;
    border-color: var(--sx-orange);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, .14);
}

/* ---- Compteur + reset (sous la barre) ---- */
.sx-offl-count {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .9rem;
    color: var(--sx-muted);
    font-weight: 500;
    margin: 22px 0 18px;
}
.sx-offl-count strong { color: var(--sx-navy); font-weight: 800; font-size: 1rem; }
.sx-offl-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--sx-line);
    background: #fff;
    color: var(--sx-orange-d);
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 13px;
    border-radius: 999px;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.sx-offl-reset:hover { border-color: var(--sx-orange); background: rgba(255, 127, 0, .06); color: var(--sx-orange-d); }
.sx-offl-reset[hidden] { display: none; }

/* ---- GRILLE ---- */
.sx-offl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.sx-offl-grid.is-empty { display: none; }

/* ---- CARTE OFFRE ---- */
.sx-offl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--sx-line);
    border-left: 5px solid var(--sx-muted);
    border-radius: var(--sx-radius-sm);
    box-shadow: var(--sx-shadow-sm);
    padding: 22px 24px 20px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sx-offl-card--bts { border-left-color: var(--sx-bts); }
.sx-offl-card--bachelor { border-left-color: var(--sx-bachelor); }
.sx-offl-card--mastere { border-left-color: var(--sx-mastere); }
.sx-offl-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sx-shadow);
}

.sx-offl-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.sx-offl-card__niv {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--sx-navy);
    background: var(--sx-bg-soft);
    border-radius: 999px;
    padding: 5px 12px;
}
.sx-offl-card__niv--bts .sx-offl-dot { background: var(--sx-bts); }
.sx-offl-card__niv--bachelor .sx-offl-dot { background: var(--sx-bachelor); }
.sx-offl-card__niv--mastere .sx-offl-dot { background: var(--sx-mastere); }
.sx-offl-card__entr {
    font-size: .78rem;
    font-weight: 600;
    color: var(--sx-muted);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 50%;
}

.sx-offl-card__title {
    font-size: 1.12rem;
    line-height: 1.32;
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--sx-navy);
}
.sx-offl-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}
.sx-offl-card__title a:hover { color: var(--sx-orange-d); }

.sx-offl-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}
.sx-offl-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    font-weight: 600;
    color: #43586a;
    background: var(--sx-bg-soft);
    border: 1px solid var(--sx-line);
    border-radius: 8px;
    padding: 5px 10px;
}
.sx-offl-meta__ico { display: inline-flex; color: var(--sx-cyan); }
.sx-offl-meta--ville .sx-offl-meta__ico { color: var(--sx-orange); }

.sx-offl-card__excerpt {
    font-size: .9rem;
    line-height: 1.6;
    color: #51677a;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sx-offl-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--sx-line);
}
.sx-offl-card__pub {
    font-size: .74rem;
    color: var(--sx-muted);
    font-weight: 500;
}
.sx-offl-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .84rem;
    font-weight: 800;
    color: var(--sx-navy);
    text-decoration: none;
    border: 1.5px solid var(--sx-navy);
    border-radius: 999px;
    padding: 8px 18px;
    transition: background .16s ease, color .16s ease, gap .16s ease;
    white-space: nowrap;
}
.sx-offl-card__cta:hover {
    background: var(--sx-orange);
    border-color: var(--sx-orange);
    color: #fff;
    gap: 11px;
}
.sx-offl-card__arrow { transition: transform .16s ease; }
.sx-offl-card__cta:hover .sx-offl-card__arrow { transform: translateX(2px); }

/* Apparition au filtrage : fondu sobre + leger glissement (scale retire
   pour eviter l'effet "grossissement IA"). One-shot, pas de boucle. */
.sx-offl-card.is-hidden { display: none; }
.sx-offl-card.is-enter { animation: sxOfflIn .2s ease both; }
@keyframes sxOfflIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- ETAT VIDE ---- */
.sx-offl-empty {
    text-align: center;
    background: #fff;
    border: 1px dashed var(--sx-line);
    border-radius: var(--sx-radius);
    padding: 54px 30px;
    margin: 4px 0 8px;
}
.sx-offl-empty__ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--sx-bg-soft);
    color: var(--sx-orange);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sx-offl-empty__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--sx-navy);
    margin: 0 0 10px;
}
.sx-offl-empty__txt {
    font-size: .96rem;
    line-height: 1.6;
    color: var(--sx-muted);
    max-width: 52ch;
    margin: 0 auto 24px;
}
.sx-offl-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ---- BOUTONS ---- */
.sx-offl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 13px 26px;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.sx-offl-btn--solid {
    background: var(--sx-orange);
    color: #fff;
}
.sx-offl-btn--solid:hover {
    background: var(--sx-orange-d);
    transform: translateY(-2px);
}
.sx-offl-btn--ghost {
    background: transparent;
    color: var(--sx-navy);
    border-color: var(--sx-navy);
}
.sx-offl-btn--ghost:hover {
    background: var(--sx-navy);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- CTA BANDEAU bas de page ---- */
.sx-offl-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 44px;
}
.sx-offl-cta__col {
    border-radius: var(--sx-radius);
    padding: 36px 34px;
}
.sx-offl-cta__col--entr {
    background:
        radial-gradient(420px 220px at 100% 0%, rgba(77, 197, 239, .25), transparent 60%),
        linear-gradient(155deg, #00466f, var(--sx-navy));
    color: #fff;
}
.sx-offl-cta__col--cand {
    background: #fff;
    border: 1px solid var(--sx-line);
    box-shadow: var(--sx-shadow-sm);
}
.sx-offl-cta__eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}
.sx-offl-cta__col--entr .sx-offl-cta__eyebrow { color: var(--sx-cyan); }
.sx-offl-cta__col--cand .sx-offl-cta__eyebrow { color: var(--sx-orange-d); }
.sx-offl-cta__title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.22;
    margin: 0 0 12px;
}
.sx-offl-cta__col--entr .sx-offl-cta__title { color: #fff; }
.sx-offl-cta__col--cand .sx-offl-cta__title { color: var(--sx-navy); }
.sx-offl-cta__txt {
    font-size: .94rem;
    line-height: 1.6;
    margin: 0 0 22px;
}
.sx-offl-cta__col--entr .sx-offl-cta__txt { color: rgba(255, 255, 255, .82); }
.sx-offl-cta__col--cand .sx-offl-cta__txt { color: var(--sx-muted); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .sx-offl-grid { grid-template-columns: 1fr; }
    .sx-offl-cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .sx-offl-card { padding: 18px 18px 16px; }
    .sx-offl-card__footer { flex-direction: column; align-items: flex-start; gap: 12px; }
    .sx-offl-card__cta { width: 100%; justify-content: center; }
    .sx-offl-cta__col { padding: 28px 22px; }
}

/* === FICHE FORMATION (template single-formation.php) === */
/* Mise en page ACF-driven reproduisant la fiche BTS NDRC du live.
   Couleur d'accent = niveau via .sx-fo--bts / --bachelor / --mastere. */

.sx-fo {
    --sx-fo-accent: var(--sx-orange);
    max-width: 1180px;
    margin: 0 auto;
    color: var(--sx-ink);
    font-family: 'Montserrat', sans-serif;
}
.sx-fo--bts { --sx-fo-accent: var(--sx-bts); }
.sx-fo--bachelor { --sx-fo-accent: var(--sx-bachelor); }
.sx-fo--mastere { --sx-fo-accent: var(--sx-mastere); }

.sx-fo h2.sx-fo-h2 {
    color: var(--sx-navy);
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 18px;
    line-height: 1.2;
}

/* --- 2) PRESENTATION 2 colonnes --- */
.sx-fo-intro {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 56px;
}
.sx-fo-intro__text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--sx-ink);
}
.sx-fo-intro__text p { margin: 0 0 16px; }
.sx-fo-intro__text ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.sx-fo-intro__text li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    line-height: 1.55;
}
.sx-fo-intro__text li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--sx-fo-accent);
}
.sx-fo-intro__media { margin: 8px 0 22px; }
.sx-fo-intro__img {
    width: 100%;
    height: auto;
    border-radius: var(--sx-radius);
    box-shadow: var(--sx-shadow);
    display: block;
}
.sx-fo-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.sx-fo-cta { width: auto; min-width: 220px; }

/* Bloc titre RNCP + badges (haut sidebar) */
.sx-fo-titre {
    background: var(--sx-bg-soft);
    border-radius: var(--sx-radius);
    padding: 22px 22px 20px;
    margin-bottom: 22px;
    border: 1px solid var(--sx-line);
}
.sx-fo-titre__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.sx-fo-titre__bac {
    flex: 0 0 auto;
    background: var(--sx-navy);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 10px 16px;
    border-radius: 999px;
    white-space: nowrap;
}
.sx-fo-titre__niv {
    font-size: .82rem;
    font-weight: 700;
    color: var(--sx-navy);
    text-transform: uppercase;
    line-height: 1.3;
    letter-spacing: .02em;
}
.sx-fo-titre__logos {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.sx-fo-titre__logo { height: 38px; width: auto; }
.sx-fo-titre__rncp {
    margin: 0;
    font-size: .82rem;
    color: var(--sx-muted);
}
.sx-fo-titre__rncp a { color: var(--sx-muted); text-decoration: underline; }
.sx-fo-titre__rncp a:hover { color: var(--sx-orange); }
.sx-fo-titre__certif {
    margin: .4rem 0 0;
    font-size: .78rem;
    line-height: 1.35;
    color: var(--sx-muted);
}

/* Encadres colores */
.sx-fo-box {
    border-radius: var(--sx-radius);
    padding: 22px 22px 20px;
    margin-bottom: 18px;
    color: #fff;
    box-shadow: var(--sx-shadow-sm);
}
.sx-fo-box--cyan { background: var(--sx-cyan); color: var(--sx-navy); }
.sx-fo-box--orange { background: var(--sx-orange); }
.sx-fo-box--navy { background: var(--sx-navy); }
.sx-fo-box__title {
    font-size: 1.02rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}
.sx-fo-box__ico {
    flex: 0 0 auto;
    width: 22px; height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .35);
}
.sx-fo-box--cyan .sx-fo-box__ico { background: rgba(0, 59, 96, .22); }
.sx-fo-box__body { font-size: .95rem; line-height: 1.55; }
.sx-fo-box__body p { margin: 0 0 10px; }
.sx-fo-box__body p:last-child { margin-bottom: 0; }
.sx-fo-box__body ul { list-style: none; margin: 0; padding: 0; }
.sx-fo-box__body li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.45;
}
.sx-fo-box__body li::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: .75;
}
.sx-fo-box__body em { font-size: .85rem; opacity: .85; }
.sx-fo-box__pdf { width: auto; margin-top: 14px; background: transparent; border-color: #fff; color: #fff; }
.sx-fo-box__pdf:hover { background: #fff; color: var(--sx-navy); }

/* --- 3) MOYENS / RYTHME --- */
.sx-fo-peda {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.sx-fo-peda__body { font-size: .98rem; line-height: 1.6; }
.sx-fo-peda__body ul { list-style: none; margin: 0; padding: 0; }
.sx-fo-peda__body li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    line-height: 1.5;
}
.sx-fo-peda__body li::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--sx-fo-accent);
}
.sx-fo-peda__body strong { color: var(--sx-navy); }

/* --- 4) BANDEAU TAUX --- */
.sx-fo-taux {
    background: var(--sx-bg-soft);
    border-left: 5px solid var(--sx-fo-accent);
    border-radius: var(--sx-radius-sm);
    padding: 18px 24px;
    margin-bottom: 40px;
}
.sx-fo-taux__link {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--sx-navy);
    text-decoration: none;
}
a.sx-fo-taux__link:hover { color: var(--sx-orange); text-decoration: underline; }

/* --- 4b) TAUX D'INSERTION (accordeons France Competences) --- */
.sx-fo-insertion { margin-bottom: 48px; }
.sx-fo-insertion__source {
    font-size: .82rem;
    color: var(--sx-muted);
    margin: 14px 0 0;
    font-style: italic;
}
.sx-fo-insertion__source a { color: var(--sx-muted); text-decoration: none; }
.sx-fo-insertion__source a:hover { color: var(--sx-orange); text-decoration: underline; }

/* --- 4c) LIEN INSERTION (badge source officielle) --- */
.sx-fo-insertion-lien { margin-bottom: 40px; }
.sx-fo-insertion-lien__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sx-navy);
    text-decoration: none;
    transition: color 0.15s ease;
}
.sx-fo-insertion-lien__link i { color: var(--sx-fo-accent); font-size: 1.1rem; }
a.sx-fo-insertion-lien__link:hover { color: var(--sx-orange); text-decoration: underline; }

/* --- 5) OBTENTION --- */
.sx-fo-obtention {
    background: var(--sx-bg-soft);
    border-radius: var(--sx-radius);
    padding: 28px 30px;
    margin-bottom: 48px;
}
.sx-fo-obtention__body ul { list-style: none; margin: 0; padding: 0; }
.sx-fo-obtention__body li {
    position: relative;
    padding-left: 28px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sx-navy);
    line-height: 1.5;
    margin-bottom: 8px;
}
.sx-fo-obtention__body li::before {
    content: "\2713";
    position: absolute;
    left: 0; top: 0;
    color: var(--sx-fo-accent);
    font-weight: 800;
}
.sx-fo-obtention__note { font-size: .82rem; color: var(--sx-muted); margin: 14px 0 0; font-style: italic; }

/* --- 6) ACCORDEON PROGRAMME --- */
.sx-fo-programme { margin-bottom: 48px; }
.sx-fo-programme__head { margin-bottom: 22px; }
.sx-fo-programme__sub { color: var(--sx-muted); font-weight: 600; margin: 0; }
.sx-fo-accordion { display: flex; flex-direction: column; gap: 12px; }
.sx-fo-acc {
    background: var(--sx-navy);
    border-radius: var(--sx-radius-sm);
    overflow: hidden;
    color: #fff;
}
.sx-fo-acc__sum {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 1.02rem;
    color: #fff;
}
.sx-fo-acc__sum::-webkit-details-marker { display: none; }
.sx-fo-acc__plus {
    flex: 0 0 auto;
    position: relative;
    width: 20px; height: 20px;
}
.sx-fo-acc__plus::before,
.sx-fo-acc__plus::after {
    content: "";
    position: absolute;
    background: var(--sx-fo-accent);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.sx-fo-acc__plus::before { left: 0; top: 9px; width: 20px; height: 2px; }
.sx-fo-acc__plus::after { left: 9px; top: 0; width: 2px; height: 20px; }
.sx-fo-acc[open] .sx-fo-acc__plus::after { transform: scaleY(0); opacity: 0; }
.sx-fo-acc__body {
    background: #fff;
    color: var(--sx-ink);
    padding: 20px 22px 22px;
    font-size: .96rem;
    line-height: 1.6;
}
.sx-fo-acc__body p { margin: 0 0 12px; }
.sx-fo-acc__body p:last-child { margin-bottom: 0; }
.sx-fo-acc__body ul { list-style: none; margin: 0; padding: 0; }
.sx-fo-acc__body li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 9px;
    line-height: 1.5;
}
.sx-fo-acc__body li::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--sx-fo-accent);
}
.sx-fo-acc__body strong { color: var(--sx-navy); }

/* --- 7) REGLEMENT --- */
.sx-fo-reglement {
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius);
    padding: 28px 30px;
    margin-bottom: 48px;
}
.sx-fo-reglement__body { font-size: .96rem; line-height: 1.65; }
.sx-fo-reglement__body p { margin: 0 0 14px; }
.sx-fo-reglement__body strong { color: var(--sx-navy); }
.sx-fo-reglement__body ul { margin: 0 0 14px; padding-left: 20px; }
.sx-fo-reglement__body li { margin-bottom: 8px; line-height: 1.5; }

/* --- 8) POURSUITE / EMPLOIS --- */
.sx-fo-debouches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-bottom: 48px;
}
.sx-fo-debouches__col {
    background: var(--sx-navy);
    border-radius: var(--sx-radius);
    padding: 28px 30px;
    color: #fff;
}
.sx-fo-debouches__title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 16px;
    text-align: center;
}
.sx-fo-debouches__list { list-style: none; margin: 0; padding: 0; }
.sx-fo-debouches__list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 11px;
    line-height: 1.5;
}
.sx-fo-debouches__list li::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--sx-fo-accent);
}

/* --- 9) OFFRES LIEES --- */
.sx-fo-offres { margin-bottom: 44px; }
.sx-fo-offres__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.sx-fo-offre-card {
    border: 1px solid var(--sx-line);
    border-top: 4px solid var(--sx-fo-accent);
    border-radius: var(--sx-radius);
    padding: 22px 22px 24px;
    box-shadow: var(--sx-shadow-sm);
    display: flex;
    flex-direction: column;
    background: #fff;
}
.sx-fo-offre-card__title { font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; line-height: 1.35; }
.sx-fo-offre-card__title a { color: var(--sx-navy); text-decoration: none; }
.sx-fo-offre-card__title a:hover { color: var(--sx-orange); }
.sx-fo-offre-card__meta { color: var(--sx-muted); font-size: .9rem; margin: 0 0 16px; }
.sx-fo-offre-card__cta { width: 100%; margin-top: auto; }

/* CTA final */
.sx-fo-cta-final {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 8px 0 12px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .sx-fo-intro,
    .sx-fo-peda,
    .sx-fo-debouches { grid-template-columns: 1fr; gap: 28px; }
    .sx-fo-offres__grid { grid-template-columns: 1fr; }
    .sx-fo-cta { width: 100%; min-width: 0; }
}

/* ============================================================
 * ARTICLE DE BLOG v2 (single.php)
 *  Hero navy live conservé. Sidebar riche refonte (.sx-) :
 *  sommaire scroll-spy + carte auteur + CTA navy + CTA offres
 *  + articles liés. Bas d'article : articles similaires + nav.
 * ============================================================ */

/* --- Corps : colonne contenu + sidebar sticky --------------------------- */
.supa-article-body .vc_column-inner { padding-top: 0; }
.supa-article-content { min-width: 0; }
.supa-article-content .vc_column-inner { padding-right: 18px; }

/* Sidebar : on pilote nous-mêmes le sticky (le sticky Impreza est
   conditionnel JS et masque parfois la colonne). */
.supa-article-sidebar.type_sticky,
.supa-article-sidebar { display: block !important; }
.supa-article-sidebar .vc_column-inner {
    position: static;
    padding-left: 18px;
}
.sx-article-aside {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* --- Prose : confort de lecture du contenu d'article -------------------- */
.sx-article-prose { color: var(--sx-ink); }
.sx-article-prose h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 1.2rem + .8vw, 28px);
    line-height: 1.25;
    color: var(--sx-navy);
    margin: 42px 0 16px;
    scroll-margin-top: 110px;
}
.sx-article-prose h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 1.05rem + .5vw, 21px);
    line-height: 1.3;
    color: var(--sx-ink);
    margin: 30px 0 12px;
    scroll-margin-top: 110px;
}
.sx-article-prose p { line-height: 1.72; margin: 0 0 18px; }
.sx-article-prose a { color: var(--sx-orange-d); text-underline-offset: 2px; }
.sx-article-prose ul,
.sx-article-prose ol { margin: 0 0 18px; padding-left: 22px; line-height: 1.7; }
.sx-article-prose li { margin-bottom: 8px; }
.sx-article-prose img { border-radius: var(--sx-radius-sm); height: auto; }

/* --- Carte générique de la sidebar -------------------------------------- */
.sx-toc,
.sx-side-author,
.sx-side-offres,
.sx-side-related {
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius);
    box-shadow: var(--sx-shadow-sm);
    padding: 22px 22px 24px;
}

/* --- 1. SOMMAIRE v2 (scroll-spy) ---------------------------------------- */
.sx-toc__title {
    position: relative;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sx-navy);
    margin: 0 0 16px;
    padding-left: 16px;
}
.sx-toc__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    bottom: 1px;
    width: 4px;
    border-radius: 4px;
    background: var(--sx-orange);
}
.sx-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
/* Rail vertical reliant les entrées. */
.sx-toc__list::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--sx-line);
    border-radius: 2px;
}
.sx-toc__item { margin: 0; }
.sx-toc__link {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 8px 8px 0;
    text-decoration: none;
    color: var(--sx-muted);
    font-size: 14px;
    line-height: 1.4;
    transition: color .18s ease;
}
.sx-toc__num {
    flex: 0 0 auto;
    width: 28px;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: var(--sx-muted);
    background: var(--sx-bg-soft);
    border: 2px solid #fff;
    border-radius: 999px;
    padding: 3px 0;
    position: relative;
    z-index: 1;
    transition: background .18s ease, color .18s ease;
}
.sx-toc__label { padding-top: 2px; }
.sx-toc__item--sub .sx-toc__link {
    padding-left: 40px;
    font-size: 13.5px;
}
.sx-toc__link:hover { color: var(--sx-navy); }
.sx-toc__link:hover .sx-toc__num { color: var(--sx-navy); }
/* État actif (scroll-spy). */
.sx-toc__link.is-active { color: var(--sx-navy); font-weight: 600; }
.sx-toc__link.is-active .sx-toc__num {
    background: var(--sx-orange);
    color: #fff;
}
.sx-toc__item--sub .sx-toc__link.is-active::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sx-orange);
}

/* --- 2. CARTE AUTEUR ----------------------------------------------------- */
.sx-side-author__eyebrow {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sx-orange);
    margin: 0 0 14px;
}
.sx-side-author__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.sx-side-author__avatar {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sx-bg-soft);
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sx-orange);
}
.sx-side-author__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sx-side-author__id { display: flex; flex-direction: column; }
.sx-side-author__name {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--sx-ink);
    line-height: 1.2;
}
.sx-side-author__role {
    font-size: 12.5px;
    color: var(--sx-muted);
    margin-top: 3px;
    line-height: 1.3;
}
.sx-side-author__bio {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--sx-muted);
}

/* --- 3. CTA PRINCIPALE (navy) ------------------------------------------- */
.sx-side-cta {
    background: var(--sx-navy);
    border-radius: var(--sx-radius);
    padding: 24px 22px;
    box-shadow: var(--sx-shadow-sm);
    color: #fff;
}
.sx-side-cta__title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #fff;
}
.sx-side-cta__text {
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .82);
    margin: 0 0 18px;
}
.sx-side-cta__btn {
    display: block;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    border-radius: 999px;
    padding: 14px 20px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, border-color .2s ease, color .2s ease;
}
.sx-side-cta__btn--primary {
    background: var(--sx-orange);
    color: #fff;
    border: 2px solid var(--sx-orange);
    margin-bottom: 10px;
}
.sx-side-cta__btn--primary:hover {
    background: var(--sx-orange-d);
    border-color: var(--sx-orange-d);
    transform: translateY(-2px);
}
.sx-side-cta__btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .35);
}
.sx-side-cta__btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .08);
}

/* --- 4. CTA OFFRES (compteur dynamique) --------------------------------- */
.sx-side-offres { padding: 0; overflow: hidden; }
.sx-side-offres__link {
    display: flex;
    align-items: stretch;
    gap: 0;
    text-decoration: none;
    color: inherit;
}
.sx-side-offres__count {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 18px 10px;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 30px;
    line-height: 1;
    color: #fff;
    background: linear-gradient(150deg, var(--sx-cyan), #2ba9d6);
}
.sx-side-offres__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 16px 18px;
}
.sx-side-offres__label {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    color: var(--sx-ink);
}
.sx-side-offres__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--sx-orange-d);
}
.sx-side-offres__link:hover .sx-side-offres__cta { gap: 9px; }
.sx-side-offres__link:hover .sx-side-offres__label { color: var(--sx-navy); }

/* --- 5. SIDEBAR : "Sur le même sujet" (liste compacte) ------------------ */
.sx-side-related__title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sx-navy);
    margin: 0 0 14px;
}
.sx-side-related__list { list-style: none; margin: 0; padding: 0; }
.sx-side-related__item + .sx-side-related__item {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--sx-line);
}
.sx-side-related__link {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.sx-side-related__thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: var(--sx-radius-sm);
    object-fit: cover;
    display: block;
}
.sx-side-related__thumb--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 9px;
    color: rgba(255, 255, 255, .9);
    background: linear-gradient(135deg, #00253a, #4dc5ef);
    line-height: 1.1;
    padding: 4px;
}
.sx-side-related__text { display: flex; flex-direction: column; gap: 4px; }
.sx-side-related__headline {
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--sx-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .18s ease;
}
.sx-side-related__link:hover .sx-side-related__headline { color: var(--sx-orange-d); }
.sx-side-related__date { font-size: 11.5px; color: var(--sx-muted); }

/* --- 6. SOMMAIRE MOBILE (<details>) — masqué en desktop ----------------- */
.sx-toc-mobile { display: none; }

/* --- 7. NAVIGATION PRÉCÉDENT / SUIVANT ---------------------------------- */
.sx-postnav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--sx-line);
}
.sx-postnav__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius);
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--sx-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sx-postnav__item--empty {
    border: none;
    background: none;
    box-shadow: none;
}
.sx-postnav__item--next { flex-direction: row; justify-content: flex-end; text-align: right; }
a.sx-postnav__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--sx-shadow);
    border-color: var(--sx-orange);
}
.sx-postnav__arrow {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sx-bg-soft);
    color: var(--sx-navy);
    transition: background .2s ease, color .2s ease;
}
a.sx-postnav__item:hover .sx-postnav__arrow { background: var(--sx-orange); color: #fff; }
.sx-postnav__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sx-postnav__meta {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--sx-orange);
}
.sx-postnav__title {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    color: var(--sx-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 8. SECTION "ARTICLES SIMILAIRES" (bas d'article) ------------------- */
.sx-article-similar { padding: 56px 0 64px; background: var(--sx-bg-soft); }
.sx-article-similar__head { margin-bottom: 28px; }
.sx-article-similar__eyebrow {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sx-orange);
    margin: 0 0 8px;
}
.sx-article-similar__title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 1.4rem + 1vw, 32px);
    line-height: 1.2;
    color: var(--sx-navy);
    margin: 0;
}

/* --- RESPONSIVE article -------------------------------------------------- */
@media (max-width: 900px) {
    /* Contenu d'abord, sidebar ensuite : en mobile Impreza passe le grid en
       flex et force order:-1 sur la colonne sticky (sidebar avant contenu).
       On rétablit l'ordre éditorial voulu (contenu puis sidebar). */
    .supa-article-body .g-cols.via_grid > .supa-article-content { order: 0 !important; }
    .supa-article-body .g-cols.via_grid > .supa-article-sidebar { order: 1 !important; }

    /* Sidebar passe sous le contenu, à plat (pas de sticky). */
    .sx-article-aside { position: static; }
    .supa-article-content .vc_column-inner,
    .supa-article-sidebar .vc_column-inner { padding-left: 0; padding-right: 0; }

    /* Le sommaire desktop dans la sidebar est masqué : le mobile prend le
       relais en tête de contenu (repliable). */
    .sx-article-aside .sx-toc { display: none; }

    /* Sommaire mobile repliable. */
    .sx-toc-mobile {
        display: block;
        margin: 0 0 26px;
        border: 1px solid var(--sx-line);
        border-radius: var(--sx-radius);
        background: #fff;
        box-shadow: var(--sx-shadow-sm);
        overflow: hidden;
    }
    .sx-toc-mobile__summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 18px;
        cursor: pointer;
        list-style: none;
        font-family: "Montserrat", sans-serif;
        font-weight: 700;
        font-size: 14px;
        color: var(--sx-navy);
    }
    .sx-toc-mobile__summary::-webkit-details-marker { display: none; }
    .sx-toc-mobile__label {
        position: relative;
        padding-left: 14px;
    }
    .sx-toc-mobile__label::before {
        content: "";
        position: absolute;
        left: 0;
        top: 1px;
        bottom: 1px;
        width: 4px;
        border-radius: 4px;
        background: var(--sx-orange);
    }
    .sx-toc-mobile__chevron {
        flex: 0 0 auto;
        width: 11px;
        height: 11px;
        border-right: 2px solid var(--sx-navy);
        border-bottom: 2px solid var(--sx-navy);
        transform: rotate(45deg);
        transition: transform .25s ease;
        margin-top: -4px;
    }
    .sx-toc-mobile[open] .sx-toc-mobile__chevron { transform: rotate(-135deg); margin-top: 2px; }
    .sx-toc-mobile__body { padding: 0 18px 18px; }
    /* Dans le <details>, le sommaire n'a plus son fond carte (déjà fourni). */
    .sx-toc-mobile .sx-toc {
        display: block;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .sx-blog-grid.sx-article-similar__grid { grid-template-columns: 1fr; gap: 20px; }
    .sx-postnav { grid-template-columns: 1fr; }
    .sx-postnav__item--next { flex-direction: row-reverse; justify-content: flex-start; text-align: left; }
    .sx-postnav__item--empty { display: none; }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .sx-article-similar__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   LISTING OFFRES v2 - REALIGNEMENT SUR LE LANGAGE DU SITE (override)
   ---------------------------------------------------------------------
   Le listing utilise desormais les wrappers Impreza du live :
     - titlebar = section l-section us_custom_3c9a41b4 (navy pleine largeur,
       identique a single-formation.php / aux pages mirror) ;
     - bandeau chiffres, filtres + grille, CTA = sections l-section avec
       conteneur interieur .l-section-h centre (~1200px).
   Ce module ANNULE l'ancien hero/sticky code (.sx-offl-hero, negative
   margins) et restyle de maniere sobre, coherente avec le reste du site.
   ===================================================================== */

/* L'ancien hero plein-code n'existe plus dans le markup : on neutralise. */
.sx-offl-hero { display: none !important; }

/* Le wrapper .sx-offl est maintenant une l-section : pas de largeur/marge
   propre, c'est .l-section-h qui centre le contenu. Fond doux sur la bande. */
.l-section.sx-offl {
    background: var(--sx-bg-soft);
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    color: var(--sx-ink);
}
.l-section.sx-offl .l-section-h { position: relative; }

/* ---- BANDEAU CHIFFRES (sous la titlebar, sobre) ---- */
.sx-offl-statsband { background: #fff; border-bottom: 1px solid var(--sx-line); }
.sx-offl-intro {
    text-align: center;
    font-size: 1.04rem;
    line-height: 1.6;
    color: #43586a;
    max-width: 62ch;
    margin: 0 auto 26px;
    font-family: 'Montserrat', system-ui, sans-serif;
}
.sx-offl-statsband .sx-offl-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* Chiffres : style epure, separateurs fins (bande chiffres du site). */
.sx-offl-statsband .sx-offl-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: none;
    border: 0;
    backdrop-filter: none;
    min-width: 0;
    padding: 4px 40px;
}
.sx-offl-statsband .sx-offl-stat:empty {
    width: 1px;
    align-self: stretch;
    padding: 0;
    background: var(--sx-line);
}
.sx-offl-statsband .sx-offl-stat__num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--sx-navy);
    line-height: 1;
    font-family: 'Montserrat', system-ui, sans-serif;
}
.sx-offl-statsband .sx-offl-stat__lbl {
    font-size: .82rem;
    font-weight: 600;
    color: var(--sx-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ---- BANDEAU CTA (l-section pleine largeur, conteneur centre) ---- */
.sx-offl-ctaband { background: var(--sx-bg-soft); }
.l-section .sx-offl-cta { margin-top: 0; }

/* ---- RESPONSIVE listing v2 ---- */
@media (max-width: 900px) {
    .sx-offl-statsband .sx-offl-stat { padding: 4px 22px; }
    .sx-offl-statsband .sx-offl-stat__num { font-size: 2rem; }
    /* Barre de filtres : passe en pile (recherche pleine largeur, puis pilules + ville). */
    .sx-offl-filters { border-radius: var(--sx-radius); }
    .sx-offl-filters__inner { padding: 14px 16px; gap: 12px 14px; }
    .sx-offl-search { flex: 1 1 100%; min-width: 0; }
    .sx-offl-pills { flex: 1 1 auto; }
    .sx-offl-ville { margin-left: auto; }
}
@media (max-width: 640px) {
    .sx-offl-statsband .sx-offl-stats { gap: 0; flex-wrap: nowrap; width: 100%; }
    .sx-offl-statsband .sx-offl-stat { flex: 1 1 0; min-width: 0; padding: 8px 4px; }
    .sx-offl-statsband .sx-offl-stat:empty { display: none; }
    .sx-offl-statsband .sx-offl-stat__num { font-size: 1.55rem; }
    .sx-offl-statsband .sx-offl-stat__lbl { font-size: .62rem; letter-spacing: .02em; }
    .sx-offl-intro { font-size: .96rem; }
    /* Pilules niveau scrollables horizontalement ; ville en select natif pleine largeur. */
    .sx-offl-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .sx-offl-pills::-webkit-scrollbar { display: none; }
    .sx-offl-pill { flex: 0 0 auto; }
    .sx-offl-ville { width: 100%; margin-left: 0; }
    .sx-offl-ville__field { flex: 1 1 auto; }
    .sx-offl-ville__select { max-width: none; width: 100%; }
}

/* =====================================================================
   MEGA MENU "Nos formations" (.sx-mega) — refonte v2 (validee client)
   ---------------------------------------------------------------------
   Panneau FOND BLANC pleine largeur qui s'ouvre SOUS la barre header
   (140px desktop), declenche par "Nos formations". Prolongement naturel
   du site clair : fine bordure haute orange (continuite barre header),
   ombre portee douce, coins inferieurs arrondis. 3 colonnes par niveau
   (BTS / Bachelor / Mastere), en-tetes sobres + pastille couleur niveau,
   items = liens texte navy (hover orange). Rangee basse separee par un
   filet gris : toutes nos formations + compteur offres + CTA Candidater.
   Tokens : --sx-navy/orange/cyan/bts/bachelor/mastere (deja en :root).
   ===================================================================== */

/* Item declencheur dans la nav : neutralise le dropdown Impreza pour CET
   item (pas de menu-item-has-children), et stylise la fleche maison. */
.sx-mega-item .sx-mega-trigger {
    cursor: pointer;
}
.sx-mega-arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease, color .2s ease;
    pointer-events: none;
}
.sx-mega-trigger.is-open .sx-mega-arrow {
    transform: translateY(1px) rotate(-135deg);
    color: var(--sx-orange);
}
.sx-mega-trigger.is-open .w-nav-title {
    color: var(--sx-orange);
}

/* -------------------- PANNEAU DESKTOP -------------------- */
/* RESET d'isolation : le panneau est rendu DANS .l-subheader.at_middle
   (line-height:90px, margins .l-subheader-cell>*). On neutralise ces
   heritages Impreza pour que en-tetes/listes ne soient pas deformes. */
.sx-mega,
.sx-mega * {
    line-height: normal;
    margin: 0;
    box-sizing: border-box;
}
.l-subheader-cell.at_left > .sx-mega { margin: 0; }
.sx-mega {
    position: fixed;
    top: var(--sx-mega-top, 140px);
    left: 0;
    right: 0;
    z-index: 200;
    font-family: "Montserrat", -apple-system, sans-serif;
    text-align: left;
    display: flex;
    justify-content: center;
    padding: 0 24px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}
.sx-mega.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Le panneau blanc proprement dit. */
.sx-mega__panel {
    width: 100%;
    max-width: 1180px;
    background: #fff;
    border-top: 3px solid var(--sx-orange);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 24px 60px -18px rgba(0, 38, 63, .28), 0 6px 18px -8px rgba(0, 38, 63, .12);
    overflow: hidden;
    transform: translateY(-8px);
    transition: transform .18s ease;
}
.sx-mega.is-open .sx-mega__panel {
    transform: translateY(0);
}

/* Corps : bandeau intro script (gauche) + 3 colonnes niveau. */
.sx-mega__body {
    display: grid;
    grid-template-columns: 0.85fr 1fr 1fr 1fr;
    gap: 36px;
    padding: 30px 40px 26px;
}

/* Bandeau gauche : "Votre avenir," script orange + phrase navy + 3 niveaux
   + 2 chiffres cles. Cale en haut (pas flottant), filet vertical discret. */
.sx-mega__intro {
    padding-right: 30px;
    border-right: 1px solid rgba(0, 59, 96, .12);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.sx-mega__script {
    font-family: "Lie to me", "Montserrat", cursive;
    color: var(--sx-orange);
    font-size: 46px;
    line-height: .95;
    margin-bottom: 8px;
    display: block;
}
.sx-mega__lead {
    color: var(--sx-navy);
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.5;
    max-width: 240px;
}

/* Les 3 niveaux en liste sobre avec pastille couleur. */
.sx-mega__levels {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sx-mega__level {
    display: flex;
    align-items: center;
    gap: 9px;
}
.sx-mega__level-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
}
.sx-mega__level--bts .sx-mega__level-dot { background: var(--sx-bts); }
.sx-mega__level--bachelor .sx-mega__level-dot { background: var(--sx-bachelor); }
.sx-mega__level--mastere .sx-mega__level-dot { background: var(--sx-mastere); }
.sx-mega__level-name {
    color: var(--sx-navy);
    font-size: 14px;
    font-weight: 600;
}
.sx-mega__level-tag {
    color: #7a8893;
    font-size: 12px;
    font-weight: 500;
}

/* Deux chiffres cles, separes par un point discret. */
.sx-mega__stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 59, 96, .1);
    flex-wrap: wrap;
}
.sx-mega__stat {
    color: #5a6b78;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
}
.sx-mega__stat strong {
    color: var(--sx-orange);
    font-weight: 700;
    font-size: 15px;
}
.sx-mega__stat-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 59, 96, .25);
    flex: 0 0 auto;
}

/* Les 3 colonnes niveau. */
.sx-mega__cols {
    display: contents;
}
.sx-mega__col {
    min-width: 0;
}
.sx-mega__col-head {
    display: flex;
    align-items: center;
    gap: 9px;
}
.sx-mega__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex: 0 0 auto;
}
.sx-mega__col--bts .sx-mega__dot { background: var(--sx-bts); }
.sx-mega__col--bachelor .sx-mega__dot { background: var(--sx-bachelor); }
.sx-mega__col--mastere .sx-mega__dot { background: var(--sx-mastere); }
.sx-mega__col--autres .sx-mega__dot { background: var(--sx-cyan); }
.sx-mega__col-name {
    color: var(--sx-navy);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .1px;
}
.sx-mega__col-badge {
    font-size: 11px;
    font-weight: 600;
    color: #7a8893;
    background: #f1f5f8;
    border-radius: 20px;
    padding: 2px 9px;
    letter-spacing: .2px;
}
.sx-mega__col-sub {
    color: #8693a0;
    font-size: 12.5px;
    margin: 5px 0 14px 20px;
    line-height: 1.35;
}

/* Liste d'items = liens texte. */
.sx-mega__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sx-mega__li + .sx-mega__li { margin-top: 2px; }
.sx-mega__link {
    display: block;
    padding: 8px 10px 8px 20px;
    border-radius: 9px;
    color: var(--sx-navy);
    text-decoration: none;
    position: relative;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.sx-mega__link::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--sx-orange);
    transform: translateY(-50%);
    transition: width .16s ease;
}
.sx-mega__link-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    display: block;
}
.sx-mega__link:hover,
.sx-mega__link:focus-visible {
    background: #fff7ef;
    color: var(--sx-orange-d);
    transform: translateX(4px);
    outline: none;
}
.sx-mega__link:hover::before,
.sx-mega__link:focus-visible::before {
    width: 8px;
}
.sx-mega__link:focus-visible {
    box-shadow: 0 0 0 2px var(--sx-orange);
}

/* -------------------- RANGEE BASSE -------------------- */
.sx-mega__foot {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 16px 40px;
    border-top: 1px solid rgba(0, 59, 96, .1);
    background: #fafcfe;
}
.sx-mega__foot-spacer { flex: 1; }

.sx-mega__foot-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sx-navy);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: color .16s ease, gap .16s ease;
}
.sx-mega__foot-link svg { width: 15px; height: 15px; }
.sx-mega__foot-link:hover { color: var(--sx-orange-d); gap: 11px; }
.sx-mega__foot-link:focus-visible {
    outline: 2px solid var(--sx-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

.sx-mega__foot-offres {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #4a5963;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color .16s ease;
}
.sx-mega__foot-offres strong { color: var(--sx-navy); font-weight: 700; }
/* Pastille statique (l'ancien anneau anime "pulse" a ete retire : effet
   decoratif clignotant -> trop "IA", cf charte sobriete). */
.sx-mega__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sx-orange);
    flex: 0 0 auto;
}
.sx-mega__foot-offres:hover { color: var(--sx-orange-d); }
.sx-mega__foot-offres:focus-visible {
    outline: 2px solid var(--sx-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

.sx-mega__foot-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sx-orange);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 999px;
    transition: background .16s ease, box-shadow .16s ease;
    box-shadow: 0 4px 12px -6px rgba(255, 127, 0, .35);
}
.sx-mega__foot-cta svg { width: 16px; height: 16px; }
.sx-mega__foot-cta:hover {
    background: var(--sx-orange-d);
    box-shadow: 0 6px 14px -6px rgba(255, 127, 0, .4);
}
.sx-mega__foot-cta:focus-visible {
    outline: 2px solid var(--sx-navy);
    outline-offset: 3px;
}

/* Sous laptop large : on resserre, l'intro script passe en pleine largeur. */
@media (max-width: 1100px) {
    .sx-mega__body {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 28px;
        padding: 26px 30px 22px;
    }
    .sx-mega__intro {
        grid-column: 1 / -1;
        border-right: none;
        border-bottom: 1px solid rgba(0, 59, 96, .12);
        padding: 0 0 18px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        column-gap: 22px;
        row-gap: 10px;
    }
    .sx-mega__script { margin-bottom: 0; font-size: 40px; }
    .sx-mega__lead { max-width: 320px; }
    .sx-mega__levels {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 16px;
        margin: 0;
    }
    .sx-mega__stats {
        margin: 0;
        padding-top: 0;
        border-top: none;
    }
    .sx-mega__foot { padding: 14px 30px; gap: 18px; flex-wrap: wrap; }
}

/* -------------------- MOBILE : accordeon drawer -------------------- */
.sx-mega-acc { display: none; }

/* Le panneau desktop n'existe pas en drawer mobile (zone burger <= 975px,
   alignee sur mobileWidth:976 du header + refonte-fixes.css fix 4bis). */
@media (max-width: 975px) {
    .sx-mega { display: none !important; }
    .sx-mega-arrow { display: none; }

    .sx-mega-acc,
    .sx-mega-acc * {
        box-sizing: border-box;
        line-height: normal;
    }
    .sx-mega-acc {
        display: block;
        width: 100%;
        padding: 6px 0 4px;
    }
    .sx-mega-acc__group {
        border: 1px solid rgba(0, 59, 96, .1);
        border-radius: 12px;
        overflow: hidden;
        width: 100%;
        background: #fff;
    }
    .sx-mega-acc__group + .sx-mega-acc__group { margin-top: 8px; }

    .sx-mega-acc__head {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 13px 14px;
        background: #fafcfe;
        border: none;
        cursor: pointer;
        text-align: left;
        font-family: inherit;
    }
    .sx-mega-acc__dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        flex: 0 0 auto;
    }
    .sx-mega-acc__group--bts .sx-mega-acc__dot { background: var(--sx-bts); }
    .sx-mega-acc__group--bachelor .sx-mega-acc__dot { background: var(--sx-bachelor); }
    .sx-mega-acc__group--mastere .sx-mega-acc__dot { background: var(--sx-mastere); }
    .sx-mega-acc__group--autres .sx-mega-acc__dot { background: var(--sx-cyan); }
    .sx-mega-acc__name {
        flex: 1;
        color: var(--sx-navy);
        font-size: 15px;
        font-weight: 700;
    }
    .sx-mega-acc__badge {
        font-size: 10.5px;
        font-weight: 600;
        color: #7a8893;
        background: #eef3f7;
        border-radius: 20px;
        padding: 2px 8px;
    }
    .sx-mega-acc__chev {
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--sx-navy);
        border-bottom: 2px solid var(--sx-navy);
        transform: rotate(45deg);
        transition: transform .2s ease;
        flex: 0 0 auto;
        margin-left: 2px;
    }
    .sx-mega-acc__group.is-open .sx-mega-acc__chev { transform: rotate(-135deg); }
    .sx-mega-acc__group.is-open .sx-mega-acc__head {
        background: #fff7ef;
    }

    .sx-mega-acc__list {
        list-style: none;
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }
    .sx-mega-acc__group.is-open .sx-mega-acc__list { max-height: 720px; }
    .sx-mega-acc__item { border-top: 1px solid rgba(0, 59, 96, .07); }
    .sx-mega-acc__link {
        display: block;
        padding: 12px 14px 12px 36px;
        color: var(--sx-navy);
        text-decoration: none;
        position: relative;
        text-transform: none;
        letter-spacing: normal;
    }
    .sx-mega-acc__link::before {
        content: "";
        position: absolute;
        left: 18px;
        top: 50%;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--sx-orange);
        transform: translateY(-50%);
        opacity: .55;
    }
    .sx-mega-acc__link:active { background: #fff7ef; }
    .sx-mega-acc__txt {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.35;
        display: block;
        text-transform: none;
        letter-spacing: normal;
    }
    .sx-mega-acc__all {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
        padding: 11px 18px;
        background: var(--sx-orange);
        color: #fff;
        font-size: 13.5px;
        font-weight: 700;
        text-decoration: none;
        border-radius: 999px;
        text-transform: none;
        letter-spacing: normal;
    }
    .sx-mega-acc__all svg { width: 15px; height: 15px; }
}

/* Reduced motion : on coupe les transitions/animations. */
@media (prefers-reduced-motion: reduce) {
    .sx-mega,
    .sx-mega__panel,
    .sx-mega__link,
    .sx-mega__foot-cta,
    .sx-mega-acc__list { transition: none !important; }
}

/* ==========================================================================
   (fix) TITLEBAR PAGE ÉQUIPE — titre fg coupé sous le header fixe
   Défaut hérité du LIVE (us_custom_ca6b596e : margin-top:-9.5rem remonte le
   titre orange à 24px SOUS le header 140px). Présent en prod, mesuré identique
   live/local (fgTop=116 < headerBottom=140). Correction refonte : -7.5rem
   (+2rem) => fgTop=148, titre entièrement visible, overlay watermark conservé.
   Chirurgical par page-id : espace-entreprise utilise le même hash mais a un
   watermark 2 lignes (fgTop=220, OK) -> ne pas toucher.
   ========================================================================== */
.page-id-146 .sup-txt-fg.us_custom_ca6b596e {
    margin-top: -7.5rem !important;
}

/* ==========================================================================
   FORMULAIRES full-code (.supa-form) — contact / JPO / candidature
   Remplace les anciens clones WPForms. Aligné sur le design system (tokens
   --sx-*). Zéro dépendance à live-wpforms.css (170 Ko retirés).
   ========================================================================== */
.supa-form-wrap {
    max-width: 760px;
    margin: 0 auto;
}
.supa-form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
}
.supa-form__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
.supa-form__field--full {
    grid-column: 1 / -1;
}
.supa-form__label {
    font-size: .86rem;
    font-weight: 700;
    color: var(--sx-navy);
    line-height: 1.3;
}
.supa-form__req {
    color: var(--sx-orange);
}
.supa-form__input {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: .98rem;
    color: var(--sx-ink);
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius-sm);
    padding: 13px 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.supa-form__textarea {
    min-height: 130px;
    resize: vertical;
}
.supa-form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%235f7785' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}
.supa-form__input::placeholder {
    color: var(--sx-muted);
    opacity: 1;
}
.supa-form__input:focus {
    outline: none;
    border-color: var(--sx-orange);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, .14);
}
.supa-form__field.is-invalid .supa-form__input {
    border-color: var(--sx-mastere);
    box-shadow: 0 0 0 3px rgba(248, 45, 61, .12);
}
.supa-form__error {
    font-size: .78rem;
    color: var(--sx-mastere);
    min-height: 1em;
}
.supa-form__error:empty {
    display: none;
}
.supa-form__footer {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}
.supa-form__submit {
    width: auto;
    min-width: 230px;
}
.supa-form__submit.is-loading {
    opacity: .65;
    cursor: progress;
}
.supa-form__feedback {
    margin: 0;
    font-size: .85rem;
    min-height: 1em;
}
.supa-form__feedback.is-error { color: var(--sx-mastere); }
.supa-form__feedback.is-pending { color: var(--sx-muted); }
/* Honeypot anti-spam : hors écran, jamais visible. */
.supa-form__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
/* Confirmation inline (succès). */
.supa-form__success {
    background: var(--sx-bg-soft);
    border: 1px solid var(--sx-line);
    border-left: 4px solid var(--sx-orange);
    border-radius: var(--sx-radius-sm);
    padding: 24px 26px;
    color: var(--sx-ink);
}
.supa-form__success p { margin: 0 0 10px; }
.supa-form__success p:last-child { margin-bottom: 0; }
.supa-form__success strong { color: var(--sx-navy); }
.supa-form__downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}
.supa-form__downloads .sx-btn { width: auto; }
/* Alerte (repli sans JS en erreur). */
.supa-form__alert {
    background: #fff5f5;
    border: 1px solid var(--sx-mastere);
    color: var(--sx-mastere);
    border-radius: var(--sx-radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: .9rem;
}
@media (max-width: 600px) {
    .supa-form__grid { grid-template-columns: 1fr; }
    .supa-form__submit { width: 100%; min-width: 0; }
}


/* Categories blog ajoutees 2026-07 : Conseils alternance + Actualites */
.sx-cbadge--conseils-alternance { background: #0e9e6e; color: #fff; }
.sx-cbadge--actualites { background: #feaa01; color: #00253a; }

/* Logo Sup'Affaires par defaut pour les articles sans image a la une */
.sx-blog-card__fallback-logo,
.sx-feature__fallback-logo {
    width: 58%;
    max-width: 190px;
    height: auto;
    opacity: .95;
}
.sx-feature__fallback-logo { max-width: 260px; }
