/* ============================================================
   sadp_iut - IUT FOTSO VICTOR - Feuille de style principale
   Palette : Bleu clair #3B9FDB | Blanc #FFFFFF | Orange #FF8C42
             Rouge #E63946 | Vert #2DC653
   ============================================================ */

/* --- Variables CSS --- */
:root {
  --bleu:      #3B9FDB;
  --bleu-fonce:#1a6fa8;
  --bleu-clair:#e8f4fd;
  --blanc:     #FFFFFF;
  --orange:    #FF8C42;
  --orange-clair: #fff3e8;
  --rouge:     #E63946;
  --rouge-clair:#fdecea;
  --vert:      #2DC653;
  --vert-clair:#e8f9ed;
  --gris:      #6c757d;
  --gris-clair:#f8f9fa;
  --gris-bg:   #f0f2f5;
  --texte:     #212529;
  --sidebar-w: 260px;
  --navbar-h:  64px;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius:    12px;
  --radius-sm: 8px;
  --transition: .25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--gris-bg); color: var(--texte); font-size: 14px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bleu); }

/* ============================================================
   NAVBAR
   ============================================================ */
.sadp_iut-navbar {
  height: var(--navbar-h);
  background: var(--blanc);
  border-bottom: 1px solid #e5e9f0;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  gap: 1rem;
}
.sadp_iut-navbar .brand {
  display: flex; align-items: center; gap: .75rem;
  font-weight: 700; font-size: 1.1rem; color: var(--bleu-fonce);
  text-decoration: none; flex-shrink: 0;
}
.sadp_iut-navbar .brand-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--bleu), var(--bleu-fonce));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}
.sadp_iut-navbar .brand-text { line-height: 1.2; }
.sadp_iut-navbar .brand-text small { display: block; font-size: .7rem; font-weight: 400; color: var(--gris); }
.sadp_iut-navbar .navbar-right {
  margin-left: auto; display: flex; align-items: center; gap: .75rem;
}
.sadp_iut-navbar .sidebar-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--gris); font-size: 1.3rem; padding: .4rem;
  border-radius: 8px; transition: var(--transition);
}
.sadp_iut-navbar .sidebar-toggle:hover { background: var(--gris-clair); color: var(--bleu); }
.notif-btn {
  position: relative; background: none; border: none;
  cursor: pointer; color: var(--gris); font-size: 1.2rem;
  padding: .4rem; border-radius: 8px; transition: var(--transition);
}
.notif-btn:hover { background: var(--gris-clair); color: var(--bleu); }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--rouge); color: white; font-size: .6rem;
  min-width: 16px; height: 16px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.user-avatar-btn {
  background: linear-gradient(135deg, var(--bleu), var(--bleu-fonce));
  border: none; border-radius: 50%; width: 36px; height: 36px;
  color: white; font-weight: 700; cursor: pointer; font-size: .85rem;
  transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.user-avatar-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(59,159,219,.4); }
