/* ==========================================================================
   Design « ultra-soft » — feuille globale du design system de l'admin.

   Tokens sur :root + classes plates à préfixes uniques (ce-*, wz-*).
   Chargée après styles.css (thème legacy) et avant le bundle CSS isolé.

   Règle d'or : ne jamais mélanger les classes Bootstrap/thème
   (.btn, .card, .table, .modal-*) avec les éléments ultra-soft.
   ========================================================================== */

/* ===== 1. Tokens ===== */
:root {
    --primary: #1e88e5;
    --primary-hover: #1565c0;
    --card-bg: #ffffff;
    --border: #e6eaf1;
    --border-strong: #d3dae6;
    --text: #2b2d38;
    --text-muted: #7b818d;
    --tint: #f4f9fe;
    --tint-head: #e7f1fc;
    --ok: #2e9e5b;
    --warn: #e2a03f;
    --danger: #d05353;
    --shadow-card: 0 1px 3px rgba(24, 28, 50, .05), 0 8px 24px rgba(24, 28, 50, .04);
    --shadow-modal: 0 10px 40px rgba(24, 28, 50, .18);
}

.ce-scope { color: var(--text); }

/* ===== 2. Tête de page ===== */
.ce-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-bottom: 18px;
}
.ce-head-title { display: flex; align-items: center; gap: 12px; }
.ce-head h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.2px; color: var(--text); }
.ce-head p { margin: 5px 0 0; font-size: 13.5px; color: var(--text-muted); }
.ce-chip {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    color: var(--primary); background: var(--tint-head);
    border: 1px solid #cfe4f9; padding: 3px 8px; border-radius: 5px;
}
.ce-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ===== 3. Boutons ===== */
.ce-btn {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid transparent; border-radius: 7px; cursor: pointer;
    font-size: 13.5px; font-weight: 600; font-family: inherit;
    padding: 9px 16px; line-height: 1;
    text-decoration: none;
}
.ce-btn:disabled { opacity: .55; cursor: default; }
.ce-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ce-btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(30,136,229,.35); }
.ce-btn-primary:hover:not(:disabled) { background: var(--primary-hover); color: #fff; }
.ce-btn-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.ce-btn-ghost:hover:not(:disabled) { background: #f6f8fb; color: var(--text); }
.ce-btn-danger { background: var(--danger); color: #fff; box-shadow: 0 1px 2px rgba(208,83,83,.35); }
.ce-btn-danger:hover:not(:disabled) { background: #b94444; color: #fff; }
.ce-btn-sm { padding: 6px 11px; font-size: 12.5px; }

/* Bouton d'action de ligne (tables, pager) */
.ce-ibtn {
    width: 28px; height: 28px; border-radius: 7px; padding: 0; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--text-muted);
    border: 1px solid var(--border-strong);
    cursor: pointer;
}
.ce-ibtn svg { width: 15px; height: 15px; }
.ce-ibtn:hover:not(:disabled) { background: var(--tint); color: var(--primary); border-color: #cfe4f9; }
.ce-ibtn.danger:hover:not(:disabled) { background: #fdf1f1; color: var(--danger); border-color: #f0cfcf; }
.ce-ibtn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ce-ibtn:disabled { opacity: .45; cursor: default; }
.ce-ibtn.wide { width: auto; padding: 0 8px; gap: 4px; font-size: 12px; font-weight: 600; }
.ce-row-actions { display: flex; align-items: center; gap: 6px; }

/* ===== 4. Alerte d'erreur ===== */
.ce-alert {
    background: #fdf1f1; border: 1px solid #f0cfcf; border-radius: 10px;
    color: #9c3d3d; font-size: 13.5px;
    padding: 12px 16px;
}
.ce-alert ul { margin: 6px 0 0; padding-left: 18px; }

/* ===== 5. Disposition : stepper + contenu (wizard) ===== */
.ce-layout {
    display: grid;
    grid-template-columns: 236px 1fr;
    gap: 22px;
    align-items: start;
}
/* top dégage la barre de navigation sticky de l'app (~70px) */
.ce-aside { position: sticky; top: 84px; }
.ce-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

@media (max-width: 1199px) {
    .ce-layout { grid-template-columns: 1fr; }
    .ce-aside { position: static; }
}

/* ===== 6. Cartes de section ===== */
.ce-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.ce-card-head {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 22px;
    border-bottom: 1px solid var(--border);
    background: #fbfcfe;
}
.ce-card-ico {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    background: var(--tint-head); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.ce-card-ico svg { width: 16px; height: 16px; }
.ce-card-head h2 { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text); }
.ce-card-head-title { display: flex; align-items: center; gap: 8px; }
.ce-card-head p { margin: 1px 0 0; font-size: 12px; color: var(--text-muted); }
.ce-card-body { padding: 20px 22px 22px; }

/* ===== 7. Grilles & champs ===== */
.ce-grid { display: grid; gap: 14px 16px; }
.ce-grid + .ce-grid { margin-top: 14px; }
.ce-g-8-4 { grid-template-columns: 2fr 1fr; }
.ce-g-4-8 { grid-template-columns: 1fr 2fr; }
.ce-g-6-6 { grid-template-columns: 1fr 1fr; }

@media (max-width: 767px) {
    .ce-g-8-4,
    .ce-g-4-8,
    .ce-g-6-6 { grid-template-columns: 1fr; }
}

/* Empilement vertical des champs — enfants directs uniquement (panneau de traductions) :
   un ce-field dans une ce-grid imbriquée ne doit pas recevoir cette marge */
.ce-lang-panel > .ce-field + .ce-field { margin-top: 14px; }
.ce-field-half { max-width: 420px; }
/* > direct : ne pas attraper les labels internes de CKEditor (ck-voice-label) */
.ce-field > label {
    display: block;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.ce-field > label .req { color: var(--danger); }
.ce-field input[type="text"],
.ce-field input[type="number"],
.ce-field input[type="email"],
.ce-field input[type="tel"],
.ce-field input[type="password"],
.ce-field input[type="date"],
.ce-field input[type="time"],
.ce-field input[type="datetime-local"],
.ce-field textarea,
.ce-field select {
    width: 100%;
    padding: 9px 12px;
    font-size: 13.5px; font-family: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
}
.ce-field textarea { resize: vertical; min-height: 84px; }
.ce-field input::placeholder,
.ce-field textarea::placeholder { color: #b3b9c4; }
.ce-field input:focus,
.ce-field textarea:focus,
.ce-field select:focus {
    outline: 2px solid rgba(30, 136, 229, .3);
    outline-offset: -1px;
    border-color: var(--primary);
}
.ce-field input.invalid,
.ce-field textarea.invalid,
.ce-field select.invalid { border-color: var(--danger); }
.ce-field .validation-message { display: block; font-size: 12px; color: var(--danger); margin-top: 6px; }
.ce-hint { font-size: 12px; color: var(--text-muted); margin: 6px 0 0; }

/* Champs autonomes (toolbars, recherche) — mêmes specs que .ce-field */
.ce-input,
.ce-select {
    padding: 9px 12px;
    font-size: 13.5px; font-family: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
}
.ce-input::placeholder { color: #b3b9c4; }
.ce-input:focus,
.ce-select:focus {
    outline: 2px solid rgba(30, 136, 229, .3);
    outline-offset: -1px;
    border-color: var(--primary);
}
/* Input + bouton accolés sur une même ligne */
.ce-input-row { display: flex; align-items: center; gap: 8px; }
.ce-input-row > input, .ce-input-row > .ce-input { flex: 1; min-width: 0; }

.ce-search { position: relative; display: inline-flex; align-items: center; }
.ce-search > svg {
    position: absolute; left: 11px;
    width: 15px; height: 15px;
    color: var(--text-muted); pointer-events: none;
}
.ce-search .ce-input { padding-left: 34px; }

/* Case à cocher custom (généralisation du ff-cbx de FormFields) */
.ce-cbx { position: relative; display: inline-flex; --accent: var(--primary); }
.ce-cbx input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ce-cbx .ce-box {
    width: 20px; height: 20px; border-radius: 5px;
    border: 1.5px solid var(--border-strong); background: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s, border-color .12s;
}
.ce-cbx .ce-box svg { width: 12px; height: 12px; opacity: 0; transform: scale(.6); transition: .12s; }
.ce-cbx input:checked + .ce-box { border-color: var(--accent); background: var(--accent); }
.ce-cbx input:checked + .ce-box svg { opacity: 1; transform: scale(1); }
.ce-cbx input:focus-visible + .ce-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.ce-cbx input:hover:not(:disabled) + .ce-box { border-color: var(--accent); }
/* non applicable (case désactivée car dépendante d'une autre) */
.ce-cbx--na input { cursor: not-allowed; }
.ce-cbx--na .ce-box { border-color: transparent; background: transparent; }
.ce-cbx--na .ce-box::after { content: "—"; color: #c2c8d2; font-size: 13px; }
.ce-cbx--na .ce-box svg { display: none; }

/* Bouton radio custom */
.ce-radio { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--text); }
.ce-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ce-radio .ce-dot-r {
    width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
    border: 1.5px solid var(--border-strong); background: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s, border-color .12s;
}
.ce-radio .ce-dot-r::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; transform: scale(0); transition: .12s; }
.ce-radio input:checked + .ce-dot-r { border-color: var(--primary); background: var(--primary); }
.ce-radio input:checked + .ce-dot-r::after { transform: scale(1); }
.ce-radio input:focus-visible + .ce-dot-r { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Liste cochable dans une boîte défilante */
.ce-list-box {
    border: 1px solid var(--border); border-radius: 8px;
    padding: 8px;
    max-height: 300px; overflow-y: auto;
}
.ce-check-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 8px; border-radius: 6px;
    font-size: 13.5px; color: var(--text); cursor: pointer;
}
.ce-check-item:hover { background: var(--tint); }

/* Valeur en lecture seule dans un champ */
.ce-field .ce-static { margin: 0; font-size: 13.5px; color: var(--text); padding: 9px 0; }

/* Sous-section dans une carte ou un popup */
.ce-subhead {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin: 18px 0 10px; padding-top: 14px;
    border-top: 1px solid var(--border);
}
.ce-subhead h6 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }

/* Item accordéon (liste de sous-éléments) */
.ce-item {
    border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 14px; margin-bottom: 8px;
    background: #fff;
}
.ce-item-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ce-item-body { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Bouton discret (chevron, lien) */
.ce-linkbtn {
    background: none; border: 0; padding: 2px; cursor: pointer;
    display: inline-flex; align-items: center;
    color: var(--text-muted);
}
.ce-linkbtn svg { width: 14px; height: 14px; }
.ce-linkbtn:hover { color: var(--text); }

/* Alertes informatives */
.ce-alert-info {
    background: var(--tint); border: 1px solid #cfe4f9; border-radius: 10px;
    color: #33618c; font-size: 13px;
    padding: 12px 16px;
}
.ce-alert-warn {
    background: #fdf6e7; border: 1px solid #f3e3c2; border-radius: 10px;
    color: #8a6520; font-size: 13px;
    padding: 12px 16px;
}

/* ===== 8. Pastilles de langue ===== */
.ce-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.ce-lang {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px; cursor: pointer;
    font-size: 13px; font-weight: 600; font-family: inherit;
    color: var(--text-muted);
    background: #f1f3f8; border: 1px solid transparent;
}
.ce-lang:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ce-lang .ce-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ce-lang .ce-dot.warn { background: var(--warn); }
.ce-lang.active { background: var(--tint-head); color: var(--primary); border-color: #cfe4f9; }
.ce-lang-note { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.ce-lang-note .w { color: var(--warn); font-weight: 600; }

.ce-lang-panel { display: none; }
.ce-lang-panel.active { display: block; }

/* ===== 9. Stepper du wizard ===== */
.wz-steps {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 10px;
}
.wz-step {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 11px;
    align-items: start;
    padding: 11px 10px;
    border-radius: 9px;
    border-left: 2px solid transparent;
    text-decoration: none;
    color: inherit;
}
.wz-step + .wz-step { margin-top: 2px; }
.wz-step:hover { background: #f6f8fb; text-decoration: none; }
.wz-num {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    background: #eef0f5; color: var(--text-muted);
    border: 1px solid var(--border-strong);
}
.wz-lbl { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.25; }
.wz-cap { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.wz-step.active { background: var(--tint); border-left-color: var(--primary); }
.wz-step.active .wz-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.wz-step.active .wz-lbl { color: var(--primary); }
.wz-step.disabled { pointer-events: none; opacity: .55; }
.wz-step:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ===== 10. Table de liste ===== */
.ce-table-wrap { overflow-x: auto; }
.ce-table { width: 100%; border-collapse: collapse; font-size: 13.5px; color: var(--text); }
.ce-table thead th {
    padding: 11px 14px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
    text-align: left;
    color: var(--primary);
    background: var(--tint-head);
    border-bottom: 1px solid #cfe4f9;
    white-space: nowrap;
}
.ce-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.ce-table thead th:first-child,
.ce-table tbody td:first-child { padding-left: 22px; }
.ce-table thead th:last-child,
.ce-table tbody td:last-child { padding-right: 22px; }
.ce-table tbody tr:last-child td { border-bottom: 0; }
.ce-table tbody tr:hover td { background: var(--tint); }
.ce-table .ce-row-actions { justify-content: flex-end; }
.ce-table-empty { padding: 28px 22px; text-align: center; color: var(--text-muted); font-size: 13px; }
.ce-table a { color: var(--primary); text-decoration: none; }
.ce-table a:hover { text-decoration: underline; }

/* ===== 11. Badges d'état ===== */
.ce-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 8px; border-radius: 5px;
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
    white-space: nowrap;
}
.ce-badge.ok { color: var(--ok); background: #eaf7f0; border: 1px solid #d0ecdc; }
.ce-badge.warn { color: #b0761e; background: #fdf4e5; border: 1px solid #f5e2bd; }
.ce-badge.danger { color: var(--danger); background: #fdf1f1; border: 1px solid #f0cfcf; }
.ce-badge.info { color: var(--primary); background: var(--tint-head); border: 1px solid #cfe4f9; }
.ce-badge.muted { color: var(--text-muted); background: #eef0f5; border: 1px solid var(--border-strong); }

/* ===== 12. Toolbar de liste (filtres, recherche, actions) ===== */
.ce-toolbar {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 10px;
}
.ce-toolbar .spacer { flex: 1; }
/* Rangée de filtres en tête de carte */
.ce-card-filters {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
    background: #fbfcfe;
}
.ce-card-filters .spacer { flex: 1; }

/* Utilitaires texte */
.ce-strong { font-weight: 600; }
.ce-sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.ce-small { font-size: 12px; color: var(--text-muted); }
.ce-text-muted { color: var(--text-muted); }
.ce-text-danger { color: var(--danger); }

/* ===== 13. Pagination (pied de carte) ===== */
.ce-pager {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 22px;
    border-top: 1px solid var(--border);
    background: #fbfcfe;
    font-size: 12.5px; color: var(--text-muted);
}
.ce-pager-controls { display: flex; align-items: center; gap: 8px; }
.ce-pager-page { min-width: 60px; text-align: center; font-weight: 600; color: var(--text); }
.ce-pager select {
    padding: 5px 8px;
    font-size: 12.5px; font-family: inherit;
    color: var(--text); background: #fff;
    border: 1px solid var(--border-strong); border-radius: 6px;
}

/* ===== 14. Modal (chrome des popups BaseModal) ===== */
.ce-modal {
    position: fixed; inset: 0; z-index: 150;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 28px 16px;
    overflow-y: auto;
}
.ce-modal.full { padding: 0; }
.ce-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(24, 28, 50, .45);
    opacity: 0; transition: opacity .15s ease;
}
.ce-modal.show .ce-modal-backdrop { opacity: 1; }
.ce-modal-dialog {
    position: relative; z-index: 1;
    width: 100%; max-width: 560px;
    max-height: calc(100vh - 56px);
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-modal);
    color: var(--text);
    opacity: 0; transform: translateY(10px) scale(.985);
    transition: opacity .15s ease, transform .15s ease;
}
.ce-modal.show .ce-modal-dialog { opacity: 1; transform: none; }
.ce-modal-sm { max-width: 420px; }
.ce-modal-md { max-width: 560px; }
.ce-modal-lg { max-width: 780px; }
.ce-modal-xl { max-width: 1040px; }
.ce-modal-fullscreen { max-width: none; max-height: none; height: 100%; border-radius: 0; border: 0; }
.ce-modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 22px; flex-shrink: 0;
    border-bottom: 1px solid var(--border);
    background: #fbfcfe;
    border-radius: 12px 12px 0 0;
}
.ce-modal-fullscreen .ce-modal-head { border-radius: 0; }
.ce-modal-head h6 { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text); }
.ce-modal-close {
    width: 28px; height: 28px; padding: 0; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: 0; border-radius: 7px;
    color: var(--text-muted); cursor: pointer;
}
.ce-modal-close svg { width: 15px; height: 15px; }
.ce-modal-close:hover:not(:disabled) { background: #eef0f5; color: var(--text); }
.ce-modal-close:disabled { opacity: .45; cursor: default; }
.ce-modal-dialog > form {
    display: flex; flex-direction: column;
    flex: 1 1 auto; min-height: 0; overflow: hidden;
}
.ce-modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1 1 auto; min-height: 0;
    font-size: 13.5px;
}
.ce-modal-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 22px; flex-shrink: 0;
    border-top: 1px solid var(--border);
    background: #fbfcfe;
    border-radius: 0 0 12px 12px;
}
.ce-modal-fullscreen .ce-modal-foot { border-radius: 0; }
.ce-modal .validation-summary-valid { display: none; }
.ce-modal-body > .ce-alert { margin-bottom: 14px; }
.ce-modal-body > ul.validation-errors {
    background: #fdf1f1; border: 1px solid #f0cfcf; border-radius: 10px;
    color: #9c3d3d; font-size: 13px;
    padding: 12px 16px 12px 32px;
    margin: 0 0 14px;
}

/* Colonne de cartes (hors wizard) */
.ce-stack { display: flex; flex-direction: column; gap: 18px; }

/* ===== 15. État vide ===== */
.ce-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 6px;
    padding: 48px 24px;
}
.ce-empty-ico {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--tint-head); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 6px;
}
.ce-empty-ico svg { width: 20px; height: 20px; }
.ce-empty h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.ce-empty p { margin: 0; font-size: 13px; color: var(--text-muted); max-width: 420px; }
.ce-empty .ce-btn { margin-top: 12px; }

/* ===== 16. Cartes de stat (dashboard) ===== */
.ce-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.ce-stat {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}
.ce-stat-ico {
    width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
    background: var(--tint-head); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.ce-stat-ico svg { width: 17px; height: 17px; }
.ce-stat-val { font-size: 20px; font-weight: 700; letter-spacing: -.2px; color: var(--text); line-height: 1.1; }
.ce-stat-lbl { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); }

/* ===== 17. Header & footer de l'application =====
   Surcharges du thème legacy : le markup Bootstrap de Header.razor est conservé
   (collapse mobile + dropdowns dépendent de bootstrap.js), seul l'habillage change.
   Chargée après styles.css : à spécificité égale, ces règles gagnent. */
.app-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(24, 28, 50, .04);
}
.app-header .navbar-nav .nav-link {
    font-size: 13.5px; font-weight: 600;
    color: var(--text-muted);
    border-radius: 999px;
    padding: 8px 14px;
}
.app-header .navbar-nav .nav-link:hover { color: var(--text); background: #f6f8fb; }
.app-header .navbar-nav .nav-link.active { color: var(--primary); background: var(--tint-head); }
.app-header .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 6px;
    font-size: 13.5px;
    color: var(--text);
}
.app-header .dropdown-item {
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 13.5px;
    color: var(--text);
}
.app-header .dropdown-item:hover { background: var(--tint); color: var(--primary); }
.app-header .dropdown-item.active { background: var(--tint-head) !important; color: var(--primary); }
.app-header .header-link { color: var(--text-muted); border-radius: 7px; }
.app-header .header-link:hover { background: var(--tint); color: var(--primary); }
.app-header .header-link p { color: var(--text); font-size: 13.5px; }
.app-header .header-link small { color: var(--text-muted); font-size: 12px; }

.ce-footer {
    margin-top: auto;
    padding: 16px 0;
    text-align: center;
    background: #fff;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-muted);
}
.ce-footer .heart { color: var(--danger); display: inline-flex; vertical-align: middle; }
.ce-footer .heart svg { width: 12px; height: 12px; }
