/* =============================================================
   Système de Répartition des Bénéfices — Styles communs
   Extraits et unifiés depuis les maquettes HTML
   ============================================================= */

/* ── VARIABLES ── */
:root {
  --ink:        #1a1a1a;
  --cream:      #f5f0e8;
  --gold:       #c9a84c;
  --gold-light: #e8d5a3;
  --gold-pale:  #f7f0dc;
  --slate:      #4a4a5a;
  --muted:      #8a8a99;
  --border:     #ddd8cc;
  --success:    #4a7c59;
  --success-bg: #e8f5ec;
  --danger:     #8b3a3a;
  --danger-bg:  #f5e8e8;
  --warning:    #a07830;
  --warning-bg: #fdf3e3;
  --white:      #ffffff;
  --sidebar-w:  240px;
  --radius:     10px;
  --shadow:     0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 15px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }

/* ── TOPBAR (mobile) ── */
.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--ink);
  z-index: 200;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.topbar-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--gold-light);
  font-weight: 500;
}
.hamburger {
  width: 36px; height: 36px;
  border: none; background: transparent;
  cursor: pointer;
  display: flex; flex-direction: column;
  justify-content: center; gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block; height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: all 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── OVERLAY ── */
.overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.25s;
}
.overlay.visible { opacity: 1; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 160;
  transition: transform 0.25s ease;
}
.logo {
  padding: 0 28px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500;
  color: var(--gold-light);
}
.logo-sub {
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-top: 4px;
}
nav { flex: 1; padding: 24px 0; overflow-y: auto; }
.nav-section { padding: 0 16px; margin-bottom: 8px; }
.nav-label {
  font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  padding: 0 12px; margin-bottom: 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  font-size: 13.5px;
  transition: all 0.15s;
  margin-bottom: 2px;
}
.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}
.nav-item.active {
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
}
.nav-icon { width: 16px; height: 16px; opacity: 0.7; flex-shrink: 0; }
.nav-item.active .nav-icon { opacity: 1; }
.logout-btn { color: rgba(255,255,255,0.4); }
.logout-btn:hover { color: var(--danger); background: rgba(139,58,58,0.1); }
.sidebar-footer {
  padding: 20px 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.user-pill { display: flex; align-items: center; gap: 10px; }
.s-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; color: white; font-weight: 600;
  flex-shrink: 0;
}
.user-name { font-size: 13px; color: rgba(255,255,255,0.8); font-weight: 500; }
.user-role { font-size: 10px; color: var(--muted); }

/* ── MAIN ── */
.main {
  margin-left: var(--sidebar-w);
  padding: 40px 48px;
  min-height: 100vh;
}

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 500;
  color: var(--ink); line-height: 1.2;
}
.page-sub {
  font-size: 13px; color: var(--muted);
  margin-top: 4px;
}

/* ── CARTES STATS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.stat-label {
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 500; color: var(--ink);
}
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat-card.gold { border-top: 3px solid var(--gold); }
.stat-card.success { border-top: 3px solid var(--success); }
.stat-card.danger { border-top: 3px solid var(--danger); }

/* ── CARTES GÉNÉRIQUES ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 500;
}
.card-body { padding: 24px; }

/* ── TABLEAUX ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  text-align: left;
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  white-space: nowrap;
}
tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(221,216,204,0.5);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--gold-pale); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 500;
  white-space: nowrap;
}
.badge-success  { background: var(--success-bg); color: var(--success); }
.badge-danger   { background: var(--danger-bg);  color: var(--danger); }
.badge-warning  { background: var(--warning-bg); color: var(--warning); }
.badge-muted    { background: #f0ede8; color: var(--muted); }
.badge-gold     { background: var(--gold-pale); color: var(--gold); }
.badge-attente  { background: var(--warning-bg); color: var(--warning); }
.badge-paye     { background: var(--success-bg); color: var(--success); }
.badge-partiel  { background: #e8eef5; color: #3a5a8a; }
.badge-actif    { background: var(--success-bg); color: var(--success); }
.badge-pause    { background: var(--warning-bg); color: var(--warning); }
.badge-cloture  { background: #f0ede8; color: var(--muted); }

/* ── AVATARS ── */
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; color: white; font-weight: 600;
  flex-shrink: 0;
}
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }
.avatar-sm { width: 26px; height: 26px; font-size: 11px; }

.avatar-group { display: flex; }
.avatar-group .avatar { margin-left: -8px; border: 2px solid white; }
.avatar-group .avatar:first-child { margin-left: 0; }

/* ── BOUTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500;
  cursor: pointer; border: none;
  transition: all 0.15s; white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: #2d2d2d; }
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: #b8973b; }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--ink); background: var(--gold-pale); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #7a2f2f; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { padding: 8px; }
.btn-icon svg { width: 16px; height: 16px; }

/* ── FORMULAIRES ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px; font-weight: 500;
  color: var(--slate); margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.form-label .required { color: var(--danger); margin-left: 3px; }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; color: var(--ink);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-control::placeholder { color: var(--muted); }
.form-control.error { border-color: var(--danger); }
.form-hint { font-size: 11px; color: var(--muted); margin-top: 5px; }
.form-error { font-size: 11px; color: var(--danger); margin-top: 5px; }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ── LAYOUT DEUX COLONNES ── */
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.two-col-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ── MOIS SELECTOR ── */
.month-nav {
  display: inline-flex; align-items: center; gap: 12px;
  background: white; border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 12px;
}
.month-nav button {
  width: 28px; height: 28px; border: none;
  background: transparent; cursor: pointer;
  border-radius: 6px; color: var(--slate);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.month-nav button:hover { background: var(--gold-pale); color: var(--ink); }
.month-nav .month-label {
  font-size: 14px; font-weight: 500;
  color: var(--ink); min-width: 130px; text-align: center;
}

/* ── DONUT CHART ── */
.donut-wrap { position: relative; width: 160px; height: 160px; margin: 0 auto 16px; }
.donut-wrap svg { width: 160px; height: 160px; }
.donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.donut-center-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500; line-height: 1;
}
.donut-center-label { font-size: 10px; color: var(--muted); margin-top: 3px; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.donut-legend-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.donut-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.donut-legend-label { flex: 1; color: var(--slate); }
.donut-legend-val { font-weight: 500; }

/* ── PROGRESS BARS ── */
.progress-row { margin-bottom: 12px; }
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; font-size: 13px; }
.progress-label { color: var(--slate); }
.progress-value { font-weight: 500; }
.progress-track { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; transition: width 0.4s ease; }

/* ── TOASTS ── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.25s ease;
  max-width: 340px;
}
.toast.success { background: var(--success); color: white; }
.toast.error   { background: var(--danger);  color: white; }
.toast.info    { background: var(--ink);     color: white; }
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── MODALES ── */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 500;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: white; border-radius: 12px;
  width: 100%; max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalIn 0.2s ease;
}
.modal-lg { max-width: 640px; }
@keyframes modalIn {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.modal-header {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; }
.modal-close {
  width: 32px; height: 32px; border: none; background: transparent;
  cursor: pointer; border-radius: 6px; color: var(--muted);
  font-size: 20px; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--cream); color: var(--ink); }
.modal-body { padding: 24px 28px; }
.modal-footer {
  padding: 16px 28px 22px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ── PORTEURS DYNAMIQUES ── */
.porteurs-list { display: flex; flex-direction: column; gap: 10px; }
.porteur-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 10px; align-items: center;
}
.porteur-pct-input { width: 80px; text-align: right; }
.porteur-total {
  margin-top: 10px; padding: 10px 14px;
  border-radius: 8px; font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
}
.porteur-total.ok     { background: var(--success-bg); color: var(--success); }
.porteur-total.not-ok { background: var(--danger-bg);  color: var(--danger); }

/* ── APERÇU RÉPARTITION ── */
.repartition-preview { display: flex; flex-direction: column; gap: 10px; }
.repartition-item {
  display: flex; align-items: center;
  gap: 10px; font-size: 13px;
}
.repartition-item .r-label { flex: 1; color: var(--slate); }
.repartition-item .r-amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.repartition-item .r-pct { font-size: 11px; color: var(--muted); width: 36px; text-align: right; }
.repartition-item .r-bar { flex: 1; height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; }
.repartition-item .r-fill { height: 100%; border-radius: 99px; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--muted);
}
.empty-state-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
.empty-state-title { font-size: 16px; font-weight: 500; color: var(--slate); margin-bottom: 6px; }
.empty-state-text  { font-size: 13px; }

/* ── ALERTS ── */
.alert {
  padding: 12px 16px; border-radius: 8px;
  font-size: 13.5px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.alert-danger  { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(139,58,58,0.2); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(74,124,89,0.2); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(160,120,48,0.2); }

/* ── SEARCH / FILTERS ── */
.filters-bar {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap; margin-bottom: 20px;
}
.search-input-wrap { position: relative; }
.search-input-wrap svg {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted);
}
.search-input { padding-left: 34px !important; }

