/* ══════════════════════════════════════════════════════════════
   GestionFlotteCTRATD — Feuille de style principale
   Shell professionnel (sidebar + topbar) inspiré de la charte GovWork
   Préfixe des classes : gf-
   ══════════════════════════════════════════════════════════════ */

:root {
    --gf-navy: #0D2B5E;
    --gf-navy-dark: #0a1f45;
    --gf-blue: #185FA5;
    --gf-blue-light: #E6F1FB;
    --gf-green: #1D9E75;
    --gf-green-light: #E1F5EE;
    --gf-orange: #C77C11;
    --gf-orange-light: #FAEEDA;
    --gf-purple: #534AB7;
    --gf-purple-light: #EEEDFE;
    --gf-red: #dc2626;
    --gf-red-light: #FAECE7;
    --gf-gray: #64748b;
    --gf-border: #e5e7eb;
    --gf-bg: #f6f7f9;
    --gf-text: #1f2937;
    --gf-text-muted: #6b7280;
    --gf-sidebar-w: 258px;
    --gf-topbar-h: 60px;
    --gf-radius: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Thèmes de couleur (préférence par utilisateur, voir Compte/ChangerTheme) ──
   Ne redéfinissent que la couleur d'accent principale (--gf-navy / --gf-blue /
   --gf-blue-light) — sidebar, topbar, boutons primaires, liens actifs. Les
   couleurs de statut (vert/orange/rouge/violet), les fonds et le texte restent
   identiques dans tous les thèmes, pour ne jamais compromettre la lisibilité
   des badges de statut ni le contraste du texte. */
:root[data-theme="ocean"] {
    --gf-navy: #0c4a6e;
    --gf-navy-dark: #083344;
    --gf-blue: #0284c7;
    --gf-blue-light: #e0f2fe;
}
:root[data-theme="emeraude"] {
    --gf-navy: #064e3b;
    --gf-navy-dark: #033a2b;
    --gf-blue: #059669;
    --gf-blue-light: #d1fae5;
}
:root[data-theme="amethyste"] {
    --gf-navy: #4c1d95;
    --gf-navy-dark: #3b1670;
    --gf-blue: #7c3aed;
    --gf-blue-light: #ede9fe;
}
:root[data-theme="bordeaux"] {
    --gf-navy: #7f1d1d;
    --gf-navy-dark: #5c1414;
    --gf-blue: #b91c1c;
    --gf-blue-light: #fee2e2;
}
:root[data-theme="graphite"] {
    --gf-navy: #1e293b;
    --gf-navy-dark: #0f172a;
    --gf-blue: #475569;
    --gf-blue-light: #f1f5f9;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--gf-bg);
    color: var(--gf-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
}

a { text-decoration: none; }

/* ── Shell général ─────────────────────────────────────────── */
.gf-shell {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.gf-sidebar {
    width: var(--gf-sidebar-w);
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--gf-navy) 0%, var(--gf-navy-dark) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 40;
    transition: transform .25s ease;
}

.gf-sidebar-header {
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.gf-logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.gf-logo-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.gf-logo-text { font-weight: 700; font-size: 16px; line-height: 1.2; }
.gf-logo-sub { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 2px; }

.gf-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 10px 20px;
}
.gf-nav-section {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: rgba(255,255,255,.38);
    font-weight: 600;
    margin: 18px 10px 6px;
}
.gf-nav-section:first-child { margin-top: 4px; }

.gf-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
    position: relative;
    transition: background .12s ease, color .12s ease;
}
.gf-nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.gf-nav-item.active { background: rgba(255,255,255,.13); color: #fff; }
.gf-nav-item.active::before {
    content: '';
    position: absolute; left: -10px; top: 6px; bottom: 6px;
    width: 3px; border-radius: 3px; background: #fff;
}
.gf-nav-icon {
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}
.gf-nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf-nav-badge {
    background: var(--gf-red); color: #fff;
    font-size: 10px; font-weight: 700;
    border-radius: 999px; min-width: 17px; height: 17px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
}

.gf-sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.gf-sidebar-footer-user {
    display: flex; align-items: center; gap: 10px;
    padding: 8px; border-radius: 8px;
    transition: background .12s ease;
}
.gf-sidebar-footer-user:hover { background: rgba(255,255,255,.07); }
.gf-user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.gf-user-name { color: #fff; font-size: 12.5px; font-weight: 600; }
.gf-user-role { color: rgba(255,255,255,.5); font-size: 10.5px; }

/* ── Zone principale ───────────────────────────────────────── */
.gf-main {
    margin-left: var(--gf-sidebar-w);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.gf-topbar {
    height: var(--gf-topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--gf-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 30;
}
.gf-hamburger {
    display: none;
    background: none; border: none; font-size: 20px;
    color: var(--gf-text); cursor: pointer;
}
.gf-topbar-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.gf-topbar-module-icon {
    width: 36px; height: 36px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
}
.gf-topbar-title { font-weight: 700; font-size: 15px; color: var(--gf-text); white-space: nowrap; }

.gf-topbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.gf-topbtn {
    width: 36px; height: 36px; border-radius: 9px;
    border: 1px solid var(--gf-border); background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--gf-gray); cursor: pointer;
    transition: background .12s ease;
    position: relative;
}
.gf-topbtn:hover { background: var(--gf-bg); }
.gf-topbar-divider { width: 1px; height: 24px; background: var(--gf-border); margin: 0 4px; }
.gf-topbar-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    border: none; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; cursor: pointer;
}

.gf-dropdown {
    position: absolute;
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--gf-border);
    border-radius: var(--gf-radius);
    box-shadow: 0 10px 30px rgba(13,43,94,.14);
    padding: 6px;
    z-index: 60;
}
.gf-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 7px;
    color: var(--gf-text); font-size: 12.5px;
    border: none; background: none; cursor: pointer;
}
.gf-dropdown-item:hover { background: var(--gf-bg); }
.gf-dropdown-item.danger { color: var(--gf-red); }
.gf-dropdown-divider { height: 1px; background: var(--gf-border); margin: 6px 4px; }

