/* ══════════════════════════════════════════════════════════════
   GPC — Interface Moderne · Mairie de Koenigsmacker
   Design : Sidebar fixe + Layout colonne · Tons bleu institutionnel
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
  --blue:       #1a3a6b;
  --blue2:      #2355a0;
  --blue3:      #3b6fd4;
  --accent:     #e07b39;
  --red:        #dc2626;
  --green:      #16a34a;
  --purple:     #7c3aed;
  --yellow:     #ca8a04;
  --bg:         #f0f2f7;
  --bg2:        #e8eaf2;
  --white:      #ffffff;
  --border:     #dde1ed;
  --text:       #0f1629;
  --text2:      #4a5068;
  --muted:      #8892aa;
  --sidebar-w:  260px;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 2px 16px rgba(26,58,107,.10);
  --shadow-lg:  0 8px 32px rgba(26,58,107,.16);
  --font:       'DM Sans', sans-serif;
  --font-mono:  'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); }

/* ══ LAYOUT PRINCIPAL ══════════════════════════════════════════ */
.gpc-layout {
  display: flex;
  min-height: 100vh;
}

/* ══ SIDEBAR ═══════════════════════════════════════════════════ */
.gpc-sidebar {
  width: var(--sidebar-w);
  background: var(--blue);
  position: fixed;
  top: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: -4px 0 24px rgba(26,58,107,.25);
}

