/* Dashboard admin — charte Compta Progresso (bleu #1A3C8A, gris #787878, or #CBA135) */
:root {
  --bleu: #1a3c8a;
  --bleu-fonce: #142a5c;
  --bleu-clair: #e8ecf5;
  --or: #cba135;
  --fond: #f7f8fa;
  --carte: #fff;
  --texte: #787878;
  --bord: #d8dde8;
}
* { box-sizing: border-box; }

/* Scroll conservé, barres de défilement masquées */
html {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body {
  margin: 0;
  min-width: 0;
  font-family: "Public Sans", system-ui, -apple-system, sans-serif;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.45;
  font-size: 15px;
  overflow-x: hidden;
  overflow-y: auto;
}
::-webkit-scrollbar {
  display: none;
}
h1, h2, h3, th {
  color: var(--bleu);
}
a { color: var(--bleu); }
.admin-nav {
  background: var(--bleu);
  color: #fff;
  padding: 0.75rem max(1rem, env(safe-area-inset-left)) 0.75rem max(1rem, env(safe-area-inset-right));
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  align-items: center;
  gap: 1rem;
  scrollbar-width: thin;
}
.admin-nav strong { flex-shrink: 0; }
.admin-nav a { flex-shrink: 0; white-space: nowrap; }
.admin-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.admin-nav a:hover { text-decoration: underline; }
.admin-nav .spacer { flex: 1; }
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 1rem max(1rem, env(safe-area-inset-left)) 1.5rem max(1rem, env(safe-area-inset-right)); }
@media (min-width: 768px) {
  .admin-wrap { padding: 1.5rem; }
}
h1 { font-size: 1.35rem; margin-top: 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.card {
  background: var(--carte);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--bord);
  box-shadow: 0 2px 8px rgba(26, 60, 138, 0.06);
}
.card .val { font-size: 1.75rem; font-weight: 700; color: var(--bleu); }
.card .lbl { font-size: 0.9rem; color: var(--texte); }
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem 0.25rem;
}