/* ── SIMULATEUR DASHBOARD ── */
.simulator-card { padding: 20px; }
.sim-input-row { display: flex; gap: 8px; margin-bottom: 16px; }
.sim-result { background: var(--cream); border-radius: 8px; padding: 16px; }
.sim-line { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.sim-line.total { font-weight: 600; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }

/* ── BOTTOM NAV (mobile) ── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 56px; background: white;
  border-top: 1px solid var(--border);
  z-index: 200;
  justify-content: space-around; align-items: center;
}
.bottom-nav-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  font-size: 10px; color: var(--muted);
  padding: 6px 12px;
  transition: color 0.15s;
}
.bottom-nav-item svg { width: 20px; height: 20px; }
.bottom-nav-item.active { color: var(--gold); }

/* ════════════════════════════════════════════
   RESPONSIVE — Tablette ≤ 1024px
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --sidebar-w: 200px; }
  .main { padding: 32px 24px; }
  .two-col { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col-equal { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — Mobile ≤ 768px
════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Navigation */
  .topbar { display: flex; }
  .overlay { display: block; }
  .sidebar { transform: translateX(-100%); z-index: 180; }
  .sidebar.open { transform: translateX(0); }
  .bottom-nav { display: flex; }

  /* Contenu */
  .main { margin-left: 0; padding: 72px 16px 72px; }

  /* Grilles */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .two-col { grid-template-columns: 1fr; }
  .two-col-equal { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Typographie */
  .page-title { font-size: 26px; }
  .page-header { flex-direction: column; gap: 12px; }
  .page-header .header-actions { width: 100%; justify-content: space-between; }

  /* Cards */
  .card-header { padding: 14px 18px; }
  .card-body   { padding: 16px 18px; }

  /* Tableaux → scroll horizontal */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 480px; }

  /* Modales → plein écran sur mobile */
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-header { padding: 18px 20px 14px; }
  .modal-body   { padding: 16px 20px; }
  .modal-footer { padding: 12px 20px 28px; } /* 28px pour safe area iOS */

  /* Toasts */
  #toast-container { left: 12px; right: 12px; bottom: 68px; }
  .toast { max-width: 100%; }
  @keyframes toastIn {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  /* Formulaires — éviter le zoom iOS (font-size min 16px) */
  .form-control, input, select, textarea {
    font-size: 16px !important;
  }
}

/* ════════════════════════════════════════════
   RESPONSIVE — Petit mobile ≤ 480px
════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* Stats en colonne unique avec layout horizontal */
  .stats-grid { grid-template-columns: 1fr; gap: 8px; }
  .stat-card {
    display: flex; align-items: center;
    gap: 16px; padding: 14px 16px;
  }
  .stat-card::before { top: 0; left: 0; right: auto; bottom: 0; width: 3px; height: auto; }
  .stat-label { margin-bottom: 2px; font-size: 10px; }
  .stat-value { font-size: 22px; }
  .stat-sub { font-size: 11px; margin-top: 2px; }

  /* Réduit le padding global */
  .main { padding: 68px 12px 68px; }
  .card-header { padding: 12px 14px; }
  .card-body   { padding: 14px; }

  /* Titres plus petits */
  .page-title { font-size: 22px; }
  .card-title { font-size: 16px; }

  /* Boutons pleine largeur si stacked */
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; justify-content: center; }

  /* Simulateur dashboard */
  .sim-input-row { flex-direction: column; }
}

/* ════════════════════════════════════════════
   TOUCH — Cibles tactiles minimum 44px
   (actif seulement sur appareils tactiles)
════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  .btn       { min-height: 44px; }
  .nav-item  { min-height: 44px; }
  .btn-sm    { min-height: 38px; }
  .form-control { padding: 12px 14px; min-height: 44px; }
  .modal-close  { width: 44px; height: 44px; }
  .month-nav button { width: 44px; height: 44px; }

  /* Plus d'espace dans les tableaux pour le touch */
  tbody td { padding: 14px 16px; }

  /* Supprime les effets hover qui "collent" sur touch */
  tbody tr:hover { background: transparent; }
  .btn-outline:hover { border-color: var(--border); background: transparent; }
}

/* ════════════════════════════════════════════
   UTILITAIRES RESPONSIVE
════════════════════════════════════════════ */

/* Grille 2 colonnes → 1 colonne sur mobile */
.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .grid-2col-responsive { grid-template-columns: 1fr; gap: 16px; }

  /* Page header : boutons en colonne sur mobile */
  .page-header { align-items: flex-start; }

  /* Tableaux superadmin : membres & journal en colonne */
  .two-col { gap: 16px; }

  /* Export section : forcer colonne */
  .export-grid { grid-template-columns: 1fr !important; }

  /* Profil modal tabs : plus compacts */
  .profil-tab { padding: 8px 10px; font-size: 12px; }

  /* Supprimer les navigations membres sur petit écran */
  .membres-nav-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
}
@media (max-width: 480px) {
  .grid-2col-responsive { grid-template-columns: 1fr; gap: 12px; }

  /* Bottom nav label : masquer sur très petit écran */
  .bottom-nav-item span { display: none; }
  .bottom-nav-item { gap: 0; padding: 8px 10px; }
  .bottom-nav-item svg { width: 22px; height: 22px; }

  /* Page header actions en ligne */
  .page-header > div:last-child { flex-wrap: wrap; gap: 6px; }

  /* Fiches projets : 1 colonne */
  .projet-fiches-grid { grid-template-columns: 1fr !important; }
}
