/* ══════════════════════════════════════════════════════════════════
   JEFIE Paris 2026 — Socle visuel commun des espaces connectés
   Charte graphique : Bleu Nuit #0B1B3D · Jaune #FDCC18 (principaux)
                      Vert #009E49 · Bleu #3A75C4 (secondaires)
   Typographies : Exo Bold (titres) · Futura Std (texte, repli : Jost)
   Préfixe « jx- » pour ne jamais entrer en conflit avec les styles existants.
══════════════════════════════════════════════════════════════════ */

:root {
    /* Palette officielle */
    --jx-navy: #0B1B3D;
    --jx-yellow: #FDCC18;
    --jx-green: #009E49;
    --jx-blue: #3A75C4;
    --jx-black: #000000;
    --jx-white: #FFFFFF;

    /* Teintes d'interface dérivées de la palette (fonds, bordures, textes) */
    --jx-navy-90: #14264d;
    --jx-navy-80: #1d3360;
    --jx-bg: #f3f5f9;
    --jx-surface: #ffffff;
    --jx-line: #e2e7ef;
    --jx-text: #0B1B3D;
    --jx-muted: #5d6b85;
    --jx-soft: #8a96ab;
    --jx-yellow-soft: #fff6d1;
    --jx-green-soft: #e3f5ec;
    --jx-blue-soft: #e6eef9;
    --jx-navy-soft: #e7eaf1;
    /* Signalisation d'erreur (usage fonctionnel uniquement) */
    --jx-danger: #b42318;
    --jx-danger-soft: #fdecea;

    --jx-font-title: 'Exo', 'Segoe UI', Arial, sans-serif;
    --jx-font-body: 'Futura Std', 'Futura', 'Jost', 'Segoe UI', Arial, sans-serif;

    --jx-radius: 12px;
    --jx-radius-sm: 8px;
    --jx-shadow: 0 1px 2px rgba(11, 27, 61, .05), 0 4px 16px rgba(11, 27, 61, .06);
    --jx-sidebar-w: 264px;
    --jx-topbar-h: 64px;
}

/* ── Base ─────────────────────────────────────────────────────────── */
body.jx-body {
    margin: 0;
    background: var(--jx-bg);
    color: var(--jx-text);
    font-family: var(--jx-font-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.jx-body *,
.jx-body *::before,
.jx-body *::after {
    box-sizing: border-box;
}

:where(.jx-body) a {
    color: inherit;
}

:where(.jx-body) h1,
:where(.jx-body) h2,
:where(.jx-body) h3,
.jx-title {
    font-family: var(--jx-font-title);
    font-weight: 700;
    color: var(--jx-navy);
    line-height: 1.25;
    margin: 0;
}

.jx-body svg.jx-ic {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.jx-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ── Structure ────────────────────────────────────────────────────── */
.jx-app {
    min-height: 100vh;
    display: flex;
}

.jx-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--jx-sidebar-w);
    background: var(--jx-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 1200;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .2) transparent;
}

.jx-main {
    flex: 1;
    min-width: 0;
    margin-left: var(--jx-sidebar-w);
    display: flex;
    flex-direction: column;
}

/* Marque */
.jx-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.jx-brand img {
    width: 64px;
    height: 48px;
    object-fit: contain;
    object-position: left center;
}

.jx-brand-name {
    font-family: var(--jx-font-title);
    font-weight: 800;
    font-size: 17px;
    color: #fff;
    letter-spacing: .3px;
}

.jx-brand-name span {
    color: var(--jx-yellow);
}

.jx-brand-sub {
    font-size: 10.5px;
    color: rgba(255, 255, 255, .6);
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

/* Carte utilisateur */
.jx-user {
    margin: 16px 14px 6px;
    padding: 12px;
    border-radius: var(--jx-radius-sm);
    background: rgba(255, 255, 255, .06);
    display: flex;
    gap: 10px;
    align-items: center;
}

.jx-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--jx-yellow);
    color: var(--jx-navy);
    font-family: var(--jx-font-title);
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
}

.jx-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jx-user-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jx-user-role {
    display: inline-block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: var(--jx-navy);
    background: var(--jx-yellow);
    border-radius: 999px;
    padding: 1px 8px;
}

.jx-user-meta {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .6);
    margin-top: 3px;
}

/* Navigation */
.jx-nav {
    padding: 6px 10px 16px;
    flex: 1;
}

.jx-nav-section {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    padding: 16px 12px 6px;
}

.jx-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    margin: 1px 0;
    border-radius: var(--jx-radius-sm);
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: background .15s, color .15s;
}

.jx-nav-item:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.jx-nav-item.is-active {
    background: rgba(253, 204, 24, .14);
    color: #fff;
}

.jx-nav-item.is-active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--jx-yellow);
}

.jx-nav-item.is-active svg {
    color: var(--jx-yellow);
}