table.data {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--carte);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--bord);
  font-size: 0.84rem;
}
table.data th, table.data td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--bord);
  color: var(--texte);
}
table.data th { background: var(--bleu-clair); color: var(--bleu); font-weight: 700; }
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.84rem;
}
.btn-primary { background: var(--bleu); color: #fff; }
.btn-primary:hover { background: var(--bleu-fonce); }
.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.76rem; }
.filters { margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; font-size: 0.8rem; gap: 0.25rem; color: var(--texte); }
.filters select, .filters input {
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--bord);
}
form.inline { display: inline; }
.pagination { margin-top: 1rem; display: flex; gap: 0.5rem; align-items: center; }
.alert { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-ok { background: var(--bleu-clair); color: var(--bleu); }
.alert-err { background: #fdeaea; color: #a22; }
.form-grid { display: grid; gap: 1rem; max-width: 560px; }
.form-grid label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 500; color: var(--bleu); font-size: 0.84rem; }
.form-grid input, .form-grid textarea, .form-grid select {
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--bord);
  font: inherit;
  color: var(--texte);
}
textarea { min-height: 100px; resize: vertical; }
.login-body {
  height: 100vh;
  min-height: 100vh;
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(203, 161, 53, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(26, 60, 138, 0.2), transparent 30%),
    linear-gradient(135deg, #f6f7fb 0%, #eef2fb 48%, #fefcf8 100%);
}
.login-shell-admin {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

html:has(.login-body) {
  overflow: hidden;
}

.login-showcase,
.login-panel {
  position: relative;
  min-height: 100vh;
  padding: clamp(1.5rem, 3.2vw, 3rem);
}

.login-showcase {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(10, 28, 64, 0.95), rgba(26, 60, 138, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

.login-showcase::after {
  content: "";
  position: absolute;
  inset: auto -15% -25% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(203, 161, 53, 0.38), rgba(203, 161, 53, 0));
  pointer-events: none;
}

.login-showcase-inner {
  position: relative;
  z-index: 1;
  max-width: 31rem;
  margin: -1.35rem auto 0;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-brand-logo {
  display: block;
  width: min(100%, 165px);
  height: auto;
  margin: 0 auto 0.75rem;
}

.login-showcase h1 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  line-height: 1.02;
  text-align: center;
  text-wrap: balance;
}

.login-showcase .sub {
  margin: 0;
  color: rgba(237, 243, 255, 0.82);
  font-size: 0.93rem;
  line-height: 1.6;
  text-align: center;
}

.login-feature-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.login-feature-item {
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.login-feature-item strong,
.login-feature-item span {
  display: block;
}

.login-feature-item strong {
  margin-bottom: 0.15rem;
  color: #fff;
  font-size: 0.88rem;
}

.login-feature-item span {
  color: rgba(237, 243, 255, 0.78);
  font-size: 0.84rem;
  line-height: 1.45;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 249, 252, 0.96));
}

.login-form-wrap {
  width: min(100%, 390px);
}

.login-badge {
  margin-bottom: 0.8rem;
  color: var(--bleu);
  background: rgba(26, 60, 138, 0.08);
}

.login-form-wrap h2 {
  margin: 0;
  color: #112654;
  font-size: 1.75rem;
}

.login-card-sub {
  margin: 0.55rem 0 1.15rem;
  color: #667386;
  font-size: 0.9rem;
  line-height: 1.55;
}

.login-message {
  display: none;
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: #fff0f0;
  border: 1px solid #f3c9c9;
  color: #b42318;
  font-size: 0.86rem;
}

.login-message.is-visible {
  display: block;
}

.login-form-grid {
  gap: 0.85rem;
}

.login-form-grid label {
  gap: 0.35rem;
  color: #1b2f55;
  font-size: 0.86rem;
}

.login-form-grid label span {
  font-weight: 700;
}

.login-form-grid input {
  min-height: 46px;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #d6deed;
  background: #fbfcff;
  color: #22324d;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-form-grid input::placeholder {
  color: #93a0b5;
}

.login-form-grid input:focus {
  outline: none;
  border-color: rgba(26, 60, 138, 0.5);
  box-shadow: 0 0 0 4px rgba(26, 60, 138, 0.12);
  background: #fff;
}

.login-submit {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.login-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.login-orb,
.login-grid-glow {
  position: fixed;
  pointer-events: none;
}

.login-orb {
  z-index: 0;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.65;
}

.login-orb-a {
  top: 5%;
  right: 8%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(203, 161, 53, 0.42), rgba(203, 161, 53, 0));
}

.login-orb-b {
  left: 3%;
  bottom: 10%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(26, 60, 138, 0.24), rgba(26, 60, 138, 0));
}

.login-grid-glow {
  inset: auto 0 0 0;
  height: 38vh;
  background:
    linear-gradient(transparent, rgba(255, 255, 255, 0.12)),
    linear-gradient(90deg, rgba(26, 60, 138, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(26, 60, 138, 0.05) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 85%);
}

.admin-dashboard-page {
  background:
    radial-gradient(circle at top right, rgba(203, 161, 53, 0.12), transparent 28%),
    linear-gradient(180deg, #f5f7fc 0%, #eef3fb 100%);
}

.dashboard-layout {
  min-height: 100vh;
  display: block;
}

.dashboard-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  padding: 0.85rem 1rem 1rem;
  background:
    linear-gradient(180deg, #0e2454 0%, #153170 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dashboard-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.15rem 0.35rem 0.65rem;
  text-decoration: none;
}

.dashboard-brand-logo {
  width: 52px;
  height: auto;
  flex: 0 0 auto;
}

.dashboard-sidebar-brand strong,
.dashboard-sidebar-brand span {
  display: block;
}

.dashboard-sidebar-brand strong {
  font-size: 0.92rem;
  color: #fff;
}

.dashboard-sidebar-brand span {
  color: rgba(222, 230, 251, 0.7);
  font-size: 0.78rem;
}

.dashboard-sidebar-nav {
  display: grid;
  gap: 0.35rem;
}

.dashboard-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  color: rgba(236, 241, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dashboard-nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.dashboard-nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.dashboard-sidebar-nav a:hover,
.dashboard-sidebar-nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateX(2px);
}

.dashboard-sidebar-footer {
  margin-top: auto;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar-footer p {
  margin: 0 0 1rem;
  color: rgba(235, 241, 255, 0.76);
  font-size: 0.8rem;
  line-height: 1.6;
}

.dashboard-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
}

.dashboard-main {
  min-width: 0;
  margin-left: 280px;
}

.dashboard-topbar {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.5rem 0.55rem;
  border-bottom: 1px solid rgba(26, 60, 138, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58));
  backdrop-filter: blur(16px);
}

.dashboard-topbar-copy {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1 1 auto;
}

.dashboard-topbar-logo {
  display: block;
  width: 42px;
  height: auto;
  margin-bottom: 0;
  filter: brightness(0) saturate(100%) invert(18%) sepia(51%) saturate(1881%) hue-rotate(204deg) brightness(93%) contrast(93%);
}

.dashboard-topbar-search {
  position: relative;
  flex: 1 1 560px;
  max-width: 760px;
}

.dashboard-topbar-search-icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8090aa;
  transform: translateY(-50%);
  pointer-events: none;
}

.dashboard-topbar-search-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.dashboard-topbar-search input {
  width: 100%;
  height: 42px;
  padding: 0 0.95rem 0 2.45rem;
  border: 1px solid rgba(26, 60, 138, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #26406f;
  font: inherit;
  font-size: 0.82rem;
  box-shadow: 0 10px 22px rgba(26, 60, 138, 0.05);
}

.dashboard-topbar-search input::placeholder {
  color: #8d99ad;
}

.dashboard-topbar-search input:focus {
  outline: none;
  border-color: rgba(26, 60, 138, 0.25);
  box-shadow: 0 0 0 4px rgba(26, 60, 138, 0.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dashboard-topbar h1 {
  margin: 0.15rem 0 0;
  color: #102659;
  font-size: 1.6rem;
  line-height: 1.02;
}

.dashboard-topbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.dashboard-topbar-action,
.dashboard-topbar-user {
  display: inline-flex;
  align-items: center;
  color: #1d2a44;
}

.dashboard-topbar-action {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  justify-content: center;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.dashboard-topbar-action svg {
  width: 18px;
  height: 18px;
  display: block;
}

.dashboard-topbar-action-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e12626;
}

.dashboard-topbar-notifications {
  position: relative;
}

.dashboard-topbar-activity {
  position: relative;
}

.dashboard-notifications-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: -8px;
  z-index: 80;
  width: 340px;
  border-radius: 18px;
  border: 1px solid rgba(26, 60, 138, 0.1);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(17, 38, 84, 0.14);
  overflow: hidden;
}

.dashboard-activity-panel {
  right: auto;
  left: -12px;
}

.dashboard-notifications-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem 0.8rem;
  border-bottom: 1px solid rgba(26, 60, 138, 0.08);
}

.dashboard-notifications-head strong {
  color: #132654;
  font-size: 0.92rem;
}

.dashboard-notifications-head span {
  color: #7d889d;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-notifications-list {
  display: grid;
}

.dashboard-notification-item {
  display: flex;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  text-decoration: none;
}

.dashboard-notification-item + .dashboard-notification-item {
  border-top: 1px solid rgba(26, 60, 138, 0.06);
}

.dashboard-notification-item:hover {
  background: rgba(26, 60, 138, 0.03);
}

.dashboard-notification-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 0.35rem;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #1a3c8a, #5a89ef);
}

.dashboard-notification-copy strong,
.dashboard-notification-copy p,
.dashboard-notification-copy span {
  display: block;
}

.dashboard-notification-copy strong {
  color: #132654;
  font-size: 0.84rem;
  line-height: 1.3;
}

.dashboard-notification-copy p {
  margin: 0.22rem 0 0;
  color: #6d7686;
  font-size: 0.78rem;
  line-height: 1.5;
}

.dashboard-notification-copy span {
  margin-top: 0.35rem;
  color: #8d99ad;
  font-size: 0.72rem;
}

.dashboard-notification-empty {
  padding: 1rem;
  color: #7d889d;
  font-size: 0.8rem;
}

.dashboard-topbar-user {
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.35rem 0.8rem 0.35rem 0.45rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(26, 60, 138, 0.06);
}

.dashboard-topbar-user-avatar-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
}

