/* Pages publiques (villes, secteurs, fiches invader) — mêmes couleurs que home.html */

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

:root {
    --bg: #0B0D12;
    --surface: #1B2029;
    --surface-2: #232A34;
    --border: rgba(255,255,255,0.08);
    --text: #F2F4F7;
    --text-secondary: #98A2B3;
    --brand: #2D6FE0;
    --brand-light: #5B93F5;
    --neon-green: #4AFF7A;
    --neon-cyan: #4DE8E8;
    --ok: #4AFF7A;
    --degraded: #FFB547;
    --destroyed: #FF4F6D;
    --muted: #98A2B3;
    --radius-lg: 20px;
    --radius-md: 14px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at 50% 0%, #182033 0%, var(--bg) 45%, #05070a 100%);
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

a { color: var(--brand-light); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* En-tête */
.site-header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    max-width: 1040px; margin: 0 auto; padding: 16px 20px;
}
.brand {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
    font-family: 'Press Start 2P', monospace; font-size: 0.8em; letter-spacing: 1px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand img { border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 14px; font-size: 0.9em; font-weight: 600; }
.site-nav > a { color: var(--text); text-decoration: none; }
.site-nav .nav-cta {
    background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 999px;
}
.lang-switch {
    display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: 3px;
}
.lang-switch a {
    padding: 4px 9px; border-radius: 999px; font-size: 0.75em; font-weight: 700;
    color: var(--text-secondary); text-decoration: none;
}
.lang-switch a.active { background: var(--brand); color: #fff; }

/* Mise en page */
.page { max-width: 1040px; margin: 0 auto; padding: 0 20px 48px; }

.breadcrumbs ol {
    list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
    font-size: 0.82em; color: var(--text-secondary); margin: 8px 0 20px;
}
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; }
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

.eyebrow {
    display: block; font-family: 'Press Start 2P', monospace; font-size: 0.6em;
    letter-spacing: 2px; color: var(--neon-cyan); margin-bottom: 14px;
}

.hero { padding: 12px 0 28px; }
.hero h1 { font-size: clamp(1.9em, 4.5vw, 2.8em); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.lead { color: var(--text-secondary); font-size: 1.05em; max-width: 760px; margin-bottom: 12px; }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px; margin-bottom: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.card h2 { font-size: 1.3em; font-weight: 700; margin-bottom: 16px; }
.caption, .muted { color: var(--text-secondary); font-size: 0.88em; margin-top: 12px; }

/* Chiffres */
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.stats li {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 14px 18px; min-width: 120px; color: var(--text-secondary); font-size: 0.8em;
}
.stats strong { display: block; font-size: 1.7em; font-weight: 800; color: var(--text); }
.stats .ok, .place-count .ok { color: var(--ok); }
.stats .destroyed { color: var(--destroyed); }

/* Statuts */
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.status-ok .dot { background: var(--ok); }
.status-degraded .dot { background: var(--degraded); }
.status-destroyed .dot { background: var(--destroyed); }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.badge {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
    font-size: 0.85em; font-weight: 600; color: var(--text); text-decoration: none;
}
.badge-link:hover { border-color: rgba(77,232,232,0.4); }

/* Listes d'invaders */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); text-decoration: none; font-size: 0.88em;
    font-variant-numeric: tabular-nums;
}
.chip:hover { border-color: rgba(77,232,232,0.4); }
.chip-id { font-weight: 700; }
.chip-meta { color: var(--text-secondary); font-size: 0.9em; }
.status-destroyed .chip-id { color: var(--text-secondary); text-decoration: line-through; }

/* Grilles de villes / secteurs */
.place-grid {
    list-style: none; display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.place-tile {
    display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
    color: var(--text); text-decoration: none;
}
.place-tile:hover, .place-tile.current { border-color: rgba(77,232,232,0.45); }
.place-name { font-weight: 700; }
.place-count { color: var(--text-secondary); font-size: 0.82em; }

/* Fiche */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.facts div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; }
.facts dt { color: var(--text-secondary); font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.facts dd { font-weight: 600; }
.facts dd .badge { padding: 2px 10px; }

.sequence { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.sequence a { text-decoration: none; }

/* Carte */
.zone-map { height: 360px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.zone-map-large { height: 460px; }
.zone-popup { display: flex; flex-direction: column; gap: 2px; font-family: 'Inter', sans-serif; }
.zone-popup a { font-weight: 600; }
/* Groupes de marqueurs au rose des zones de l'app, au lieu du vert/jaune du plugin */
.zone-map .marker-cluster { background-color: rgba(232, 56, 109, 0.28); }
.zone-map .marker-cluster div { background-color: rgba(232, 56, 109, 0.88); color: #fff; font-weight: 700; font-family: 'Inter', sans-serif; }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 10px; background: var(--surface-2); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--text-secondary); margin-top: 10px; }

/* Appel à télécharger */
.cta { text-align: center; }
.cta .eyebrow { text-align: center; }
.cta .lead { margin: 0 auto 24px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.badges img { height: 56px; width: auto; display: block; }

/* Pied de page */
.site-footer {
    max-width: 1040px; margin: 0 auto; padding: 24px 20px 48px; border-top: 1px solid var(--border);
    color: var(--text-secondary); font-size: 0.85em;
}
.footer-cities { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.footer-cities a, .footer-links a { color: var(--text-secondary); text-decoration: none; }
.footer-cities a:hover, .footer-links a:hover { color: var(--text); }
.footer-links { margin-bottom: 10px; }

@media (max-width: 640px) {
    .site-header { flex-wrap: wrap; }
    .site-nav .nav-cta { display: none; }
    .card { padding: 20px 16px; }
    .zone-map { height: 300px; }
    .zone-map-large { height: 380px; }
    .stats li { min-width: calc(50% - 6px); }
}
