:root {
  --mimosa-red: #d71920;
  --mimosa-red-dark: #b8141b;
  --mimosa-red-soft: rgba(215,25,32,.10);
  --mimosa-navy: #07182d;
  --mimosa-blue: #eaf7ff;
  --mimosa-ink: #1d1d1f;
  --mimosa-muted: #6e6e73;
  --mimosa-border: rgba(0,0,0,.08);
  --mimosa-bg: #f5f5f7;
  --mimosa-card: rgba(255,255,255,.88);
  --mimosa-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  --mimosa-shadow-soft: 0 8px 24px rgba(15, 23, 42, .06);
  --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--apple-font);
  background:
    radial-gradient(circle at top left, rgba(215,25,32,.10), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(11,31,58,.10), transparent 26rem),
    var(--mimosa-bg);
  color: var(--mimosa-ink);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 292px;
  background: rgba(255,255,255,.78);
  border-right: 1px solid rgba(0,0,0,.07);
  padding: 18px;
  position: fixed;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.main-content {
  margin-left: 292px;
  width: calc(100% - 292px);
  padding: 30px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 8px 18px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  margin-bottom: 14px;
}
.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 6px;
  box-shadow: var(--mimosa-shadow-soft);
}
.brand strong { display:block; font-size: 16px; line-height: 1.05; letter-spacing: -.03em; }
.brand small { display: block; color: var(--mimosa-muted); margin-top: 4px; font-size: 12px; letter-spacing: 0; }
.nav-section-label {
  margin: 18px 12px 8px;
  color: #8b8b91;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 800;
}
.nav-link {
  color: #2f3033;
  border-radius: 15px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 650;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-link i {
  width: 29px;
  height: 29px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: #f2f2f4;
  color: var(--mimosa-navy);
  font-size: 15px;
}
.nav-link:hover { background: rgba(215,25,32,.07); color: var(--mimosa-red); transform: translateX(2px); }
.nav-link:hover i, .nav-link.active i { background: rgba(215,25,32,.12); color: var(--mimosa-red); }
.nav-link.active { background: #fff; color: var(--mimosa-red); font-weight: 800; box-shadow: 0 8px 20px rgba(215,25,32,.10); }
.sidebar-footer {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--mimosa-shadow-soft);
}
.user-chip { display:flex; align-items:center; gap:10px; }
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display:grid; place-items:center; color:#fff; font-weight:800;
  background: linear-gradient(135deg, var(--mimosa-red), var(--mimosa-navy));
}
.page-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.05;
}
.page-kicker {
  color: var(--mimosa-red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.page-subtitle { color: var(--mimosa-muted); max-width: 720px; }
.page-hero {
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 34px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
  box-shadow: var(--mimosa-shadow);
  overflow: hidden;
  position: relative;
}
.page-hero:after {
  content:""; position:absolute; inset:auto -70px -110px auto; width:280px; height:280px; border-radius:50%;
  background: radial-gradient(circle, rgba(215,25,32,.14), transparent 68%);
  pointer-events:none;
}
.card, .modal-content, .dropdown-menu { border-radius: 24px; }
.card-soft {
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 26px;
  box-shadow: var(--mimosa-shadow-soft);
  background: var(--mimosa-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.stat-card {
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 26px;
  padding: 22px;
  background: rgba(255,255,255,.90);
  box-shadow: var(--mimosa-shadow-soft);
  min-height: 126px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--mimosa-shadow); }
.stat-card .icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 16px;
  background: var(--mimosa-red-soft);
  color: var(--mimosa-red);
  font-size: 21px;
}
.stat-value { font-size: clamp(22px, 2.5vw, 30px); font-weight: 850; letter-spacing: -.055em; line-height: 1.1; }
.text-muted { color: var(--mimosa-muted) !important; }
.badge-soft { background: var(--mimosa-red-soft); color: var(--mimosa-red); border: 1px solid rgba(215,25,32,.12); }
.btn { border-radius: 14px; font-weight: 750; letter-spacing: -.018em; }
.btn-mimosa {
  background: linear-gradient(135deg, var(--mimosa-red), #f0444b);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 22px rgba(215,25,32,.22);
}
.btn-mimosa:hover { background: linear-gradient(135deg, var(--mimosa-red-dark), var(--mimosa-red)); color: #fff; transform: translateY(-1px); }
.btn-outline-secondary, .btn-outline-primary, .btn-outline-danger { border-radius: 14px; }
.form-label { color: #44454a; font-weight: 750; font-size: 13px; margin-bottom: 7px; }
.form-control, .form-select {
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  background-color: rgba(255,255,255,.92);
  font-size: 15px;
  min-height: 44px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.form-control:focus, .form-select:focus {
  border-color: rgba(215,25,32,.42);
  box-shadow: 0 0 0 .25rem rgba(215,25,32,.10);
}
.form-control-lg, .form-select-lg { min-height: 54px; border-radius: 18px; font-size: 17px; }
.table { font-size: 15px; vertical-align: middle; }
.table thead th {
  color: #7a7a80;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid rgba(0,0,0,.08);
  white-space: nowrap;
}
.table tbody tr { transition: background .16s ease; }
.table tbody tr:hover { background: rgba(215,25,32,.035); }
.table td { border-color: rgba(0,0,0,.055); }
.hero-login {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(7,24,45,.86) 0%, rgba(7,24,45,.58) 42%, rgba(215,25,32,.28) 100%),
    url('/assets/img/ecole-cour.jpeg') center/cover;
  position: relative;
  overflow: hidden;
}
.hero-login:before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 18% 18%, rgba(255,255,255,.18), transparent 24rem);
  pointer-events:none;
}
.login-panel {
  position: relative;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 34px;
  box-shadow: 0 30px 70px rgba(0,0,0,.24);
}
.login-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: #fff;
  border-radius: 26px;
  padding: 9px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--mimosa-shadow-soft);
}
.app-name { font-size: 24px; font-weight: 850; letter-spacing: -.045em; color: var(--mimosa-ink); }
.login-marketing { color:#fff; max-width: 600px; }
.login-marketing h1 { font-size: clamp(42px, 5.5vw, 72px); font-weight: 850; letter-spacing: -.065em; line-height:.96; }
.login-marketing p { font-size: 19px; color: rgba(255,255,255,.82); }
.subtle-card { background: rgba(255,255,255,.72); border:1px solid rgba(0,0,0,.06); border-radius:20px; }
.feature-pill {
  display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12); color:#fff; padding:8px 12px; border-radius:999px; font-size:13px; font-weight:700;
}
.alert { border-radius: 18px; border: 0; }
@media (max-width: 992px) {
  .sidebar { position: static; width: 100%; border-right:0; border-bottom: 1px solid rgba(0,0,0,.07); }
  .app-shell { display: block; }
  .main-content { margin-left: 0; width: 100%; padding: 18px; }
  .nav.flex-column { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px; }
  .sidebar-footer { display:none; }
  .page-hero { border-radius: 26px; padding: 22px; }
}
@media (max-width: 576px) {
  body { font-size: 16px; }
  .nav.flex-column { grid-template-columns: 1fr; }
  .login-panel { border-radius: 28px; }
  .stat-card { min-height:auto; }
}
@media print{
  body{background:#fff!important;color:#000!important;font-size:12px;}
  .sidebar,.no-print,.btn,form,.page-hero:after{display:none!important;}
  .main-content{margin:0!important;width:100%!important;padding:0!important;}
  .card-soft,.stat-card{box-shadow:none!important;border:1px solid #ddd!important;background:#fff!important;}
}

/* Dernières finitions design */
.input-group-text{
  border-radius:16px;
  border-color:rgba(0,0,0,.10);
  background:rgba(255,255,255,.82);
  font-weight:750;
  color:#44454a;
}
.table-responsive{
  border-radius:22px;
}
.empty-state{
  border:1px dashed rgba(0,0,0,.12);
  background:rgba(255,255,255,.62);
  border-radius:24px;
  padding:28px;
  text-align:center;
  color:var(--mimosa-muted);
}
.action-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}
.search-xl{
  min-height:56px;
  border-radius:20px;
  font-size:17px;
  padding-left:18px;
}
.role-note{
  border-left:4px solid var(--mimosa-red);
  background:rgba(215,25,32,.06);
  border-radius:18px;
  padding:14px 16px;
}
@media (max-width: 768px){
  .page-title{font-size:34px;}
  .main-content{padding:14px;}
  .stat-value{font-size:22px;}
  .btn{width:auto;}
}