.dashboard-topbar-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(26, 60, 138, 0.95), rgba(70, 113, 211, 0.9));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.dashboard-topbar-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-topbar-user-name {
  display: block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1d2a44;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
}

.dashboard-topbar-user-role {
  color: #8a8f9d;
  font-size: 0.78rem;
  line-height: 1.1;
}

.admin-dashboard-page .admin-wrap {
  max-width: 1240px;
  padding-top: 1.15rem;
  padding-bottom: 2rem;
}

.admin-page-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding: 1.2rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(26, 60, 138, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 253, 0.92));
  box-shadow: 0 16px 34px rgba(26, 60, 138, 0.06);
  backdrop-filter: blur(10px);
}

.admin-page-header-copy {
  max-width: 48rem;
}

.admin-page-header-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #5d77ad;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-page-header h2 {
  margin: 0;
  color: #102659;
  font-size: 1.24rem;
  line-height: 1.1;
}

.admin-page-header p {
  margin: 0.45rem 0 0;
  color: #667386;
  font-size: 0.84rem;
  line-height: 1.6;
}

.admin-page-header-meta {
  min-width: 170px;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(26, 60, 138, 0.08);
  background:
    linear-gradient(180deg, rgba(26, 60, 138, 0.05), rgba(26, 60, 138, 0.03));
  white-space: nowrap;
}

