/* ============================================================
   style.css — Charte graphique IZI by EDF
   Couleurs : Jaune/Or #EDA020 | Vert #3A9215 | Bleu #1A4E8C
   ============================================================ */

:root {
  --primary:        #EDA020;
  --primary-dark:   #C4851A;
  --primary-light:  #F5C060;
  --secondary:      #3A9215;
  --secondary-dark: #2A6B10;
  --tertiary:       #1A4E8C;
  --tertiary-dark:  #123770;
  --bg:             #0D1117;
  --surface:        #161B27;
  --surface2:       #1E2535;
  --border:         #2A3348;
  --text:           #F0F0F0;
  --muted:          #8892B0;
  --danger:         #E53E3E;
  --danger-dark:    #C53030;

  --radius:         8px;
  --radius-lg:      12px;
  --shadow:         0 4px 20px rgba(0,0,0,0.4);
  --transition:     0.2s ease;
}

/* ==================== RESET & BASE ==================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

/* ==================== SCROLLBAR ==================== */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ==================== TYPOGRAPHIE ==================== */

h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }

.text-muted { color: var(--muted); font-size: 0.85rem; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-tertiary { color: var(--tertiary); }

/* ==================== BOUTONS ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: #0D1117;
}
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}
.btn-secondary:hover:not(:disabled) { background: var(--secondary-dark); }

.btn-tertiary {
  background: var(--tertiary);
  color: #fff;
}
.btn-tertiary:hover:not(:disabled) { background: var(--tertiary-dark); }

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover:not(:disabled) { background: var(--danger-dark); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--primary);
}

.btn-sm { padding: 5px 10px; font-size: 0.8rem; }
.btn-icon { padding: 7px; width: 34px; height: 34px; justify-content: center; }

/* ==================== FORMULAIRES ==================== */

.form-group { margin-bottom: 16px; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(237,160,32,0.15);
}

select option { background: var(--surface2); }
textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* Checkboxes travaux */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.875rem;
  user-select: none;
}

.checkbox-item:hover { border-color: var(--primary); }
.checkbox-item input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }
.checkbox-item.checked {
  border-color: var(--primary);
  background: rgba(237,160,32,0.1);
  color: var(--primary);
}

/* ==================== CARDS ==================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ==================== TABLEAUX ==================== */

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  background: var(--surface2);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface2); }

tbody td {
  padding: 11px 14px;
  color: var(--text);
  vertical-align: middle;
}