.gf-content {
    padding: 22px 26px 40px;
    max-width: 1440px;
    width: 100%;
}

/* ── Alertes ───────────────────────────────────────────────── */
.gf-alert {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 9px;
    font-size: 13px; margin-bottom: 16px;
    border: 1px solid transparent;
}
.gf-alert-success { background: var(--gf-green-light); color: #085041; border-color: #b9e6d5; }
.gf-alert-error { background: var(--gf-red-light); color: #712B13; border-color: #f3c9c9; }
.gf-alert-close { margin-left: auto; background: none; border: none; font-size: 16px; cursor: pointer; opacity: .6; }
.gf-alert-close:hover { opacity: 1; }

/* ── En-têtes de page ──────────────────────────────────────── */
.gf-page-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    margin-bottom: 20px;
}
.gf-page-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: var(--gf-text); }
.gf-page-subtitle { font-size: 13px; color: var(--gf-text-muted); margin: 0; }

/* ── Cartes KPI ────────────────────────────────────────────── */
.gf-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.gf-kpi-card {
    background: #fff; border: 1px solid var(--gf-border); border-radius: var(--gf-radius);
    padding: 16px 18px;
}
.gf-kpi-label {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--gf-text-muted); font-weight: 600; margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.gf-kpi-value { font-size: 24px; font-weight: 700; color: var(--gf-text); line-height: 1.15; }
.gf-kpi-sub { font-size: 12px; color: var(--gf-text-muted); margin-top: 4px; }

/* ── Cartes génériques ─────────────────────────────────────── */
.gf-card {
    background: #fff; border: 1px solid var(--gf-border); border-radius: var(--gf-radius);
    margin-bottom: 18px;
}
.gf-card-header {
    padding: 14px 18px; border-bottom: 1px solid var(--gf-border);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    flex-wrap: wrap;
}
.gf-card-title { font-size: 14.5px; font-weight: 700; margin: 0; }
.gf-card-body { padding: 18px; }

/* ── Tableaux ──────────────────────────────────────────────── */
.gf-table-wrap { overflow-x: auto; }
table.gf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.gf-table thead th {
    text-align: left; padding: 10px 14px;
    background: var(--gf-bg); color: var(--gf-text-muted);
    font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em;
    border-bottom: 1px solid var(--gf-border);
    white-space: nowrap;
}
table.gf-table tbody td {
    padding: 11px 14px; border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}
