/* Espace UFR — fondations, navigation et modules du tableau de bord. */
:root {
    --ujlog-green: #17634b;
    --ujlog-green-light: #23785d;
    --ujlog-gold: #d8b868;
    --ujlog-gold-dark: #9a732a;
    --sp-ink: #202d27;
    --sp-muted: #727d76;
    --sp-border: #e5e9e3;
    --sp-canvas: #f6f7f3;
    --sp-sidebar-width: 260px;
    --bs-body-color: var(--sp-ink);
    --bs-border-color: var(--sp-border);
    --bs-success-rgb: 23, 99, 75;
}
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body.sp-dashboard { margin: 0; color: var(--sp-ink); background: var(--sp-canvas); font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
.sp-dashboard *, .sp-dashboard *::before, .sp-dashboard *::after { box-sizing: border-box; }
.sp-dashboard [hidden] { display: none !important; }
.sp-dashboard a { -webkit-tap-highlight-color: transparent; }
.sp-dashboard button, .sp-dashboard input { font: inherit; }
.sp-dashboard :focus-visible { outline: 3px solid #bd9650; outline-offset: 4px; }
.sp-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; width: 20px; height: 20px; }
.sp-skip-link { position: fixed; left: 16px; top: -80px; z-index: 1100; padding: 12px 18px; background: white; color: var(--ujlog-green); border-radius: 8px; }
.sp-skip-link:focus { top: 16px; }
.sp-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sp-sidebar-width); z-index: 1040; display: flex; flex-direction: column; background: #102c23; color: #b8c9c0; border-right: 1px solid #233f33; }
.sp-brand-row { display: flex; align-items: center; justify-content: space-between; padding: 29px 24px 24px; }
.sp-brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.sp-brand:hover { color: white; }
.sp-brand-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; }
.sp-brand-logo img { object-fit: contain; }
.sp-brand strong { display: block; font-size: 26px; letter-spacing: -.8px; font-weight: 750; line-height: 1.2; }
.sp-brand-dot { color: var(--ujlog-gold); }
.sp-brand small { display: block; color: #a5bcb0; letter-spacing: 1.4px; font-size: 8px; margin-top: 4px; }
.sp-workspace { display: flex; gap: 11px; align-items: center; margin: 0 18px 22px; padding: 14px 12px; border: 1px solid #345045; border-radius: 10px; background: #1c372d; }
.sp-workspace-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #dac58e; border-radius: 8px; background: #2d4538; flex-shrink: 0; }
.sp-workspace > div { min-width: 0; }
.sp-workspace small { display: block; font-size: 8px; letter-spacing: 1.5px; color: #a6bbb0; }
.sp-workspace strong { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: #edf1ed; overflow-wrap: anywhere; }
.sp-workspace-dot { width: 6px; height: 6px; border-radius: 50%; background: #76bba0; margin-left: auto; flex-shrink: 0; }
.sp-side-navigation { min-height: 0; flex: 1; overflow-y: auto; padding: 0 14px 22px; scrollbar-width: thin; scrollbar-color: #416152 transparent; }
.sp-nav-link { min-height: 41px; display: flex; align-items: center; gap: 11px; padding: 9px 13px; margin: 3px 0; text-decoration: none; color: #b9cdc1; border-radius: 7px; font-size: 13px; transition: background .18s, color .18s; }
.sp-nav-link .sp-icon { width: 17px; height: 17px; color: #90af9d; }
.sp-nav-link:hover { color: #fff; background: #213d30; }
.sp-nav-link.is-active { color: #fff; background: #2c4b39; box-shadow: inset 3px 0 0 #d7bb7c; }
.sp-nav-link.is-active .sp-icon { color: #e0c585; }
.sp-home-link { margin-bottom: 25px; }
.sp-nav-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1.25px; color: #91ac9a; padding: 0 13px; margin: 22px 0 10px; }
.sp-nav-external { margin-left: auto; color: #8ca697; font-size: 15px; }
.sp-sidebar-bottom { padding: 16px 20px 15px; border-top: 1px solid #2e493b; background: #102a21; }
.sp-side-user { display: flex; align-items: center; gap: 10px; }
.sp-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #d3bf8b; color: #17362a; font-weight: 700; flex-shrink: 0; }
.sp-side-user > div { min-width: 0; }
.sp-side-user strong { display: block; color: #edf2ed; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.sp-side-user small { font-size: 9px; color: #98b19f; }
.sp-logout { margin-left: auto; color: #a6c0ad; padding: 5px; border-radius: 5px; }
.sp-logout:hover { color: #fff; background: #294334; }
.sp-logout .sp-icon { width: 17px; }
.sp-sidebar-bottom > p { font-size: 8px; color: #8ea896; text-align: center; margin: 18px 0 0; letter-spacing: .15px; }
.sp-sidebar-close, .sp-menu-toggle { display: none; }
.sp-app { margin-left: var(--sp-sidebar-width); min-height: 100vh; }
.sp-topbar { height: 81px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border-bottom: 1px solid var(--sp-border); position: sticky; top: 0; z-index: 1010; }
.sp-topbar-start, .sp-topbar-end { display: flex; gap: 26px; align-items: center; min-width: 0; }
.sp-breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 13px; min-width: 0; }
.sp-breadcrumb a { color: var(--sp-muted); text-decoration: none; white-space: nowrap; }
.sp-breadcrumb .sp-icon { width: 12px; color: #a8b0a7; }
.sp-breadcrumb > span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-academic-year { display: flex; gap: 8px; align-items: center; padding: 7px 12px; background: #f6f7f3; border: 1px solid #e6e9df; border-radius: 6px; color: #5b675d; font-size: 11px; white-space: nowrap; }
.sp-academic-year .sp-icon { width: 15px; height: 15px; }
.sp-topbar-profile { display: flex; gap: 10px; align-items: center; color: var(--sp-ink); text-decoration: none; min-width: 0; }
.sp-avatar-light { color: #3e614c; background: #eef0e5; border: 1px solid #e0e5d7; }
.sp-topbar-user { max-width: 150px; }
.sp-topbar-user strong, .sp-topbar-user small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sp-topbar-user strong { font-size: 13px; font-weight: 650; }
.sp-topbar-user small { font-size: 11px; color: #81897e; margin-top: 3px; }
.sp-main { padding: 34px 38px 0; max-width: 1720px; margin: auto; }
.sp-main:focus { outline: none; }
.sp-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.sp-eyebrow { font-size: 9px; letter-spacing: 1.65px; color: #697665; font-weight: 650; margin: 0 0 8px; }
.sp-page-heading h1 { font-size: clamp(26px, 2.5vw, 35px); letter-spacing: -1.1px; margin: 0 0 7px; font-weight: 700; line-height: 1.15; }
.sp-title-dot { color: #ba994f; }
.sp-page-heading > div > p:last-child { font-size: 13px; color: var(--sp-muted); margin: 0; }
.sp-date { font-size: 11px; color: #70796d; text-transform: capitalize; padding-top: 20px; white-space: nowrap; }
.sp-welcome { display: flex; align-items: center; justify-content: space-between; position: relative; isolation: isolate; overflow: hidden; min-height: 250px; background: #173e2c; border-radius: 14px; color: #fff; margin-bottom: 23px; border: 1px solid #214c37; }
.sp-welcome::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 83% 130%, #416944 0, transparent 60%); }
.sp-welcome-copy { padding: 29px 34px; z-index: 1; max-width: 67%; }
.sp-welcome-tag { display: inline-flex; align-items: center; gap: 7px; color: #dfd6b0; font-size: 9px; background: #ffffff08; border: 1px solid #879a654d; padding: 5px 9px; border-radius: 5px; }
.sp-welcome-tag > span { background: #d8c681; width: 4px; height: 4px; border-radius: 50%; }
.sp-welcome h2 { font-size: clamp(23px, 2vw, 31px); letter-spacing: -.7px; font-weight: 600; margin: 16px 0 11px; line-height: 1.25; overflow-wrap: anywhere; }
.sp-welcome h2 > span { color: #d8bd7e; }
.sp-welcome-copy > p { color: #c0cfc1; font-size: 13px; line-height: 1.8; margin: 0 0 20px; }
.sp-welcome-button { display: inline-flex; gap: 18px; align-items: center; color: #24432c; background: #dfc891; padding: 11px 16px; font-size: 12px; font-weight: 650; border-radius: 6px; text-decoration: none; transition: background .2s; }
.sp-welcome-button:hover { color: #173e2c; background: #ecd9ad; }
.sp-welcome-button .sp-icon { width: 16px; height: 16px; }
.sp-welcome-art { width: 36%; align-self: stretch; display: flex; flex-direction: column; justify-content: center; position: relative; color: #d4ca9b; padding: 10px 18px 16px 0; }
.sp-welcome-art svg { width: 100%; max-height: 223px; }
.sp-art-caption { display: block; text-align: center; font-size: 6px; letter-spacing: 2.15px; color: #c9cda6; opacity: .9; margin-left: 26px; }
.sp-stats { display: grid; grid-template-columns: repeat(var(--sp-stat-count, 4), minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.sp-stat { background: #fff; border: 1px solid var(--sp-border); padding: 18px 19px 16px; border-radius: 10px; box-shadow: 0 3px 8px #22372002; }
.sp-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 7px; }
.sp-stat-top > span:first-child { font-size: 12px; color: #63705f; font-weight: 500; }
.sp-stat-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.sp-stat-icon .sp-icon { width: 16px; height: 16px; }
.sp-tone-green { color: #356a48; background: #edf4e9; }
.sp-tone-gold { color: #97783d; background: #faf5e7; }
.sp-tone-blue { color: #597d8c; background: #edf3f5; }
.sp-tone-purple { color: #82708c; background: #f3eff7; }
.sp-stat > strong { display: block; font-size: 29px; line-height: 1.15; letter-spacing: -.6px; font-weight: 650; }
.sp-stat > p { font-size: 11px; color: #76806f; margin: 8px 0 0; }
.sp-enrollment-panel { background: #fff; border: 1px solid var(--sp-border); border-radius: 12px; padding: 23px; margin-bottom: 22px; box-shadow: 0 3px 10px #22372005; }
.sp-enrollment-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--sp-border); }
.sp-enrollment-heading .sp-eyebrow { margin-bottom: 5px; }
.sp-enrollment-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.5px; color: var(--sp-ink); }
.sp-enrollment-heading > div > p:last-child { margin: 6px 0 0; color: var(--sp-muted); font-size: 11px; }
.sp-enrollment-filter { display: grid; gap: 5px; min-width: 185px; }
.sp-enrollment-filter label { color: #6d7868; font-size: 9px; font-weight: 650; letter-spacing: .5px; text-transform: uppercase; }
.sp-enrollment-filter select { border: 1px solid #dce3d8; border-radius: 7px; background: #f9faf7; color: #334b3a; padding: 8px 30px 8px 10px; font-size: 12px; }
.sp-enrollment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.sp-enrollment-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.sp-enrollment-summary > span { padding: 8px 12px; border: 1px solid #dce3d8; border-radius: 8px; color: #41573c; background: #f7faf5; font-size: 12px; }
.sp-enrollment-summary strong { margin-right: 5px; }
.sp-enrollment-formation + .sp-enrollment-formation { margin-top: 14px; padding-top: 13px; border-top: 1px solid #e1e6dd; }
.sp-enrollment-formation-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #3f684b; font-size: 11px; font-weight: 650; }
.sp-enrollment-formation.is-foad .sp-enrollment-formation-head { color: #416c8a; }
.sp-enrollment-formation.is-foad .sp-level-indicator.has-students { background: #edf4f9; color: #416c8a; }
.sp-enrollment-formation.is-foad .sp-level-indicator.has-students strong { color: #305774; }
.sp-enrollment-card { border: 1px solid #e1e6dd; border-radius: 10px; padding: 16px; background: linear-gradient(145deg, #fff, #fbfcf9); min-width: 0; }
.sp-enrollment-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.sp-enrollment-card-head h3 { margin: 0; color: #294d38; font-size: 13px; line-height: 1.45; font-weight: 650; overflow-wrap: anywhere; }
.sp-enrollment-card-head > span { flex: 0 0 auto; color: #657262; font-size: 9px; text-transform: uppercase; text-align: right; }
.sp-enrollment-card-head > span strong { display: block; color: #173e2c; font-size: 21px; line-height: 1; margin-bottom: 4px; }
.sp-level-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sp-level-indicator { display: flex; justify-content: space-between; align-items: center; gap: 5px; padding: 7px 8px; border-radius: 6px; background: #f1f3ed; color: #8a9385; font-size: 10px; }
.sp-level-indicator strong { font-size: 12px; color: #6d7768; }
.sp-level-indicator.has-students { background: #eaf3e9; color: #3f684b; }
.sp-level-indicator.has-students strong { color: #1f5737; }
.sp-enrollment-empty { display: flex; align-items: center; gap: 14px; padding: 22px; color: #6c7768; background: #f7f8f4; border-radius: 9px; }
.sp-enrollment-empty .sp-icon { color: #8ca08c; }
.sp-enrollment-empty strong { display: block; color: #3f5142; font-size: 13px; }
.sp-enrollment-empty p { margin: 3px 0 0; font-size: 11px; }
.sp-quick-access { display: flex; gap: 19px; align-items: center; padding: 15px 19px; margin-bottom: 37px; background: #eeefe5; border: 1px solid #e0e4d3; border-radius: 9px; }
.sp-quick-label { display: flex; align-items: center; gap: 8px; color: #5d684e; font-size: 12px; font-weight: 650; white-space: nowrap; }
.sp-quick-label .sp-icon { width: 16px; color: #8e8a57; }
.sp-quick-links { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; }
.sp-quick-links a { display: flex; gap: 8px; align-items: center; border: 1px solid #dfe3d6; border-radius: 5px; background: #ffffffbf; color: #4c5d49; font-size: 12px; padding: 7px 11px; text-decoration: none; transition: background .2s, border-color .2s; }
.sp-quick-links a:hover { background: #fff; border-color: #aebc9e; }
.sp-quick-links .sp-icon { width: 14px; height: 14px; }
.sp-quick-arrow { margin-left: 9px; color: #828b75; }
.sp-modules { scroll-margin-top: 103px; }
.sp-modules-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.sp-modules-heading .sp-eyebrow { margin-bottom: 5px; font-size: 8px; }
.sp-modules-heading h2 { font-size: 23px; letter-spacing: -.7px; font-weight: 650; margin: 0; }
.sp-search { display: flex; align-items: center; gap: 10px; width: 285px; background: #fff; border: 1px solid #dfe4d9; border-radius: 7px; padding: 10px 11px; }
.sp-search:focus-within { border-color: #729d7b; box-shadow: 0 0 0 3px #17634b12; }
.sp-search > .sp-icon { color: #939e8b; width: 16px; height: 16px; }
.sp-search input { width: 100%; min-width: 0; border: none; background: transparent; outline: none; font-size: 12px; color: #364c36; }
.sp-search input::placeholder { color: #84907c; }
.sp-search input::-webkit-search-cancel-button { display: none; }
.sp-search kbd { font-family: inherit; font-size: 11px; padding: 0 5px; color: #7b8675; background: #f5f6f1; border: 1px solid #e7eadf; border-radius: 3px; }
.sp-search:has(input:not(:placeholder-shown)) kbd { display: none; }
.sp-search button { padding: 0; border: none; background: transparent; color: #77856f; display: grid; place-items: center; }
.sp-search button .sp-icon { width: 14px; height: 14px; }
.sp-module-toolbar { display: flex; gap: 15px; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--sp-border); margin-bottom: 27px; }
.sp-filters { display: flex; gap: 5px; flex-wrap: wrap; }
.sp-filters button { background: transparent; border: 1px solid transparent; border-radius: 6px; color: #687460; padding: 7px 10px; font-size: 11px; line-height: 1.5; white-space: nowrap; transition: background .2s, color .2s; }
.sp-filters button:hover { color: #30573b; background: #e9eee3; }
.sp-filters button.is-active { background: #e5eddc; color: #3c623b; border-color: #d9e3ce; font-weight: 650; }
.sp-search-count { color: #76816e; font-size: 11px; white-space: nowrap; }
.sp-module-section { margin-bottom: 29px; }
.sp-group-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.sp-group-icon { display: grid; place-items: center; background: #ebeee3; border: 1px solid #e1e6d6; width: 31px; height: 31px; border-radius: 7px; color: #75816a; flex-shrink: 0; }
.sp-group-icon .sp-icon { width: 16px; height: 16px; }
.sp-group-heading h3 { font-size: 14px; font-weight: 650; margin: 0 0 4px; }
.sp-group-heading p { color: #77826d; font-size: 11px; margin: 0; }
.sp-group-line { height: 1px; background: var(--sp-border); flex: 1; margin-left: 13px; }
.sp-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.sp-module-card { padding: 20px 21px 0; border: 1px solid #e1e7dc; border-radius: 10px; background: white; color: var(--sp-ink); text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; min-width: 0; }
.sp-module-card:hover { color: var(--sp-ink); transform: translateY(-3px); box-shadow: 0 8px 22px #254a3010; border-color: #a5b895; }
.sp-module-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.sp-module-icon { display: grid; place-items: center; background: #eff4e9; color: #577847; width: 38px; height: 38px; border-radius: 9px; border: 1px solid #e9efde; }
.sp-module-icon .sp-icon { width: 20px; height: 20px; }
.sp-card-arrow { display: grid; place-items: center; width: 24px; height: 24px; color: #99a38f; border-radius: 50%; transition: color .2s, background .2s; }
.sp-card-arrow .sp-icon { width: 15px; height: 15px; transform: rotate(-35deg); }
.sp-module-card:hover .sp-card-arrow { color: #397547; background: #eff4e9; }
.sp-module-card h4 { font-size: 14px; font-weight: 650; margin: 0 0 8px; letter-spacing: -.15px; }
.sp-module-card > p { color: #727e68; font-size: 12px; line-height: 1.75; margin: 0 0 18px; flex: 1; max-width: 280px; }
.sp-card-action { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f0f2eb; color: #637d54; font-size: 11px; font-weight: 500; padding: 11px 0 12px; }
.sp-card-action .sp-icon { width: 12px; height: 12px; }
.sp-group-evaluations .sp-module-icon { color: #667e98; background: #eef2f7; border-color: #e6edf4; }
.sp-group-etudiants .sp-module-icon { color: #a08450; background: #f8f3e8; border-color: #f2ecd9; }
.sp-group-compte .sp-module-icon { color: #817188; background: #f4f0f6; border-color: #ede8f0; }
.sp-empty { padding: 55px 25px; border: 1px dashed #d5decb; text-align: center; border-radius: 10px; background: #fafbf7; color: #77836c; }
.sp-empty > .sp-icon { width: 30px; height: 30px; margin-bottom: 15px; }
.sp-empty h3 { font-size: 16px; color: #34482f; }
.sp-empty p { font-size: 12px; margin: 0; }
.sp-footer { border-top: 1px solid var(--sp-border); display: flex; justify-content: space-between; gap: 15px; padding: 20px 0 25px; margin-top: 39px; font-size: 9px; color: #89917f; }
.sp-footer > span:last-child { text-align: right; }
.sp-back-link { display: inline-flex; align-items: center; gap: 9px; padding: 10px 0; margin: 0 0 23px; color: #6d7b60; text-decoration: none; font-size: 11px; }
.sp-back-link:hover { color: var(--ujlog-green); }
.sp-back-link .sp-icon { width: 16px; height: 16px; }
.sp-flash { border-radius: 10px; font-size: 13px; }

/* Modules existants : formulaires, tableaux et sous-onglets. */
.sp-main-content > .tab-pane > h3, .sp-main-content > .tab-pane > .d-flex > h3 { font-size: 25px; letter-spacing: -.6px; margin-bottom: 24px; }
.sp-main-content .card { border-color: var(--sp-border); border-radius: 10px; box-shadow: 0 3px 15px #233b2005 !important; }
.card-custom { border: 1px solid var(--sp-border); background: #fff; margin-bottom: 20px; }
.card-custom-header { background: #f6f8f3; border-bottom: 1px solid var(--sp-border); padding: 16px 20px; font-weight: 650; color: var(--ujlog-green); }
.sp-main-content .card-header { border-bottom-color: var(--sp-border); }
.sp-main-content .form-control, .sp-main-content .form-select, .modal .form-control, .modal .form-select { border-color: #dce3d5; border-radius: 6px; font-size: 13px; min-height: 37px; }
.sp-main-content .form-control:focus, .sp-main-content .form-select:focus, .modal .form-control:focus, .modal .form-select:focus { border-color: #80a587; box-shadow: 0 0 0 3px #17634b12; }
.sp-main-content label { margin-bottom: 6px; color: #54644c; font-size: 12px; }
.sp-main-content .btn, .modal .btn { border-radius: 6px; font-size: 12px; padding: 8px 13px; }
.btn-ujlog, .sp-dashboard .btn-success { background: var(--ujlog-green); border-color: var(--ujlog-green); color: #fff; }
.btn-ujlog:hover, .sp-dashboard .btn-success:hover { background: var(--ujlog-green-light); border-color: var(--ujlog-green-light); color: #fff; }
.sp-main-content .table { font-size: 12px; --bs-table-hover-bg: #f6f8f1; }
.sp-main-content .table thead th { padding: 14px 12px; font-size: 10px; font-weight: 650; color: #617157; background: #f7f9f2; }
.sp-main-content .table td { padding: 12px; border-color: #edf0e8; }
.sp-main-content .table-responsive { border-radius: 8px; }
.sp-main-content .card:has(> .table) { overflow-x: auto !important; }
.ue-block { border: 1px solid var(--sp-border); border-radius: 10px; margin-bottom: 20px; overflow: hidden; background: #fff; }
.ue-header { background: #f7f9f3; padding: 15px; border-bottom: 1px solid var(--sp-border); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.table-edt th, .table-edt td { vertical-align: middle; }
.table-edt textarea { font-size: 12px; }
.inner-nav, #sallesSubTabs { gap: 7px; padding-bottom: 12px; border-bottom: 1px solid var(--sp-border); }
.inner-nav .nav-link, #sallesSubTabs .nav-link { border: 1px solid #dce5d3; color: #687b5b; background: #fff; border-radius: 6px; font-weight: 500; font-size: 11px; padding: 9px 13px; }
.inner-nav .nav-link.active, #sallesSubTabs .nav-link.active { background: var(--ujlog-green); color: white; border-color: var(--ujlog-green); }
.level-block { border: 1px solid #dce4d4; padding: 24px 20px 20px; border-radius: 10px; margin: 30px 0; background: #fff; position: relative; }
.level-badge { position: absolute; top: -13px; left: 20px; background: #e8dcbb; color: #766333; padding: 5px 13px; font-weight: 650; font-size: 11px; border-radius: 5px; }
.sp-main-content .accordion-button:not(.collapsed) { background: #eff4e8; color: var(--ujlog-green); font-weight: 650; }
.sp-main-content .accordion-button:focus { box-shadow: 0 0 0 3px #17634b12; }
.sp-dashboard .modal-content { border: 1px solid #dce4d4; border-radius: 13px; overflow: hidden; }
.sp-dashboard .modal-header { padding: 18px 22px; }
.sp-dashboard .modal-body, .sp-dashboard .modal-footer { padding: 20px 22px; }
.sp-dashboard .modal-header.text-white .btn-close { filter: brightness(0) invert(1); }

/* Pages métier : une même hiérarchie, de la sélection au document final. */
.sp-module-heading { margin-bottom: 18px; align-items: flex-start; }
.sp-module-heading > div { min-width: 0; }
.sp-module-heading h1 { overflow-wrap: anywhere; }
.sp-module-heading > div > p:last-child { max-width: 680px; line-height: 1.7; }
.sp-page-symbol { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid #dbe4d7; border-radius: 14px; color: var(--ujlog-green); background: #edf2e9; flex-shrink: 0; }
.sp-page-symbol .sp-icon { width: 26px; height: 26px; }
.sp-module-context { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding-bottom: 23px; margin-bottom: 28px; border-bottom: 1px solid var(--sp-border); color: #65715f; font-size: 11px; }
.sp-context-ufr { display: inline-flex; gap: 7px; align-items: center; overflow-wrap: anywhere; }
.sp-context-ufr .sp-icon { width: 15px; height: 15px; color: #8b956f; }
.sp-context-metric { display: inline-flex; align-items: baseline; gap: 6px; border-left: 1px solid #dce3d5; padding-left: 20px; }
.sp-context-metric strong { color: var(--sp-ink); font-size: 14px; }
.sp-workspace-content { min-width: 0; }
.sp-workspace-content .card { border-radius: 13px; }
.sp-panel-heading { display: flex; gap: 12px; align-items: center; padding: 20px 22px; background: #fff; }
.sp-panel-heading > div { min-width: 0; flex: 1; }
.sp-panel-heading h2 { font-size: 15px; font-weight: 650; letter-spacing: -.2px; line-height: 1.5; margin: 0; color: var(--sp-ink); }
.sp-panel-heading p { margin: 3px 0 0; color: var(--sp-muted); font-size: 11px; font-weight: 400; line-height: 1.6; }
.sp-panel-icon, .sp-step-number { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: #edf3e9; color: var(--ujlog-green); flex-shrink: 0; }
.sp-panel-icon .sp-icon { width: 18px; height: 18px; }
.sp-panel-count { display: grid; place-items: center; min-width: 30px; height: 27px; padding: 0 8px; color: #647754; background: #f1f4eb; border: 1px solid #e3e8dc; border-radius: 6px; font-size: 12px; }
.sp-workspace-content .sp-filter-panel { border: 1px solid var(--sp-border); }
.sp-filter-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #edf0e8; }
.sp-filter-heading > span { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: #435a45; }
.sp-filter-heading .sp-icon { width: 17px; height: 17px; color: #739073; }
.sp-filter-heading > a { font-size: 11px; color: #73816a; text-decoration-color: #c4cdba; text-underline-offset: 3px; }
.sp-filter-heading > a:hover { color: var(--ujlog-green); }
.sp-workspace-content .sp-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 0; }
.sp-filter-grid > [class*="col-"] { width: auto; max-width: none; min-width: 0; padding: 0; margin: 0; }
.sp-filter-grid .form-control, .sp-filter-grid .form-select { min-height: 42px; background-color: #fbfcf9; }
.sp-filter-grid .btn { min-height: 42px; }
.sp-workspace-content .sp-filter-panel .btn-info { --bs-btn-bg: var(--ujlog-green); --bs-btn-border-color: var(--ujlog-green); --bs-btn-hover-bg: var(--ujlog-green-light); --bs-btn-hover-border-color: var(--ujlog-green-light); --bs-btn-active-bg: #104c39; --bs-btn-active-border-color: #104c39; --bs-btn-color: #fff; }
.sp-section-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 23px; }
.sp-section-toolbar h2 { font-size: 20px; color: var(--sp-ink); margin: 0; letter-spacing: -.4px; overflow-wrap: anywhere; }
.sp-section-toolbar .sp-eyebrow { margin-bottom: 5px; }
.sp-workspace-content .btn .sp-icon { width: 15px; height: 15px; margin-right: 5px; }
.sp-workspace-content .card-header { padding: 18px 22px; gap: 12px; }
.sp-workspace-content .card-header h5 { font-size: 15px; line-height: 1.6; }
.sp-workspace-content .table { --bs-table-border-color: #edf0e8; }
.sp-workspace-content .table thead th { text-transform: uppercase; letter-spacing: .55px; font-size: 9px; color: #65735d; background: #f7f8f3; white-space: nowrap; vertical-align: middle; }
.sp-workspace-content .table td { vertical-align: middle; }
.sp-workspace-content .table .btn { white-space: nowrap; }
.sp-workspace-content .table .badge { font-weight: 550; letter-spacing: .1px; border-radius: 5px; }
.sp-workspace-content .table .badge.bg-success { background: #e8f2e5 !important; color: #40643c; }
.sp-workspace-content .table .badge.bg-danger { background: #faebe6 !important; color: #a15c51; }
.sp-workspace-content .table .badge.bg-warning { background: #f8efd9 !important; color: #836729; }
.sp-workspace-content .table .badge.bg-secondary, .sp-workspace-content .table .badge.bg-dark { background: #edf0e7 !important; color: #65725d; }
.sp-workspace-content .table-responsive { border-radius: 0; scrollbar-width: thin; scrollbar-color: #b9c9b1 #f3f5ed; }
.sp-workspace-content .table-responsive:focus-visible { outline-offset: -3px; }
.sp-workspace-content .ue-header { padding: 18px 22px; font-size: 13px; }
.ue-header > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.ue-header .btn-group { flex-wrap: wrap; gap: 6px; }
.ue-header .btn-group > .btn { border-radius: 6px !important; margin: 0 !important; flex: 0 0 auto; }
.sp-module-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 228px; padding: 35px 25px; border: 1px dashed #d7dfce; border-radius: 12px; background: #fbfcf8; text-align: center; }
.sp-module-empty-icon { width: 49px; height: 49px; display: grid; place-items: center; margin-bottom: 16px; color: #879876; background: #f0f3e9; border: 1px solid #e1e7d9; border-radius: 13px; }
.sp-module-empty-icon .sp-icon { width: 23px; height: 23px; }
.sp-module-empty h3 { font-size: 16px; color: #47593f; letter-spacing: -.2px; margin: 0 0 8px; }
.sp-module-empty p { margin: 0; color: #798570; font-size: 12px; line-height: 1.7; max-width: 440px; }
.table td > .sp-module-empty { border: 0; background: transparent; min-height: 195px; }
.sp-workspace-content .table .sp-table-empty { padding: 30px 20px; color: var(--sp-muted); font-size: 12px; }
.sp-result-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 25px; padding: 16px 20px; border: 1px solid #e0e6d9; border-radius: 10px; background: #eef2e8; margin-bottom: 20px; color: #637058; font-size: 12px; }
.sp-result-summary > div { display: flex; align-items: center; gap: 7px; }
.sp-result-summary strong { color: var(--sp-ink); }
.sp-result-summary > span { margin-left: auto; font-size: 11px; }
.sp-summary-dot { width: 6px; height: 6px; border-radius: 50%; background: #94a08d; }
.sp-summary-green { background: #548667; }
.sp-summary-red { background: #b57267; }
.sp-reclamation-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin-bottom: 20px; }
.sp-reclamation-stat { position: relative; overflow: hidden; padding: 18px 19px; border: 1px solid var(--sp-border); border-radius: 11px; background: #fff; }
.sp-reclamation-stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #83927b; }
.sp-reclamation-stat span { display: block; color: #687361; font-size: 10px; font-weight: 650; letter-spacing: .45px; text-transform: uppercase; }
.sp-reclamation-stat strong { display: block; margin: 5px 0 2px; color: var(--sp-ink); font-size: 24px; line-height: 1.2; }
.sp-reclamation-stat small { color: #8a9383; font-size: 10px; }
.sp-reclamation-stat.is-warning::before { background: #c69f43; }
.sp-reclamation-stat.is-info::before { background: #638da5; }
.sp-reclamation-stat.is-success::before { background: #4f8460; }
.sp-reclamation-stat.is-danger::before { background: #b5675b; }
.sp-suivi-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 20px; }
.sp-suivi-stat { position: relative; overflow: hidden; min-width: 0; padding: 18px 19px; border: 1px solid var(--sp-border); border-radius: 11px; background: #fff; }
.sp-suivi-stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #83927b; }
.sp-suivi-stat.is-success::before { background: #4f8460; }
.sp-suivi-stat.is-warning::before { background: #c69f43; }
.sp-suivi-stat.is-info::before { background: #638da5; }
.sp-suivi-stat > span { display: block; color: #687361; font-size: 10px; font-weight: 650; letter-spacing: .45px; text-transform: uppercase; }
.sp-suivi-stat > strong { display: block; overflow-wrap: anywhere; margin: 5px 0 2px; color: var(--sp-ink); font-size: 24px; line-height: 1.2; }
.sp-suivi-stat > .sp-suivi-last-date { font-size: 15px; line-height: 1.55; }
.sp-suivi-stat > small { color: #8a9383; font-size: 10px; }
.sp-suivi-filter-action { display: flex; align-items: end; }
.sp-suivi-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.sp-suivi-table { min-width: 1480px; }
.sp-suivi-scroll { max-height: 75vh; }
.sp-suivi-table thead { position: sticky; top: 0; z-index: 2; }
.sp-suivi-subline { margin-top: 3px; color: var(--sp-muted); font-size: 10px; line-height: 1.5; }
.sp-suivi-note-change { display: flex; min-width: 95px; flex-direction: column; align-items: center; gap: 2px; }
.sp-suivi-note-old { color: #a65750; font-size: 10px; font-weight: 650; text-decoration: line-through; }
.sp-suivi-history-missing { color: var(--sp-muted); font-size: 9px; font-weight: 550; }
.sp-reclamation-table { min-width: 1080px; }
.sp-reclamation-table .sp-reclamation-detail { min-width: 260px; max-width: 370px; }
.sp-motif-box, .sp-response-box, .sp-modal-motif { padding: 10px 12px; border: 1px solid #e5e9df; border-radius: 7px; background: #fafbf8; color: #5f6959; font-size: 11px; line-height: 1.55; }
.sp-motif-box strong, .sp-response-box strong { display: block; margin-bottom: 3px; color: #465441; font-size: 10px; text-transform: uppercase; letter-spacing: .35px; }
.sp-motif-box p, .sp-response-box p { margin: 0; }
.sp-response-box { margin-top: 7px; border-color: #d8e6d5; background: #f2f7ef; color: #536d50; }
.sp-modal-motif { min-height: 58px; white-space: pre-wrap; }
.sp-reclamation-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 7px; margin-bottom: 22px; border: 1px solid #dfe5d7; border-radius: 13px; background: #e9eee2; }
.sp-reclamation-tabs a { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid transparent; border-radius: 9px; color: #687466; text-decoration: none; transition: color .18s, background .18s, box-shadow .18s; }
.sp-reclamation-tabs a:hover { color: var(--ujlog-green); background: #ffffff8c; }
.sp-reclamation-tabs a.is-active { color: var(--ujlog-green); border-color: #d8e1cf; background: #fff; box-shadow: 0 4px 14px #31412a0d; }
.sp-reclamation-tabs .sp-icon { width: 21px; height: 21px; }
.sp-reclamation-tabs span { min-width: 0; }
.sp-reclamation-tabs strong, .sp-reclamation-tabs small { display: block; }
.sp-reclamation-tabs strong { font-size: 12px; }
.sp-reclamation-tabs small { margin-top: 3px; color: #899187; font-size: 10px; font-weight: 500; }
.sp-reminder-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 15px; padding: 21px 23px; margin-bottom: 20px; border: 1px solid #d9e4d5; border-radius: 12px; background: linear-gradient(112deg, #edf4e9, #f9f7ef); }
.sp-reminder-banner::after { content: ''; position: absolute; right: -45px; top: -65px; width: 180px; height: 180px; border: 1px solid #839b7a20; border-radius: 50%; box-shadow: 0 0 0 24px #839b7a0a, 0 0 0 48px #839b7a08; }
.sp-reminder-banner-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; color: #fff; border-radius: 11px; background: #2d6746; box-shadow: 0 8px 18px #214e3430; }
.sp-reminder-banner > div { position: relative; z-index: 1; flex: 1; min-width: 0; }
.sp-reminder-banner strong { color: #34523c; font-size: 13px; }
.sp-reminder-banner p { margin: 4px 0 0; max-width: 850px; color: #687565; font-size: 11px; line-height: 1.6; }
.sp-reminder-scope { position: relative; z-index: 1; padding: 6px 9px; border: 1px solid #d6ddca; border-radius: 6px; color: #68785f; background: #fff9; font-size: 8px; font-weight: 750; letter-spacing: .8px; white-space: nowrap; }
.sp-reminder-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.sp-reminder-notes > div { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; border: 1px solid #e0e6db; border-radius: 9px; color: #697468; background: #fff; }
.sp-reminder-notes > div > span { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border-radius: 7px; color: #55745f; background: #edf3e9; }
.sp-reminder-notes .sp-icon { width: 15px; height: 15px; }
.sp-reminder-notes p { margin: 0; font-size: 10px; line-height: 1.55; }
.sp-reminder-notes strong { display: block; margin-bottom: 2px; color: #415046; font-size: 10px; }
.sp-reminder-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 20px; }
.sp-reminder-stats article { position: relative; overflow: hidden; padding: 18px 19px; border: 1px solid var(--sp-border); border-radius: 11px; background: #fff; }
.sp-reminder-stats article::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #648772; }
.sp-reminder-stats article.is-danger::before { background: #b5675b; }
.sp-reminder-stats article.is-success::before { background: #4f8460; }
.sp-reminder-stats article.is-warning::before { background: #c69f43; }
.sp-reminder-stats span { display: block; color: #687361; font-size: 10px; font-weight: 650; letter-spacing: .45px; text-transform: uppercase; }
.sp-reminder-stats strong { display: block; margin: 5px 0 2px; color: var(--sp-ink); font-size: 24px; line-height: 1.2; }
.sp-reminder-stats small { color: #8a9383; font-size: 10px; }
.sp-reminder-list > .sp-panel-heading { flex-wrap: wrap; }
.sp-reminder-select-all { margin-left: auto; }
.sp-reminder-table { min-width: 1450px; }
.sp-reminder-table th:first-child, .sp-reminder-table td:first-child { width: 76px; }
.sp-reminder-teacher-name { display: block; color: #304037; font-size: 12px; }
.sp-reminder-teacher-name + small { display: block; margin-top: 4px; color: var(--sp-muted); font-size: 10px; }
.sp-reminder-count { display: inline-grid; place-items: center; min-width: 36px; height: 30px; padding: 0 9px; border-radius: 999px; color: #94483e; background: #fae8e4; font-weight: 750; }
.sp-reminder-subjects { min-width: 245px; max-width: 330px; }
.sp-reminder-path { display: inline-flex; margin: 0 4px 5px 0; padding: 4px 7px; border: 1px solid #dae4d5; border-radius: 999px; color: #54705b; background: #f1f6ef; font-size: 9px; font-weight: 700; }
.sp-reminder-subjects > div { display: grid; gap: 3px; margin-top: 3px; color: #6e786d; }
.sp-reminder-subjects small { display: block; overflow-wrap: anywhere; font-size: 9px; }
.sp-reminder-email-field { display: flex; align-items: center; gap: 7px; min-width: 310px; }
.sp-reminder-email-field input { min-width: 205px; }
.sp-reminder-email-field input.is-missing { border-color: #d1aa55; background: #fffdf7; }
.btn-reminder { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-color: #b9903c; color: #263428; background: #d8b868; font-weight: 700; }
.btn-reminder:hover, .btn-reminder:focus { border-color: #9a732a; color: #fff; background: #9a732a; }
.btn-reminder:disabled { border-color: #d7dcd3; color: #90978e; background: #eef0eb; }
.btn-reminder .sp-icon { width: 15px; height: 15px; }
.sp-reminder-empty { display: flex; flex-direction: column; align-items: center; padding: 45px 25px; text-align: center; }
.sp-reminder-empty > .sp-icon { width: 34px; height: 34px; color: #60856c; }
.sp-reminder-empty h3 { margin: 13px 0 5px; color: #405344; font-size: 16px; }
.sp-reminder-empty p { margin: 0; color: var(--sp-muted); font-size: 11px; }
.sp-reminder-actions { position: sticky; bottom: 12px; z-index: 9; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px; padding: 18px 20px; margin-top: 18px; border: 1px solid #d9dfd4; border-radius: 12px; background: #fffffff2; box-shadow: 0 13px 32px #24392b1f; backdrop-filter: blur(9px); }
.sp-reminder-actions label { display: block; margin-bottom: 7px; color: #35443a; font-size: 11px; font-weight: 700; }
.sp-reminder-actions label span { color: var(--sp-muted); font-weight: 500; }
.sp-reminder-actions textarea { min-height: 62px; resize: vertical; }
.sp-reminder-actions > .btn { min-height: 48px; padding-inline: 20px; }
.sp-import-step { border-top: 3px solid #689576 !important; }
.sp-import-step-gold { border-top-color: #c5ab69 !important; }
.sp-import-step > .sp-panel-heading { padding: 0; }
.sp-step-number { font-size: 12px; font-weight: 700; letter-spacing: -.4px; }
.sp-import-step-gold .sp-step-number { color: #967630; background: #f7f1e2; }
.sp-edt-config { border-top: 3px solid #c5ab69 !important; }
.sp-workspace-content .table-edt { min-width: 980px; }
.sp-workspace-content .table-edt textarea { min-width: 110px; resize: vertical; line-height: 1.65; }
.sp-workspace-content .accordion-item { border-color: var(--sp-border); border-radius: 11px; overflow: hidden; margin-bottom: 12px; }
.sp-workspace-content .accordion-button { font-size: 13px; padding: 18px 21px; }
.sp-document-intro, .sp-preview-notice { display: flex; align-items: flex-start; gap: 15px; padding: 22px 24px; margin-bottom: 23px; border-radius: 12px; border: 1px solid #e1e6d7; background: #eef2e7; color: #60704f; }
.sp-document-intro > .sp-icon, .sp-preview-notice > .sp-icon { width: 23px; height: 23px; margin-top: 2px; }
.sp-document-intro > div, .sp-preview-notice > div { flex: 1; min-width: 0; }
.sp-document-intro strong, .sp-preview-notice strong { font-size: 13px; font-weight: 600; color: #455b3e; }
.sp-document-intro p, .sp-preview-notice p { margin: 6px 0 0; font-size: 12px; line-height: 1.75; }
.sp-document-format, .sp-preview-tag { font-size: 9px; font-weight: 600; border: 1px solid #d8dfc9; border-radius: 5px; padding: 5px 8px; flex-shrink: 0; letter-spacing: .5px; }
.sp-preview-notice { background: #faf6eb; border-color: #e9dfc8; color: #887956; }
.sp-preview-notice strong { color: #766336; }
.sp-preview-tag { border-color: #e3d6b7; }
.sp-document-guide { height: 100%; background: #edf1e6; border: 1px solid #dfe5d4; border-radius: 13px; padding: 30px; }
.sp-document-guide-icon { display: grid; place-items: center; width: 47px; height: 47px; background: #e1e8d4; color: #668153; border-radius: 12px; margin-bottom: 25px; }
.sp-document-guide h2 { font-size: 21px; letter-spacing: -.4px; line-height: 1.4; margin-bottom: 18px; color: #3c5235; }
.sp-document-guide ol { padding-left: 18px; font-size: 12px; line-height: 1.85; color: #708061; }
.sp-document-guide li { padding-left: 5px; margin-bottom: 12px; }
.sp-document-guide-foot { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #82906f; margin: 24px 0 0; padding-top: 17px; border-top: 1px solid #dbe3cc; }
.sp-document-guide-foot .sp-icon { width: 15px; height: 15px; }
.sp-workspace-content .inner-nav { padding: 6px; background: #eaeee3; border: 1px solid #e1e6d8; border-radius: 10px; gap: 5px; }
.sp-workspace-content .inner-nav .nav-link { display: flex; align-items: center; gap: 7px; border-color: transparent; background: transparent; font-size: 12px; padding: 11px 16px; }
.sp-workspace-content .inner-nav .nav-link .sp-icon { width: 16px; height: 16px; }
.sp-workspace-content .inner-nav .nav-link.active { background: #fff; color: var(--ujlog-green); border-color: #dce3d3; box-shadow: 0 2px 5px #31412a08; }
.sp-workspace-content .inner-nav .nav-link:hover { color: var(--ujlog-green); background: #ffffff85; }
.sp-parcours-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 7px; margin-bottom: 24px; border: 1px solid #dfe5d7; border-radius: 13px; background: #e9eee2; }
.sp-parcours-tabs a { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 9px; padding: 13px 12px; border: 1px solid transparent; border-radius: 9px; color: #65715e; font-size: 11px; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none; }
.sp-parcours-tabs a:hover { color: var(--ujlog-green); background: #ffffff8c; }
.sp-parcours-tabs a.is-active { color: var(--ujlog-green); border-color: #d8e1cf; background: #fff; box-shadow: 0 4px 14px #31412a0d; }
.sp-parcours-tabs .sp-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.sp-parcours-kpis article { position: relative; overflow: hidden; padding: 18px 19px; border: 1px solid var(--sp-border); border-radius: 11px; background: #fff; }
.sp-parcours-kpis article::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #668f72; }
.sp-parcours-kpis article span { display: block; color: #687361; font-size: 10px; font-weight: 650; letter-spacing: .45px; text-transform: uppercase; }
.sp-parcours-kpis article strong { display: block; margin-top: 6px; color: var(--sp-ink); font-size: 24px; line-height: 1.2; }
.sp-parcours-ue .table th, .sp-parcours-ue .table td { padding: 13px 18px; }
.sp-credit-pill { display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid #d6e2d2; border-radius: 999px; background: #f1f6ef; color: #55705b; font-size: 10px; font-weight: 700; white-space: nowrap; }
.sp-anomaly-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.sp-anomaly-card { overflow: hidden; padding: 0; border-top: 3px solid #c3993d; }
.sp-anomaly-card.is-valid { border-top-color: #4f8460; }
.sp-anomaly-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 21px; border-bottom: 1px solid #e9ece5; }
.sp-anomaly-head > div { display: flex; align-items: baseline; gap: 9px; }
.sp-anomaly-head span:first-child { color: var(--sp-muted); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .5px; }
.sp-anomaly-head strong { color: var(--sp-ink); font-size: 22px; }
.sp-anomaly-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #e9ece5; border-bottom: 1px solid #e9ece5; }
.sp-anomaly-metrics div { padding: 14px 12px; background: #fafbf8; text-align: center; }
.sp-anomaly-metrics span { display: block; min-height: 28px; color: var(--sp-muted); font-size: 9px; font-weight: 650; text-transform: uppercase; }
.sp-anomaly-metrics strong { color: var(--sp-ink); font-size: 15px; }
.sp-anomaly-list { max-height: 280px; overflow: auto; margin: 0; padding: 8px 20px 14px; list-style: none; }
.sp-anomaly-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #edf0ea; color: #566151; font-size: 11px; }
.sp-anomaly-list li:last-child { border-bottom: 0; }
.sp-anomaly-list small { flex: 0 0 auto; color: var(--sp-muted); }
.sp-anomaly-alert { margin: 15px 20px 20px; padding: 12px 14px; border-radius: 8px; background: #fff3cd; color: #785f24; font-size: 11px; }

@media (min-width: 1600px) {
    .sp-main { padding-left: 52px; padding-right: 52px; }
    .sp-module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sp-welcome { min-height: 275px; }
    .sp-welcome-copy { padding: 35px 39px; }
}
@media (max-width: 1199.98px) {
    .sp-reclamation-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sp-reminder-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-suivi-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-parcours-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-anomaly-grid { grid-template-columns: minmax(0, 1fr); }
    .sp-sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 10px 0 40px #0d28192e; }
    body.sp-sidebar-open { overflow: hidden; }
    .sp-sidebar-open .sp-sidebar { transform: translateX(0); }
    .sp-sidebar-backdrop { position: fixed; inset: 0; z-index: 1030; border: none; padding: 0; background: #10281a70; backdrop-filter: blur(3px); }
    .sp-sidebar-close, .sp-menu-toggle { display: grid; place-items: center; width: 33px; height: 33px; background: transparent; border: 1px solid #e0e5d7; border-radius: 7px; padding: 5px; color: #4f6748; flex-shrink: 0; }
    .sp-sidebar-close { border-color: #385241; color: #c0d2c4; width: 27px; height: 27px; }
    .sp-sidebar-close .sp-icon { width: 16px; }
    .sp-brand-row { padding: 25px 18px; }
    .sp-brand { gap: 9px; }
    .sp-brand-logo { width: 39px; height: 39px; }
    .sp-brand-logo img { width: 33px; height: 33px; }
    .sp-brand strong { font-size: 23px; }
    .sp-brand small { font-size: 7px; }
    .sp-app { margin-left: 0; }
    .sp-main { padding-left: 30px; padding-right: 30px; }
    .sp-topbar { padding: 0 30px; }
    .sp-topbar-start { gap: 15px; }
}
@media (max-width: 767.98px) {
    .sp-reclamation-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sp-reclamation-tabs { grid-template-columns: minmax(0, 1fr); }
    .sp-reminder-banner { align-items: flex-start; }
    .sp-reminder-scope { display: none; }
    .sp-reminder-notes { grid-template-columns: minmax(0, 1fr); }
    .sp-reminder-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sp-reminder-actions { position: static; grid-template-columns: minmax(0, 1fr); }
    .sp-reminder-actions > .btn { width: 100%; }
    .sp-suivi-stats { gap: 10px; }
    .sp-suivi-stat { padding: 15px; }
    .sp-reclamation-stat { padding: 15px; }
    .sp-topbar { height: 67px; padding: 0 18px; gap: 12px; }
    .sp-topbar-start, .sp-topbar-end { gap: 12px; }
    .sp-topbar-user, .sp-breadcrumb a, .sp-breadcrumb > .sp-icon { display: none; }
    .sp-breadcrumb { font-size: 11px; }
    .sp-academic-year { font-size: 9px; padding: 5px 7px; gap: 5px; }
    .sp-academic-year .sp-icon { width: 12px; height: 12px; }
    .sp-avatar-light { width: 31px; height: 31px; font-size: 12px; }
    .sp-main { padding: 25px 18px 0; }
    .sp-page-heading { margin-bottom: 21px; }
    .sp-date { display: none; }
    .sp-page-heading > div > p:last-child { font-size: 11px; line-height: 1.6; }
    .sp-eyebrow { font-size: 8px; }
    .sp-welcome { min-height: 245px; }
    .sp-welcome-copy { max-width: 80%; padding: 25px 23px; }
    .sp-welcome h2 { font-size: 24px; }
    .sp-welcome-copy > p { font-size: 12px; }
    .sp-welcome-art { position: absolute; right: -38px; bottom: -26px; width: 235px; opacity: .18; padding: 0; pointer-events: none; z-index: -1; }
    .sp-art-caption { display: none; }
    .sp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .sp-stat { padding: 14px; }
    .sp-stat-top > span:first-child { font-size: 11px; }
    .sp-stat-icon { width: 25px; height: 25px; }
    .sp-stat > strong { font-size: 26px; }
    .sp-stat > p { font-size: 10px; line-height: 1.6; }
    .sp-enrollment-panel { padding: 18px; }
    .sp-enrollment-heading { align-items: stretch; flex-direction: column; gap: 13px; }
    .sp-enrollment-filter { min-width: 0; }
    .sp-enrollment-grid { grid-template-columns: minmax(0, 1fr); }
    .sp-level-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sp-quick-access { align-items: flex-start; flex-direction: column; gap: 11px; padding: 15px; margin-bottom: 28px; }
    .sp-quick-links { width: 100%; gap: 7px; }
    .sp-quick-links a { font-size: 11px; padding: 7px 9px; }
    .sp-modules-heading { flex-direction: column; align-items: flex-start; gap: 15px; }
    .sp-search { width: 100%; padding: 12px; }
    .sp-search input { font-size: 12px; }
    .sp-search kbd { display: none; }
    .sp-module-toolbar { align-items: flex-start; margin-bottom: 24px; gap: 7px; }
    .sp-filters { gap: 3px; }
    .sp-filters button { font-size: 11px; padding: 7px 8px; }
    .sp-search-count { padding-top: 9px; font-size: 10px; }
    .sp-group-line { display: none; }
    .sp-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .sp-module-card { padding: 16px 15px 0; }
    .sp-module-card h4 { font-size: 13px; }
    .sp-module-card > p { font-size: 11px; }
    .sp-module-icon { width: 33px; height: 33px; }
    .sp-card-action { font-size: 10px; }
    .sp-footer { flex-direction: column; gap: 5px; padding: 18px 0; margin-top: 25px; font-size: 8px; }
    .sp-footer > span:last-child { text-align: left; }
    .sp-main-content .card-header, .ue-header { flex-wrap: wrap; }
    .sp-main-content > .tab-pane > h3, .sp-main-content > .tab-pane > .d-flex > h3 { font-size: 21px; }
    .inner-nav .nav-link, #sallesSubTabs .nav-link { font-size: 10px; padding: 8px 10px; }
    .sp-module-heading { gap: 12px; }
    .sp-module-heading h1 { font-size: 27px; }
    .sp-page-symbol { width: 43px; height: 43px; border-radius: 11px; }
    .sp-page-symbol .sp-icon { width: 21px; height: 21px; }
    .sp-module-context { gap: 10px 14px; margin-bottom: 22px; padding-bottom: 18px; }
    .sp-context-metric { padding-left: 14px; }
    .sp-workspace-content .card-header, .sp-workspace-content .ue-header, .sp-panel-heading { padding: 17px; }
    .sp-workspace-content .p-4 { padding: 19px !important; }
    .sp-workspace-content .sp-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .sp-workspace-content .inner-nav { flex-wrap: nowrap; overflow-x: auto; }
    .sp-workspace-content .inner-nav .nav-item { flex-shrink: 0; }
    .sp-workspace-content .inner-nav .nav-link { font-size: 11px; padding: 10px 12px; white-space: nowrap; }
    .sp-parcours-tabs { display: flex; overflow-x: auto; }
    .sp-parcours-tabs a { min-width: 180px; flex: 0 0 auto; }
    .sp-anomaly-metrics { grid-template-columns: minmax(0, 1fr); }
    .sp-anomaly-metrics span { min-height: 0; }
    .sp-anomaly-list li { align-items: flex-start; flex-direction: column; gap: 4px; }
    .sp-notes-toolbar { gap: 12px; }
    .sp-result-summary { gap: 12px 16px; padding: 16px; }
    .sp-result-summary > span { width: 100%; margin-left: 0; }
    .sp-preview-notice, .sp-document-intro { padding: 19px 17px; flex-wrap: wrap; gap: 11px; }
    .sp-preview-tag { margin-left: 34px; }
    .sp-document-guide { padding: 25px; }
    .sp-module-empty { padding: 30px 18px; min-height: 210px; }
    .ue-header .btn-group { width: 100%; }
}
@media (max-width: 419.98px) {
    .sp-reclamation-stats { grid-template-columns: minmax(0, 1fr); }
    .sp-reminder-stats { grid-template-columns: minmax(0, 1fr); }
    .sp-suivi-stats { grid-template-columns: minmax(0, 1fr); }
    .sp-academic-year { display: none; }
    .sp-welcome-copy { max-width: 100%; }
    .sp-module-grid { grid-template-columns: minmax(0, 1fr); }
    .sp-module-card { padding: 18px 20px 0; }
    .sp-module-card > p { max-width: none; }
    .sp-module-card h4 { font-size: 14px; }
    .sp-module-card > p { font-size: 11px; }
    .sp-group-heading p { font-size: 9px; line-height: 1.5; }
    .sp-search-count { display: none; }
    .checkbox-grid { grid-template-columns: minmax(0, 1fr); }
    .sp-workspace-content .sp-filter-grid { grid-template-columns: minmax(0, 1fr); }
    .sp-page-symbol { display: none; }
    .sp-context-metric { border-left: 0; padding-left: 0; }
    .sp-panel-heading p { font-size: 10px; }
    .sp-level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sp-dashboard *, .sp-dashboard *::before, .sp-dashboard *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .sp-module-card:hover { transform: none; }
}
@media print {
    .sp-sidebar, .sp-topbar, .sp-back-link, .sp-quick-access, .sp-module-toolbar, .sp-search, .sp-footer, .sp-no-print { display: none !important; }
    .sp-app { margin: 0; }
    .sp-main { padding: 0; max-width: none; }
    body.sp-dashboard { background: white; }
    .sp-stat, .sp-module-card { break-inside: avoid; }
    .sp-page-symbol, .sp-preview-notice, .sp-document-intro, .sp-document-guide { print-color-adjust: exact; }
    .sp-workspace-content .table-responsive { overflow: visible; }
    .sp-suivi-scroll { max-height: none; }
    .sp-module-heading, .sp-module-context, .sp-panel-heading { break-after: avoid; }
}
