:root {
    --ink: #14231f;
    --ink-soft: #5e6e68;
    --muted: #8a9892;
    --line: #e5ebe7;
    --surface: #ffffff;
    --surface-soft: #f7faf8;
    --canvas: #f2f6f3;
    --green-950: #123529;
    --green-900: #164632;
    --green-800: #1d6949;
    --green-700: #287d55;
    --green-600: #339764;
    --green-500: #52b87b;
    --green-100: #e4f4ea;
    --green-50: #f1fbf4;
    --yellow: #f4c95d;
    --yellow-soft: #fff7df;
    --blue: #3675d1;
    --blue-soft: #eaf2ff;
    --red: #c74d5b;
    --red-soft: #fff0f1;
    --shadow-xs: 0 1px 2px rgba(18, 53, 41, .04);
    --shadow-sm: 0 5px 18px rgba(19, 54, 39, .06);
    --shadow-md: 0 14px 38px rgba(19, 54, 39, .09);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, select, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.hidden { display: none !important; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; display: flex; width: 268px; height: 100vh; flex-direction: column; border-right: 1px solid #dfe9e3; background: rgba(255,255,255,.92); box-shadow: 4px 0 28px rgba(18,53,41,.035); }
.sidebar-topline { display: flex; align-items: center; justify-content: space-between; min-height: 88px; padding: 0 25px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg,var(--green-700),var(--green-950)); box-shadow: 0 6px 14px rgba(40,125,85,.25); }
.brand-mark img { width: 42px; height: 42px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { color: var(--green-950); font-size: 19px; letter-spacing: -.045em; }
.brand-copy span { margin-top: 5px; color: var(--green-600); font-size: 8px; font-weight: 800; letter-spacing: .23em; }
.icon-button { display: inline-grid; width: 38px; height: 38px; place-items: center; border: 1px solid transparent; border-radius: 10px; color: var(--ink-soft); background: transparent; transition: background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease; }
.icon-button:hover { border-color: var(--line); color: var(--green-800); background: var(--surface-soft); }
.icon-button:active { transform: scale(.95); }
.icon-button svg { width: 19px; height: 19px; }
.sidebar-close, .menu-toggle { display: none; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; margin: 21px 17px 12px; padding: 12px 11px; border: 1px solid #e8efea; border-radius: 13px; background: var(--surface-soft); }
.profile-avatar { display: inline-grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg,#efc75e,#d99a3e); font-size: 13px; font-weight: 800; box-shadow: 0 4px 10px rgba(217,154,62,.2); }
.sidebar-profile > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.sidebar-profile strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #56bd7e; box-shadow: 0 0 0 3px #dcf3e4; }
.sidebar-nav { padding: 9px 14px; }
.nav-label { margin: 8px 12px 10px; color: #a3afa9; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 46px; margin: 3px 0; padding: 0 12px; border: 1px solid transparent; border-radius: 11px; color: #687871; font-size: 12px; font-weight: 600; transition: color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease; }
.nav-link:hover { color: var(--green-800); background: var(--green-50); transform: translateX(2px); }
.nav-link.is-active { border-color: #d7eedf; color: var(--green-900); background: var(--green-100); font-weight: 750; }
.nav-icon { display: inline-grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: #87968f; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-link.is-active .nav-icon { color: var(--green-700); background: rgba(255,255,255,.72); }
.sidebar-footer { margin-top: auto; padding: 18px 17px 21px; }
.help-card { display: flex; align-items: flex-start; gap: 10px; padding: 13px 12px; border: 1px solid #f0e5ba; border-radius: 13px; background: var(--yellow-soft); }
.help-icon { display: inline-grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #ae7b14; background: #ffedaa; }
.help-icon svg { width: 15px; height: 15px; }
.help-card strong, .help-card small { display: block; }
.help-card strong { color: #7d601e; font-size: 11px; }
.help-card small { margin-top: 4px; color: #a18443; font-size: 10px; line-height: 1.4; }
.sidebar-version { margin: 18px 2px 0; color: #a7b2ac; font-size: 10px; }
.sidebar-version span { float: right; color: #c1cbc5; }

.main-content { width: calc(100% - 268px); min-width: 0; margin-left: 268px; }
.topbar { border-bottom: 1px solid #e2eae5; background: rgba(248,251,249,.78); }
.topbar-inner { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 22px; max-width: 1420px; margin: 0 auto; padding: 0 42px; }
.topbar-heading { min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--green-700); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.breadcrumb-muted { color: #a2aea8; font-weight: 600; }
.breadcrumb-separator { color: #bec8c2; }
.topbar-heading h1 { margin: 6px 0 0; color: var(--ink); font-size: 22px; line-height: 1.1; letter-spacing: -.035em; }
.topbar-heading p { margin: 6px 0 0; color: var(--ink-soft); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.system-status { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #dcebe1; border-radius: 999px; color: var(--green-800); background: #f5fcf7; font-size: 10px; font-weight: 700; }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: #4cbb77; box-shadow: 0 0 0 3px #d9f2e1; }
.topbar-divider { width: 1px; height: 30px; background: var(--line); }
.topbar-user { display: flex; align-items: center; gap: 9px; }
.profile-avatar-small { width: 33px; height: 33px; border-radius: 10px; font-size: 12px; }
.topbar-user-copy { display: flex; flex-direction: column; }
.topbar-user-copy strong { color: var(--ink); font-size: 11px; }
.topbar-user-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.chevron { margin-left: 4px; color: #9ca9a2; font-size: 16px; line-height: 1; }
.content-wrap { max-width: 1420px; margin: 0 auto; padding: 35px 42px 60px; }

.flash { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px; padding: 13px 15px; border: 1px solid; border-radius: 12px; font-size: 12px; line-height: 1.5; box-shadow: var(--shadow-xs); animation: slide-down .3s ease-out; }
.flash-success { border-color: #ccebd7; color: #1f7246; background: #f1fbf4; }
.flash-error { border-color: #f1cfd3; color: #a63e4b; background: #fff5f5; }
.flash-icon { display: inline-grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: #43ae6d; font-size: 11px; font-weight: 800; }
.flash-error .flash-icon { background: #d65a67; }
.flash strong { font-weight: 750; }
.flash ul { margin: 5px 0 0; padding-left: 17px; }
.flash-close { margin: -2px 0 0 auto; border: 0; color: currentColor; background: transparent; font-size: 20px; line-height: 1; opacity: .5; }
.flash-close:hover { opacity: 1; }

.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; color: var(--green-700); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { width: 22px; height: 2px; border-radius: 2px; background: var(--yellow); content: ""; }
.page-intro h2 { margin: 0; color: var(--ink); font-size: 28px; line-height: 1.12; letter-spacing: -.055em; }
.page-intro p { max-width: 620px; margin: 9px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.page-intro-actions { display: flex; align-items: center; gap: 10px; }

.btn-primary, .btn-secondary, .btn-ghost, .btn-danger { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 10px; font-size: 11px; font-weight: 750; transition: transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease,color .18s ease; }
.btn-primary { border: 1px solid var(--green-700); color: #fff; background: var(--green-800); box-shadow: 0 6px 16px rgba(29,105,73,.18); }
.btn-primary:hover { border-color: var(--green-900); background: var(--green-900); box-shadow: 0 9px 20px rgba(29,105,73,.24); transform: translateY(-1px); }
.btn-secondary { border: 1px solid #d6e1da; color: var(--green-800); background: #fff; }
.btn-secondary:hover { border-color: #a9d5b9; color: var(--green-900); background: var(--green-50); }
.btn-ghost { min-height: 38px; padding: 0 11px; border: 1px solid transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--green-800); background: var(--green-50); }
.btn-danger { min-height: 32px; padding: 0 10px; border: 1px solid transparent; color: var(--red); background: transparent; }
.btn-danger:hover { border-color: #f5d7da; background: var(--red-soft); }
.btn-primary:active, .btn-secondary:active, .btn-ghost:active, .btn-danger:active { transform: scale(.97); }
.btn-icon { width: 16px; height: 16px; }

.dashboard-hero { position: relative; display: flex; min-height: 226px; align-items: center; justify-content: space-between; gap: 35px; overflow: hidden; margin-bottom: 22px; padding: 34px 42px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(118deg,#153e2e 0%,#216c49 62%,#389967 100%); box-shadow: var(--shadow-md); }
.dashboard-hero::before, .dashboard-hero::after { position: absolute; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; content: ""; pointer-events: none; }
.dashboard-hero::before { width: 340px; height: 340px; right: 100px; top: -190px; }
.dashboard-hero::after { width: 420px; height: 420px; right: -95px; bottom: -320px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; color: #d6f1df; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hero-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(244,201,93,.18); }
.dashboard-hero h2 { max-width: 560px; margin: 13px 0 10px; font-size: 31px; line-height: 1.1; letter-spacing: -.055em; }
.dashboard-hero p { max-width: 505px; margin: 0; color: #c2dfcc; font-size: 12px; line-height: 1.6; }
.hero-actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; min-width: 164px; }
.hero-actions .btn-primary { border-color: var(--yellow); color: #34280c; background: var(--yellow); box-shadow: 0 8px 18px rgba(23,48,34,.18); }
.hero-actions .btn-primary:hover { border-color: #ffda72; background: #ffda72; }
.hero-note { color: #b9d7c3; font-size: 10px; }
.hero-note strong { color: #edf8f0; }

.stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-bottom: 22px; }
.stat-card { position: relative; display: flex; min-height: 107px; align-items: center; gap: 13px; overflow: hidden; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-xs); transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.stat-card::after { position: absolute; right: -22px; bottom: -28px; width: 96px; height: 96px; border-radius: 50%; background: var(--green-50); content: ""; }
.stat-card:hover { border-color: #cfe5d7; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.stat-icon { position: relative; z-index: 1; display: inline-grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 13px; font-size: 19px; }
.stat-icon svg { width: 21px; height: 21px; }
.stat-icon-green { color: var(--green-700); background: var(--green-100); }
.stat-icon-blue { color: var(--blue); background: var(--blue-soft); }
.stat-icon-yellow { color: #b47f19; background: var(--yellow-soft); }
.stat-content { position: relative; z-index: 1; display: flex; flex-direction: column; }
.stat-label { color: var(--ink-soft); font-size: 10px; font-weight: 650; }
.stat-value { margin-top: 5px; color: var(--ink); font-size: 23px; font-weight: 780; letter-spacing: -.05em; }
.stat-trend { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; margin: 5px 0 0; color: #60a778; font-size: 9px; font-weight: 700; }
.stat-arrow { position: relative; z-index: 1; align-self: flex-start; margin: 3px 0 0 auto; color: #9baaa2; font-size: 18px; transition: color .18s ease,transform .18s ease; }
.stat-card:hover .stat-arrow { color: var(--green-700); transform: translateX(3px); }

.content-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(290px,.9fr); gap: 22px; }
.panel-card, .form-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-xs); }
.panel-card { padding: 23px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
.panel-title { margin: 0; color: var(--ink); font-size: 14px; font-weight: 760; letter-spacing: -.02em; }
.panel-description { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.panel-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green-700); font-size: 10px; font-weight: 750; white-space: nowrap; }
.panel-link:hover { color: var(--green-900); }
.panel-link svg { width: 13px; height: 13px; transition: transform .18s ease; }
.panel-link:hover svg { transform: translateX(3px); }
.quick-list { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.quick-link { display: flex; align-items: center; gap: 11px; padding: 11px 10px; border: 1px solid transparent; border-radius: 11px; transition: background .18s ease,border-color .18s ease,transform .18s ease; }
.quick-link:hover { border-color: #dceee2; background: var(--green-50); transform: translateX(2px); }
.quick-number { display: inline-grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--green-800); background: var(--green-100); font-size: 9px; font-weight: 800; }
.quick-copy { min-width: 0; flex: 1; }
.quick-link strong, .quick-link small { display: block; }
.quick-link strong { color: var(--ink); font-size: 11px; }
.quick-link small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.quick-arrow { color: #a8b5ad; font-size: 17px; }

.filter-card { margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.72); }
.filter-form { display: grid; grid-template-columns: minmax(180px,1fr) 210px auto auto; gap: 9px; align-items: center; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; top: 50%; left: 13px; width: 16px; height: 16px; color: #97a69e; transform: translateY(-50%); pointer-events: none; }
.search-wrap .form-input { padding-left: 39px; }
.form-input, .form-select { width: 100%; min-height: 42px; border: 1px solid #dce5df; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; font-size: 11px; transition: border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.form-input { padding: 0 13px; }
textarea.form-input { min-height: 118px; padding-top: 11px; padding-bottom: 11px; resize: vertical; }
.form-select { padding: 0 33px 0 12px; appearance: none; background-image: linear-gradient(45deg,transparent 50%,#83928b 50%),linear-gradient(135deg,#83928b 50%,transparent 50%); background-position: calc(100% - 16px) 18px,calc(100% - 11px) 18px; background-size: 5px 5px,5px 5px; background-repeat: no-repeat; }
.form-input::placeholder { color: #aab5af; }
.form-input:focus, .form-select:focus { border-color: #72bb8d; box-shadow: 0 0 0 3px rgba(82,184,123,.12); background: #fcfffd; }
.form-label { display: flex; align-items: baseline; gap: 3px; margin-bottom: 7px; color: #35443d; font-size: 11px; font-weight: 750; }
.form-label span { color: #d65a67; }
.form-help { margin: 6px 0 0; color: #98a59e; font-size: 10px; line-height: 1.45; }

.table-scroll { overflow-x: auto; border: 1px solid #edf2ee; border-radius: 11px; }
.data-table { width: 100%; min-width: 690px; border-collapse: collapse; font-size: 11px; }
.data-table th { padding: 12px 14px; border-bottom: 1px solid var(--line); color: #8a9891; background: #fbfdfc; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px; border-bottom: 1px solid #edf2ee; color: var(--ink-soft); vertical-align: middle; line-height: 1.45; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: #fbfefc; }
.data-table .cell-primary { color: var(--ink); font-weight: 750; }
.data-table .cell-secondary { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.data-table .cell-mono { color: #6d7d74; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 10px; }
.data-table .cell-muted { color: #829087; font-size: 10px; }
.data-table .cell-action { text-align: right; white-space: nowrap; }
.version-badge, .status-badge, .scope-badge { display: inline-flex; align-items: center; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.version-badge { padding: 5px 8px; color: #2e69bf; background: var(--blue-soft); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }
.status-badge { padding: 5px 8px; }
.status-green { color: #26774a; background: var(--green-100); }
.status-blue { color: #346cb8; background: var(--blue-soft); }
.status-amber { color: #a16f12; background: var(--yellow-soft); }
.status-red { color: #ae4451; background: var(--red-soft); }
.status-gray { color: #75817b; background: #eef2ef; }
.scope-badge { gap: 5px; padding: 5px 8px; }
.scope-badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.empty-state { padding: 36px 20px; color: var(--muted); text-align: center; }
.empty-state-icon { display: inline-grid; width: 40px; height: 40px; place-items: center; margin-bottom: 10px; border-radius: 13px; color: #91a097; background: #f0f5f1; }
.empty-state-icon svg { width: 20px; height: 20px; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { color: var(--ink-soft); font-size: 12px; }
.empty-state span { margin-top: 5px; font-size: 10px; }

/*.pagination-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--muted); font-size: 10px; }
.pagination-wrap nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.pagination-wrap nav > div:first-child { display: none; }
.pagination-wrap nav > div:last-child { display: flex; align-items: center; gap: 4px; max-width: 100%; padding-bottom: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.pagination-wrap nav > div:last-child::-webkit-scrollbar { display: none; }
.pagination-wrap span, .pagination-wrap a { display: inline-grid; min-width: 30px; height: 30px; flex: 0 0 auto; place-items: center; padding: 0 7px; border: 1px solid #e1e9e3; border-radius: 8px; color: var(--ink-soft); background: #fff; font-size: 10px; }
.pagination-wrap a:hover { border-color: #afd9bc; color: var(--green-800); background: var(--green-50); }
.pagination-wrap span[aria-current="page"] { border-color: var(--green-700); color: #fff; background: var(--green-700); }
.pagination-wrap span[aria-current="page"] { scroll-snap-align: center; }
.pagination-wrap svg { width: 14px; height: 14px; }  */

/* Alignement global */
nav.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

/* Réinitialisation de la liste des numéros (pour enlever les puces) */
ul.pagination-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.pagination-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Style uniforme pour tous les boutons (chiffres et flèches) */
.pagination-link,
.pagination-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid #e1e9e3;
  border-radius: 8px;
  color: var(--ink-soft, #374151);
  background: #ffffff;
  font-size: 11px;
  text-decoration: none;
  box-sizing: border-box;
}

/* Ajustement de la taille des icônes SVG */
.pagination-nav svg {
  width: 14px;
  height: 14px;
}

/* Effet au survol */
a.pagination-link:hover,
a.pagination-nav:hover {
  border-color: #afd9bc;
  color: var(--green-800, #166534);
  background: var(--green-50, #f0fdf4);
}

/* Page active */
.pagination-link.is-current {
  border-color: var(--green-700, #15803d);
  color: #ffffff;
  background: var(--green-700, #15803d);
  font-weight: 600;
}

/* Boutons désactivés */
.pagination-nav.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-layout { display: grid; grid-template-columns: minmax(0,1fr) 268px; gap: 22px; align-items: start; }
.form-card { padding: 29px; }
.form-card-header { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 27px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.form-card-icon { display: inline-grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 13px; color: var(--green-700); background: var(--green-100); }
.form-card-icon svg { width: 21px; height: 21px; }
.form-card-header h2 { margin: 0; color: var(--ink); font-size: 16px; letter-spacing: -.03em; }
.form-card-header p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.form-stack { display: flex; flex-direction: column; gap: 21px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-field-wide { grid-column: 1 / -1; }
.form-section-label { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--green-800); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.form-section-label::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.form-section { padding-top: 3px; }
.form-divider { height: 1px; margin: 1px 0; background: var(--line); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding-top: 21px; border-top: 1px solid var(--line); }
.form-aside { display: flex; flex-direction: column; gap: 14px; }
.info-card { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.72); }
.info-card-tint { border-color: #dceee2; background: var(--green-50); }
.info-card-icon { display: inline-grid; width: 31px; height: 31px; place-items: center; margin-bottom: 12px; border-radius: 10px; color: var(--green-700); background: var(--green-100); }
.info-card-icon svg { width: 17px; height: 17px; }
.info-card h3 { margin: 0; color: var(--ink); font-size: 12px; }
.info-card p { margin: 7px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.info-list { display: flex; flex-direction: column; gap: 10px; margin: 15px 0 0; padding: 0; list-style: none; }
.info-list li { display: flex; gap: 8px; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.info-list li::before { width: 5px; height: 5px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; color: var(--green-600); background: currentColor; content: ""; }
.rule-note { display: flex; gap: 9px; padding: 13px; border: 1px solid #f2e1ad; border-radius: 11px; color: #8d6c25; background: var(--yellow-soft); font-size: 10px; line-height: 1.5; }
.rule-note strong { color: #755515; }
.rule-note-icon { color: #ba8419; font-size: 13px; font-weight: 800; }
.check-field { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 12px; border: 1px solid #dce5df; border-radius: 10px; background: #fbfdfb; }
.check-field input { width: 15px; height: 15px; margin: 0; accent-color: var(--green-700); }
.check-field label { color: #48574f; font-size: 11px; font-weight: 650; }
#school-fields { padding: 14px; border: 1px solid #e4eee7; border-radius: 11px; background: var(--surface-soft); }

/* Champs mal renseignés après validation (ex. Code école) */
.form-input.has-error, .form-select.has-error { border-color: var(--red); background: var(--red-soft); }
.form-input.has-error:focus, .form-select.has-error:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.form-label.has-error { color: var(--red); }
.form-error { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--red); font-size: 10px; font-weight: 700; }
.form-error::before { display: inline-grid; width: 13px; height: 13px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-size: 9px; font-weight: 800; content: "!"; }

.loading-overlay { position: fixed; z-index: 100; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(16,39,29,.34); backdrop-filter: blur(4px); }
.loading-overlay.is-visible { display: flex; }
.loading-card { display: flex; min-width: 230px; align-items: center; flex-direction: column; gap: 8px; padding: 27px 30px; border: 1px solid rgba(255,255,255,.6); border-radius: 17px; color: var(--ink); background: #fff; box-shadow: var(--shadow-md); font-size: 11px; }
.loading-card strong { margin-top: 5px; font-size: 13px; }
.loading-card > span:last-child { color: var(--muted); font-size: 10px; }
.loader { width: 31px; height: 31px; border: 3px solid #dcefe3; border-top-color: var(--green-700); border-radius: 50%; animation: spin .75s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) { .sidebar { width: 238px; } .main-content { width: calc(100% - 238px); margin-left: 238px; } .topbar-inner, .content-wrap { padding-right: 28px; padding-left: 28px; } .form-layout { grid-template-columns: minmax(0,1fr) 230px; } }
@media (max-width: 860px) { .sidebar { width: 268px; transform: translateX(-100%); transition: transform .25s ease; } .sidebar.is-open { transform: translateX(0); box-shadow: 12px 0 35px rgba(18,53,41,.15); } .sidebar-backdrop { position: fixed; z-index: 20; inset: 0; display: none; background: rgba(18,53,41,.32); } .sidebar-backdrop.is-visible { display: block; } .sidebar-close, .menu-toggle { display: inline-grid; } .main-content { width: 100%; margin-left: 0; } .topbar-inner { min-height: 78px; padding: 0 22px; } .menu-toggle { flex: 0 0 auto; } .topbar-heading { flex: 1; } .topbar-heading h1 { font-size: 19px; } .topbar-actions { gap: 10px; } .topbar-divider, .topbar-user-copy, .chevron { display: none; } .content-wrap { padding: 27px 22px 46px; } .content-grid { grid-template-columns: 1fr; } .form-layout { grid-template-columns: 1fr; } .form-aside { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .system-status { padding: 8px; } .status-label { display: none; } .page-intro { align-items: flex-start; flex-direction: column; gap: 17px; } .page-intro h2 { font-size: 24px; } .page-intro-actions { width: 100%; } .page-intro-actions .btn-primary, .page-intro-actions .btn-secondary { flex: 1; } .dashboard-hero { min-height: 0; align-items: flex-start; flex-direction: column; padding: 27px 25px; } .dashboard-hero h2 { font-size: 26px; } .hero-actions { align-items: flex-start; } .stat-grid { grid-template-columns: 1fr; } .filter-form { grid-template-columns: 1fr 1fr; } .filter-form .search-wrap { grid-column: 1 / -1; } .filter-form .btn-primary, .filter-form .btn-secondary { width: 100%; } .filter-form .btn-ghost { grid-column: 1 / -1; } .panel-card { padding: 16px; } .form-card { padding: 19px 16px; } .form-grid { grid-template-columns: 1fr; } .form-field-wide { grid-column: auto; } .form-aside { display: flex; } .form-actions { flex-direction: column-reverse; align-items: stretch; } .form-actions .btn-primary, .form-actions .btn-secondary { width: 100%; } .pagination-wrap { align-items: flex-start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