.jx-count {
    margin-left: auto;
    min-width: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.jx-count.is-alert {
    background: var(--jx-yellow);
    color: var(--jx-navy);
}

.jx-sidebar-foot {
    padding: 12px 10px 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.jx-sidebar-foot form {
    margin: 0;
}

.jx-sidebar-foot button {
    width: 100%;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

/* Barre supérieure */
.jx-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--jx-topbar-h);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--jx-line);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 28px;
}

.jx-burger {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--jx-line);
    border-radius: var(--jx-radius-sm);
    background: #fff;
    color: var(--jx-navy);
    cursor: pointer;
    place-items: center;
}

.jx-crumbs {
    font-size: 13px;
    color: var(--jx-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jx-crumbs strong {
    color: var(--jx-navy);
    font-weight: 600;
}

.jx-topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Zone de contenu */
.jx-content {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 28px 48px;
    flex: 1;
}

.jx-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.jx-page-title {
    font-family: var(--jx-font-title);
    font-size: 26px;
    font-weight: 800;
    color: var(--jx-navy);
    margin: 0;
}

.jx-page-sub {
    color: var(--jx-muted);
    margin: 4px 0 0;
    font-size: 14.5px;
}

.jx-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jx-footer {
    padding: 18px 28px;
    font-size: 12.5px;
    color: var(--jx-soft);
    border-top: 1px solid var(--jx-line);
    text-align: center;
}

/* ── Grilles ──────────────────────────────────────────────────────── */
.jx-grid {
    display: grid;
    gap: 18px;
}

.jx-content > .jx-grid + .jx-grid,
.jx-content > .jx-grid + .jx-card,
.jx-content > .jx-card + .jx-grid,
.jx-content > .jx-card + .jx-card {
    margin-top: 18px;
}

.jx-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jx-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jx-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jx-cols-main {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

/* ── Cartes ───────────────────────────────────────────────────────── */
.jx-card {
    background: var(--jx-surface);
    border: 1px solid var(--jx-line);
    border-radius: var(--jx-radius);
    box-shadow: var(--jx-shadow);
    min-width: 0;
}

.jx-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--jx-line);
}

.jx-card-title {
    font-family: var(--jx-font-title);
    font-weight: 700;
    font-size: 16px;
    color: var(--jx-navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jx-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--jx-blue);
    text-decoration: none;
    white-space: nowrap;
}

.jx-card-link:hover {
    text-decoration: underline;
}

.jx-card-body {
    padding: 18px 20px;
}

.jx-card-body.is-flush {
    padding: 0;
}

/* Bandeau d'accueil */
.jx-hero {
    background: var(--jx-navy);
    color: #fff;
    border-radius: var(--jx-radius);
    padding: 26px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
}

.jx-hero::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 28px solid rgba(253, 204, 24, .12);
}

.jx-hero h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.jx-hero p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .78);
    max-width: 640px;
}

.jx-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.jx-hero .jx-badge {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.jx-hero .jx-badge.is-yellow {
    background: var(--jx-yellow);
    color: var(--jx-navy);
}

.jx-hero-side {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Statistiques */
.jx-stat {
    background: var(--jx-surface);
    border: 1px solid var(--jx-line);
    border-radius: var(--jx-radius);
    box-shadow: var(--jx-shadow);
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}

a.jx-stat:hover {
    border-color: var(--jx-blue);
}

.jx-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--jx-navy-soft);
    color: var(--jx-navy);
}

.jx-stat-icon .jx-ic {
    width: 22px;
    height: 22px;
}

.jx-stat.is-yellow .jx-stat-icon {
    background: var(--jx-yellow-soft);
    color: #8a6d00;
}

.jx-stat.is-green .jx-stat-icon {
    background: var(--jx-green-soft);
    color: var(--jx-green);
}

.jx-stat.is-blue .jx-stat-icon {
    background: var(--jx-blue-soft);
    color: var(--jx-blue);
}

.jx-stat-value {
    font-family: var(--jx-font-title);
    font-size: 26px;
    font-weight: 800;
    color: var(--jx-navy);
    line-height: 1.1;
}

.jx-stat-value.is-text {
    font-size: 16px;
    line-height: 1.3;
    padding-bottom: 2px;
}

.jx-stat-label {
    font-size: 13px;
    color: var(--jx-muted);
}

.jx-stat-hint {
    font-size: 12px;
    color: var(--jx-soft);
}

/* Liste d'informations (profil) */
.jx-info {
    display: grid;
    grid-template-columns: minmax(120px, 38%) 1fr;
    gap: 0;
    margin: 0;
}

.jx-info dt,
.jx-info dd {
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px dashed var(--jx-line);
    font-size: 14px;
}

.jx-info dt {
    color: var(--jx-muted);
    padding-right: 12px;
}

