/* ===== GESTION DES CONGÉS — styles ===== */
:root {
  --red: #e2001a;
  --black: #111111;
  --dark: #0d0d0d;
  --gray: #bfbfbf;
  --white: #ffffff;
  --bg: #f7f7f7;
  --teal: #20505f;
  --r: 3px;
  --nav-h: 72px;
  --green: #1a8a4a;
  --orange: #d97706;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--black);
  min-height: 100vh;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  padding: 0 32px;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo { position: absolute; left: 32px; display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 38px; }
.nav-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.nav-logo-text { font-family: 'Bebas Neue', cursive; font-size: 1.4rem; color: var(--white); letter-spacing: 1px; line-height: 1; }
.nav-logo-sub { font-family: 'Barlow', sans-serif; font-size: 0.7rem; color: var(--red); letter-spacing: 2px; text-transform: uppercase; }
.nav-right { position: absolute; right: 32px; display: flex; align-items: center; gap: 16px; }
.nav-badge {
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
}
.nav-back {
  color: var(--gray);
  font-size: 0.85rem;
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.nav-back:hover { color: var(--white); }

/* ===== HERO HEADER ===== */
.app-header {
  margin-top: var(--nav-h);
  background: var(--dark);
  padding: 56px 0 48px;
  border-bottom: 2px solid var(--red);
  position: relative;
  overflow: hidden;
}
.app-header::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 80px,
    rgba(255,255,255,.02) 80px,
    rgba(255,255,255,.02) 81px
  ),
  repeating-linear-gradient(
    0deg,
    transparent,
    transparent 80px,
    rgba(255,255,255,.02) 80px,
    rgba(255,255,255,.02) 81px
  );
}
.app-header .container { position: relative; z-index: 1; }
.app-header-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(226,0,26,.4);
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.app-header h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 12px;
}
.app-header p {
  color: var(--gray);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 560px;
}