.actions-cell {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ==================== BADGES ==================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.badge-admin {
  background: rgba(237,160,32,0.2);
  color: var(--primary);
  border: 1px solid rgba(237,160,32,0.4);
}
.badge-ct {
  background: rgba(58,146,21,0.2);
  color: var(--secondary);
  border: 1px solid rgba(58,146,21,0.4);
}
.badge-coordinateur {
  background: rgba(26,78,140,0.2);
  color: #6B9FD4;
  border: 1px solid rgba(26,78,140,0.5);
}
.badge-rt {
  background: rgba(150,50,200,0.2);
  color: #C084FC;
  border: 1px solid rgba(150,50,200,0.4);
}

/* Statuts dossiers */
.badge-statut {
  font-size: 0.75rem;
  padding: 4px 10px;
}
.badge-en-cours {
  background: rgba(26,78,140,0.2);
  color: #6B9FD4;
  border: 1px solid rgba(26,78,140,0.4);
}
.badge-déposé { background: rgba(237,160,32,0.2); color: var(--primary); border: 1px solid rgba(237,160,32,0.4); }
.badge-accordé { background: rgba(58,146,21,0.2); color: var(--secondary); border: 1px solid rgba(58,146,21,0.4); }
.badge-refusé { background: rgba(229,62,62,0.2); color: #FC8181; border: 1px solid rgba(229,62,62,0.4); }
.badge-incomplet { background: rgba(136,146,176,0.2); color: var(--muted); border: 1px solid rgba(136,146,176,0.3); }

/* Types travaux */
.badge-travaux {
  font-size: 0.7rem;
  padding: 2px 7px;
  margin: 1px;
}
.badge-ITE        { background: rgba(58,146,21,0.15);  color: #6EC254;  border: 1px solid rgba(58,146,21,0.3); }
.badge-PAC        { background: rgba(229,62,62,0.15);  color: #FC8181;  border: 1px solid rgba(229,62,62,0.3); }
.badge-Menuiserie { background: rgba(26,78,140,0.15);  color: #6B9FD4;  border: 1px solid rgba(26,78,140,0.3); }
.badge-Volet      { background: rgba(237,160,32,0.15); color: var(--primary-light); border: 1px solid rgba(237,160,32,0.3); }

/* ==================== MODALS ==================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(-10px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.modal-body { padding: 20px 24px; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  bottom: 0;
}

.btn-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
}
.btn-close:hover { color: var(--text); }

/* ==================== ALERTES ==================== */

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.alert-error {
  background: rgba(229,62,62,0.15);
  border: 1px solid rgba(229,62,62,0.4);
  color: #FC8181;
}

.alert-success {
  background: rgba(58,146,21,0.15);
  border: 1px solid rgba(58,146,21,0.4);
  color: #6EC254;
}

.alert-info {
  background: rgba(26,78,140,0.15);
  border: 1px solid rgba(26,78,140,0.4);
  color: #6B9FD4;
}

.alert-warning {
  background: rgba(237,160,32,0.15);
  border: 1px solid rgba(237,160,32,0.4);
  color: var(--primary-light);
}

/* ==================== KPI CARDS ==================== */

/* ===== KPI DRAG & DROP SECTIONS ===== */
#kpi-sections-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kpi-section {
  position: relative;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  transition: opacity 0.2s;
}

.kpi-section.dragging {
  opacity: 0.4;
}

.kpi-section.drag-over {
  outline: 2px dashed var(--primary);
  outline-offset: 4px;
}

.kpi-section-handle {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: var(--muted);
  font-size: 1.2rem;
  border-radius: 6px;
  z-index: 10;
  opacity: 1;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.kpi-section-handle:hover {
  background: var(--border);
  color: var(--text);
}

.kpi-section-handle:active {
  cursor: grabbing;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.kpi-card.gold::before { background: var(--primary); }
.kpi-card.green::before { background: var(--secondary); }
.kpi-card.blue::before { background: var(--tertiary); }

.kpi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.kpi-card.gold .kpi-value { color: var(--primary); }
.kpi-card.green .kpi-value { color: var(--secondary); }
.kpi-card.blue .kpi-value { color: #6B9FD4; }

.kpi-sub { font-size: 0.8rem; color: var(--muted); }

/* Barres mini */
.mini-bar-list { display: flex; flex-direction: column; gap: 8px; }

.mini-bar-item { display: flex; flex-direction: column; gap: 3px; }

.mini-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.mini-bar-track {
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
  transition: width 0.6s ease;
}

.mini-bar-fill.green { background: var(--secondary); }
.mini-bar-fill.blue  { background: var(--tertiary); }

/* ==================== CHARTS ==================== */

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* ===== RÉUNIONS ===== */
#jitsi-frame iframe {
  border: none;
  display: block;
}

@media (max-width: 768px) {
  #tab-reunions > div { flex-direction: column !important; }
  #tab-reunions > div > div:first-child { flex: none !important; width: 100% !important; }
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.chart-card h3 {
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chart-container { position: relative; height: 240px; }

/* ==================== HEADER PRINCIPAL ==================== */

.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-placeholder {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #0D1117;
  letter-spacing: 0.5px;
}

.header-title {
  font-size: 1rem;
  font-weight: 600;
}

.header-subtitle {
  font-size: 0.72rem;
  color: var(--muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}

.user-name { font-weight: 500; }

/* ==================== NAVIGATION TABS ==================== */

.tab-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  padding: 0 24px;
  gap: 4px;
}
.tab-nav-spacer {
  flex: 1;
}
.tab-btn-admin {
  border-left: 1px solid var(--border);
  opacity: 0.85;
}
.tab-btn-admin:first-of-type {
  margin-left: 4px;
}

#notif-panel {
  font-size: 0.85rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 14px 20px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ==================== CONTENU PRINCIPAL ==================== */

.main-content { padding: 24px; max-width: 1400px; margin: 0 auto; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ==================== BARRE DE RECHERCHE / FILTRES ==================== */

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 400px;
}

.search-box input {
  padding-left: 36px;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.filter-select {
  width: auto;
  min-width: 150px;
}

/* ==================== PAGE LOGIN ==================== */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Cercles décoratifs en arrière-plan */
.login-page::before,
.login-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}
.login-page::before {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -150px;
  left: -150px;
}
.login-page::after {
  width: 400px;
  height: 400px;
  background: var(--tertiary);
  bottom: -100px;
  right: -100px;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-img {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  color: #0D1117;
  margin-bottom: 12px;
  box-shadow: 0 8px 30px rgba(237,160,32,0.3);
}

.login-logo h1 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.login-logo p {
  color: var(--muted);
  font-size: 0.85rem;
}

.login-btn {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
}

.login-error {
  margin-top: 14px;
}

/* ==================== ÉTAT VIDE ==================== */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ==================== SPINNER ==================== */

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== TOAST NOTIFICATIONS ==================== */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease;
  min-width: 260px;
}

@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.toast-success { background: var(--secondary);  color: #fff; }
.toast-error   { background: var(--danger);     color: #fff; }
.toast-info    { background: var(--tertiary);   color: #fff; }

/* ==================== ADMINISTRATION ==================== */

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.user-table-actions { display: flex; gap: 6px; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.active { background: var(--secondary); }
.status-dot.inactive { background: var(--danger); }

/* ==================== CALENDRIER ==================== */

.cal-cell {
  min-height: 100px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px;
  cursor: pointer;
  transition: background 0.1s;
  overflow: hidden;
}
.cal-cell:hover { background: rgba(255,255,255,0.03); }
.cal-cell.autre-mois { opacity: 0.35; cursor: default; pointer-events: none; }
.cal-cell.aujourd-hui { outline: 2px solid #EDA020; outline-offset: -2px; }
.cal-cell:nth-child(7n) { border-right: none; }
.cal-jour { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cal-event {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  margin-bottom: 2px;
  color: #fff;
  font-weight: 500;
}
.cal-event:hover { filter: brightness(1.15); }
.cal-plus { font-size: 0.7rem; color: var(--muted); padding: 1px 4px; }
.cal-header-cell {
  padding: 8px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}

/* ==================== CARTE INTERACTIVE ==================== */
#carte-map .leaflet-container { font-family: inherit; }
.carte-tooltip {
  background: #1A2035 !important;
  border: 1px solid #2A3348 !important;
  color: #F0F0F0 !important;
  font-size: 0.82rem !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.4) !important;
}
.carte-tooltip::before { display: none !important; }
.carte-dept-chip {
  font-size: 0.75rem !important;
  padding: 3px 8px !important;
  border-radius: 20px !important;
  border-width: 1.5px !important;
  transition: all .15s;
}
.carte-dept-chip.inactif { opacity: 0.5; }
@media (max-width: 900px) {
  #tab-carte > div:nth-child(2) { grid-template-columns: 1fr !important; }
}
.btn-sm {
  padding: 5px 12px;
  font-size: 0.78rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition: all .15s;
  white-space: nowrap;
}
.btn-sm:hover { background: rgba(255,255,255,.07); }
.btn-sm.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-sm.btn-ghost { background: transparent; }

/* ==================== RAPPEL DOSSIER COMBOBOX ==================== */
.rappel-dossier-opt {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.rappel-dossier-opt:last-child { border-bottom: none; }
.rappel-dossier-opt:hover { background: rgba(255,255,255,0.07); }

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .main-content { padding: 16px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .app-header { padding: 0 16px; }
  .tab-nav { padding: 0 12px; overflow-x: auto; }
  .tab-btn { padding: 12px 14px; font-size: 0.8rem; white-space: nowrap; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: 100%; }
  .modal { margin: 10px; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
}
