/* =========================================================
   CHARTE « FRONTIÈRE DE NUIT » — commune à toutes les pages
   ========================================================= */
:root {
    --nuit: #0C1117; --relief: #1E2830; --terre: #1A232C; --brume: #7D8A94;
    --papier: #ECE6DA; --texte: #B9B3A8; --lueur: #F0A646; --lueur-claire: #F6BE6E;
    --font-title: 'Newsreader', Georgia, serif; --font-body: 'Work Sans', sans-serif; --font-mono: 'IBM Plex Mono', monospace;
    --marge: 48px; --largeur: 1080px; --contenu: calc(var(--largeur) - 2 * var(--marge));
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--nuit); color: var(--papier); line-height: 1.6; padding-top: 64px; display: flex; flex-direction: column; min-height: 100vh; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 400; }
a { text-decoration: none; color: inherit; }
strong { font-weight: 500; color: var(--papier); }

/* === UTILITAIRES === */
.wrap { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--brume); }
.lien { border-bottom: 1px solid var(--brume); padding-bottom: 2px; transition: border-color 0.2s, color 0.2s; }
.lien:hover { border-color: var(--lueur); color: var(--lueur); }
.section { border-top: 1px solid var(--relief); padding: 90px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 40px; }
.section-head h2 { font-size: 2rem; }

/* === BOUTONS === */
.btn { display: inline-block; font-family: var(--font-body); font-weight: 500; font-size: 1rem; text-align: center; color: var(--nuit); background-color: var(--lueur); padding: 14px 26px; border-radius: 2px; border: 1px solid var(--lueur); cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.btn:hover { background-color: var(--lueur-claire); border-color: var(--lueur-claire); }
.btn-ghost { background-color: transparent; color: var(--papier); border-color: var(--relief); }
.btn-ghost:hover { background-color: transparent; border-color: var(--lueur); color: var(--lueur); }

/* === MENU === */
.main-header { background-color: var(--nuit); height: 64px; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; border-bottom: 1px solid var(--relief); }
.header-inner { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); height: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-title); font-size: 1.25rem; color: var(--papier); }
.nav-links { display: flex; gap: 32px; list-style: none; height: 100%; align-items: center; }
.nav-links a { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--brume); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.accent { color: var(--lueur); }
.menu-toggle { display: none; font-size: 1.6rem; cursor: pointer; color: var(--papier); background: none; border: none; }
.dropdown { position: relative; height: 100%; display: flex; align-items: center; cursor: pointer; }
.dropdown-content { display: none; position: absolute; top: 64px; right: 0; background-color: var(--nuit); min-width: 240px; flex-direction: column; border: 1px solid var(--relief); }
.dropdown-content a { padding: 14px 20px; border-bottom: 1px solid var(--relief); font-family: var(--font-title); font-size: 1rem; letter-spacing: 0; color: var(--papier); }
.dropdown-content a:last-child { border-bottom: none; }
.dropdown:hover .dropdown-content { display: flex; }

/* === CARTES (jsVectorMap) === */
.jvm-tooltip { background-color: var(--nuit) !important; border: 1px solid var(--relief) !important; color: var(--papier) !important; font-family: var(--font-mono) !important; font-size: 11px !important; border-radius: 2px !important; padding: 6px 10px !important; box-shadow: none !important; }
.jvm-zoom-btn { display: none; }

/* === FOOTER === */
.site-footer { border-top: 1px solid var(--relief); padding: 30px 0; margin-top: auto; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--lueur); }

/* === MOBILE === */
@media (max-width: 900px) {
    :root { --marge: 22px; }
    .section { padding: 60px 0; }
    .section-head { flex-direction: column; gap: 6px; }

    .menu-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; width: 100%; background-color: var(--nuit); border-bottom: 1px solid var(--relief); padding: 10px 0 20px; height: auto; gap: 0; }
    .nav-links.active { display: flex; }
    .nav-links > li { width: 100%; text-align: center; }
    .nav-links > li > a { display: block; padding: 14px 0; }
    .dropdown { flex-direction: column; height: auto; }
    .dropdown-content { display: flex; position: static; border: none; min-width: 0; width: 100%; }
    .dropdown-content a { border: none; padding: 8px 0; text-align: center; font-size: 0.95rem; color: var(--texte); }
}
