:root{--shell-blue:#073f67;--shell-blue-2:#07598f;--shell-green:#087747;--shell-ink:#152630;--shell-bg:#f3f7f6;--shell-border:#dce7e5;--shell-shadow:0 12px 34px rgba(13,55,78,.08)}
.authenticated-layout{background:var(--shell-bg)}
.app-frame{min-height:100vh;display:grid;grid-template-columns:264px minmax(0,1fr)}
.app-sidebar{position:sticky;z-index:40;inset-block-start:0;height:100vh;display:flex;flex-direction:column;padding:20px 16px;background:linear-gradient(180deg,#063f66 0%,#064f73 58%,#087248 100%);color:#fff;box-shadow:10px 0 28px rgba(4,42,66,.12);overflow-y:auto}
.sidebar-brand{display:flex;align-items:center;gap:12px;padding:4px 6px 19px;border-bottom:1px solid rgba(255,255,255,.16);color:#fff;text-decoration:none}
.sidebar-brand img{width:52px;height:52px;border-radius:13px;object-fit:contain;background:#fff;padding:3px}
.sidebar-brand span{display:grid;gap:2px}.sidebar-brand strong{font-size:1.13rem}.sidebar-brand small{color:rgba(255,255,255,.72);font-size:.76rem}
.app-sidebar .main-nav{display:grid;gap:4px;padding:14px 0}.app-sidebar .main-nav a{position:relative;justify-content:flex-start;min-height:42px;padding:9px 12px;border-radius:10px;color:rgba(255,255,255,.86);font-weight:680}.app-sidebar .main-nav a:hover{background:rgba(255,255,255,.1);color:#fff}.app-sidebar .main-nav a.active{background:#fff;color:var(--shell-blue);box-shadow:0 8px 22px rgba(4,39,59,.2)}
.app-sidebar .main-nav a.active::before{content:"";position:absolute;inset-inline-start:0;width:4px;height:22px;border-radius:0 4px 4px 0;background:var(--shell-green)}
.nav-group-label{margin:15px 12px 4px;color:rgba(255,255,255,.56);font-size:.68rem;font-weight:850;letter-spacing:.09em;text-transform:uppercase}.nav-group-label:first-child{margin-top:2px}
.sidebar-institution{display:flex;align-items:center;gap:10px;margin-top:auto;padding:14px 8px 2px;border-top:1px solid rgba(255,255,255,.16);color:rgba(255,255,255,.78);font-size:.72rem;line-height:1.35}.sidebar-institution img{width:42px;height:42px;object-fit:contain;border-radius:9px;background:#fff;padding:3px}
.app-workspace{min-width:0}.app-topbar{position:sticky;z-index:30;inset-block-start:0;min-height:68px;display:flex;align-items:center;gap:16px;padding:9px clamp(18px,3vw,38px);border-bottom:1px solid var(--shell-border);background:rgba(255,255,255,.94);backdrop-filter:blur(12px)}
.menu-toggle{display:none;min-height:44px;align-items:center;gap:8px;border:1px solid var(--shell-border);border-radius:10px;background:#fff;color:var(--shell-blue);padding:8px 12px;font-weight:800}.menu-toggle span:first-child{font-size:1.2rem}
.topbar-context{display:grid;gap:1px}.topbar-context strong{color:var(--shell-blue);font-size:.95rem}.topbar-context small{color:var(--muted);font-size:.72rem}.topbar-actions{margin-inline-start:auto;display:flex;align-items:center;gap:12px}.topbar-actions .language-button{box-shadow:none}.topbar-actions form{margin:0}.topbar-logout{min-height:42px;padding:8px 13px;border:1px solid #bdd2d8;border-radius:10px;background:#fff;color:var(--shell-blue);font-weight:800;cursor:pointer}.topbar-logout:hover{border-color:var(--shell-blue);background:#f5fafb}.user-summary{display:grid;padding-inline:12px;border-inline-start:1px solid var(--shell-border)}.user-summary strong{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.84rem}.user-summary span{color:var(--muted);font-size:.72rem}
.authenticated-layout .page-shell{min-height:calc(100vh - 68px);padding:clamp(18px,3vw,38px);background:var(--shell-bg)}.authenticated-layout .wide-card,.authenticated-layout .grade-page{width:min(100%,1240px)}
.authenticated-layout .content-card,.dashboard-panel{border:1px solid var(--shell-border);border-radius:16px;box-shadow:var(--shell-shadow)}
.authenticated-layout .page-heading h1{margin:.25rem 0;color:var(--shell-blue);font-size:clamp(1.65rem,2.6vw,2.25rem);line-height:1.15}.authenticated-layout .eyebrow{color:var(--shell-green);font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.authenticated-layout .intro{color:var(--muted);line-height:1.55}
.authenticated-layout .primary-button,.authenticated-layout .button.primary,.authenticated-layout .button:not(.secondary){background:var(--shell-green);color:#fff;border-color:var(--shell-green);box-shadow:0 7px 18px rgba(8,119,71,.16)}.authenticated-layout .primary-button:hover,.authenticated-layout .button:not(.secondary):hover{background:#05663b}
.authenticated-layout .secondary-button{background:#fff;color:var(--shell-blue);border-color:#b9cdd4}.authenticated-layout input,.authenticated-layout select,.authenticated-layout textarea{border-color:#c7d8dc;border-radius:10px}.authenticated-layout input:focus,.authenticated-layout select:focus,.authenticated-layout textarea:focus{border-color:var(--shell-blue-2);box-shadow:0 0 0 3px rgba(7,89,143,.1);outline:0}
.authenticated-layout table{border:1px solid var(--shell-border);border-radius:12px;border-collapse:separate;border-spacing:0;overflow:hidden}.authenticated-layout th{background:#f0f6f7;color:#526a75;font-size:.72rem;font-weight:850;letter-spacing:.035em;text-transform:uppercase}.authenticated-layout th,.authenticated-layout td{padding:13px 15px}.authenticated-layout tbody tr:hover{background:#f8fbfa}.authenticated-layout tbody tr:last-child td{border-bottom:0}
.sidebar-backdrop{display:none}
.dashboard-shell{width:min(100%,1240px);margin:auto;display:grid;gap:20px}.dashboard-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding:clamp(24px,4vw,42px);border-radius:20px;background:linear-gradient(125deg,var(--shell-blue) 0%,var(--shell-blue-2) 68%,var(--shell-green) 140%);color:#fff;box-shadow:0 18px 40px rgba(5,63,99,.18)}.dashboard-hero::after{content:"";position:absolute;inset-inline-end:-80px;inset-block-end:-130px;width:280px;height:280px;border:48px solid rgba(255,255,255,.07);border-radius:50%}.dashboard-hero .eyebrow,.dashboard-hero .intro{color:rgba(255,255,255,.78)}.dashboard-hero h1{margin:.3rem 0;font-size:clamp(1.8rem,3vw,2.65rem)}.dashboard-identity{position:relative;z-index:1;display:flex;align-items:center;gap:11px;padding:12px;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(255,255,255,.1)}.dashboard-identity img{width:58px;height:58px;border-radius:10px;object-fit:contain;background:#fff;padding:4px}.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.dashboard-panel{padding:20px;background:#fff}.dashboard-panel h2{margin:0 0 14px;color:var(--shell-blue);font-size:1rem}.dashboard-details{display:grid;gap:11px;margin:0}.dashboard-details div{display:flex;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #edf2f1}.dashboard-details div:last-child{padding-bottom:0;border:0}.dashboard-details dt{color:var(--muted)}.dashboard-details dd{margin:0;font-weight:800;text-align:end}.dashboard-links{display:grid;gap:9px}.dashboard-links a{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:10px 12px;border:1px solid var(--shell-border);border-radius:10px;color:var(--shell-blue);font-weight:800;text-decoration:none}.dashboard-links a::after{content:"›";font-size:1.25rem}.dashboard-links a:hover{border-color:#8db5c5;background:#f5fafb}
.student-list-card{padding:0!important;overflow:hidden}.student-list-header{padding:25px 28px 0}.student-list-tools{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:12px;align-items:end;padding:18px 28px 22px}.student-list-table{padding:0 28px 20px}.student-list-table .responsive-table{border-radius:12px}.student-list-pagination{padding:0 28px 24px}
.student-list-pagination nav a,.student-list-pagination nav span[aria-current="page"] span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:9px 12px!important;border:1px solid var(--shell-border)!important;border-radius:9px!important;background:#fff;color:var(--shell-blue);text-decoration:none}.student-list-pagination nav span[aria-current="page"] span{background:var(--shell-blue);color:#fff}.student-list-pagination svg{width:18px;height:18px}
.grade-entry-card{padding:0!important;overflow:hidden}.grade-entry-card .grade-table{padding:0 24px}.grade-entry-card .field-help{margin:14px 24px}.grade-entry-card .submission-bar{margin:18px 24px 24px}.grade-row{min-height:68px}.grade-header{min-height:48px;background:#f0f6f7;margin-inline:-24px;padding-inline:32px}.grade-row:focus-within{background:#f5faf8}.save-state [data-save-message]:not(:empty){color:var(--shell-green);font-weight:750}
[dir=rtl] .app-sidebar .main-nav a.active::before{border-radius:4px 0 0 4px}[dir=rtl] .dashboard-links a::after{content:"‹"}
@media(max-width:1100px){.app-frame{grid-template-columns:230px minmax(0,1fr)}.dashboard-grid{grid-template-columns:1fr 1fr}.dashboard-panel:first-child{grid-column:1/-1}.user-summary{display:none}}
@media(max-width:820px){.app-frame{display:block}.app-sidebar{position:fixed;inset-block:0;inset-inline-start:0;width:min(82vw,294px);height:100dvh;transform:translateX(-110%);transition:transform .22s ease;box-shadow:16px 0 42px rgba(3,34,53,.28)}[dir=rtl] .app-sidebar{transform:translateX(110%)}.app-frame.menu-open .app-sidebar{transform:translateX(0)}.sidebar-backdrop{position:fixed;z-index:35;inset:0;width:100%;height:100%;border:0;background:rgba(10,31,43,.46)}.app-frame.menu-open .sidebar-backdrop{display:block}.menu-toggle{display:inline-flex}.topbar-context{display:none}.app-topbar{padding-inline:14px}.authenticated-layout .page-shell{padding:18px 14px}.dashboard-grid{grid-template-columns:1fr}.dashboard-panel:first-child{grid-column:auto}.dashboard-hero{grid-template-columns:1fr}.dashboard-identity{width:max-content}.student-list-tools{grid-template-columns:1fr auto}}
@media(max-width:600px){.app-topbar{gap:8px}.menu-toggle span:last-child,.topbar-logout{font-size:0}.topbar-logout::before{content:"↪";font-size:1.1rem}.topbar-actions{gap:7px}.topbar-actions .language-button span:last-child{display:none}.dashboard-hero{padding:24px 20px}.dashboard-identity{width:100%}.student-list-header{padding:20px 17px 0}.student-list-tools{grid-template-columns:1fr;padding:15px 17px 18px}.student-list-tools .secondary-button{width:100%}.student-list-table{padding:0 17px 14px}.student-list-pagination{padding:0 17px 20px}.grade-entry-card .grade-table{padding:0 17px}.grade-header{display:none}.grade-row{margin:12px 0;padding:16px!important;border:1px solid var(--shell-border);border-radius:13px;background:#fff;box-shadow:0 5px 16px rgba(13,55,78,.05)}.grade-entry-card .field-help{margin:14px 17px}.grade-entry-card .submission-bar{margin:18px 17px 20px}.authenticated-layout .content-card{border-radius:14px}.authenticated-layout .responsive-table tr{margin:10px 0;padding:14px;border:1px solid var(--shell-border);border-radius:12px;background:#fff}.authenticated-layout .responsive-table td{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr);align-items:start}.authenticated-layout .responsive-table td::before{font-weight:800}}

/* Alignement avec la maquette Interface Majaalis de gestion scolaire. */
:root{--shell-blue:#064b73;--shell-blue-2:#087fc0;--shell-green:#069653;--shell-ink:#10233c;--shell-bg:#f6f9fb;--shell-border:#dce4eb;--shell-shadow:0 6px 20px rgba(17,54,80,.06)}
.app-sidebar{padding:18px 10px;background:linear-gradient(180deg,#054970 0%,#075779 100%);box-shadow:8px 0 24px rgba(4,42,66,.1)}
.app-sidebar .main-nav a.active{background:linear-gradient(90deg,#0787ce,#0874b1);color:#fff;box-shadow:0 7px 18px rgba(1,41,70,.22)}
.app-sidebar .main-nav a.active::before{display:none}
.app-topbar{min-height:72px;padding:9px clamp(18px,2.5vw,32px);background:rgba(255,255,255,.97)}
.topbar-context{display:flex;gap:10px}.context-chip{min-width:180px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 14px;border:1px solid var(--shell-border);border-radius:8px;background:#fff}.context-chip strong{color:var(--muted);font-size:.75rem}.context-chip small{color:var(--shell-ink);font-size:.9rem;font-weight:800}
.authenticated-layout .page-shell{min-height:calc(100vh - 72px);padding:clamp(20px,2.5vw,34px);background:linear-gradient(180deg,#f7fafc,#f2f7f9)}
.student-list-card{overflow:visible}.student-list-header{padding:0 0 18px}.page-breadcrumb{margin:0 0 12px;color:#64748b;font-size:.82rem}.page-breadcrumb span{padding-inline:8px;color:#a6b2bd}.student-list-header .page-heading{align-items:end}.student-list-header .page-heading h1{color:#0e2037;font-size:2.15rem}.student-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 16px}.student-stat-grid article{display:flex;align-items:center;gap:14px;padding:17px 20px;border:1px solid var(--shell-border);border-radius:10px;background:#fff;box-shadow:var(--shell-shadow)}.student-stat-grid strong{display:block;color:var(--shell-blue-2);font-size:1.55rem}.student-stat-grid small{color:var(--muted)}.stat-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:.65rem}.stat-icon.blue{color:#1289cb;background:#e6f4fc}.stat-icon.green{color:#079a58;background:#e3f8ed}
.student-list-tools{padding:16px 20px;margin-bottom:14px;border:1px solid var(--shell-border);border-radius:10px;background:#fff}.student-list-table{padding:0;background:#fff;border:1px solid var(--shell-border);border-radius:10px;overflow:hidden}.student-list-pagination{padding:16px 0 4px}.enrollment-badge{display:inline-flex;padding:5px 10px;border-radius:999px;background:#ddf7e9;color:#087642;font-size:.76rem;font-weight:800}.enrollment-badge.pending{background:#fff0c9;color:#9a6100}.table-action{display:inline-flex;align-items:center;min-height:44px;color:#087fc0;font-weight:800;text-decoration:none}
.grade-heading{border-radius:10px!important}.grade-entry-card{border-radius:10px!important}.grade-row{border-color:#e5ebef}.grade-header{background:#f4f7f9}.dashboard-panel{border-radius:10px}.dashboard-hero{border-radius:12px}
@media(max-width:600px){.context-chip{display:none}.student-stat-grid{grid-template-columns:1fr 1fr;gap:8px}.student-stat-grid article{padding:12px}.student-stat-grid strong{font-size:1.2rem}.student-list-header{padding:0 0 15px}.student-list-header .page-heading{align-items:flex-start}.student-list-header .page-heading .button-link{width:100%;justify-content:center}.student-list-tools{padding:14px}.student-list-table{padding:0;border:0;background:transparent}.student-list-pagination{padding-inline:0}}

/* Accueil de validation : proportions légères de la maquette approuvée. */
.app-sidebar .main-nav a{gap:12px;min-height:40px;padding:8px 12px;font-size:.86rem;font-weight:530}.nav-icon{flex:0 0 23px;width:23px;display:inline-grid;place-items:center;color:currentColor;font-family:"Segoe UI Symbol",sans-serif;font-size:1.18rem;font-weight:400;line-height:1}.nav-group-label{font-size:.64rem;font-weight:650}.sidebar-brand strong{font-size:1.04rem;font-weight:650}.sidebar-brand small{font-weight:400}.user-summary strong{font-weight:600}.user-summary span{font-weight:400}.topbar-logout{font-weight:600}
.dashboard-shell{gap:14px}.dashboard-hero{min-height:0;gap:18px;padding:22px 26px;border-radius:10px;box-shadow:0 8px 24px rgba(5,63,99,.13)}.dashboard-hero h1{margin:.18rem 0;font-size:clamp(1.35rem,2.1vw,1.85rem);font-weight:650}.dashboard-hero .intro{margin:.25rem 0 0;font-size:.84rem}.dashboard-hero .eyebrow{margin:0;font-size:.64rem;font-weight:650}.dashboard-identity{gap:8px;padding:8px 10px;border-radius:9px}.dashboard-identity img{width:43px;height:43px;border-radius:7px}.dashboard-identity strong{font-size:.78rem;font-weight:600}.dashboard-grid{gap:12px}.dashboard-panel{padding:15px 17px}.dashboard-panel h2{margin-bottom:10px;font-size:.88rem;font-weight:650}.dashboard-details{gap:7px;font-size:.82rem}.dashboard-details div{padding-bottom:7px}.dashboard-details dd{font-weight:600}.dashboard-links{gap:7px}.dashboard-links a{min-height:40px;padding:7px 10px;font-size:.82rem;font-weight:600}.dashboard-panel .intro{font-size:.82rem}.authenticated-layout .primary-button,.authenticated-layout .secondary-button,.authenticated-layout .button{font-weight:600}
@media(max-width:600px){.dashboard-hero{gap:14px;padding:18px 16px}.dashboard-hero h1{font-size:1.28rem}.dashboard-identity{width:auto;justify-self:start}.dashboard-identity img{width:38px;height:38px}.dashboard-grid{gap:10px}.dashboard-panel{padding:14px}.app-sidebar .main-nav a{font-size:.84rem}}

/* Composants communs — groupe Scolarité. */
.authenticated-layout .content-card{padding:20px;border-radius:10px;box-shadow:var(--shell-shadow)}
.authenticated-layout .page-heading{gap:16px;align-items:flex-end;margin-bottom:16px}.authenticated-layout .page-heading h1{margin:.12rem 0;font-size:clamp(1.4rem,2vw,1.75rem);font-weight:650;line-height:1.2}.authenticated-layout .page-heading h2{margin:.12rem 0;font-size:1.18rem;font-weight:650}.authenticated-layout .eyebrow{margin:0;color:#5d7280;font-size:.65rem;font-weight:650;letter-spacing:.055em}.authenticated-layout .intro{margin:.25rem 0 0;font-size:.84rem;line-height:1.45}
.authenticated-layout .primary-button,.authenticated-layout .secondary-button,.authenticated-layout .button,.authenticated-layout button:not(.menu-toggle):not(.topbar-logout){min-height:40px;padding:8px 14px;border-radius:8px;font-size:.82rem;font-weight:600;line-height:1.2}.authenticated-layout .button-link{display:inline-flex;align-items:center;justify-content:center;gap:7px}.authenticated-layout .button-group{gap:8px;align-items:center}.authenticated-layout .text-link{font-size:.82rem;font-weight:600}
.authenticated-layout label{gap:6px;color:#334b5b;font-size:.78rem;font-weight:600}.authenticated-layout input,.authenticated-layout select,.authenticated-layout textarea{min-height:42px;padding:9px 11px;border-radius:8px;font-size:.84rem;font-weight:400;background:#fff}.authenticated-layout textarea{min-height:88px}.authenticated-layout fieldset{padding:16px;border-color:var(--shell-border);border-radius:9px}.authenticated-layout legend{padding-inline:7px;color:var(--shell-blue);font-size:.82rem;font-weight:650}.authenticated-layout .form-stack{gap:15px}.authenticated-layout .form-grid{gap:13px}
.authenticated-layout .alert,.authenticated-layout .global-alert{gap:10px;padding:11px 13px;border-radius:8px;font-size:.82rem}.authenticated-layout .status{padding:5px 9px;border-radius:999px;font-size:.7rem;font-weight:650}.authenticated-layout .warning{padding:8px 10px;border-radius:7px;font-size:.76rem}
.authenticated-layout table{border-radius:9px}.authenticated-layout th{font-size:.67rem;font-weight:650;letter-spacing:.025em}.authenticated-layout th,.authenticated-layout td{padding:10px 13px}.authenticated-layout td{font-size:.82rem}.authenticated-layout tbody tr{min-height:48px}.authenticated-layout tbody td strong{font-weight:600}
.year-list{gap:8px}.year-row{min-height:58px;padding:11px 13px;border-radius:8px}.year-row strong{font-size:.9rem;font-weight:650}.year-row span{font-size:.77rem}.level-grid{gap:12px}.level-card{border-radius:9px;box-shadow:var(--shell-shadow)}.level-card header{padding:14px 15px}.level-card header h2{font-size:.94rem;font-weight:650}.level-card header span{font-size:.72rem}.level-card ul{padding:0 10px 10px}.level-card li a{padding:10px;border-radius:7px}.level-card li strong{font-size:.84rem;font-weight:600}.level-card li span,.level-card li small{font-size:.72rem}.state-actions{gap:8px;margin-top:12px;padding-top:12px}
.student-details{gap:10px}.student-details div,.private-block,.enrollment-card,.action-panel{border-radius:9px}.student-details div{padding:12px}.student-details dt{font-size:.72rem}.student-details dd{font-size:.85rem;font-weight:600}.private-block{padding:14px}.private-block h2{font-size:.9rem;font-weight:650}.enrollment-list{gap:11px}.enrollment-card{padding:14px}.enrollment-card header strong{font-weight:650}.period-list li{padding:9px 0;font-size:.82rem}.history-list article{padding:10px 0;font-size:.8rem}.action-panel summary{min-height:42px;padding:10px 12px;font-size:.82rem;font-weight:600}.section-gap{margin-top:14px}
@media(max-width:600px){.authenticated-layout .content-card{padding:15px}.authenticated-layout .page-heading{align-items:flex-start;gap:11px}.authenticated-layout .page-heading h1{font-size:1.3rem}.authenticated-layout .button-group{width:100%;display:grid;grid-template-columns:1fr}.authenticated-layout .button-group .button-link,.authenticated-layout .button-group button{width:100%}.authenticated-layout .primary-button,.authenticated-layout .secondary-button,.authenticated-layout .button,.authenticated-layout button:not(.menu-toggle):not(.topbar-logout){min-height:44px}.authenticated-layout input,.authenticated-layout select{min-height:44px}.level-grid{grid-template-columns:1fr}.year-row{min-height:64px}.student-details{grid-template-columns:1fr}.movement-grid{grid-template-columns:1fr}.state-actions form{width:100%}.state-actions button{width:100%}}

/* Composants communs — groupe Pédagogie. */
.assigned-classes{margin:14px 0 18px;padding:14px;border:1px solid var(--shell-border);border-radius:9px;background:#f8fbfc}.assigned-classes h2{margin:0 0 10px;font-size:.9rem;font-weight:650}.assigned-classes a{min-height:52px;padding:9px 11px;border-radius:7px;background:#fff}.assigned-classes a strong{font-size:.83rem;font-weight:600}.assigned-classes a small{font-size:.72rem}
.component-chip,.count-badge{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border-radius:999px;font-size:.7rem;font-weight:600}.component-chip{margin:2px;background:#e9f4fa;color:#075d8d}.count-badge{background:#e4f6ed;color:#087544}
.evaluation-page{display:grid;gap:12px}.evaluation-heading{margin:0}.year-selector{display:flex;align-items:flex-end;gap:10px;padding-top:12px;border-top:1px solid #edf1f3}.year-selector label{min-width:220px}.year-selector select{width:auto;min-width:220px}
.content-tabs{display:flex;gap:5px;padding:5px;border:1px solid var(--shell-border);border-radius:9px;background:#fff;overflow-x:auto}.content-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 13px;border-radius:7px;color:#536b79;font-size:.78rem;font-weight:600;text-decoration:none;white-space:nowrap}.content-tabs a:hover{background:#f0f7fa;color:var(--shell-blue)}.content-tabs a.active{background:#e1f1f9;color:#066a9f;box-shadow:none}
.tab-panel{margin:0}.section-heading{gap:14px;margin-bottom:13px}.section-heading h2{margin:0;font-size:1rem;font-weight:650}.section-heading p{margin:.2rem 0 0;color:var(--muted);font-size:.78rem}.date-stack{gap:3px}.date-stack span{font-size:.72rem}.evaluation-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.evaluation-actions .button-link,.evaluation-actions button{min-height:36px!important;padding:6px 9px!important;font-size:.72rem!important}.evaluation-card,.exam-card,.creation-panel{border-radius:9px;box-shadow:none}.evaluation-card{padding:14px}.evaluation-card header strong{font-size:.88rem;font-weight:650}.evaluation-card header span{font-size:.75rem}.evaluation-card dl{gap:8px}.evaluation-card dt,.evaluation-card dd{font-size:.74rem}.creation-panel summary{min-height:40px;padding:8px 12px;font-size:.8rem;font-weight:600}.exam-grid{gap:11px}.exam-card{padding:14px}.semester-form{gap:14px}.calendar-grid{gap:12px}
.program-heading,.program-section{border-radius:10px!important}.program-grid,.assignment-grid,.responsibility-grid{gap:11px}.program-card,.assignment-card,.responsibility-card{padding:14px;border-radius:9px}.program-card h3,.assignment-card h3,.responsibility-card h3{font-size:.9rem;font-weight:650}.program-card p,.assignment-card p,.responsibility-card p{font-size:.76rem}
@media(max-width:600px){.assigned-classes{padding:11px}.year-selector{display:grid}.year-selector label,.year-selector select{width:100%;min-width:0}.content-tabs{margin-inline:-2px}.content-tabs a{min-height:44px;padding-inline:12px}.section-heading{align-items:flex-start}.evaluation-card{padding:13px}.evaluation-actions{display:grid;grid-template-columns:1fr}.evaluation-actions .button-link,.evaluation-actions button{width:100%;min-height:44px!important}.component-chip{min-height:32px}.calendar-grid{grid-template-columns:1fr}}

/* Composants communs — groupe Saisie et contrôle. */
.grade-page{display:grid;gap:12px}.grade-page>.content-card:first-child h1{margin:.12rem 0;font-size:clamp(1.4rem,2vw,1.75rem);font-weight:650}.grade-sheet-grid{gap:12px}.sheet-card{gap:12px}.sheet-card header{gap:10px}.sheet-card header strong{font-size:.9rem;font-weight:650}.sheet-card header span{font-size:.74rem}.sheet-card dl{gap:7px}.sheet-card dl div{padding:7px 0}.sheet-card dt,.sheet-card dd{font-size:.74rem}.sheet-card dd{font-weight:600}.sheet-card .button-link{margin-top:auto}
.grade-heading{padding:18px 20px!important}.grade-heading>.text-link{display:inline-flex;min-height:36px;align-items:center}.sheet-meta{gap:7px;padding-top:11px}.sheet-meta span{font-size:.74rem}.grade-entry-card .grade-table{padding:0 18px}.grade-header{margin-inline:-18px;padding-inline:26px;min-height:44px}.grade-header span{font-size:.68rem;font-weight:650}.grade-row{min-height:58px;padding-block:8px}.student-cell strong{font-size:.82rem;font-weight:600}.student-cell small,.mobile-label{font-size:.7rem}.score-input input,.grade-row select{min-height:40px}.save-state{font-size:.72rem}.submission-bar{padding:13px 15px;border-radius:8px}.submission-bar strong{font-size:.84rem;font-weight:650}.submission-bar small{font-size:.72rem}
.conduct-page{gap:12px}.conduct-grid{gap:12px}.conduct-card{gap:9px}.conduct-card h2{font-size:.94rem;font-weight:650}.conduct-card p{font-size:.76rem}.conduct-row{gap:11px;padding:14px 0}.conduct-row header strong{font-size:.84rem;font-weight:650}.conduct-row header small{font-size:.72rem}.conduct-total{font-size:.84rem;font-weight:650}.conduct-fields{gap:11px}.conduct-fields>label{font-size:.76rem;font-weight:600}.conduct-fields textarea{min-height:84px;border-radius:8px;padding:9px 11px}.submission-actions{gap:9px}.submission-actions h2{font-size:1rem;font-weight:650}
.control-page{display:grid;gap:12px}.control-page>.content-card:first-child{margin:0}.control-page .year-selector{display:flex;align-items:end;gap:10px}.control-page .year-selector label{min-width:190px}.control-page .compact-actions{gap:6px}.control-page .compact-actions .button-link,.control-page .compact-actions button{min-height:36px!important;padding:6px 9px!important;font-size:.72rem!important}.danger-button{min-height:38px;padding:7px 11px;border-radius:8px;font-size:.76rem;font-weight:600}.control-card-grid{gap:11px}.control-card{padding:14px;border-radius:9px}.control-card h3{font-size:.88rem;font-weight:650}.control-card p{font-size:.76rem}.control-line{min-height:44px;padding:8px 0}.control-line span,.control-line strong{font-size:.74rem}.control-line strong{font-weight:600}.admin-grade-panels{gap:11px}.grade-history{margin-top:12px}
@media(max-width:600px){.grade-sheet-grid{grid-template-columns:1fr}.grade-heading{padding:15px!important}.grade-heading>.text-link{min-height:44px}.grade-entry-card .grade-table{padding:0 13px}.grade-row{min-height:0}.grade-row select,.score-input input{min-height:44px}.submission-bar{display:grid;gap:10px}.submission-bar button{width:100%}.conduct-grid{grid-template-columns:1fr}.conduct-row{padding:12px 0}.conduct-fields{grid-template-columns:1fr}.control-page .year-selector{display:grid}.control-page .year-selector label{min-width:0}.control-card-grid{grid-template-columns:1fr}.control-page .compact-actions{display:grid;grid-template-columns:1fr}.control-page .compact-actions .button-link,.control-page .compact-actions button{width:100%;min-height:44px!important}.control-line{align-items:flex-start;gap:8px}.danger-button{min-height:44px}}

/* Composants communs — groupe Résultats et documents. */
.authenticated-layout .panel{padding:18px 20px;border:1px solid var(--shell-border);border-radius:10px;background:#fff;box-shadow:var(--shell-shadow)}
.authenticated-layout .filter-bar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:14px 16px;border:1px solid var(--shell-border);border-radius:9px;background:#fff}.authenticated-layout .filter-bar label{min-width:165px;flex:1}.authenticated-layout .filter-bar button{flex:0 0 auto}
.result-class-grid{gap:12px;margin-top:14px}.result-class-card{display:grid;gap:12px}.result-class-card header h2{margin:0;font-size:.95rem;font-weight:650}.result-class-card header p{margin:.2rem 0 0;font-size:.74rem}.result-actions{display:grid;gap:7px}.result-actions form,.result-actions button{width:100%}.run-list{gap:6px}.run-list a{min-height:42px;padding:8px 10px;border-radius:7px;font-size:.76rem}.run-list a span{font-weight:500}.status-pill{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border-radius:999px;font-size:.68rem;font-weight:650}
.bulletin-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-block:12px}.bulletin-summary h2{margin:0;font-size:1rem;font-weight:650}.bulletin-summary p{margin:.2rem 0 0;font-size:.76rem}.readiness-counts{display:flex;gap:7px;flex-wrap:wrap}.compact-list{margin:6px 0 0;padding-inline-start:18px;font-size:.72rem}.archive-row{min-height:54px;padding:9px 0}.archive-row strong{font-size:.82rem;font-weight:600}.archive-row small{font-size:.7rem}.archive-row .button{min-height:38px}
.stats-grid{gap:12px;margin:14px 0}.stat-card{padding:15px 17px;border-radius:9px;box-shadow:var(--shell-shadow)}.stat-card span{font-size:.72rem}.stat-card strong{margin:.25rem 0;font-size:1.35rem;font-weight:650}.stat-card small{font-size:.7rem}.success-report-page{display:grid;gap:12px}.success-report-page>.page-heading{margin-bottom:0}.success-report-page .panel{margin:0}.success-report-page .panel h2{margin:0 0 12px;font-size:1rem;font-weight:650}.rate-bar{height:5px;border-radius:999px}.official-report-grid{gap:11px}.report-session{padding:14px;border-radius:9px}.report-session h3{font-size:.9rem;font-weight:650}.official-metrics{gap:7px}.official-metrics span{padding:8px;border-radius:7px;font-size:.72rem}.official-metrics strong{font-weight:650}.compact-export{gap:8px}.compact-export label{min-width:130px}
.export-grid,.import-grid,.export-history{gap:12px}.export-card,.import-card{padding:16px;border-radius:9px}.export-card h2,.import-card h2{font-size:.95rem;font-weight:650}.export-card p,.import-card p{font-size:.76rem}.mapping-grid,.preview-grid{gap:11px}.import-summary{gap:8px}.import-summary span{padding:9px;border-radius:7px;font-size:.75rem}.progress-step{font-size:.74rem;font-weight:600}
@media(max-width:600px){.authenticated-layout .panel{padding:14px}.authenticated-layout .filter-bar{display:grid;padding:12px}.authenticated-layout .filter-bar label,.authenticated-layout .filter-bar button{width:100%;min-width:0}.result-class-grid,.stats-grid,.official-report-grid{grid-template-columns:1fr}.bulletin-summary{align-items:flex-start;flex-direction:column}.readiness-counts{width:100%}.archive-row{align-items:flex-start;gap:10px}.archive-row .button{min-height:44px}.success-report-page .responsive-table td{font-size:.76rem}.stat-card{padding:13px}.official-metrics{grid-template-columns:1fr 1fr}.compact-export{display:grid}.compact-export label,.compact-export button{width:100%;min-width:0}.export-grid,.import-grid{grid-template-columns:1fr}}
/* Bandeau réservé aux environnements de simulation. */
.preproduction-banner{position:relative;z-index:1000;padding:.45rem 1rem;background:#f5c542;color:#18324b;text-align:center;font-size:.82rem;font-weight:700;letter-spacing:.01em}