table.gf-table tbody tr:hover { background: #fafbfc; }
table.gf-table tbody tr:last-child td { border-bottom: none; }
.gf-table-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ── Badges / pastilles de statut ──────────────────────────── */
.gf-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600; white-space: nowrap;
}
.gf-badge-green { background: var(--gf-green-light); color: #085041; }
.gf-badge-blue { background: var(--gf-blue-light); color: #0C447C; }
.gf-badge-orange { background: var(--gf-orange-light); color: #633806; }
.gf-badge-red { background: var(--gf-red-light); color: #712B13; }
.gf-badge-gray { background: #f1f3f5; color: #4b5563; }
.gf-badge-purple { background: var(--gf-purple-light); color: #3f378f; }

/* ── Boutons ───────────────────────────────────────────────── */
.gf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: filter .12s ease, background .12s ease;
}
.gf-btn:hover { filter: brightness(0.94); }
.gf-btn-primary { background: var(--gf-blue); color: #fff; }
.gf-btn-success { background: var(--gf-green); color: #fff; }
.gf-btn-danger { background: var(--gf-red); color: #fff; }
.gf-btn-outline { background: #fff; border-color: var(--gf-border); color: var(--gf-text); }
.gf-btn-outline:hover { background: var(--gf-bg); }
.gf-btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 7px; }
.gf-btn-icon { width: 32px; height: 32px; padding: 0; border-radius: 7px; }

/* ── Formulaires ───────────────────────────────────────────── */
.gf-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gf-form-group { margin-bottom: 4px; }
.gf-form-group label {
    display: block; font-size: 12.5px; font-weight: 600;
    color: var(--gf-text); margin-bottom: 6px;
}
.gf-form-group .form-text-hint { font-size: 11.5px; color: var(--gf-text-muted); margin-top: 4px; }
.form-control, .form-select {
    width: 100%; padding: 9px 12px; border-radius: 8px;
    border: 1px solid var(--gf-border); font-size: 13px;
    font-family: inherit; color: var(--gf-text);
    background: #fff;
}
.form-control:focus, .form-select:focus {
    outline: none; border-color: var(--gf-blue);
    box-shadow: 0 0 0 3px rgba(24,95,165,.12);
}
.form-check-input { margin-right: 6px; }
.text-danger { color: var(--gf-red); font-size: 12px; }
.gf-form-actions { display: flex; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--gf-border); }

/* ── Empty state ───────────────────────────────────────────── */
.gf-empty { text-align: center; padding: 50px 20px; color: var(--gf-text-muted); }
.gf-empty i { font-size: 34px; opacity: .35; margin-bottom: 10px; display: block; }

/* ── Barre de progression (justification des fonds) ───────── */
.gf-progress { height: 7px; border-radius: 999px; background: #eef0f3; overflow: hidden; }
.gf-progress-bar { height: 100%; border-radius: 999px; background: var(--gf-green); }

/* ── Page de connexion ─────────────────────────────────────── */
.gf-login-shell {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gf-navy) 0%, var(--gf-blue) 100%);
    padding: 20px;
}
.gf-login-card {
    background: #fff; border-radius: 16px; padding: 36px 34px;
    width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.gf-login-logo { text-align: center; margin-bottom: 22px; }
.gf-login-logo .gf-logo-icon { margin: 0 auto 12px; background: var(--gf-blue-light); color: var(--gf-navy); }
.gf-login-logo h1 { font-size: 17px; margin: 0 0 4px; color: var(--gf-navy); }
.gf-login-logo p { font-size: 12.5px; color: var(--gf-text-muted); margin: 0; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
    .gf-sidebar { transform: translateX(-100%); }
    .gf-sidebar.gf-open { transform: translateX(0); }
    .gf-main { margin-left: 0; }
    .gf-hamburger { display: flex; align-items: center; }
}

/* ══════════════════════════════════════════════════════════════
   Fiche "profil" — bandeau + avatar + grille d'infos + actions
   (inspiré des fiches agent GovWork)
   ══════════════════════════════════════════════════════════════ */

.gf-profile-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    align-items: start;
    margin-bottom: 20px;
}
@media (max-width: 900px) {
    .gf-profile-wrap { grid-template-columns: 1fr; }
}

.gf-profile-card {
    background: #fff;
    border: 1px solid var(--gf-border);
    border-radius: var(--gf-radius);
    overflow: hidden;
}
.gf-profile-banner {
    height: 96px;
    background: linear-gradient(120deg, var(--gf-navy) 0%, var(--gf-blue) 100%);
}
.gf-profile-body {
    padding: 0 24px 22px;
}
.gf-profile-avatar {
    width: 84px; height: 84px; border-radius: 50%;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(13,43,94,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700;
    color: var(--gf-navy);
    margin-top: -42px;
    margin-bottom: 12px;
}
.gf-profile-name {
    font-size: 21px; font-weight: 700; color: var(--gf-text);
    margin: 0 0 8px;
}
.gf-profile-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }

.gf-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    row-gap: 16px;
    column-gap: 24px;
}
.gf-info-item { min-width: 0; }
.gf-info-label {
    font-size: 11.5px; color: var(--gf-text-muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px;
}
.gf-info-value { font-size: 14px; color: var(--gf-text); font-weight: 600; }
.gf-info-value.muted { color: var(--gf-text-muted); font-weight: 500; }
.gf-info-value a { color: var(--gf-blue); }

/* ── Panneau d'actions latéral ─────────────────────────────── */
.gf-actions-panel {
    background: #fff; border: 1px solid var(--gf-border); border-radius: var(--gf-radius);
    padding: 16px; margin-bottom: 16px;
}
.gf-actions-panel-title {
    font-size: 13px; font-weight: 700; color: var(--gf-text);
    margin: 0 0 12px;
}
.gf-action-btn {
    display: flex; align-items: center; gap: 9px;
    width: 100%; padding: 10px 14px; margin-bottom: 8px;
    border-radius: 8px; border: 1px solid var(--gf-border);
    background: #fff; font-size: 13px; font-weight: 600;
    cursor: pointer; text-align: left; transition: background .12s ease;
}
.gf-action-btn:last-child { margin-bottom: 0; }
.gf-action-btn:hover { background: var(--gf-bg); }
.gf-action-btn i { font-size: 16px; }
.gf-action-btn-blue { color: var(--gf-blue); border-color: #cfe1f5; }
.gf-action-btn-green { color: var(--gf-green); border-color: #c6ebdc; }
.gf-action-btn-orange { color: var(--gf-orange); border-color: #f2ddb3; }
.gf-action-btn-red { color: var(--gf-red); border-color: #f3c9c9; }
.gf-action-btn-gray { color: var(--gf-gray); border-color: var(--gf-border); }

.gf-panel-divider { height: 1px; background: var(--gf-border); margin: 4px 0 14px; }

/* ── Variantes bandeau pour les formulaires (Create/Edit) ─────
   Bandeau plus compact + avatar-icône (pas d'initiales) ──────── */
.gf-profile-banner-sm { height: 56px; }
.gf-profile-avatar-icon {
    width: 64px; height: 64px; font-size: 24px;
    margin-top: -32px;
}
.gf-form-subtitle {
    font-size: 13px; color: var(--gf-text-muted); margin: -4px 0 18px;
}
.gf-form-subtitle a { color: var(--gf-blue); }
.gf-profile-body form { margin-top: 4px; }

/* ── Variante "danger" du bandeau pour les pages de suppression ── */
.gf-profile-banner-danger { background: linear-gradient(120deg, #7a1f1f 0%, var(--gf-red) 100%); }
.gf-profile-avatar-danger i { color: var(--gf-red); }

/* ── En-tête des vues Index : icône + titre + actions sur une ligne ── */
.gf-index-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 14px;
}
.gf-index-header-left { display: flex; align-items: center; gap: 14px; }
.gf-index-header .gf-profile-avatar {
    margin-top: -30px; margin-bottom: 0; width: 60px; height: 60px; font-size: 22px;
    flex-shrink: 0;
}
.gf-index-header-text { min-width: 0; }
.gf-index-header-text .gf-profile-name { margin-bottom: 2px; }
.gf-index-header-text .gf-form-subtitle { margin: 0; }
.gf-index-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   Tableau de bord — en-tête de bienvenue, tuiles KPI, bandeau
   d'alerte et cartes de listes (inspiré du dashboard GovWork)
   ══════════════════════════════════════════════════════════════ */

.gf-greeting-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: 14px; margin-bottom: 20px;
}
.gf-greeting-title { font-size: 26px; font-weight: 800; color: var(--gf-navy); margin: 0 0 4px; }
.gf-greeting-sub { font-size: 13px; color: var(--gf-text-muted); margin: 0; text-transform: capitalize; }
.gf-greeting-sub .sep { margin: 0 6px; text-transform: none; }

.gf-quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gf-quick-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
    border: 1.5px solid var(--gf-border); background: #fff; color: var(--gf-text);
    white-space: nowrap; transition: background .12s ease;
}
.gf-quick-btn:hover { background: var(--gf-bg); }
.gf-quick-btn-primary { border-color: var(--gf-blue); color: var(--gf-blue); }
.gf-quick-btn-primary:hover { background: var(--gf-blue-light); }

/* ── Tuiles KPI à icône carrée colorée ─────────────────────── */
.gf-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.gf-tile-card {
    background: #fff; border: 1px solid var(--gf-border); border-radius: var(--gf-radius);
    padding: 16px;
}
.gf-tile-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; margin-bottom: 14px;
}
.gf-tile-value { font-size: 24px; font-weight: 800; color: var(--gf-text); line-height: 1; margin-bottom: 5px; }
.gf-tile-label { font-size: 12.5px; color: var(--gf-text-muted); font-weight: 500; }

/* ── Bandeau d'alerte à bordure gauche ─────────────────────── */
.gf-banner-alert {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--gf-red-light);
    border-left: 4px solid var(--gf-red);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}
.gf-banner-alert i { font-size: 20px; color: var(--gf-red); margin-top: 1px; }
.gf-banner-alert-title { font-size: 13.5px; font-weight: 700; color: #7a1f1f; margin: 0 0 2px; }
.gf-banner-alert a { font-size: 12.5px; color: #7a1f1f; font-weight: 600; text-decoration: none; }
.gf-banner-alert a:hover { text-decoration: underline; }

.gf-banner-ok {
    display: flex; align-items: center; gap: 12px;
    background: var(--gf-green-light);
    border-left: 4px solid var(--gf-green);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 13px; font-weight: 600; color: #085041;
}

/* ── Cartes de listes (façon "Derniers courriers") ─────────── */
.gf-list-card {
    background: #fff; border: 1px solid var(--gf-border); border-radius: var(--gf-radius);
    overflow: hidden;
}
.gf-list-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 18px; border-bottom: 1px solid var(--gf-border);
}
.gf-list-card-header-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--gf-text); }
.gf-list-card-header a { font-size: 12.5px; font-weight: 600; color: var(--gf-blue); }
.gf-list-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 18px; border-bottom: 1px solid #f1f3f5;
}
.gf-list-item:last-child { border-bottom: none; }
.gf-list-item-title { font-size: 13.5px; font-weight: 700; color: var(--gf-text); margin-bottom: 2px; }
.gf-list-item-sub { font-size: 12px; color: var(--gf-text-muted); }
.gf-list-item-date { font-size: 12.5px; color: var(--gf-text-muted); font-weight: 600; white-space: nowrap; flex-shrink: 0; }

/* ── Cloche de notifications ──────────────────────────────── */
.gf-notif-badge {
    position: absolute; top: 3px; right: 3px;
    background: var(--gf-red); color: #fff;
    font-size: 10px; font-weight: 700;
    border-radius: 999px; min-width: 16px; height: 16px;
    display: none; align-items: center; justify-content: center;
    padding: 0 4px; border: 2px solid #fff;
}
.gf-notif-dropdown { width: 340px; max-height: 420px; overflow-y: auto; padding: 0; }
.gf-notif-header {
    padding: 12px 14px; border-bottom: 1px solid var(--gf-border);
    font-size: 12.5px; font-weight: 700; color: var(--gf-text);
}
.gf-notif-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; border-bottom: 1px solid #f1f3f5;
    color: var(--gf-text); font-size: 12.5px;
}
.gf-notif-item:hover { background: var(--gf-bg); }
.gf-notif-item-icon { font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.gf-notif-item-title { font-weight: 700; }
.gf-notif-item-sub { color: var(--gf-text-muted); font-size: 11.5px; margin-top: 1px; }
.gf-notif-empty { padding: 24px 14px; text-align: center; color: var(--gf-text-muted); font-size: 12.5px; }
.gf-notif-footer {
    display: block; text-align: center; padding: 10px;
    font-size: 12px; font-weight: 600; color: var(--gf-blue);
    border-top: 1px solid var(--gf-border);
}

/* ── Pièces jointes ────────────────────────────────────────── */
.gf-piece-jointe {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid #f1f3f5;
}
.gf-piece-jointe:last-of-type { border-bottom: none; }
.gf-piece-jointe-link { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gf-text); min-width: 0; }
.gf-piece-jointe-link:hover { color: var(--gf-blue); }
.gf-piece-jointe-nom { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-piece-jointe-meta { font-size: 11px; color: var(--gf-text-muted); flex-shrink: 0; }
.gf-piece-jointe-upload { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.gf-piece-jointe-upload input[type="file"] { flex: 1; min-width: 200px; }

/* ── Sélecteur de thème de couleur ─────────────────────────── */
.gf-theme-picker { display: flex; gap: 8px; padding: 10px 14px; flex-wrap: wrap; }
.gf-theme-swatch {
    width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
    border: 2px solid transparent; padding: 0; position: relative;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.gf-theme-swatch.active { border-color: var(--gf-text); }
.gf-theme-swatch.active::after {
    content: "\2713"; position: absolute; inset: 0; display: flex;
    align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700;
}



/* ══════════════════════════════════════════════════════════════
   Suivi en temps réel — carte + panneau latéral des véhicules
   ══════════════════════════════════════════════════════════════ */

.gf-suivi-shell {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    height: calc(100vh - var(--gf-topbar-h) - 44px);
    min-height: 520px;
}
@media (max-width: 900px) {
    .gf-suivi-shell { grid-template-columns: 1fr; height: auto; }
    .gf-suivi-map { height: 420px; }
}

.gf-suivi-panel {
    background: #fff; border: 1px solid var(--gf-border); border-radius: var(--gf-radius);
    display: flex; flex-direction: column; overflow: hidden;
}
.gf-suivi-panel-header {
    padding: 14px 16px; border-bottom: 1px solid var(--gf-border);
    display: flex; align-items: center; justify-content: space-between;
}
.gf-suivi-panel-title { font-size: 13.5px; font-weight: 700; }
.gf-live-dot {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; color: var(--gf-green);
}
.gf-live-dot::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--gf-green);
    animation: gf-pulse 1.4s ease-in-out infinite;
}
.gf-live-dot.gf-live-off { color: var(--gf-gray); }
.gf-live-dot.gf-live-off::before { background: var(--gf-gray); animation: none; }
@keyframes gf-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(29,158,117,.5); }
    70% { box-shadow: 0 0 0 6px rgba(29,158,117,0); }
}

.gf-suivi-list { flex: 1; overflow-y: auto; }
.gf-suivi-vehicule {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px; border-bottom: 1px solid #f1f3f5;
    cursor: pointer; transition: background .12s ease;
}
.gf-suivi-vehicule:hover, .gf-suivi-vehicule.active { background: var(--gf-blue-light); }
.gf-suivi-vehicule-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--gf-gray); }
.gf-suivi-vehicule-dot.online { background: var(--gf-green); }
.gf-suivi-vehicule-info { min-width: 0; flex: 1; }
.gf-suivi-vehicule-plate { font-size: 13px; font-weight: 700; color: var(--gf-text); }
.gf-suivi-vehicule-meta { font-size: 11.5px; color: var(--gf-text-muted); }
.gf-suivi-vehicule-speed { font-size: 12px; font-weight: 700; color: var(--gf-blue); white-space: nowrap; }

.gf-suivi-map {
    border: 1px solid var(--gf-border); border-radius: var(--gf-radius);
    overflow: hidden;
    min-height: 480px;
}
.gf-map-marker-label {
    background: var(--gf-navy); color: #fff; font-size: 11px; font-weight: 700;
    padding: 2px 7px; border-radius: 5px; white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.gf-map-marker-alerte { animation: gf-marker-pulse 1.2s ease-in-out infinite; }
@keyframes gf-marker-pulse {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(220,38,38,.6)); }
    50% { filter: drop-shadow(0 0 6px rgba(220,38,38,.9)); }
}

/* ── Pagination ────────────────────────────────────────────── */
.gf-pagination {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    padding: 12px 16px;
    border-top: 1px solid var(--gf-border);
}
.gf-pagination-info { font-size: 12px; color: var(--gf-text-muted); }
.gf-pagination-nav { display: flex; align-items: center; gap: 6px; }
.gf-pagination-current { font-size: 12.5px; color: var(--gf-text); font-weight: 600; padding: 0 6px; white-space: nowrap; }