.gpc-sidebar-header {
  padding: 28px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.gpc-sidebar-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.gpc-sidebar-logo-icon {
  width: 38px; height: 38px; background: rgba(255,255,255,.15);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.gpc-sidebar-logo-text { color: #fff; font-weight: 700; font-size: .92rem; line-height: 1.2; }
.gpc-sidebar-logo-sub  { color: rgba(255,255,255,.5); font-size: .72rem; }

.gpc-sidebar-user {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.gpc-sidebar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue3); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.gpc-sidebar-uname { color: #fff; font-size: .82rem; font-weight: 600; }
.gpc-sidebar-urole { color: rgba(255,255,255,.5); font-size: .72rem; }

.gpc-sidebar-nav {
  flex: 1; padding: 16px 12px; overflow-y: auto;
}
.gpc-sidebar-section { margin-bottom: 20px; }
.gpc-sidebar-section-label {
  color: rgba(255,255,255,.35); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 0 8px; margin-bottom: 6px;
}
.gpc-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.65); text-decoration: none;
  font-size: .875rem; font-weight: 500;
  transition: all .18s ease; margin-bottom: 2px;
  cursor: pointer;
}
.gpc-nav-item:hover { background: rgba(255,255,255,.10); color: #fff; }
.gpc-nav-item.active { background: rgba(255,255,255,.15); color: #fff; font-weight: 600; }
.gpc-nav-item .nav-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.gpc-nav-item .nav-label { flex: 1; }
.gpc-nav-item .nav-badge {
  background: var(--accent); color: #fff;
  font-size: .65rem; font-weight: 700; padding: 2px 7px;
  border-radius: 20px; min-width: 20px; text-align: center;
}

.gpc-sidebar-footer {
  padding: 12px; border-top: 1px solid rgba(255,255,255,.10);
}
.gpc-logout-btn {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.5); text-decoration: none;
  font-size: .82rem; padding: 10px 12px; border-radius: var(--radius-sm);
  transition: all .18s;
}
.gpc-logout-btn:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ══ MAIN CONTENT ══════════════════════════════════════════════ */
.gpc-front-wrap {
  flex: 1;
  margin-right: var(--sidebar-w);
  padding: 32px 28px 40px;
  max-width: calc(100% - var(--sidebar-w));
}

/* ══ PAGE HEADER ═══════════════════════════════════════════════ */
.gpc-front-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; gap: 12px; flex-wrap: wrap;
}
.gpc-front-header h2 {
  font-size: 1.6rem; font-weight: 700; color: var(--blue);
  letter-spacing: -.02em;
}
.gpc-header-actions { display: flex; gap: 8px; }

/* ══ STAT CARDS ════════════════════════════════════════════════ */
.gpc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
.gpc-stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  transition: transform .2s, box-shadow .2s;
}
.gpc-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.gpc-stat-num   { font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.gpc-stat-label { font-size: .78rem; color: var(--muted); margin-top: 5px; font-weight: 500; }
.gpc-blue   { border-top-color: var(--blue2); }
.gpc-blue   .gpc-stat-num { color: var(--blue2); }
.gpc-orange { border-top-color: var(--accent); }
.gpc-orange .gpc-stat-num { color: var(--accent); }
.gpc-red    { border-top-color: var(--red); }
.gpc-red    .gpc-stat-num { color: var(--red); }
.gpc-green  { border-top-color: var(--green); }
.gpc-green  .gpc-stat-num { color: var(--green); }

/* ══ SECTION BOX ═══════════════════════════════════════════════ */
.gpc-section-box {
  background: var(--white); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.gpc-section-box h3 {
  font-size: .92rem; font-weight: 700; color: var(--blue);
  margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
}
.gpc-urgence-box {
  background: #fff5f5; border: 1.5px solid #fecaca;
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px;
}
.gpc-urgence-box h3 { font-size: .92rem; font-weight: 700; color: var(--red); margin-bottom: 14px; }

/* ══ TABLE ═════════════════════════════════════════════════════ */
.gpc-front-table {
  width: 100%; border-collapse: collapse;
  border-radius: var(--radius); overflow: hidden;
  font-size: .875rem;
}
.gpc-front-table th {
  background: var(--bg); padding: 11px 14px; text-align: left;
  font-size: .72rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1.5px solid var(--border);
}
.gpc-front-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--bg2);
  vertical-align: middle; color: var(--text);
}
.gpc-front-table tr:last-child td { border-bottom: none; }
.gpc-front-table tbody tr { transition: background .15s; }
.gpc-front-table tbody tr:hover td { background: var(--bg); }

/* ══ BADGES ════════════════════════════════════════════════════ */
.gpc-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  font-family: var(--font-mono);
}
.gpc-badge-actif, .gpc-badge-approuve, .gpc-badge-disponible, .gpc-badge-terminee   { background: #dcfce7; color: #15803d; }
.gpc-badge-conge, .gpc-badge-en_attente, .gpc-badge-planifiee                        { background: #fef9c3; color: #a16207; }
.gpc-badge-absent, .gpc-badge-refuse, .gpc-badge-hors_service, .gpc-badge-annulee   { background: #fee2e2; color: #b91c1c; }
.gpc-badge-inactif, .gpc-badge-en_maintenance                                         { background: #f1f5f9; color: #64748b; }
.gpc-badge-en_cours                                                                    { background: #fff7ed; color: #c2410c; }
.gpc-badge-equip-disponible    { background: #dcfce7; color: #15803d; }
.gpc-badge-equip-en_service    { background: #dbeafe; color: #1d4ed8; }
.gpc-badge-equip-en_maintenance{ background: #fff7ed; color: #c2410c; }
.gpc-badge-equip-hors_service  { background: #fee2e2; color: #b91c1c; }
.gpc-badge-planning-en_attente { background: #fef9c3; color: #a16207; }
.gpc-badge-planning-approuve   { background: #dcfce7; color: #15803d; }
.gpc-badge-planning-refuse     { background: #fee2e2; color: #b91c1c; }
.gpc-prio-urgente { background: #fee2e2; color: #b91c1c; }
.gpc-prio-haute   { background: #fff7ed; color: #c2410c; }
.gpc-prio-normale { background: #dbeafe; color: #1d4ed8; }
.gpc-prio-basse   { background: #dcfce7; color: #15803d; }

/* ══ BUTTONS ═══════════════════════════════════════════════════ */
.gpc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border: none; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: all .18s; text-decoration: none;
}
.gpc-btn-primary { background: var(--blue2); color: #fff; }
.gpc-btn-primary:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(35,85,160,.3); }
.gpc-btn-start  { background: var(--blue2); color: #fff; border-radius: var(--radius-sm); flex: 1; padding: 11px; border: none; font-family: var(--font); font-weight: 600; cursor: pointer; font-size:.875rem; transition: all .18s; }
.gpc-btn-finish { background: var(--green); color: #fff; border-radius: var(--radius-sm); flex: 1; padding: 11px; border: none; font-family: var(--font); font-weight: 600; cursor: pointer; font-size:.875rem; transition: all .18s; }
.gpc-btn-start:hover  { background: var(--blue); }
.gpc-btn-finish:hover { background: #15803d; }

/* ══ FORMS ═════════════════════════════════════════════════════ */
.gpc-field { margin-bottom: 16px; }
.gpc-field label {
  display: block; font-size: .78rem; font-weight: 600;
  color: var(--text2); margin-bottom: 6px; text-transform: uppercase;
  letter-spacing: .04em;
}
.gpc-field input, .gpc-field select, .gpc-field textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .9rem; color: var(--text);
  background: var(--white); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.gpc-field input:focus, .gpc-field select:focus, .gpc-field textarea:focus {
  border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(35,85,160,.12);
}
.gpc-field textarea { resize: vertical; min-height: 80px; }
.gpc-field-check { font-size: .875rem; margin-bottom: 16px; color: var(--text2); }
.gpc-field-check input { width: auto; margin-right: 6px; }
.gpc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ══ LOGIN ══════════════════════════════════════════════════════ */
.gpc-front-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue) 0%, #2a5298 50%, #1e3c72 100%);
  padding: 24px;
}
.gpc-login-box {
  background: var(--white); border-radius: 20px;
  padding: 40px 36px; width: 100%; max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.gpc-login-logo { font-size: 2.5rem; text-align: center; margin-bottom: 6px; }
.gpc-login-box h2 {
  text-align: center; color: var(--blue); font-size: 1.3rem;
  font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px;
}
.gpc-login-sub { text-align: center; color: var(--muted); font-size: .85rem; margin-bottom: 28px; }

/* ══ ALERTS ════════════════════════════════════════════════════ */
.gpc-alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .875rem; margin-bottom: 16px; font-weight: 500; }
.gpc-alert-error   { background: #fee2e2; color: #b91c1c; border-left: 3px solid #b91c1c; }
.gpc-alert-success { background: #dcfce7; color: #15803d; border-left: 3px solid #15803d; }
.gpc-front-notice  { background: #eff6ff; border-left: 4px solid var(--blue2); padding: 16px 20px; border-radius: var(--radius-sm); font-size: .9rem; color: var(--text2); }

/* ══ SEARCH & FILTERS ══════════════════════════════════════════ */
.gpc-front-search {
  display: flex; gap: 8px; margin-bottom: 20px;
}
.gpc-front-search input, .search-input {
  flex: 1; padding: 10px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: .9rem; outline: none;
}
.gpc-front-search input:focus { border-color: var(--blue2); }
.gpc-front-search button {
  padding: 10px 18px; background: var(--blue2); color: #fff;
  border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: .9rem;
}
.gpc-filter-bar { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.gpc-chip {
  padding: 6px 16px; border-radius: 20px; font-size: .78rem; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--muted); text-decoration: none; transition: all .15s;
}
.gpc-chip.active, .gpc-chip:hover { background: var(--blue2); color: #fff; border-color: var(--blue2); }

/* ══ INTERVENTION CARDS (Agent) ════════════════════════════════ */
.gpc-inter-card {
  background: var(--white); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 14px;
  box-shadow: var(--shadow); border-left: 4px solid var(--blue2);
  transition: transform .2s;
}
.gpc-inter-card:hover { transform: translateX(2px); }
.gpc-inter-urgente { border-left-color: var(--red); }
.gpc-inter-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.gpc-inter-card-title  { font-size: 1rem; font-weight: 700; color: var(--text); }
.gpc-inter-card-meta   { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.gpc-inter-card-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.gpc-inter-card-desc   { font-size: .83rem; color: var(--text2); background: var(--bg); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; white-space: pre-line; line-height: 1.5; }
.gpc-inter-action-form { border-top: 1px solid var(--border); padding-top: 14px; }
.gpc-inter-action-btns { display: flex; gap: 8px; margin-top: 10px; }
.gpc-inter-done { padding: 10px 16px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--green); background: #dcfce7; border-radius: var(--radius-sm); }
.gpc-inter-annulee { color: var(--red); background: #fee2e2; }

/* ══ PROFILE BANNER ════════════════════════════════════════════ */
.gpc-profile-banner {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue3) 100%);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}
.gpc-profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.3);
}
.gpc-profile-name  { font-size: 1.15rem; font-weight: 700; color: #fff; }
.gpc-profile-poste { font-size: .82rem; color: rgba(255,255,255,.7); margin: 3px 0 8px; }

/* ══ TODAY BOX ═════════════════════════════════════════════════ */
.gpc-box-today { border-left: 4px solid var(--blue2); }
.gpc-today-inter { padding: 12px 0; border-bottom: 1px solid var(--bg2); }
.gpc-today-inter:last-child { border-bottom: none; }
.gpc-today-title { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.gpc-today-meta  { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.gpc-conge-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; }

/* ══ RAPPORT ═══════════════════════════════════════════════════ */
.gpc-date-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.gpc-date-btn { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 9px 18px; color: var(--blue2); font-weight: 600; text-decoration: none; font-size: .875rem; transition: all .15s; }
.gpc-date-btn:hover { background: var(--blue2); color: #fff; border-color: var(--blue2); }
.gpc-date-input { padding: 9px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: .875rem; }
.gpc-rapport-title { text-align: center; font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 20px; background: var(--bg); padding: 12px; border-radius: var(--radius-sm); }
.gpc-rapport-desc  { font-size: .75rem; color: var(--muted); margin-top: 3px; }

/* ══ DISPONIBILITÉS ════════════════════════════════════════════ */
.gpc-agents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.gpc-agent-chip { display: flex; align-items: flex-start; gap: 10px; background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; transition: background .15s; }
.gpc-agent-chip:hover { background: var(--bg2); }
.gpc-agent-chip-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.gpc-agent-chip-name  { font-weight: 700; font-size: .85rem; color: var(--text); }
.gpc-agent-chip-poste { font-size: .75rem; color: var(--muted); margin: 2px 0; }
.gpc-tel-link { font-size: .75rem; color: var(--blue2); text-decoration: none; font-weight: 600; }
.gpc-tel-link:hover { text-decoration: underline; }

/* ══ ANNUAIRE ══════════════════════════════════════════════════ */
.gpc-annuaire-search { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.gpc-annuaire-search input, .gpc-annuaire-search select { padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: .875rem; flex: 1; min-width: 140px; outline: none; }
.gpc-annuaire-search input:focus, .gpc-annuaire-search select:focus { border-color: var(--blue2); }
.gpc-annuaire-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.gpc-annuaire-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--bg); border-radius: var(--radius);
  padding: 16px; transition: all .2s; border: 1.5px solid transparent;
}
.gpc-annuaire-card:hover { background: var(--white); border-color: var(--border); box-shadow: var(--shadow); }
.gpc-annuaire-avatar {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; flex-shrink: 0;
}
.gpc-annuaire-name    { font-weight: 700; font-size: .92rem; color: var(--text); }
.gpc-annuaire-poste   { font-size: .78rem; color: var(--muted); margin: 3px 0 8px; }
.gpc-annuaire-contacts{ display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.gpc-contact-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px; font-size: .75rem; font-weight: 600; text-decoration: none; transition: all .15s; }
.gpc-contact-tel  { background: #dbeafe; color: #1d4ed8; }
.gpc-contact-mail { background: #f3e8ff; color: #7c3aed; }
.gpc-contact-tel:hover  { background: #1d4ed8; color: #fff; }
.gpc-contact-mail:hover { background: #7c3aed; color: #fff; }

/* ══ FRONT LIST ════════════════════════════════════════════════ */
.gpc-front-list { list-style: none; }
.gpc-front-list li { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--bg2); }
.gpc-front-list li:last-child { border-bottom: none; }
.gpc-muted { color: var(--muted); font-size: .8rem; margin-left: auto; }

/* ══ EMPTY STATE ═══════════════════════════════════════════════ */
.gpc-empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.gpc-empty-icon  { font-size: 2.5rem; margin-bottom: 12px; opacity: .5; }
.gpc-empty-state p { font-size: .9rem; }

/* ══ MOBILE ════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .gpc-sidebar {
    width: 100%; height: 64px; bottom: 0; top: auto; right: 0;
    flex-direction: row; align-items: center;
    box-shadow: 0 -4px 16px rgba(26,58,107,.15);
  }
  .gpc-sidebar-header, .gpc-sidebar-footer, .gpc-sidebar-section-label { display: none; }
  .gpc-sidebar-nav { display: flex; flex-direction: row; padding: 0; overflow-x: auto; width: 100%; }
  .gpc-sidebar-section { display: flex; flex-direction: row; margin: 0; }
  .gpc-nav-item { flex-direction: column; padding: 8px 12px; gap: 2px; font-size: .6rem; min-width: 56px; justify-content: center; }
  .gpc-nav-item .nav-icon { font-size: 1.2rem; }
  .gpc-nav-item .nav-badge { display: none; }
  .gpc-front-wrap { margin-right: 0; margin-bottom: 64px; padding: 20px 16px 24px; max-width: 100%; }
  .gpc-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gpc-annuaire-grid, .gpc-agents-grid { grid-template-columns: 1fr; }
  .gpc-form-row { grid-template-columns: 1fr; }
  .gpc-front-header h2 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .gpc-front-table { font-size: .78rem; }
  .gpc-front-table th, .gpc-front-table td { padding: 8px 10px; }
}

/* ══ TABS ═══════════════════════════════════════════════════════ */
.gpc-tabs {
  display: flex; gap: 4px; background: var(--bg2);
  border-radius: var(--radius-sm); padding: 4px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.gpc-tab {
  flex: 1; padding: 9px 16px; border: none; border-radius: 6px;
  background: transparent; color: var(--muted);
  font-family: var(--font); font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: all .18s; white-space: nowrap;
}
.gpc-tab.active { background: var(--white); color: var(--blue); box-shadow: 0 1px 4px rgba(0,0,0,.10); }
.gpc-tab:hover:not(.active) { color: var(--text); }

/* ══ ACCUEIL GRID ═══════════════════════════════════════════════ */
.gpc-accueil-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px; align-items: start;
}
.gpc-accueil-left  { display: flex; flex-direction: column; gap: 14px; }
.gpc-cal-embed     { padding: 18px 20px; }

/* ══ GREETING ═══════════════════════════════════════════════════ */
.gpc-greeting {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue3) 100%);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px;
  color: #fff; display: flex; align-items: center; justify-content: space-between;
}
.gpc-greeting-title { font-size: 1.2rem; font-weight: 700; }
.gpc-greeting-sub   { font-size: .85rem; opacity: .7; margin-top: 4px; }

/* ══ URGENCE ITEMS ══════════════════════════════════════════════ */
.gpc-urgence-item { padding: 10px 0; border-bottom: 1px solid #fecaca; }
.gpc-urgence-item:last-child { border-bottom: none; }
.gpc-urgence-titre { font-weight: 700; font-size: .9rem; color: var(--red); }
.gpc-urgence-meta  { font-size: .78rem; color: var(--text2); margin-top: 3px; }

/* ══ MINI AVATAR ════════════════════════════════════════════════ */
.gpc-mini-avatar {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; flex-shrink: 0;
}

/* ══ STAT SUB ═══════════════════════════════════════════════════ */
.gpc-stat-sub { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* ══ RESPONSIVE ACCUEIL ═════════════════════════════════════════ */
@media (max-width: 900px) {
  .gpc-accueil-grid { grid-template-columns: 1fr; }
}

/* ══ GALERIE PHOTOS ═════════════════════════════════════════════ */
.gpc-gallery-wrap        { margin-top: 16px; }
.gpc-gallery-title       { font-size: .9rem; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.gpc-gallery-section     { margin-bottom: 16px; }
.gpc-gallery-label       { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.gpc-gallery-grid        { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 8px; }
.gpc-gallery-item        { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.gpc-gallery-img         { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.gpc-gallery-link:hover .gpc-gallery-img { transform: scale(1.05); }
.gpc-gallery-caption     { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.6); color: #fff; font-size: .68rem; padding: 4px 6px; }
.gpc-gallery-delete      { position: absolute; top: 4px; right: 4px; background: var(--red); color: #fff; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: .7rem; text-decoration: none; opacity: 0; transition: opacity .2s; }
.gpc-gallery-item:hover .gpc-gallery-delete { opacity: 1; }

/* Upload zone */
.gpc-gallery-upload      { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.gpc-gallery-upload-title{ font-size: .82rem; font-weight: 700; color: var(--text2); margin-bottom: 10px; }
.gpc-upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 24px; text-align: center; cursor: pointer;
  transition: all .2s; background: var(--bg);
}
.gpc-upload-zone:hover, .gpc-upload-zone.drag-over { border-color: var(--blue2); background: #eff6ff; }
.gpc-upload-icon   { font-size: 2rem; margin-bottom: 6px; }
.gpc-upload-text   { font-size: .82rem; color: var(--muted); }
.gpc-file-input    { display: none; }
.gpc-upload-meta   { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gpc-upload-type   { padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: .85rem; flex: 1; }
.gpc-upload-legende{ padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: .85rem; flex: 2; outline: none; }
.gpc-upload-progress { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .82rem; color: var(--muted); }
.gpc-progress-bar  { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.gpc-progress-fill { height: 100%; background: var(--blue2); border-radius: 3px; width: 0; transition: width .2s; }

/* Photo profil agent */
.gpc-agent-photo   { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