.admin-page-header-meta-label,
.admin-page-header-meta strong {
  display: block;
}

.admin-page-header-meta-label {
  margin-bottom: 0.15rem;
  color: #7a8598;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-page-header-meta strong {
  color: #26406f;
  font-size: 0.9rem;
  line-height: 1.3;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 340px);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.15rem;
}

.dashboard-hero-copy,
.dashboard-highlight,
.dashboard-stat,
.dashboard-panel,
.dashboard-summary-card,
.dashboard-summary-note {
  border: 1px solid rgba(26, 60, 138, 0.1);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 45px rgba(26, 60, 138, 0.08);
  backdrop-filter: blur(10px);
}

.dashboard-hero-copy {
  padding: 1.6rem 1.75rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(12, 33, 78, 0.98), rgba(26, 60, 138, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  color: #fff;
}

.dashboard-kicker,
.dashboard-section-label,
.dashboard-note-label,
.dashboard-highlight-label,
.dashboard-stat-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-kicker {
  color: #2c4d8f;
}

.dashboard-hero-copy h2 {
  margin: 0.5rem 0 0.45rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
  color: #fff;
}

.dashboard-lead {
  margin: 0;
  max-width: 44rem;
  color: rgba(236, 241, 255, 0.84);
  font-size: 0.88rem;
  line-height: 1.7;
}

.dashboard-highlight {
  padding: 1.5rem;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-highlight-label {
  color: var(--bleu);
}

.dashboard-highlight strong {
  margin: 0.45rem 0 0.25rem;
  color: #102659;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.dashboard-highlight span:last-child {
  color: #6c7892;
  font-size: 0.84rem;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-stat {
  border-radius: 24px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.dashboard-stat strong {
  display: block;
  margin: 0.4rem 0 0.3rem;
  color: #102659;
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  line-height: 1;
}

.dashboard-stat p {
  margin: 0;
  color: #6d7686;
  font-size: 0.82rem;
  line-height: 1.55;
}

.dashboard-stat::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.dashboard-stat-primary {
  background:
    linear-gradient(145deg, rgba(19, 46, 106, 0.96), rgba(27, 64, 145, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

.dashboard-stat-primary .dashboard-stat-label,
.dashboard-stat-primary strong,
.dashboard-stat-primary p {
  color: #fff;
}

.dashboard-stat-accent {
  background:
    linear-gradient(145deg, rgba(203, 161, 53, 0.18), rgba(255, 255, 255, 0.92));
}

.dashboard-stat-indigo {
  border-color: rgba(49, 78, 167, 0.2);
}

.dashboard-stat-emerald {
  border-color: rgba(28, 130, 102, 0.16);
  background:
    linear-gradient(145deg, rgba(228, 248, 240, 0.96), rgba(241, 252, 247, 0.92));
}

.dashboard-stat-emerald .dashboard-stat-label,
.dashboard-stat-emerald strong {
  color: #146c59;
}

.dashboard-stat-emerald p {
  color: #5d7d74;
}

.dashboard-stat-emerald::after {
  background: rgba(20, 108, 89, 0.08);
}

.dashboard-stat-amber {
  border-color: rgba(214, 142, 23, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 244, 220, 0.98), rgba(255, 250, 239, 0.94));
}

.dashboard-stat-amber .dashboard-stat-label,
.dashboard-stat-amber strong {
  color: #ad6400;
}

.dashboard-stat-amber p {
  color: #8d7758;
}

.dashboard-stat-amber::after {
  background: rgba(214, 142, 23, 0.09);
}

.dashboard-stat-rose {
  border-color: rgba(196, 70, 104, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 237, 243, 0.98), rgba(255, 247, 249, 0.94));
}

.dashboard-stat-rose .dashboard-stat-label,
.dashboard-stat-rose strong {
  color: #b03b63;
}

.dashboard-stat-rose p {
  color: #8d6a77;
}

.dashboard-stat-rose::after {
  background: rgba(196, 70, 104, 0.08);
}

.formations-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.formations-overview-card,
.formations-card {
  border: 1px solid rgba(26, 60, 138, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(26, 60, 138, 0.06);
  backdrop-filter: blur(10px);
}

.formations-overview-card {
  padding: 1.2rem 1.25rem;
  border-radius: 24px;
}

.formations-overview-primary {
  background:
    linear-gradient(145deg, rgba(19, 46, 106, 0.96), rgba(27, 64, 145, 0.92));
}

.formations-overview-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #72819a;
}

.formations-overview-card strong {
  display: block;
  margin: 0.4rem 0 0.25rem;
  color: #102659;
  font-size: 1.6rem;
  line-height: 1;
}

.formations-overview-card p {
  margin: 0;
  color: #667386;
  font-size: 0.82rem;
  line-height: 1.55;
}

.formations-overview-primary .formations-overview-label,
.formations-overview-primary strong,
.formations-overview-primary p {
  color: #fff;
}

.formations-list {
  display: grid;
  gap: 1rem;
}

.formations-card {
  padding: 1.2rem 1.25rem;
  border-radius: 26px;
}

.formations-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.formations-code {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #5d77ad;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.formations-title {
  margin: 0;
  color: #102659;
  font-size: 1.08rem;
  line-height: 1.25;
}

.formations-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.formations-status-open {
  background: rgba(27, 145, 106, 0.12);
  color: #167456;
}

.formations-status-closed {
  background: rgba(173, 100, 0, 0.12);
  color: #9d5d00;
}

.formations-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.formations-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #27406e;
  font-size: 0.82rem;
  font-weight: 600;
}

.formations-fields input,
.formations-fields textarea,
.formations-fields select {
  padding: 0.72rem 0.82rem;
  border-radius: 14px;
  border: 1px solid #d7dfec;
  background: #fbfcff;
  color: #26406f;
  font: inherit;
}

.formations-fields textarea {
  min-height: 130px;
}

.formations-field-wide {
  grid-column: 1 / -1;
}

.formations-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 60, 138, 0.08);
}

.formations-price-preview span,
.formations-price-preview strong {
  display: block;
}

.formations-price-preview span {
  color: #7d889d;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.formations-price-preview strong {
  margin-top: 0.2rem;
  color: #102659;
  font-size: 1rem;
}

.ressources-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.ressources-overview-card,
.ressources-form-card,
.ressources-item,
.ressources-empty {
  border: 1px solid rgba(26, 60, 138, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(26, 60, 138, 0.06);
  backdrop-filter: blur(10px);
}

.ressources-overview-card {
  padding: 1.2rem 1.25rem;
  border-radius: 24px;
}

.ressources-overview-primary {
  background:
    linear-gradient(145deg, rgba(19, 46, 106, 0.96), rgba(27, 64, 145, 0.92));
}

.ressources-overview-label,
.ressources-section-kicker,
.ressources-item-ue {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ressources-overview-label {
  color: #72819a;
}

.ressources-overview-card strong {
  display: block;
  margin: 0.4rem 0 0.25rem;
  color: #102659;
  font-size: 1.6rem;
  line-height: 1;
}

.ressources-overview-card p {
  margin: 0;
  color: #667386;
  font-size: 0.82rem;
  line-height: 1.55;
}

.ressources-overview-primary .ressources-overview-label,
.ressources-overview-primary strong,
.ressources-overview-primary p {
  color: #fff;
}

.ressources-compose,
.ressources-library {
  margin-bottom: 1rem;
}

.ressources-form-card {
  padding: 1.2rem 1.25rem;
  border-radius: 26px;
}

.ressources-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ressources-section-kicker,
.ressources-item-ue {
  color: #5d77ad;
}

.ressources-section-head h1,
.ressources-item h2 {
  margin: 0.25rem 0 0;
  color: #102659;
  font-size: 1.08rem;
  line-height: 1.25;
}

.ressources-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ressources-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #27406e;
  font-size: 0.82rem;
  font-weight: 600;
}

.ressources-form-grid input,
.ressources-form-grid select {
  padding: 0.72rem 0.82rem;
  border-radius: 14px;
  border: 1px solid #d7dfec;
  background: #fbfcff;
  color: #26406f;
  font: inherit;
}

.ressources-field-wide {
  grid-column: 1 / -1;
}

.ressources-list {
  display: grid;
  gap: 1rem;
}

.ressources-item {
  padding: 1.15rem 1.2rem;
  border-radius: 24px;
}

.ressources-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ressources-type {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.ressources-type-video {
  background: rgba(26, 60, 138, 0.1);
  color: #1a3c8a;
}

.ressources-type-pdf {
  background: rgba(173, 100, 0, 0.12);
  color: #9d5d00;
}

.ressources-item-meta {
  margin-top: 0.55rem;
  color: #7d889d;
  font-size: 0.76rem;
}

.ressources-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ressources-delete-btn {
  background: #fff1f1;
  color: #b42318;
  border: 1px solid #f1caca;
}

.ressources-empty {
  padding: 1rem 1.15rem;
  border-radius: 20px;
  color: #7d889d;
  font-size: 0.82rem;
}

.temoignages-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.temoignages-overview-card,
.temoignages-form-card,
.temoignages-item,
.temoignages-empty {
  border: 1px solid rgba(26, 60, 138, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(26, 60, 138, 0.06);
  backdrop-filter: blur(10px);
}

.temoignages-overview-card {
  padding: 1.2rem 1.25rem;
  border-radius: 24px;
}

.temoignages-overview-primary {
  background:
    linear-gradient(145deg, rgba(19, 46, 106, 0.96), rgba(27, 64, 145, 0.92));
}

.temoignages-overview-label,
.temoignages-section-kicker,
.temoignages-item-ue {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.temoignages-overview-label {
  color: #72819a;
}

.temoignages-overview-card strong {
  display: block;
  margin: 0.4rem 0 0.25rem;
  color: #102659;
  font-size: 1.6rem;
  line-height: 1;
}

.temoignages-overview-card p {
  margin: 0;
  color: #667386;
  font-size: 0.82rem;
  line-height: 1.55;
}

.temoignages-overview-primary .temoignages-overview-label,
.temoignages-overview-primary strong,
.temoignages-overview-primary p {
  color: #fff;
}

.temoignages-compose,
.temoignages-library {
  margin-bottom: 1rem;
}

.temoignages-form-card {
  padding: 1.2rem 1.25rem;
  border-radius: 26px;
}

.temoignages-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.temoignages-section-kicker,
.temoignages-item-ue {
  color: #5d77ad;
}

.temoignages-section-head h1,
.temoignages-item h2 {
  margin: 0.25rem 0 0;
  color: #102659;
  font-size: 1.08rem;
  line-height: 1.25;
}

.temoignages-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.temoignages-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #27406e;
  font-size: 0.82rem;
  font-weight: 600;
}

.temoignages-form-grid input,
.temoignages-form-grid textarea {
  padding: 0.72rem 0.82rem;
  border-radius: 14px;
  border: 1px solid #d7dfec;
  background: #fbfcff;
  color: #26406f;
  font: inherit;
}

.temoignages-form-grid textarea {
  min-height: 140px;
}

.temoignages-field-wide {
  grid-column: 1 / -1;
}

.temoignages-list {
  display: grid;
  gap: 1rem;
}

.temoignages-item {
  padding: 1.15rem 1.2rem;
  border-radius: 24px;
}

.temoignages-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.temoignages-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.temoignages-status-active {
  background: rgba(27, 145, 106, 0.12);
  color: #167456;
}

.temoignages-status-inactive {
  background: rgba(173, 100, 0, 0.12);
  color: #9d5d00;
}

.temoignages-item-text {
  margin: 0.8rem 0 0;
  color: #556377;
  line-height: 1.75;
}

.temoignages-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.8rem;
  color: #7d889d;
  font-size: 0.76rem;
}

.temoignages-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.temoignages-delete-btn {
  background: #fff1f1;
  color: #b42318;
  border: 1px solid #f1caca;
}

.temoignages-empty {
  padding: 1rem 1.15rem;
  border-radius: 20px;
  color: #7d889d;
  font-size: 0.82rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-panel {
  border-radius: 28px;
  padding: 1.35rem;
}

.dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-panel-head h2,
.dashboard-summary-card h2 {
  margin: 0.3rem 0 0;
  color: #102659;
  font-size: 1.15rem;
}

.dashboard-section-label,
.dashboard-note-label,
.dashboard-stat-label {
  color: #6c7892;
}

.dashboard-program-list {
  display: grid;
  gap: 1rem;
}

.dashboard-program-item {
  padding: 1rem;
  border-radius: 20px;
  background: #f7f9fd;
  border: 1px solid #e1e8f5;
}

.dashboard-program-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  color: #102659;
}

.dashboard-program-meta strong {
  font-size: 0.9rem;
}

.dashboard-program-meta span,
.dashboard-program-item small {
  color: #6d7686;
  font-size: 0.8rem;
}

.dashboard-progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe7f4;
  margin-bottom: 0.45rem;
}

.dashboard-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bleu), #3e6fd3);
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.dashboard-action-card {
  display: block;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid #e1e8f5;
  background: #f7f9fd;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 60, 138, 0.25);
  box-shadow: 0 10px 26px rgba(26, 60, 138, 0.08);
}

.dashboard-action-card strong,
.dashboard-action-card span {
  display: block;
}

.dashboard-action-card strong {
  margin-bottom: 0.35rem;
  color: #102659;
  font-size: 0.88rem;
}

.dashboard-action-card span {
  color: #6d7686;
  font-size: 0.8rem;
  line-height: 1.55;
}

.etudiant-detail-card {
  margin: 1.25rem 0 1.5rem;
  padding: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.etudiants-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.35rem;
}

.etudiants-overview-card {
  padding: 1.1rem 1.15rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.etudiants-overview-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border-color: transparent;
}

.etudiants-overview-label,
.etudiants-overview-card strong,
.etudiants-overview-card p {
  display: block;
}

.etudiants-overview-label {
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.etudiants-overview-card strong {
  font-size: 1.5rem;
  color: #0f172a;
}

.etudiants-overview-card p {
  margin: 0.5rem 0 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.55;
}

.etudiants-overview-primary .etudiants-overview-label,
.etudiants-overview-primary strong,
.etudiants-overview-primary p {
  color: #fff;
}

.etudiant-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.etudiant-detail-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.etudiant-detail-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.etudiant-detail-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.etudiant-detail-head h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #0f172a;
}

.etudiant-detail-subtitle {
  margin: 0.3rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.etudiant-detail-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.etudiant-detail-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.etudiant-detail-badge.is-active {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.etudiant-detail-badge.is-pending {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.etudiant-detail-badge.is-suspended {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.etudiant-detail-badge.is-neutral {
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
}

.etudiant-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.etudiant-detail-grid div {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(241, 245, 249, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.etudiant-detail-grid strong,
.etudiant-detail-grid span {
  display: block;
}

.etudiant-detail-grid strong {
  margin-bottom: 0.42rem;
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.etudiant-detail-grid span {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.etudiants-table-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.etudiant-payment-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.etudiant-deadline-alert {
  display: grid;
  gap: 0.25rem;
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.etudiant-deadline-alert strong,
.etudiant-deadline-alert span,
.etudiant-deadline-alert small {
  display: block;
}

.etudiant-deadline-alert strong {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.etudiant-deadline-alert span {
  font-size: 0.96rem;
  font-weight: 700;
}

.etudiant-deadline-alert small {
  font-size: 0.82rem;
}

.etudiant-deadline-alert.is-watch {
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
}

.etudiant-deadline-alert.is-urgent {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.etudiant-payment-metric {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.etudiant-payment-metric strong,
.etudiant-payment-metric span {
  display: block;
}

.etudiant-payment-metric strong {
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.etudiant-payment-metric span {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
}

.etudiant-payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  margin-top: 1rem;
}

.etudiant-payment-panel {
  padding: 1.1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.etudiant-payment-panel-head {
  margin-bottom: 0.95rem;
}

.etudiant-payment-panel-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}

.etudiant-payment-form {
  display: grid;
  gap: 0.85rem;
}

.etudiant-payment-form label span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.etudiant-payment-form input,
.etudiant-payment-form select {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid #d7dfeb;
  background: #fff;
  color: #0f172a;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.etudiant-payment-form input:focus,
.etudiant-payment-form select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.etudiant-payment-history {
  display: grid;
  gap: 0.75rem;
}

.etudiant-payment-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.etudiant-payment-item strong,
.etudiant-payment-item span,
.etudiant-payment-item small {
  display: block;
}

.etudiant-payment-item strong {
  margin-bottom: 0.28rem;
  font-size: 0.96rem;
  color: #0f172a;
}

.etudiant-payment-item span {
  color: #475569;
  font-size: 0.84rem;
}

.etudiant-payment-item small {
  margin-top: 0.28rem;
  color: #64748b;
  font-size: 0.76rem;
}

.etudiant-payment-empty {
  margin: 0;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
  color: #64748b;
}

.etudiant-deadline-layout {
  margin-top: 1rem;
}

.etudiant-deadline-history {
  display: grid;
  gap: 0.75rem;
}

.etudiant-deadline-disabled strong {
  color: #0f172a;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 1rem;
}

.dashboard-summary-card,
.dashboard-summary-note {
  border-radius: 28px;
  padding: 1.35rem;
}

.dashboard-summary-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: #5e6a81;
  font-size: 0.84rem;
}

.dashboard-summary-list li + li {
  margin-top: 0.55rem;
}

.dashboard-summary-note p {
  margin: 0.45rem 0 0;
  color: #5e6a81;
  font-size: 0.84rem;
  line-height: 1.65;
}

.dashboard-summary-note a {
  font-weight: 700;
  text-decoration: none;
}

.dashboard-summary-note a:hover {
  text-decoration: underline;
}

@keyframes cp-fade-in-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
table.animate-rows tbody tr {
  opacity: 0;
  animation: cp-fade-in-up 0.45s ease forwards;
}
table.animate-rows tbody tr:nth-child(1) { animation-delay: 0.04s; }
table.animate-rows tbody tr:nth-child(2) { animation-delay: 0.1s; }
table.animate-rows tbody tr:nth-child(3) { animation-delay: 0.16s; }
table.animate-rows tbody tr:nth-child(4) { animation-delay: 0.22s; }
table.animate-rows tbody tr:nth-child(5) { animation-delay: 0.28s; }
table.animate-rows tbody tr:nth-child(n + 6) { animation-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
  table.animate-rows tbody tr { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .dashboard-layout {
    display: block;
  }

  .dashboard-sidebar {
    position: static;
    width: auto;
    height: auto;
  }

  .dashboard-topbar {
    padding: 1rem 1rem 0;
    flex-direction: column;
    align-items: flex-start;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
  }

  .dashboard-topbar-copy {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-topbar-search {
    width: 100%;
  }

  .dashboard-notifications-panel {
    right: auto;
    left: 0;
    width: min(340px, calc(100vw - 2rem));
  }

  .dashboard-activity-panel {
    left: 0;
  }

  .dashboard-topbar-meta {
    justify-content: flex-start;
  }

  .dashboard-main {
    margin-left: 0;
  }

  .dashboard-hero,
  .dashboard-grid,
  .dashboard-summary,
  .admin-page-header {
    grid-template-columns: 1fr;
  }

  .admin-page-header {
    flex-direction: column;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .formations-overview {
    grid-template-columns: 1fr;
  }

  .formations-fields {
    grid-template-columns: 1fr;
  }

  .ressources-overview,
  .ressources-form-grid {
    grid-template-columns: 1fr;
  }

  .temoignages-overview,
  .temoignages-form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    grid-template-columns: 1fr;
  }

  .login-shell-admin {
    grid-template-columns: 1fr;
  }

  .login-showcase,
  .login-panel {
    min-height: auto;
    padding: 1.5rem 1.15rem;
  }

  .login-showcase h1 {
    max-width: 15ch;
  }
}

@media (max-width: 640px) {
  .dashboard-sidebar {
    padding: 1rem 0.85rem 0.85rem;
  }

  .dashboard-sidebar-footer {
    padding: 0.85rem;
  }

  .dashboard-topbar h1 {
    font-size: 1.45rem;
  }

  .dashboard-topbar-user-text {
    max-width: none;
  }

  .dashboard-topbar-user-name {
    max-width: none;
  }

  .admin-dashboard-page .admin-wrap {
    padding-top: 1rem;
  }

  .dashboard-hero-copy,
  .dashboard-highlight,
  .dashboard-stat,
  .dashboard-panel,
  .dashboard-summary-card,
  .dashboard-summary-note {
    border-radius: 22px;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .formations-card,
  .formations-overview-card {
    border-radius: 22px;
  }

  .formations-card-head,
  .formations-card-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .ressources-form-card,
  .ressources-overview-card,
  .ressources-item {
    border-radius: 22px;
  }

  .ressources-item-head,
  .ressources-item-actions,
  .ressources-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .temoignages-overview-card,
  .temoignages-form-card,
  .temoignages-item {
    border-radius: 22px;
  }

  .temoignages-item-head,
  .temoignages-item-actions,
  .temoignages-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .etudiant-detail-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .etudiant-detail-identity {
    width: 100%;
  }

  .etudiant-detail-side {
    width: 100%;
    justify-content: flex-start;
  }

  .etudiant-payment-overview,
  .etudiant-payment-layout {
    grid-template-columns: 1fr;
  }

  .etudiants-overview {
    grid-template-columns: 1fr;
  }

  .etudiant-payment-item {
    flex-direction: column;
  }

  .etudiant-detail-grid {
    grid-template-columns: 1fr;
  }

  .login-showcase,
  .login-panel {
    padding: 1.1rem 0.95rem;
  }

  .login-showcase {
    padding-bottom: 0.8rem;
  }

  .login-form-wrap {
    width: 100%;
  }

  .login-form-wrap h2 {
    font-size: 1.45rem;
  }

  .login-showcase h1 {
    font-size: 1.55rem;
  }

  .login-feature-list {
    margin-top: 1rem;
  }
}
