/* ============================================================
   Mercure RP - Carte des postes
   Design system basé sur Forge (Webba Creative Technologies)
   Charte Mercure : bleu #1D86FF / crème #E8E2D1 / noir #110F21
   ============================================================ */

:root {
    /* ---- Brand Mercure ---- */
    --brand-primary: #1D86FF;
    --brand-primary-hover: #4D9FFF;
    --brand-primary-subtle: rgba(29, 134, 255, 0.12);
    --brand-primary-border: rgba(29, 134, 255, 0.35);

    /* ---- Backgrounds (Forge-style layered dark) ---- */
    --bg-primary:   #110F21;   /* fond principal */
    --bg-secondary: #171530;   /* panels (sidebar, header) */
    --bg-tertiary:  #1F1D3D;   /* cards, items */
    --bg-hover:     #2A2750;
    --bg-overlay:   rgba(17, 15, 33, 0.85);

    /* ---- Text ---- */
    --text-primary:   #E8E2D1;  /* crème Mercure */
    --text-secondary: #9E9AB3;
    --text-muted:     #6B6886;
    --text-inverse:   #110F21;

    /* ---- Borders ---- */
    --border-color:  #2E2B4D;
    --border-subtle: #1A1835;
    --border-strong: #3D3A5E;

    /* ---- Status (dispo / occupe / vital / recrutement) ---- */
    --color-dispo:  #E8E2D1;       /* idée de rôle : crème discret (n'attire pas l'œil) */
    --color-dispo-soft: rgba(232, 226, 209, 0.5);
    --color-occupe: #EF4444;
    --color-vital:  #F59E0B;
    --color-recrutement: #1D86FF;  /* recrutement en cours : bleu Mercure */

    /* ---- Radius (Forge : généreusement arrondi) ---- */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 999px;

    /* ---- Shadows ---- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 0 1px var(--brand-primary-border), 0 0 20px rgba(29, 134, 255, 0.25);

    /* ---- Transitions ---- */
    --transition: 0.15s ease;
    --transition-slow: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- Scrollbars (Forge style) ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--border-color) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   Header
   ============================================================ */
#app-header {
    height: 64px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* Wordmark texte "mercure" (placeholder — remplace par <img> pour utiliser ton vrai logo) */
.wordmark {
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.02em;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    user-select: none;
}
.wordmark-m {
    color: var(--brand-primary);
    font-style: italic;
    padding-right: 1px;
}
.wordmark-rest {
    color: var(--text-primary);
}

.header-divider {
    width: 1px;
    height: 28px;
    background: var(--border-color);
}

.header-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.header-title .title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.header-title .subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    gap: 8px;
}

/* ---------- Boutons (Forge style) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}
.btn.active,
.btn-primary {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}
.btn.active:hover,
.btn-primary:hover {
    background: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
}
.btn-ghost {
    background: transparent;
    border-color: transparent;
}
.btn-ghost:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

/* Bouton Discord (couleur officielle #5865F2) */
.btn-discord {
    background: #5865F2;
    color: #fff;
    border-color: #5865F2;
    text-decoration: none;
}
.btn-discord:hover {
    background: #4752C4;
    border-color: #4752C4;
    color: #fff;
}
.btn-discord svg { flex-shrink: 0; }

/* Icône en image (PNG) dans un bouton */
.btn-icon {
    height: 18px;
    width: auto;
    flex-shrink: 0;
    display: block;
}
.btn-discord .btn-icon {
    height: 20px;
    filter: brightness(0) invert(1); /* force le logo en blanc */
}
.modal-cta .btn-icon { height: 22px; }

/* ============================================================
   Main layout
   ============================================================ */
main {
    display: flex;
    height: calc(100vh - 64px);
    width: 100%;
    position: relative;
}

/* ---------- Sidebar ---------- */
#sidebar {
    width: 320px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    overflow-y: auto;
    transition: margin-left var(--transition-slow);
}
#sidebar.hidden { margin-left: -320px; }

.sidebar-inner { padding: 20px; }

.card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}
.card:last-child { margin-bottom: 0; }

.card-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}
.card-title::-webkit-details-marker { display: none; }

/* ---------- Card intro (À propos) ---------- */
.card-intro {
    border-left: 3px solid var(--brand-primary);
}
.card-intro[open] .card-title::after {
    content: '−';
    color: var(--text-muted);
    font-weight: 700;
    font-size: 14px;
}
.card-intro:not([open]) .card-title::after {
    content: '+';
    color: var(--text-muted);
    font-weight: 700;
    font-size: 14px;
}
.card-intro .card-title {
    cursor: pointer;
    margin-bottom: 0;
    user-select: none;
    transition: color var(--transition);
}
.card-intro .card-title:hover { color: var(--text-primary); }
.card-intro[open] .card-title { margin-bottom: 12px; }