.jx-info dd {
    color: var(--jx-navy);
    font-weight: 500;
    word-break: break-word;
}

.jx-info dt:last-of-type,
.jx-info dd:last-of-type {
    border-bottom: 0;
}

/* Actions rapides */
.jx-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.jx-action {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--jx-line);
    border-radius: var(--jx-radius-sm);
    background: #fff;
    text-decoration: none;
    color: var(--jx-navy);
    font-weight: 600;
    font-size: 14px;
    transition: border-color .15s, transform .15s;
}

.jx-action:hover {
    border-color: var(--jx-yellow);
    transform: translateY(-1px);
}

.jx-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--jx-yellow);
    color: var(--jx-navy);
    display: grid;
    place-items: center;
}

.jx-action small {
    font-weight: 400;
    color: var(--jx-muted);
    font-size: 12.5px;
}

/* Étapes / statut */
.jx-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jx-steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed var(--jx-line);
    font-size: 14px;
}

.jx-steps li:last-child {
    border-bottom: 0;
}

.jx-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--jx-navy-soft);
    color: var(--jx-muted);
}

.jx-step-dot .jx-ic {
    width: 14px;
    height: 14px;
}

.jx-steps li.is-done .jx-step-dot {
    background: var(--jx-green);
    color: #fff;
}

.jx-steps li.is-todo .jx-step-dot {
    background: var(--jx-yellow-soft);
    color: #8a6d00;
}

.jx-steps small {
    display: block;
    color: var(--jx-muted);
}

/* Progression */
.jx-progress {
    height: 8px;
    background: var(--jx-navy-soft);
    border-radius: 999px;
    overflow: hidden;
}

.jx-progress > span {
    display: block;
    height: 100%;
    background: var(--jx-green);
    border-radius: 999px;
}

/* ── Tableaux ─────────────────────────────────────────────────────── */
.jx-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.jx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.jx-table th {
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--jx-muted);
    background: #f8f9fc;
    padding: 10px 16px;
    border-bottom: 1px solid var(--jx-line);
    white-space: nowrap;
}

.jx-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--jx-line);
    vertical-align: middle;
}

.jx-table tr:last-child td {
    border-bottom: 0;
}

.jx-table tbody tr:hover td {
    background: #fafbfd;
}

.jx-table .is-strong {
    font-weight: 600;
    color: var(--jx-navy);
}

.jx-table .is-muted {
    color: var(--jx-muted);
    font-size: 13px;
}

/* ── Badges ───────────────────────────────────────────────────────── */
.jx-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--jx-navy-soft);
    color: var(--jx-navy);
    white-space: nowrap;
}

.jx-badge.is-green {
    background: var(--jx-green-soft);
    color: #00703a;
}

.jx-badge.is-yellow {
    background: var(--jx-yellow-soft);
    color: #7a5f00;
}

.jx-badge.is-blue {
    background: var(--jx-blue-soft);
    color: #2a5a9c;
}

.jx-badge.is-red {
    background: var(--jx-danger-soft);
    color: var(--jx-danger);
}

/* ── Boutons ──────────────────────────────────────────────────────── */
.jx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--jx-radius-sm);
    border: 1px solid transparent;
    font-family: var(--jx-font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    background: var(--jx-navy);
    color: #fff;
    transition: background .15s, border-color .15s, color .15s;
}

.jx-btn:hover {
    background: var(--jx-navy-80);
}

.jx-btn.is-accent {
    background: var(--jx-yellow);
    color: var(--jx-navy);
}

.jx-btn.is-accent:hover {
    background: #f2c00a;
}

.jx-btn.is-ghost {
    background: #fff;
    color: var(--jx-navy);
    border-color: var(--jx-line);
}

.jx-btn.is-ghost:hover {
    border-color: var(--jx-navy);
}

.jx-hero .jx-btn.is-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}

.jx-btn.is-danger {
    background: #fff;
    color: var(--jx-danger);
    border-color: #f3c7c3;
}

.jx-btn.is-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ── Formulaires ──────────────────────────────────────────────────── */
.jx-form {
    display: grid;
    gap: 16px;
}

.jx-field label,
.jx-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--jx-navy);
    margin-bottom: 6px;
}

.jx-input,
.jx-select,
.jx-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd6e2;
    border-radius: var(--jx-radius-sm);
    background: #fff;
    color: var(--jx-navy);
    font: inherit;
    font-size: 14px;
}

.jx-input:focus,
.jx-select:focus,
.jx-textarea:focus {
    outline: none;
    border-color: var(--jx-blue);
    box-shadow: 0 0 0 3px rgba(58, 117, 196, .18);
}

/* ── Alertes ──────────────────────────────────────────────────────── */
.jx-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 16px;
    border-radius: var(--jx-radius-sm);
    border: 1px solid var(--jx-line);
    background: #fff;
    font-size: 14px;
    margin-bottom: 16px;
}