/* ===== TABS ===== */
.tabs-bar {
  background: var(--white);
  border-bottom: 1px solid #e5e5e5;
  position: sticky; top: var(--nav-h); z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.tabs-bar .container { display: flex; gap: 0; }
.tab-btn {
  padding: 18px 32px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #888;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; gap: 8px;
}
.tab-btn:hover { color: var(--black); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-btn .tab-count {
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 22px;
  text-align: center;
}
.tab-btn .tab-count.pending { background: var(--orange); }
.tab-btn .tab-count.zero { background: #ccc; color: #666; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== SECTION ===== */
.section { padding: 56px 0; }

/* ===== TABS CONTENT ===== */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== FORM CARD ===== */
.form-card {
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  overflow: hidden;
}
.form-card-header {
  background: var(--dark);
  padding: 24px 32px;
  display: flex; align-items: center; gap: 14px;
}
.form-card-header .icon {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.form-card-header .icon svg { width: 20px; height: 20px; fill: none; stroke: white; stroke-width: 2; }
.form-card-header h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 1px;
}
.form-card-header p { color: var(--gray); font-size: 0.85rem; font-weight: 300; margin-top: 2px; }
.form-body { padding: 32px; }

/* ===== FORM GRID ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #555;
}
.form-group label .required { color: var(--red); margin-left: 3px; }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid #e0e0e0;
  border-radius: var(--r);
  padding: 11px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226,0,26,.1);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group .helper { font-size: 0.8rem; color: #888; }
.form-group .days-calc {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  padding: 8px 12px;
  background: rgba(32,80,95,.07);
  border-radius: var(--r);
  display: none;
}
.form-group .days-calc.visible { display: block; }

.form-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: #f0f0f0;
  margin: 8px 0;
}

/* ===== TYPE CARDS (leave type selector) ===== */
.type-selector { grid-column: 1 / -1; }
.type-selector label {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: #555; display: block; margin-bottom: 10px;
}
.type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.type-card {
  border: 2px solid #e5e5e5;
  border-radius: 4px;
  padding: 14px 12px;
  cursor: pointer;
  transition: all .18s;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  text-align: center;
  background: var(--white);
  user-select: none;
}
.type-card:hover { border-color: var(--red); background: rgba(226,0,26,.03); }
.type-card.selected { border-color: var(--red); background: rgba(226,0,26,.06); }
.type-card-icon { font-size: 1.4rem; }
.type-card-label { font-size: 0.82rem; font-weight: 700; color: var(--black); line-height: 1.2; }
.type-card-sub { font-size: 0.72rem; color: #888; }

/* ===== SUBMIT ROW ===== */
.form-footer {
  padding: 24px 32px;
  border-top: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.form-footer .note { font-size: 0.82rem; color: #888; }
.btn-submit {
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 32px;
  border: none; border-radius: var(--r);
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: flex; align-items: center; gap: 8px;
}
.btn-submit:hover { background: #c0001a; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }
.btn-submit svg { width: 16px; height: 16px; fill: none; stroke: white; stroke-width: 2.5; }

/* ===== SUCCESS STATE ===== */
.success-banner {
  display: none;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1.5px solid #86efac;
  border-radius: 4px;
  padding: 24px 28px;
  margin-bottom: 24px;
  align-items: flex-start;
  gap: 14px;
}
.success-banner.show { display: flex; }
.success-banner svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--green); }
.success-banner-text strong { display: block; color: var(--green); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.success-banner-text span { color: #166534; font-size: 0.9rem; }

/* ===== MY REQUESTS (employee history) ===== */
.my-requests { margin-top: 40px; }
.my-requests h3 {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.5rem;
  color: var(--black);
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.my-requests h3 span { font-size: 0.85rem; color: #888; font-family: 'Barlow', sans-serif; font-weight: 400; letter-spacing: 0; }

/* ===== TABLE ===== */
.table-wrapper {
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  overflow: hidden;
}
.table-toolbar {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.table-toolbar input[type="search"] {
  border: 1.5px solid #e0e0e0;
  border-radius: var(--r);
  padding: 8px 12px 8px 36px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  width: 220px;
  outline: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") 10px center no-repeat;
  transition: border-color .2s;
}
.table-toolbar input[type="search"]:focus { border-color: var(--red); }
.table-toolbar select {
  border: 1.5px solid #e0e0e0;
  border-radius: var(--r);
  padding: 8px 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  background: var(--bg);
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}
.table-toolbar select:focus { border-color: var(--red); }
.table-toolbar .toolbar-count { margin-left: auto; font-size: 0.82rem; color: #888; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table thead tr { background: var(--dark); }
.data-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.data-table thead th:hover { color: var(--white); }
.data-table thead th.sort-asc::after { content: ' ↑'; }
.data-table thead th.sort-desc::after { content: ' ↓'; }
.data-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}
.data-table tbody tr:hover { background: rgba(226,0,26,.03); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--black);
  vertical-align: middle;
}
.data-table td .employee-name { font-weight: 600; }
.data-table td .employee-email { font-size: 0.78rem; color: #888; }

/* ===== STATUS BADGE ===== */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-badge.pending  { background: #fff7ed; color: #92400e; border: 1px solid #fde68a; }
.status-badge.approved { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.status-badge.rejected { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ===== TYPE BADGE ===== */
.type-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.type-badge.cp    { background: #eff6ff; color: #1e40af; }
.type-badge.css   { background: #fdf4ff; color: #7e22ce; }
.type-badge.rtt   { background: #f0fdf4; color: #166534; }
.type-badge.abs   { background: #fff7ed; color: #92400e; }
.type-badge.mal   { background: #fef2f2; color: #991b1b; }
.type-badge.mat   { background: #fdf4ff; color: #7e22ce; }
.type-badge.form  { background: #ecfeff; color: #155e75; }
.type-badge.autre { background: #f9fafb; color: #374151; }

/* ===== ACTION BUTTONS ===== */
.action-btns { display: flex; gap: 6px; }
.btn-approve, .btn-reject, .btn-detail {
  border: none; border-radius: var(--r);
  padding: 6px 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.btn-approve { background: #dcfce7; color: #166534; }
.btn-approve:hover { background: #bbf7d0; }
.btn-reject  { background: #fee2e2; color: #991b1b; }
.btn-reject:hover  { background: #fecaca; }
.btn-detail  { background: var(--bg); color: #555; border: 1px solid #e5e5e5; }
.btn-detail:hover  { background: #e5e5e5; }
.btn-approve svg, .btn-reject svg, .btn-detail svg {
  width: 12px; height: 12px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2.5;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  padding: 64px 32px;
  text-align: center;
}
.empty-state svg { width: 48px; height: 48px; color: #ccc; margin-bottom: 14px; }
.empty-state p { color: #888; font-size: 0.95rem; }

/* ===== STATS CARDS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  border-radius: 4px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  border-left: 3px solid transparent;
  display: flex; align-items: center; gap: 16px;
}
.stat-card.red    { border-left-color: var(--red); }
.stat-card.orange { border-left-color: var(--orange); }
.stat-card.green  { border-left-color: var(--green); }
.stat-card.teal   { border-left-color: var(--teal); }
.stat-icon {
  width: 44px; height: 44px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card.red    .stat-icon { background: rgba(226,0,26,.1); }
.stat-card.orange .stat-icon { background: rgba(217,119,6,.1); }
.stat-card.green  .stat-icon { background: rgba(26,138,74,.1); }
.stat-card.teal   .stat-icon { background: rgba(32,80,95,.1); }
.stat-icon svg { width: 22px; height: 22px; fill: none; stroke-width: 2; }
.stat-card.red    .stat-icon svg { stroke: var(--red); }
.stat-card.orange .stat-icon svg { stroke: var(--orange); }
.stat-card.green  .stat-icon svg { stroke: var(--green); }
.stat-card.teal   .stat-icon svg { stroke: var(--teal); }
.stat-info .stat-val {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem; line-height: 1;
  color: var(--black);
  letter-spacing: .5px;
}
.stat-info .stat-lbl { font-size: 0.8rem; color: #888; margin-top: 2px; }

/* ===== ADMIN LOCK ===== */
.admin-lock {
  text-align: center;
  padding: 80px 32px;
}
.admin-lock .lock-icon {
  width: 72px; height: 72px;
  background: var(--dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.admin-lock .lock-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--red); stroke-width: 2; }
.admin-lock h3 {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem; color: var(--black); letter-spacing: 1px; margin-bottom: 8px;
}
.admin-lock p { color: #888; font-size: 0.95rem; margin-bottom: 28px; }
.pin-input-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.pin-input {
  width: 52px; height: 56px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  color: var(--black);
  outline: none;
  transition: border-color .2s;
}
.pin-input:focus { border-color: var(--red); }
.pin-input.error { border-color: var(--red); animation: shake .3s; }
.pin-error { color: var(--red); font-size: 0.85rem; margin-bottom: 16px; display: none; }
.pin-error.show { display: block; }
.btn-unlock {
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 28px;
  border: none; border-radius: var(--r);
  cursor: pointer;
  transition: background .2s;
}
.btn-unlock:hover { background: #c0001a; }

/* ===== MODAL (detail / reject reason) ===== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 200;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 6px;
  width: 100%; max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-header {
  background: var(--dark);
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.4rem; color: var(--white); letter-spacing: 1px;
}
.modal-close {
  background: none; border: none;
  color: var(--gray); cursor: pointer;
  font-size: 1.4rem; line-height: 1;
  transition: color .2s;
}
.modal-close:hover { color: var(--white); }
.modal-body { padding: 24px; }
.modal-field { margin-bottom: 16px; }
.modal-field label {
  display: block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: #888; margin-bottom: 5px;
}
.modal-field .val {
  font-size: 0.95rem; color: var(--black); font-weight: 500;
}
.modal-field .val.comment {
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--r);
  color: #555;
  font-style: italic;
}
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex; gap: 10px; justify-content: flex-end;
}
.modal-footer .btn-mf {
  border: none; border-radius: var(--r);
  padding: 10px 22px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: all .15s;
}
.btn-mf.approve { background: var(--green); color: var(--white); }
.btn-mf.approve:hover { background: #15803d; }
.btn-mf.reject  { background: var(--red); color: var(--white); }
.btn-mf.reject:hover  { background: #c0001a; }
.btn-mf.cancel  { background: var(--bg); color: #555; }
.btn-mf.cancel:hover  { background: #e5e5e5; }

.reject-reason-area { display: none; }
.reject-reason-area.show { display: block; }
.reject-reason-area textarea {
  width: 100%;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--r);
  padding: 10px 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  margin-top: 12px;
  resize: none; height: 90px;
  outline: none;
  transition: border-color .2s;
}
.reject-reason-area textarea:focus { border-color: var(--red); }

/* ===== EXPORT ===== */
.btn-export {
  margin-left: auto;
  background: var(--dark);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 8px 18px;
  border: none; border-radius: var(--r);
  cursor: pointer;
  transition: background .2s;
  display: flex; align-items: center; gap: 6px;
}
.btn-export:hover { background: #333; }
.btn-export svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ===== ANIMATIONS ===== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-in { animation: fadeIn .3s ease forwards; }

/* ===== FOOTER ===== */
.app-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 24px 0;
  margin-top: 80px;
  text-align: center;
  color: var(--gray);
  font-size: 0.82rem;
}
.app-footer a { color: var(--red); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .type-cards { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .modal-grid { grid-template-columns: 1fr; }
  .table-toolbar { flex-direction: column; align-items: stretch; }
  .table-toolbar input[type="search"] { width: 100%; }
  .action-btns { flex-direction: column; }
  .form-footer { flex-direction: column; }

  /* Nav mobile */
  .nav { padding: 0 16px; }
  .nav-logo { left: 16px; }
  .nav-logo img { height: 30px; }
  .nav-right { right: 16px; gap: 8px; }
  .nav-badge { display: none; }
  .nav-back { font-size: 0.78rem; }

  /* Header mobile */
  .app-header { padding: 28px 0 22px; }
  .app-header h1 { font-size: 2rem; margin-bottom: 8px; }
  .app-header p { font-size: 0.88rem; }
  .app-header-tag { font-size: 0.65rem; padding: 4px 10px; margin-bottom: 10px; }

  /* Tabs mobile */
  .tab-btn { padding: 14px 16px; font-size: 0.78rem; gap: 5px; }

  /* Container mobile */
  .container { padding: 0 14px; }

  /* Sections mobile */
  .section { padding: 28px 0; }

  /* Form mobile */
  .form-body { padding: 20px 16px; }
  .form-card-header { padding: 18px 16px; }

  /* Admin lock / auth card */
  .admin-lock { padding: 28px 20px; }

  /* Data table scroll */
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 8px 10px; }
}

@media (max-width: 480px) {
  .type-cards { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .pin-input { width: 40px; height: 46px; font-size: 1.1rem; }

  /* Nav très petit écran */
  .nav-center .nav-logo-text { font-size: 1.1rem; }
  .nav-center .nav-logo-sub { font-size: 0.6rem; }

  /* Tables : masquer colonnes secondaires */
  .data-table .hide-mobile { display: none; }
}