.user-info { display: flex; flex-direction: column; line-height: 1.2; }
.user-info span { font-size: .8rem; font-weight: 600; color: var(--texte); }
.user-info small { font-size: .7rem; color: var(--gris); }
.role-badge {
  font-size: .65rem; padding: 2px 8px; border-radius: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
}
.role-admin    { background: var(--bleu-clair); color: var(--bleu-fonce); }
.role-enseignant { background: var(--orange-clair); color: #c05e00; }
.role-etudiant   { background: var(--vert-clair); color: #1a7a3a; }
.role-jure       { background: #f0e8ff; color: #6a1b9a; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sadp_iut-sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #1a3a5c 0%, #0f2440 100%);
  height: 100vh; position: fixed;
  top: 0; left: 0; z-index: 1020;
  transition: transform var(--transition), width var(--transition);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sadp_iut-sidebar.collapsed { width: 70px; }
.sadp_iut-sidebar.mobile-hidden { transform: translateX(-100%); }
.sidebar-header {
  height: var(--navbar-h); display: flex; align-items: center;
  padding: 0 1rem; border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.sidebar-logo {
  display: flex; align-items: center; gap: .75rem;
  color: white; font-weight: 700;
}
.sidebar-logo-icon {
  width: 36px; height: 36px; background: var(--bleu);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.sidebar-logo-text { font-size: 1rem; white-space: nowrap; transition: opacity var(--transition); }
.sadp_iut-sidebar.collapsed .sidebar-logo-text,
.sadp_iut-sidebar.collapsed .nav-label,
.sadp_iut-sidebar.collapsed .sidebar-section-title { opacity: 0; pointer-events: none; }
.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.sidebar-section-title {
  color: rgba(255,255,255,.4); font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: .5rem 1.25rem; margin-top: .5rem;
  white-space: nowrap; transition: opacity var(--transition);
}
.nav-item { list-style: none; }
.nav-link-sidebar {
  display: flex; align-items: center; gap: .85rem;
  padding: .65rem 1.25rem; color: rgba(255,255,255,.65);
  border-radius: 0; transition: var(--transition);
  cursor: pointer; white-space: nowrap; border: none; background: none; width: 100%;
  text-align: left; font-size: .88rem;
}
.nav-link-sidebar:hover {
  background: rgba(255,255,255,.08); color: white;
}
.nav-link-sidebar.active {
  background: linear-gradient(90deg, var(--bleu) 0%, rgba(59,159,219,.3) 100%);
  color: white; border-left: 3px solid var(--bleu);
  padding-left: calc(1.25rem - 3px);
}
.nav-link-sidebar i { font-size: 1.1rem; flex-shrink: 0; width: 20px; text-align: center; }
.nav-label { transition: opacity var(--transition); }
.sidebar-footer {
  padding: 1rem; border-top: 1px solid rgba(255,255,255,.08); flex-shrink: 0;
}
.btn-logout {
  display: flex; align-items: center; gap: .75rem;
  width: 100%; padding: .6rem 1rem; background: rgba(230,57,70,.15);
  border: 1px solid rgba(230,57,70,.3); border-radius: var(--radius-sm);
  color: #ff8a8a; cursor: pointer; font-size: .85rem; transition: var(--transition);
}
.btn-logout:hover { background: rgba(230,57,70,.3); color: white; }

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.sadp_iut-layout { display: flex; min-height: 100vh; }
.sadp_iut-main {
  margin-left: var(--sidebar-w);
  margin-top: var(--navbar-h);
  flex: 1; transition: margin-left var(--transition);
  min-width: 0;
}
.sadp_iut-layout.sidebar-collapsed .sadp_iut-main { margin-left: 70px; }
.sadp_iut-content { padding: 1.5rem; max-width: 1400px; margin: 0 auto; }
.page-header { margin-bottom: 1.5rem; }
.page-title { font-size: 1.4rem; font-weight: 700; color: var(--bleu-fonce); margin-bottom: .25rem; }
.page-subtitle { color: var(--gris); font-size: .9rem; }
.breadcrumb-sadp_iut { font-size: .8rem; color: var(--gris); }
.breadcrumb-sadp_iut span { color: var(--bleu); }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
  background: var(--blanc); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 1rem;
  transition: var(--transition); border: 1px solid transparent;
  overflow: hidden; position: relative;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; border-radius: 4px 0 0 4px;
}
.stat-card.blue::before { background: var(--bleu); }
.stat-card.green::before { background: var(--vert); }
.stat-card.orange::before { background: var(--orange); }
.stat-card.red::before { background: var(--rouge); }
.stat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.stat-icon.blue   { background: var(--bleu-clair); color: var(--bleu); }
.stat-icon.green  { background: var(--vert-clair); color: var(--vert); }
.stat-icon.orange { background: var(--orange-clair); color: var(--orange); }
.stat-icon.red    { background: var(--rouge-clair); color: var(--rouge); }
.stat-body { flex: 1; }
.stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1; color: var(--texte); }
.stat-label { font-size: .78rem; color: var(--gris); margin-top: .2rem; }
.stat-change { font-size: .72rem; font-weight: 600; }
.stat-change.up   { color: var(--vert); }
.stat-change.down { color: var(--rouge); }

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.sadp_iut-card {
  background: var(--blanc); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid #eef0f4;
  overflow: hidden;
}
.sadp_iut-card-header {
  padding: 1rem 1.25rem; border-bottom: 1px solid #eef0f4;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--blanc);
}
.sadp_iut-card-title { font-weight: 700; font-size: .95rem; color: var(--bleu-fonce); display: flex; align-items: center; gap: .5rem; }
.sadp_iut-card-body { padding: 1.25rem; }

/* ============================================================
   TABLES
   ============================================================ */
.table-sadp_iut { width: 100%; border-collapse: collapse; }
.table-sadp_iut th {
  background: var(--gris-bg); color: var(--gris); font-size: .75rem;
  text-transform: uppercase; letter-spacing: .8px; font-weight: 700;
  padding: .75rem 1rem; text-align: left; border-bottom: 2px solid #e5e9f0;
  white-space: nowrap;
}
.table-sadp_iut td {
  padding: .85rem 1rem; border-bottom: 1px solid #f0f2f5;
  vertical-align: middle; font-size: .875rem;
}
.table-sadp_iut tbody tr { transition: background var(--transition); }
.table-sadp_iut tbody tr:hover { background: var(--bleu-clair); }
.table-sadp_iut tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   BADGES & TAUX PLAGIAT
   ============================================================ */
.badge-sadp_iut {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .7rem; border-radius: 20px; font-size: .72rem; font-weight: 700;
}
.badge-vert   { background: var(--vert-clair); color: #1a7a3a; }
.badge-orange { background: var(--orange-clair); color: #b85c00; }
.badge-rouge  { background: var(--rouge-clair); color: #b71c1c; }
.badge-bleu   { background: var(--bleu-clair); color: var(--bleu-fonce); }
.badge-gris   { background: #e9ecef; color: var(--gris); }

.taux-bar-wrap { display: flex; align-items: center; gap: .6rem; min-width: 120px; }
.taux-bar { flex: 1; height: 6px; background: #e9ecef; border-radius: 3px; overflow: hidden; }
.taux-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.taux-val { font-size: .8rem; font-weight: 700; min-width: 36px; }

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-sadp_iut .form-label { font-weight: 600; font-size: .85rem; color: var(--texte); margin-bottom: .4rem; }
.form-sadp_iut .form-control,
.form-sadp_iut .form-select {
  border: 1.5px solid #dde1ea; border-radius: var(--radius-sm);
  padding: .55rem .85rem; font-size: .88rem; transition: var(--transition);
  background: var(--blanc); width: 100%;
}
.form-sadp_iut .form-control:focus,
.form-sadp_iut .form-select:focus {
  border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(59,159,219,.15); outline: none;
}
.form-sadp_iut .form-control.is-invalid { border-color: var(--rouge); }
.form-sadp_iut .invalid-feedback { color: var(--rouge); font-size: .78rem; margin-top: .25rem; }
.upload-zone {
  border: 2px dashed #c8d6e5; border-radius: var(--radius);
  padding: 2rem; text-align: center; cursor: pointer;
  transition: var(--transition); background: var(--gris-clair);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--bleu); background: var(--bleu-clair);
}
.upload-zone i { font-size: 2rem; color: var(--bleu); margin-bottom: .5rem; }
.progress-upload { height: 8px; border-radius: 4px; background: #e9ecef; overflow: hidden; margin-top: .5rem; }
.progress-upload-fill { height: 100%; background: linear-gradient(90deg, var(--bleu), var(--vert)); border-radius: 4px; transition: width .3s ease; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-sadp_iut {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1.1rem; border-radius: var(--radius-sm); border: none;
  font-weight: 600; font-size: .85rem; cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-sadp_iut:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary   { background: var(--bleu); color: white; }
.btn-primary:hover { background: var(--bleu-fonce); color: white; }
.btn-success   { background: var(--vert); color: white; }
.btn-success:hover { background: #23a347; color: white; }
.btn-danger    { background: var(--rouge); color: white; }
.btn-danger:hover { background: #c62833; color: white; }
.btn-warning   { background: var(--orange); color: white; }
.btn-warning:hover { background: #e07030; color: white; }
.btn-outline   { background: transparent; border: 1.5px solid var(--bleu); color: var(--bleu); }
.btn-outline:hover { background: var(--bleu); color: white; }
.btn-sm { padding: .35rem .75rem; font-size: .78rem; }
.btn-icon { padding: .4rem .5rem; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-box { position: relative; }
.search-box input {
  padding-left: 2.2rem; border: 1.5px solid #dde1ea;
  border-radius: 20px; font-size: .85rem; transition: var(--transition);
}
.search-box input:focus { border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(59,159,219,.12); outline: none; }
.search-box i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--gris); }

/* ============================================================
   TOASTS / NOTIFICATIONS
   ============================================================ */
.toast-container-sadp_iut { position: fixed; top: 80px; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.toast-sadp_iut {
  display: flex; align-items: flex-start; gap: .75rem;
  background: white; border-radius: var(--radius-sm);
  padding: .85rem 1rem; box-shadow: var(--shadow-lg);
  min-width: 300px; max-width: 380px; border-left: 4px solid;
  animation: slideIn .3s ease; pointer-events: auto;
}
.toast-sadp_iut.hide { animation: slideOut .3s ease forwards; }
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(110%); opacity: 0; } }
.toast-sadp_iut.success { border-color: var(--vert); }
.toast-sadp_iut.error   { border-color: var(--rouge); }
.toast-sadp_iut.warning { border-color: var(--orange); }
.toast-sadp_iut.info    { border-color: var(--bleu); }
.toast-icon { font-size: 1.1rem; margin-top: 1px; }
.toast-sadp_iut.success .toast-icon { color: var(--vert); }
.toast-sadp_iut.error   .toast-icon { color: var(--rouge); }
.toast-sadp_iut.warning .toast-icon { color: var(--orange); }
.toast-sadp_iut.info    .toast-icon { color: var(--bleu); }
.toast-body { flex: 1; }
.toast-title { font-weight: 700; font-size: .85rem; }
.toast-msg   { font-size: .8rem; color: var(--gris); }
.toast-close { background: none; border: none; cursor: pointer; color: var(--gris); font-size: .9rem; padding: 0; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-sadp_iut-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 1rem; animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-sadp_iut {
  background: white; border-radius: var(--radius);
  width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); animation: zoomIn .2s ease;
}
@keyframes zoomIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-sadp_iut-header {
  padding: 1.25rem 1.5rem; border-bottom: 1px solid #eef0f4;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-sadp_iut-title { font-weight: 700; font-size: 1rem; color: var(--bleu-fonce); }
.modal-close { background: none; border: none; cursor: pointer; color: var(--gris); font-size: 1.2rem; }
.modal-sadp_iut-body { padding: 1.5rem; }
.modal-sadp_iut-footer { padding: 1rem 1.5rem; border-top: 1px solid #eef0f4; display: flex; justify-content: flex-end; gap: .75rem; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-sadp_iut { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.page-btn {
  min-width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid #dde1ea;
  background: white; cursor: pointer; font-size: .82rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.page-btn:hover { border-color: var(--bleu); color: var(--bleu); }
.page-btn.active { background: var(--bleu); color: white; border-color: var(--bleu); }
.page-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ============================================================
   CHARTS placeholder
   ============================================================ */
.chart-wrap { position: relative; width: 100%; }
canvas.sadp_iut-chart { max-height: 280px; }

/* ============================================================
   PAGE ACCUEIL (hero)
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, #0f2440 0%, #1a6fa8 50%, #3B9FDB 100%);
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2); border-radius: 20px;
  padding: .35rem .9rem; font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; color: white; line-height: 1.15; margin-bottom: 1rem; }
.hero-title span { color: var(--orange); }
.hero-subtitle { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 540px; margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--orange); color: white; border: none; padding: .85rem 2rem;
  border-radius: 30px; font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: var(--transition); display: flex; align-items: center; gap: .5rem; text-decoration: none;
}
.btn-hero-primary:hover { background: #e07030; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,140,66,.4); color: white; }
.btn-hero-outline {
  background: transparent; color: white; border: 2px solid rgba(255,255,255,.5);
  padding: .85rem 2rem; border-radius: 30px; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: var(--transition); text-decoration: none; display: flex; align-items: center; gap: .5rem;
}
.btn-hero-outline:hover { border-color: white; background: rgba(255,255,255,.1); color: white; }
.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat { text-align: center; color: white; }
.hero-stat-val { font-size: 2rem; font-weight: 900; line-height: 1; }
.hero-stat-lbl { font-size: .75rem; color: rgba(255,255,255,.65); margin-top: .2rem; }
.hero-image-wrap { display: flex; justify-content: center; }
.hero-card-demo {
  background: rgba(255,255,255,.1); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 20px;
  padding: 1.5rem; color: white; max-width: 360px; width: 100%;
}

/* Features */
.feature-card {
  background: white; border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); transition: var(--transition); text-align: center; height: 100%;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f2440, #1a6fa8);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.auth-card {
  background: white; border-radius: 20px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px; overflow: hidden;
}
.auth-header {
  background: linear-gradient(135deg, #0f2440, var(--bleu));
  padding: 2rem; text-align: center;
}
.auth-header .auth-logo {
  width: 64px; height: 64px; background: rgba(255,255,255,.15);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1rem; color: white;
}
.auth-header h2 { color: white; font-size: 1.3rem; font-weight: 700; }
.auth-header p { color: rgba(255,255,255,.7); font-size: .85rem; }
.auth-body { padding: 2rem; }
.auth-tabs { display: flex; border-bottom: 2px solid #eef0f4; margin-bottom: 1.5rem; }
.auth-tab {
  flex: 1; padding: .65rem; text-align: center; font-weight: 600; font-size: .88rem;
  cursor: pointer; color: var(--gris); transition: var(--transition); border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.auth-tab.active { color: var(--bleu); border-bottom-color: var(--bleu); }
.input-icon-wrap { position: relative; }
.input-icon-wrap input { padding-left: 2.4rem; }
.input-icon-wrap .i-left { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--gris); }
.input-icon-wrap .i-right { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: var(--gris); cursor: pointer; }
.btn-full { width: 100%; padding: .75rem; font-size: .95rem; border-radius: var(--radius-sm); }

/* ============================================================
   RAPPORT SIMILITUDE
   ============================================================ */
.similitude-gauge { position: relative; display: flex; flex-direction: column; align-items: center; padding: 1.5rem; }
.gauge-ring { position: relative; display: flex; align-items: center; justify-content: center; }
.gauge-ring svg { transform: rotate(-90deg); }
.gauge-center { position: absolute; text-align: center; }
.gauge-pct { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.gauge-lbl { font-size: .72rem; color: var(--gris); }
.passage-item { background: var(--gris-clair); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: .75rem; border-left: 4px solid var(--rouge); }
.passage-source { font-size: .78rem; color: var(--gris); margin-top: .5rem; }
mark.surligne { background: rgba(230,57,70,.18); border-bottom: 2px solid var(--rouge); padding: .1rem .2rem; border-radius: 2px; }

/* ============================================================
   LOADER
   ============================================================ */
.sadp_iut-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; gap: 1rem; color: var(--gris); }
.spinner { width: 36px; height: 36px; border: 3px solid var(--bleu-clair); border-top-color: var(--bleu); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gris); }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: .4; }

/* ============================================================
   FOOTER
   ============================================================ */
.sadp_iut-footer {
  background: #0f2440; color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer-brand { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.footer-sep { border-color: rgba(255,255,255,.1); margin: 2rem 0 1rem; }
.footer-bottom { text-align: center; font-size: .78rem; color: rgba(255,255,255,.4); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .sadp_iut-sidebar { transform: translateX(-100%); }
  .sadp_iut-sidebar.mobile-open { transform: translateX(0); }
  .sadp_iut-main { margin-left: 0 !important; }
  .sidebar-overlay { display: block !important; }
}
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.4); z-index: 1015;
}
@media (max-width: 768px) {
  .sadp_iut-content { padding: 1rem; }
  .hero-title { font-size: 2rem; }
  .stat-value { font-size: 1.5rem; }
  .user-info { display: none; }
  .hero-stats { gap: 1rem; }
}
@media (max-width: 576px) {
  .modal-sadp_iut { margin: 0; border-radius: 16px 16px 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-height: 95vh; }
  .modal-sadp_iut-overlay { align-items: flex-end; padding: 0; }
}