.intro-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.intro-text p {
    margin-bottom: 10px;
}
.intro-text p:last-child { margin-bottom: 0; }
.intro-text strong {
    color: var(--text-primary);
    font-weight: 600;
}
.intro-text em {
    color: var(--brand-primary);
    font-style: italic;
    font-weight: 500;
}
.card-title .count {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    letter-spacing: 0;
}

/* ---------- Légende (sert aussi de filtres au clic) ---------- */
.card-title-hint {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
}

.legend { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-primary);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    user-select: none;
    transition: background var(--transition), opacity var(--transition);
}
.legend-item:hover { background: var(--bg-hover); }

.legend-item .legend-label { flex: 1; }

.legend-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    min-width: 24px;
    text-align: center;
}

/* État désactivé (filtre off) */
.legend-item.inactive {
    opacity: 0.35;
}
.legend-item.inactive .blip {
    background: var(--text-muted) !important;
    box-shadow: none;
    filter: grayscale(1);
}
.legend-item.inactive .legend-count {
    color: var(--text-muted);
}

.blip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    flex-shrink: 0;
}
.blip-dispo  { background: var(--color-dispo); box-shadow: 0 0 0 1px rgba(232, 226, 209, 0.3); }
.blip-occupe { background: var(--color-occupe); box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4); }
.blip-vital  { background: var(--color-vital); box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.4); }
.blip-recrutement { background: var(--color-recrutement); box-shadow: 0 0 0 1px rgba(29, 134, 255, 0.4); }

/* ---------- Filtres ---------- */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.filter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    user-select: none;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.filter-label:hover { background: var(--bg-hover); }
.filter-label input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border-strong);
    border-radius: 4px;
    background: var(--bg-primary);
    cursor: pointer;
    position: relative;
    transition: all var(--transition);
    flex-shrink: 0;
}
.filter-label input[type="checkbox"]:checked {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}
.filter-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px; left: 4px;
    width: 5px; height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------- Input ---------- */
.input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-subtle);
}

/* ---------- Liste des postes par ville ---------- */
.ville-block {
    margin-top: 16px;
    padding: 10px 10px 8px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}
.ville-block:first-child { margin-top: 0; }

.ville-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}
.ville-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.ville-stats {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    line-height: 1.2;
}
.stat-pill .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.stat-pill.dispo  { background: rgba(232, 226, 209, 0.06); color: var(--color-dispo-soft); border-color: rgba(232, 226, 209, 0.15); }
.stat-pill.dispo  .dot { background: transparent; border: 1px solid var(--color-dispo-soft); box-sizing: border-box; }
.stat-pill.vital  { background: rgba(245, 158, 11, 0.12); color: var(--color-vital); border-color: rgba(245, 158, 11, 0.25); }
.stat-pill.vital  .dot { background: var(--color-vital); }
.stat-pill.occupe { background: rgba(239, 68, 68, 0.12); color: var(--color-occupe); border-color: rgba(239, 68, 68, 0.25); }
.stat-pill.occupe .dot { background: var(--color-occupe); }
.stat-pill.recrutement { background: rgba(29, 134, 255, 0.12); color: var(--color-recrutement); border-color: rgba(29, 134, 255, 0.25); }
.stat-pill.recrutement .dot { background: var(--color-recrutement); }

.poste-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    margin-bottom: 2px;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.poste-item:last-child { margin-bottom: 0; }
.poste-item:hover {
    background: var(--bg-hover);
    transform: translateX(2px);
}
.poste-item .indicator {
    width: 3px;
    align-self: stretch;
    border-radius: 2px;
    flex-shrink: 0;
}
.poste-item.dispo  .indicator { background: var(--color-dispo-soft); }
.poste-item.dispo .nom { color: var(--text-secondary); font-weight: 500; }
.poste-item.occupe .indicator { background: var(--color-occupe); }
.poste-item.vital  .indicator { background: var(--color-vital); }
.poste-item.recrutement .indicator { background: var(--color-recrutement); }
.poste-item .content { flex: 1; min-width: 0; }
.poste-item .nom {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.poste-item .meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.empty-state {
    text-align: center;
    padding: 24px 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
}

/* ============================================================
   Map
   ============================================================ */
#map {
    flex: 1;
    height: 100%;
    background: var(--bg-primary);
    cursor: grab;
}
#map.coord-mode { cursor: crosshair !important; }
.leaflet-container { background: var(--bg-primary) !important; font-family: inherit !important; }

