/* =========================================================
   JEP – STYLE PUBLIC MODERNE / FONCTIONNEL / RESPONSIVE
   ====================================================== */

:root{
    --jep-bg: #ffffff;
    --jep-surface: #ffffff;
    --jep-surface-soft: #f8fafc;
    --jep-border: #d9e2ec;
    --jep-border-strong: #c8d4e3;

    --jep-text: #122033;
    --jep-text-soft: #526277;
    --jep-text-muted: #708196;

    --jep-primary: #1f4e79;
    --jep-primary-hover: #173b5b;
    --jep-primary-soft: #e8f1f8;

    --jep-accent: #d32f2f;
    --jep-accent-hover: #b71c1c;

    --jep-success: #1f7a3f;
    --jep-success-bg: #e8f7ed;
    --jep-success-border: #b8dfc4;

    --jep-error: #b42318;
    --jep-error-bg: #fdecec;
    --jep-error-border: #f3b3b3;

    --jep-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --jep-shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);

    --jep-radius-sm: 8px;
    --jep-radius: 14px;
    --jep-radius-lg: 18px;
}

/* =========================================================
   BASE
   ====================================================== */

.jep-tabs,
.jep-evenements,
.jep-journal,
.jep-login-form,
.jep-new-evenement-form,
.jep-message-form,
.jep-modal-content {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--jep-text);
}

.jep-tabs *,
.jep-evenements *,
.jep-journal *,
.jep-login-form *,
.jep-new-evenement-form *,
.jep-message-form *,
.jep-modal-content * {
    box-sizing: border-box;
}

.jep-tabs {
    max-width: 100%;
    margin: 20px auto 0;
    padding: 0 1rem 1.25rem;
}

.jep-evenements,
.jep-journal {
    margin: 0;
}

.jep-evenements h3,
.jep-journal h3,
.jep-event-tab-content h4 {
    margin: 0 0 14px;
    color: var(--jep-text);
    line-height: 1.25;
}

.jep-evenements h3,
.jep-journal h3 {
    font-size: 1.15rem;
}

.jep-event-tab-content h4 {
    font-size: 1.05rem;
}

/* =========================================================
   NOTICES
   ====================================================== */

.jep-notice {
    padding: 12px 14px;
    border-radius: var(--jep-radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid transparent;
    box-shadow: var(--jep-shadow-sm);
}

.jep-notice.jep-success {
    background-color: var(--jep-success-bg);
    border-color: var(--jep-success-border);
    color: #195c31;
}

.jep-notice.jep-error {
    background-color: var(--jep-error-bg);
    border-color: var(--jep-error-border);
    color: #7f1d1d;
}

/* =========================================================
   ONGLETS PRINCIPAUX
   ====================================================== */

.jep-tabs-nav {
    list-style: none !important;
    margin: 0 0 14px 0;
    padding: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    background: var(--jep-surface-soft);
    border: 1px solid var(--jep-border);
    border-radius: 16px;
    box-shadow: var(--jep-shadow-sm);
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.jep-tabs-nav li {
    list-style: none !important;
    padding: 11px 16px;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--jep-text-soft);
    transition: 0.2s ease;
}

.jep-tabs-nav li::before,
.jep-tabs-nav li::marker {
    content: none !important;
    display: none !important;
}

.jep-tabs-nav li:hover {
    background: #edf3f8;
    color: var(--jep-text);
}

.jep-tabs-nav li.active {
    background: var(--jep-surface);
    color: var(--jep-primary);
    border-color: var(--jep-border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.jep-tabs-nav-spacer {
    margin-left: auto;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: default !important;
    flex: 1 1 auto;
}

.jep-tabs-nav-spacer:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.jep-tabs-nav-account {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    cursor: default !important;
}

.jep-tabs-nav-account:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.jep-btn-account-link--tab {
    background: transparent !important;
    color: var(--jep-text-muted) !important;
    border: 1px solid var(--jep-border) !important;
    border-radius: 999px !important;
    padding: 7px 12px !important;
    font-size: 0.82rem !important;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 36px;
    box-shadow: none !important;
    transition: 0.2s ease;
}

.jep-btn-account-link--tab:hover {
    background: #fff !important;
    color: var(--jep-text) !important;
    border-color: var(--jep-border-strong) !important;
    text-decoration: none !important;
}

.jep-tab-content {
    display: none;
    border: 1px solid var(--jep-border);
    border-radius: var(--jep-radius-lg);
    padding: 18px;
    background: #ededed2e;
    box-shadow: var(--jep-shadow-sm);
}

.jep-tab-content.active {
    display: block;
}

/* =========================================================
   ZONE CONNECTÉ / DÉCONNEXION
   ====================================================== */

.jep-userbar,
.jep-login-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    margin: 0 0 14px;
    background: #f8fbfd;
    border: 1px solid var(--jep-border);
    border-radius: 999px;
    box-shadow: var(--jep-shadow-sm);
    flex-wrap: wrap;
}

.jep-userbar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.jep-userbar-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jep-primary), #2b6ea6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex: 0 0 34px;
}