.jx-alert.is-ok {
    background: var(--jx-green-soft);
    border-color: #b7e3cb;
    color: #00582e;
}

.jx-alert.is-ko {
    background: var(--jx-danger-soft);
    border-color: #f3c7c3;
    color: var(--jx-danger);
}

.jx-alert.is-info {
    background: var(--jx-blue-soft);
    border-color: #c5d6ef;
    color: #234a80;
}

.jx-alert.is-warn {
    background: var(--jx-yellow-soft);
    border-color: #f5e08f;
    color: #5f4a00;
}

/* État vide */
.jx-empty {
    text-align: center;
    padding: 28px 16px;
    color: var(--jx-muted);
    font-size: 14px;
}

.jx-empty .jx-ic {
    width: 32px;
    height: 32px;
    color: var(--jx-soft);
    margin-bottom: 6px;
}

.jx-empty a {
    color: var(--jx-blue);
    font-weight: 600;
}

/* Éléments de liste compacts */
.jx-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jx-rows li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--jx-line);
    font-size: 14px;
}

.jx-rows li:last-child {
    border-bottom: 0;
}

.jx-rows .jx-row-main {
    flex: 1;
    min-width: 0;
}

.jx-rows .jx-row-title {
    font-weight: 600;
    color: var(--jx-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jx-rows .jx-row-sub {
    font-size: 12.5px;
    color: var(--jx-muted);
}

/* ── Couche de compatibilité : harmonise les pages existantes ───────
   (cartes, tableaux, boutons et alertes des anciennes vues prennent
    les couleurs et typographies de la charte sans réécriture complète) */
.jx-legacy {
    font-family: var(--jx-font-body);
    color: var(--jx-text);
}

.jx-legacy h1,
.jx-legacy h2,
.jx-legacy h3,
.jx-legacy .page-title,
.jx-legacy .card-title,
.jx-legacy .section-title {
    font-family: var(--jx-font-title);
    color: var(--jx-navy);
}

.jx-legacy .card,
.jx-legacy .ps-card,
.jx-legacy .rec-card,
.jx-legacy .me-card {
    border-radius: var(--jx-radius);
    border: 1px solid var(--jx-line);
    box-shadow: var(--jx-shadow);
    background: #fff;
}

.jx-legacy table th {
    color: var(--jx-muted);
    font-size: 11.5px;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.jx-legacy .btn-or,
.jx-legacy .btn-gold,
.jx-legacy .btn-primary-gold {
    background: var(--jx-yellow) !important;
    color: var(--jx-navy) !important;
    border-color: var(--jx-yellow) !important;
}

.jx-legacy .btn-navy,
.jx-legacy .btn-full-navy,
.jx-legacy .btn-primary {
    background: var(--jx-navy) !important;
    color: #fff !important;
}

.jx-legacy input:not([type=checkbox]):not([type=radio]):not([type=file]),
.jx-legacy select,
.jx-legacy textarea {
    font-family: inherit;
}

/* ── Responsive ───────────────────────────────────────────────────── */
.jx-overlay {
    display: none;
}

@media (max-width: 1180px) {
    .jx-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jx-cols-main {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 980px) {
    .jx-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 8px 0 32px rgba(0, 0, 0, .25);
    }

    .jx-app.is-open .jx-sidebar {
        transform: translateX(0);
    }

    .jx-app.is-open .jx-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(11, 27, 61, .45);
        z-index: 1100;
    }

    .jx-main {
        margin-left: 0;
    }

    .jx-burger {
        display: grid;
    }

    .jx-topbar {
        padding: 0 16px;
    }

    .jx-content {
        padding: 20px 16px 40px;
    }

    .jx-cols-3,
    .jx-cols-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .jx-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .jx-cols-4 > .jx-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .jx-cols-4 .jx-stat-icon {
        width: 34px;
        height: 34px;
    }

    .jx-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .jx-page-title {
        font-size: 22px;
    }

    .jx-hero {
        padding: 20px;
    }

    .jx-hero h1 {
        font-size: 20px;
    }

    .jx-topbar-actions .jx-hide-sm {
        display: none;
    }

    .jx-info {
        grid-template-columns: minmax(0, 1fr);
    }

    .jx-info dt {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .jx-table th,
    .jx-table td {
        padding: 10px 12px;
    }
}

@media print {

    .jx-sidebar,
    .jx-topbar,
    .jx-overlay {
        display: none !important;
    }

    .jx-main {
        margin-left: 0;
    }
}

/* Pictogrammes des anciennes vues sans dimension explicite (spécificité nulle : les règles des pages priment) */
:where(.jx-legacy svg:not([width])) {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

:where(.jx-legacy) {
    overflow-wrap: anywhere;
}