/* Zoom control skinning */
.leaflet-control-zoom {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-md) !important;
}
.leaflet-control-zoom a {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    transition: background var(--transition);
}
.leaflet-control-zoom a:hover {
    background: var(--bg-hover) !important;
    color: var(--brand-primary) !important;
}
.leaflet-control-zoom a:last-child { border-bottom: none !important; }

/* ---------- Map markers (blips) ---------- */
.map-blip {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    transition: transform var(--transition);
}
.map-blip.dispo {
    background: var(--color-dispo);
    border-color: var(--bg-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    opacity: 1;
    width: 14px;
    height: 14px;
    border-width: 2px;
    margin: 4px;       /* recentre dans le conteneur 22×22 de Leaflet */
}
.map-blip.occupe { background: var(--color-occupe); }
.map-blip.vital {
    background: var(--color-vital);
    animation: pulse-vital 2s ease-in-out infinite;
}
.map-blip.recrutement {
    background: var(--color-recrutement);
    animation: pulse-recrutement 2s ease-in-out infinite;
}
.map-blip:hover { transform: scale(1.2); opacity: 1; }

@keyframes pulse-vital {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(0,0,0,0.6), 0 0 0 0 rgba(245, 158, 11, 0.5);
    }
    50% {
        box-shadow: 0 2px 6px rgba(0,0,0,0.6), 0 0 0 10px rgba(245, 158, 11, 0);
    }
}

@keyframes pulse-recrutement {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(0,0,0,0.6), 0 0 0 0 rgba(29, 134, 255, 0.5);
    }
    50% {
        box-shadow: 0 2px 6px rgba(0,0,0,0.6), 0 0 0 10px rgba(29, 134, 255, 0);
    }
}

/* ---------- Clusters (regroupement des blips dispo) ---------- */
.map-cluster {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-dispo);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 1px 4px rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    transition: transform var(--transition);
}
.map-cluster:hover { transform: scale(1.15); }

/* Neutralise les styles par défaut de leaflet.markercluster */
.leaflet-marker-icon.leaflet-div-icon { background: transparent; border: none; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: transparent !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: transparent !important; }

/* ---------- Popups (Forge-style card) ---------- */
.leaflet-popup-content-wrapper {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0 !important;
}
.leaflet-popup-tip {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color);
    box-shadow: none !important;
}
.leaflet-popup-content {
    margin: 16px 18px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}
.leaflet-popup-close-button {
    color: var(--text-muted) !important;
    font-size: 20px !important;
    padding: 6px 8px !important;
    transition: color var(--transition);
}
.leaflet-popup-close-button:hover { color: var(--text-primary) !important; }

.popup-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}
.popup-ville {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.popup-statut {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    border: 1px solid transparent;
}
.popup-statut.dispo  { background: rgba(232, 226, 209, 0.08); color: var(--color-dispo-soft); border-color: rgba(232, 226, 209, 0.2); }
.popup-statut.occupe { background: rgba(239, 68, 68, 0.15); color: var(--color-occupe); border-color: rgba(239, 68, 68, 0.3); }
.popup-statut.vital  { background: rgba(245, 158, 11, 0.15); color: var(--color-vital); border-color: rgba(245, 158, 11, 0.3); }
.popup-statut.recrutement { background: rgba(29, 134, 255, 0.15); color: var(--color-recrutement); border-color: rgba(29, 134, 255, 0.3); }

.popup-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   Modale "À propos"
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 15, 33, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fade-in 0.25s ease;
}
.modal-overlay.hidden { display: none; }

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--brand-primary-border);
    padding: 28px 28px 24px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slide-up 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-tertiary); }

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.modal-subtitle {
    font-size: 13px;
    color: var(--brand-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}
.modal-cta {
    flex: 1;
    justify-content: center;
    height: 44px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* ============================================================
   Légende flottante (panneau bas-droite sur la map)
   ============================================================ */
#legend-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    box-shadow: var(--shadow-lg);
    z-index: 900;
    min-width: 220px;
    backdrop-filter: blur(8px);
}
.legend-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}
.legend-panel-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.legend-panel-hint {
    font-size: 10px;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================================
   Coord display (mode coordonnées)
   ============================================================ */
#coord-display {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 900;
    box-shadow: var(--shadow-lg);
}
#coord-display.hidden { display: none; }
#coord-display code {
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    color: var(--brand-primary);
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 12px;
}

/* ============================================================
   Utilities
   ============================================================ */
.hidden { display: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    #sidebar {
        width: 280px;
        position: absolute;
        top: 0; bottom: 0;
        z-index: 800;
        box-shadow: var(--shadow-lg);
    }
    #sidebar.hidden { margin-left: -280px; }
    .header-divider { display: none; }
    .header-title .subtitle { display: none; }
    .header-logo { height: 28px; }
    .btn { padding: 0 10px; font-size: 12px; }
}