.jep-userbar-text {
    min-width: 0;
    line-height: 1.2;
}

.jep-userbar-text strong {
    display: block;
    color: var(--jep-text);
    font-size: 0.92rem;
}

.jep-userbar-text span {
    display: block;
    color: var(--jep-text-muted);
    font-size: 0.8rem;
}

.jep-login-status p {
    margin: 0;
    color: var(--jep-text-soft);
    font-size: 0.9rem;
}

.jep-userbar-actions,
.jep-login-status form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.jep-userbar-actions form,
.jep-login-status form {
    margin: 0;
}

.jep-userbar-actions button,
.jep-userbar-actions .jep-btn-open-modal,
.jep-userbar-actions .jep-btn-account-link,
.jep-logout-btn,
.jep-login-status button {
    background: transparent;
    color: var(--jep-text-muted);
    border: 1px solid var(--jep-border);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jep-userbar-actions button:hover,
.jep-userbar-actions .jep-btn-open-modal:hover,
.jep-userbar-actions .jep-btn-account-link:hover,
.jep-logout-btn:hover,
.jep-login-status button:hover {
    background: #fff;
    color: var(--jep-text);
    border-color: var(--jep-border-strong);
    text-decoration: none;
}

.jep-password-help {
    margin-top: -4px;
    color: var(--jep-text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* =========================================================
   TABLES
   ====================================================== */

.jep-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 18px 0 0;
    font-size: 14px;
    overflow: hidden;
    border: 1px solid var(--jep-border);
    border-radius: 14px;
    box-shadow: var(--jep-shadow-sm);
    background: var(--jep-surface);
}

.jep-table th,
.jep-table td {
    padding: 10px 12px !important;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #d8dce1;
    border-inline: 1px solid #d8dce1;
}

.jep-table th {
    background: #f6f9fc;
    font-weight: 700;
    color: var(--jep-text);
    font-size: 12px;
}

.jep-table tbody tr:last-child td {
    border-bottom: none;
}

.jep-table tbody tr:nth-child(even) {
    background-color: #fcfdff;
}

.jep-event-row,
.jep-msg-latest {
    cursor: pointer;
    transition: background 0.18s ease;
}

.jep-event-row:hover,
.jep-msg-latest:hover {
    background: #edf5fd !important;
}

.jep-table td:first-child {
    font-weight: 700;
    white-space: nowrap;
}

.jep-table td {
    color: #000;
}

.jep-table td strong,
.jep-table td b {
    color: var(--jep-text);
}

.jep-table a {
    color: var(--jep-primary);
    text-decoration: none;
    font-weight: 700;
}

.jep-table a:hover {
    text-decoration: underline;
}

/* =========================================================
   JOURNAL – TOUJOURS EN TABLEAU
   ====================================================== */

.jep-journal {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.jep-journal-table {
    width: 1500px;
    min-width: 1500px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.jep-journal-table thead {
    display: table-header-group !important;
}

.jep-journal-table tbody {
    display: table-row-group !important;
}

.jep-journal-table tr.jep-msg-latest {
    display: table-row !important;
}

.jep-journal-table th,
.jep-journal-table td {
    display: table-cell !important;
    vertical-align: top;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.jep-journal-table .jep-col-num           { width: 65px; }
.jep-journal-table .jep-col-date          { width: 100px; }
.jep-journal-table .jep-col-de            { width: 110px; }
.jep-journal-table .jep-col-a             { width: 110px; }
.jep-journal-table .jep-col-message       { width: 700px; }
.jep-journal-table .jep-col-qualification { width: 110px; }
.jep-journal-table .jep-col-pertinence    { width: 110px; }
.jep-journal-table .jep-col-quittance     { width: 110px; }
.jep-journal-table .jep-col-auteur        { width: 80px; }

.jep-journal-table td:nth-child(5) {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.45;
    color: var(--jep-text);
}

/* =========================================================
   JOURNAL – TRI
   ====================================================== */

.jep-journal-table th.jep-sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px;
}

.jep-journal-table th.jep-sortable:hover {
    background: #eef4fb;
}

.jep-journal-table th .jep-sort-indicator {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    line-height: 1;
    color: var(--jep-text-muted);
}

.jep-journal-table th.jep-sort-asc .jep-sort-indicator::before {
    content: "▲";
}

.jep-journal-table th.jep-sort-desc .jep-sort-indicator::before {
    content: "▼";
}

/* =========================================================
   JOURNAL – VERSIONS / MESSAGES MODIFIÉS
   IMPORTANT : caché par défaut, affiché par le JS
   ====================================================== */

.jep-version-row {
    display: none;
    background-color: #f7f9fc !important;
}

.jep-version-row td {
    font-style: italic;
    color: #818080;
    vertical-align: top;
}

.jep-version-row td:nth-child(5) {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.45;
}

.jep-toggle-versions {
    display: inline-block;
    cursor: pointer;
    margin-right: 6px;
    font-weight: 700;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
    color: var(--jep-primary);
}

.jep-toggle-versions.open {
    transform: rotate(90deg);
}

.jep-archived {
    opacity: 0.72;
}

/* =========================================================
   FORMULAIRES
   ====================================================== */

.jep-login-form,
.jep-new-evenement-form,
.jep-message-form {
    max-width: 700px;
    padding: 18px 20px;
    border: 1px solid var(--jep-border);
    border-radius: var(--jep-radius);
    background: var(--jep-surface);
    margin: 16px 0;
    box-shadow: var(--jep-shadow-sm);
}

.jep-login-form {
    max-width: 460px;
    margin: 22px auto;
}

.jep-login-form p,
.jep-new-evenement-form p,
.jep-message-form p {
    margin: 0 0 14px;
}

.jep-login-form label,
.jep-new-evenement-form label,
.jep-message-form label {
    font-weight: 700;
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.92rem;
    color: var(--jep-text);
}

.jep-login-form input[type="text"],
.jep-login-form input[type="password"],
.jep-new-evenement-form input[type="text"],
.jep-new-evenement-form textarea,
.jep-message-form input[type="text"],
.jep-message-form textarea,
.jep-message-form select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--jep-border);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: var(--jep-text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.jep-login-form input[type="text"]:focus,
.jep-login-form input[type="password"]:focus,
.jep-new-evenement-form input[type="text"]:focus,
.jep-new-evenement-form textarea:focus,
.jep-message-form input[type="text"]:focus,
.jep-message-form textarea:focus,
.jep-message-form select:focus {
    outline: none;
    border-color: #7aa7d5;
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.12);
}

.jep-message-form textarea,
.jep-new-evenement-form textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.45;
}

/* =========================================================
   BOUTONS FORMULAIRES
   ====================================================== */

.jep-login-form button,
.jep-new-evenement-form button,
.jep-message-form button,
.jep-new-evenement-form .button,
.jep-message-form .button {
    background: linear-gradient(135deg, var(--jep-primary), #28608f);
    border: none;
    border-radius: 10px;
    color: #fff;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 8px 18px rgba(31, 78, 121, 0.18);
}

.jep-login-form button:hover,
.jep-new-evenement-form button:hover,
.jep-message-form button:hover,
.jep-new-evenement-form .button:hover,
.jep-message-form .button:hover {
    background: linear-gradient(135deg, var(--jep-primary-hover), #1f4e79);
    transform: translateY(-1px);
}

.jep-new-evenement-form .button,
.jep-message-form .button {
    background: #eef2f6;
    color: var(--jep-text-soft);
    box-shadow: none;
    border: 1px solid var(--jep-border);
}

.jep-new-evenement-form .button:hover,
.jep-message-form .button:hover {
    background: #e6edf4;
    color: var(--jep-text);
    transform: none;
}

/* =========================================================
   TOOLBAR
   ====================================================== */

.jep-toolbar {
    margin: 10px 0 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.jep-toolbar button,
.jep-toolbar .jep-toolbar-btn {
    display: inline-flex;
    align-items: center;
    max-width: 170px;
    justify-content: center;
    background: #3b8b31;
    border: none;
    border-radius: 10px;
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.18);
    transition: transform 0.15s ease, background 0.18s ease;
}

.jep-toolbar .jep-toolbar-btn {
    width: 190px;
}

.jep-toolbar button:hover,
.jep-toolbar .jep-toolbar-btn:hover {
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* =========================================================
   MODALES
   ====================================================== */

.jep-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 30, 0.5);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
    padding: 20px;
}

.jep-modal.open {
    display: flex;
}

.jep-modal-content {
    background: var(--jep-surface);
    padding: 22px 22px 18px;
    border-radius: 20px;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--jep-shadow-md);
    position: relative;
    z-index: 1000000 !important;
    border: 1px solid rgba(255,255,255,0.4);
}

.jep-modal-content h3 {
    margin-top: 0;
    margin-bottom: 14px;
    padding-right: 28px;
}

.jep-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    color: #6b7785;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.jep-modal-close:hover {
    background: #eef3f8;
    color: #111827;
}

/* =========================================================
   SOUS-ONGLETS JOURNAL
   ====================================================== */

.jep-event-tabs {
    margin-top: 6px;
}

.jep-event-tabs-nav {
    list-style: none !important;
    margin: 0 0 10px 0;
    padding: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.jep-event-tabs-nav li {
    list-style: none !important;
    background: linear-gradient(135deg, var(--jep-primary), #285f8d);
    color: #fff;
    padding: 8px 12px;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    margin-bottom: -11px;
    font-size: 13px;
    align-items: center;
    border: 1px solid transparent;
    box-shadow: 0 6px 16px rgba(31, 78, 121, 0.12);
    transition: 0.2s ease;
}

.jep-event-tabs-nav li::before,
.jep-event-tabs-nav li::marker {
    content: none !important;
    display: none !important;
}

.jep-event-tabs-nav li:hover {
    filter: brightness(1.03);
}

.jep-event-tabs-nav li.active {
    background: var(--jep-surface);
    color: var(--jep-text);
    margin-bottom: -11px;
    border: 1px solid var(--jep-border);
    border-bottom-color: var(--jep-surface);
    box-shadow: none;
}

.jep-event-tab-title {
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 13rem;
    font-weight: 700;
}

.jep-event-tab-close {
    margin-left: 4px;
    font-weight: 700;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
}

.jep-event-tab-close:hover {
    opacity: 1;
}

.jep-event-tab-content {
    display: none;
    border: 1px solid var(--jep-border);
    padding: 14px;
    width: fit-content;
    border-radius: 0 16px 16px 16px;
    background: var(--jep-surface);
    margin-bottom: 1rem;
    box-shadow: var(--jep-shadow-sm);
}

.jep-event-tab-content.active {
    display: block;
}

/* =========================================================
   ADMIN
   ====================================================== */

.wrap .widefat td,
.wrap .widefat th {
    vertical-align: middle;
}

/* =========================================================
   TABLETTE – ÉVÉNEMENTS EN CARTES
   Le journal reste en tableau
   ====================================================== */

@media (max-width: 980px) {
    .jep-evenements .jep-table,
    .jep-evenements table.jep-table {
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .jep-evenements .jep-table thead,
    .jep-evenements table.jep-table thead {
        display: none;
    }

    .jep-evenements .jep-table tbody,
    .jep-evenements table.jep-table tbody {
        display: block;
    }

    .jep-evenements .jep-table tr,
    .jep-evenements table.jep-table tr {
        display: block;
        margin-bottom: 0.75rem;
        border: 1px solid var(--jep-border);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--jep-shadow-sm);
        overflow: hidden;
    }

    .jep-evenements .jep-table td,
    .jep-evenements table.jep-table td {
        display: block;
        border: none;
        border-top: 1px solid #edf1f5;
        padding: 0.55rem 0.75rem;
        white-space: normal;
    }

    .jep-evenements .jep-table td:first-child,
    .jep-evenements table.jep-table td:first-child {
        border-top: none;
        background: #f4f8fc;
        color: var(--jep-primary);
        font-weight: 700;
    }

    .jep-evenements .jep-table td:first-child::before,
    .jep-evenements table.jep-table td:first-child::before {
        content: "";
    }

    .jep-evenements .jep-table td:nth-child(2)::before,
    .jep-evenements table.jep-table td:nth-child(2)::before {
        content: "Date : ";
        font-weight: 700;
        color: var(--jep-text-muted);
    }

    .jep-evenements .jep-table td:nth-child(3)::before,
    .jep-evenements table.jep-table td:nth-child(3)::before {
        content: "Auteur : ";
        font-weight: 700;
        color: var(--jep-text-muted);
    }

    .jep-evenements .jep-table td:nth-child(4)::before,
    .jep-evenements table.jep-table td:nth-child(4)::before {
        content: "Action : ";
        font-weight: 700;
        color: var(--jep-text-muted);
        display: block;
        margin-bottom: 4px;
    }

    .jep-evenements .jep-table td:last-child a,
    .jep-evenements table.jep-table td:last-child a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 38px;
        min-height: 38px;
    }
}

/* =========================================================
   SMARTPHONE
   ====================================================== */

@media (max-width: 600px) {
    body {
        overflow-x: hidden;
    }

    .jep-tabs {
        padding: 0 0.35rem 0.8rem;
    }

    .jep-tabs-nav {
        gap: 0.2rem;
        padding: 4px;
        border-radius: 14px;
    }

    .jep-tabs-nav li {
        flex: 1 1 100%;
        text-align: center;
        justify-content: center;
        font-size: 0.9rem;
        padding: 10px 10px;
        border-radius: 10px;
    }

    .jep-tabs-nav-spacer {
        display: none;
    }

    .jep-tabs-nav-account {
        width: 100%;
    }

    .jep-btn-account-link--tab {
        width: 100%;
    }

    .jep-tab-content {
        padding: 10px;
        border-radius: 14px;
    }

    .jep-evenements h3,
    .jep-journal h3,
    .jep-event-tab-content h4 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .jep-event-tabs-nav {
        gap: 0.25rem;
    }

    .jep-event-tabs-nav li {
        flex: 1 1 100%;
        margin-bottom: 0;
        border-radius: 10px 10px 0 0;
        padding: 8px 10px;
    }

    .jep-event-tab-title {
        max-width: 100%;
        font-size: 0.82rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .jep-event-tab-content {
        padding: 10px;
    }

    .jep-toolbar {
        flex-direction: column;
        gap: 0.45rem;
    }

    .jep-toolbar button,
    .jep-toolbar .jep-toolbar-btn {
        min-height: 42px;
        text-align: center;
    }

    .jep-userbar,
    .jep-login-status {
        padding: 10px;
        gap: 10px;
        border-radius: 14px;
    }

    .jep-userbar-badge {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 0.82rem;
    }

    .jep-userbar-text strong {
        font-size: 0.88rem;
    }

    .jep-userbar-text span {
        font-size: 0.78rem;
    }

    .jep-userbar-actions,
    .jep-login-status form {
        width: 100%;
    }

    .jep-userbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .jep-userbar-actions .jep-btn-open-modal,
    .jep-userbar-actions .jep-btn-account-link,
    .jep-userbar-actions .jep-logout-btn,
    .jep-userbar-actions button,
    .jep-login-status button {
        width: 100%;
        min-height: 40px;
    }

    .jep-userbar-actions form {
        width: 100%;
    }

    /* Le journal reste TOUJOURS en tableau */
    .jep-journal {
        overflow-x: auto !important;
    }

    .jep-journal-table {
        width: 1500px !important;
        min-width: 1500px !important;
        table-layout: fixed !important;
    }

    .jep-journal-table thead {
        display: table-header-group !important;
    }

    .jep-journal-table tbody {
        display: table-row-group !important;
    }

    .jep-journal-table th,
    .jep-journal-table td {
        display: table-cell !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    .jep-journal-table td::before,
    .jep-journal-table th::before {
        content: none !important;
        display: none !important;
    }

    .jep-journal-table colgroup {
        display: table-column-group !important;
    }

    .jep-journal-table col {
        display: table-column !important;
    }
}