/* ==========================================================================
   VOXEN v2 — feuille de style unique
   Palette « carte marine » : abysse / marine / houle, écume pour le texte,
   signal rouge réservé à l'urgence, ambre pour l'important.
   ========================================================================== */

:root {
    --vx-abysse: #001a30;
    --vx-marine: #00294b;
    --vx-houle: #0b3a63;
    --vx-ligne: #1d4d78;
    --vx-ligne-douce: rgba(143, 166, 186, .18);
    --vx-ecume: #e6edf2;
    --vx-brume: #8fa6ba;
    --vx-signal: #ff4536;
    --vx-ambre: #f2a93b;
    --vx-calme: #4fc3a1;

    --vx-terre-0: #1f4468;
    --vx-terre-1: #2a5680;
    --vx-terre-2: #356794;
    --vx-terre-3: #4479aa;

    --vx-papier: #f3f6f8;
    --vx-encre: #0a2238;
    --vx-encre-douce: #4a6075;
    --vx-papier-ligne: #d6dfe6;

    --vx-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --vx-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

    --vx-r-s: 4px;
    --vx-r-m: 8px;
    --vx-r-l: 14px;

    --vx-hdr: var(--tgp-header-h, 76px);   /* hauteur réelle mesurée par le header TGP */
    --vx-ticker: 40px;
}
@media (max-width: 599px) { :root { --vx-hdr: var(--tgp-header-h, 52px); } }
@media (max-width: 449px) { :root { --vx-hdr: var(--tgp-header-h, 38px); } }

/* ---------- Base ---------- */
body.vx {
    margin: 0;
    background: var(--vx-abysse);
    color: var(--vx-ecume);
    font-family: var(--vx-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-align: left;
}
.vx *, .vx *::before, .vx *::after { box-sizing: border-box; }
.vx main a { color: inherit; }
.vx img { max-width: 100%; }
:where(.vx) :where(button, input, select, textarea) { font: inherit; color: inherit; }
/* Header TGP : libellés sur une ligne (sinon la barre fixe déborde sur la page) */
.header_tgp .menu_tgp a { white-space: nowrap; }
.vx-sans-footer .footer_tgp { display: none; }
.vx :focus-visible { outline: 2px solid var(--vx-ambre); outline-offset: 2px; border-radius: 2px; }
.vx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vx-skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--vx-ambre); color: var(--vx-abysse); padding: 8px 14px; border-radius: var(--vx-r-s); font-weight: 700; text-decoration: none; }
.vx-skip:focus { top: 12px; }

.vx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.vx-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Titres : Archivo élargi, c'est la voix de Voxen */
.vx-display {
    font-family: var(--vx-sans);
    font-stretch: 118%;
    font-weight: 780;
    letter-spacing: -.015em;
    line-height: 1.04;
    margin: 0;
}
.vx-h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.vx-h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-stretch: 112%; font-weight: 740; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .6em; }
.vx-h3 { font-size: 1rem; font-stretch: 108%; font-weight: 720; margin: 0 0 .7em; line-height: 1.25; }
.vx-lead { color: var(--vx-brume); font-size: 1.08rem; max-width: 62ch; margin: .8em 0 0; }
.vx-muted { color: var(--vx-brume); }
.vx-num { font-variant-numeric: tabular-nums; }

/* ---------- Boutons, champs ---------- */
.vx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .62em 1.05em; border-radius: var(--vx-r-m);
    border: 1px solid var(--vx-ligne); background: var(--vx-houle); color: var(--vx-ecume);
    font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s;
}
.vx-btn:hover { background: var(--vx-ligne); }
.vx-btn--signal { background: var(--vx-signal); border-color: var(--vx-signal); color: #fff; }
.vx-btn--signal:hover { background: #e63a2c; }
.vx-btn--ghost { background: transparent; }
.vx-btn--ghost:hover { background: var(--vx-houle); }
.vx-btn--sm { padding: .4em .7em; font-size: .82rem; }
.vx-btn--danger { background: transparent; border-color: rgba(255, 69, 54, .45); color: #ff8a80; }
.vx-btn--danger:hover { background: rgba(255, 69, 54, .14); }
.vx-btn[disabled] { opacity: .5; cursor: not-allowed; }

.vx-field { display: flex; flex-direction: column; gap: 6px; }
.vx-field > span, .vx-label { font-size: .84rem; font-weight: 600; color: var(--vx-brume); }
.vx-input, .vx-select, .vx-textarea {
    width: 100%; padding: .62em .8em; border-radius: var(--vx-r-m);
    background: var(--vx-abysse); border: 1px solid var(--vx-ligne); color: var(--vx-ecume);
    font-size: .95rem;
}
.vx-input::placeholder, .vx-textarea::placeholder { color: #6c879f; }
.vx-input:focus, .vx-select:focus, .vx-textarea:focus { outline: none; border-color: var(--vx-ambre); }
.vx-textarea { min-height: 110px; resize: vertical; }
.vx-select { appearance: none; padding-right: 2em; background-image: linear-gradient(45deg, transparent 50%, var(--vx-brume) 50%), linear-gradient(135deg, var(--vx-brume) 50%, transparent 50%); background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }

/* Segmenté (radios) */
.vx-seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--vx-ligne); border-radius: var(--vx-r-m); overflow: hidden; }
.vx-seg input { position: absolute; opacity: 0; pointer-events: none; }
.vx-seg label, .vx-seg button, .vx-seg a {
    padding: .5em .85em; font-size: .86rem; font-weight: 600; cursor: pointer; color: var(--vx-brume);
    background: transparent; border: 0; border-right: 1px solid var(--vx-ligne); text-decoration: none; white-space: nowrap;
}
.vx-seg > :last-child, .vx-seg label:last-of-type { border-right: 0; }
.vx-seg input:checked + label, .vx-seg .is-on { background: var(--vx-ecume); color: var(--vx-abysse); }
.vx-seg input:focus-visible + label { outline: 2px solid var(--vx-ambre); outline-offset: -2px; }

.vx-chip {
    display: inline-flex; align-items: center; gap: .4em; padding: .3em .7em; border-radius: 999px;
    border: 1px solid var(--vx-ligne); font-size: .82rem; color: var(--vx-ecume); text-decoration: none; background: transparent; cursor: pointer;
}
.vx-chip:hover { border-color: var(--vx-brume); }
.vx-chip.is-on { background: var(--vx-ecume); color: var(--vx-abysse); border-color: var(--vx-ecume); }

/* ---------- Étiquettes ---------- */
.vx-imp { display: inline-flex; align-items: center; gap: .35em; font-size: .78rem; font-weight: 700; padding: .14em .55em; border-radius: var(--vx-r-s); line-height: 1.4; }
.vx-imp::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vx-imp--critique { color: #fff; background: var(--vx-signal); }
.vx-imp--critique::before { background: #fff; }
.vx-imp--importante { color: var(--vx-abysse); background: var(--vx-ambre); }
.vx-imp--importante::before { background: var(--vx-abysse); }

.vx-src { display: inline-flex; align-items: center; gap: .5em; min-width: 0; }
.vx-src__logo { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: var(--vx-houle); flex: none; }
.vx-src__nom { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-src__type { font-size: .74rem; padding: .05em .45em; border-radius: var(--vx-r-s); border: 1px solid currentColor; opacity: .85; white-space: nowrap; }
.vx-type--officielle { color: #8cc8ff; }
.vx-type--independante { color: #7fe0c0; }
.vx-type--mainstream { color: #c9b8ff; }
.vx-type--youtube, .vx-type--twitter, .vx-type--instagram { color: #ffc27a; }

.vx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3em 1em; font-size: .84rem; color: var(--vx-brume); }
.vx-meta a { text-decoration: none; }
.vx-meta a:hover { text-decoration: underline; }

/* ---------- Actions (aimer / enregistrer / partager) ---------- */
.vx-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.vx-act {
    display: inline-flex; align-items: center; gap: .45em; padding: .38em .7em; border-radius: var(--vx-r-m);
    background: transparent; border: 1px solid transparent; color: var(--vx-brume); cursor: pointer; font-size: .84rem; font-weight: 600;
}
.vx-act:hover { color: var(--vx-ecume); border-color: var(--vx-ligne); }
.vx-act.is-on[data-vx-like] { color: var(--vx-signal); }
.vx-act.is-on[data-vx-save] { color: var(--vx-ambre); }
.vx-act__n { font-variant-numeric: tabular-nums; }
.vx-act.vx-pop i { animation: vxPop .32s ease; }
@keyframes vxPop { 50% { transform: scale(1.35); } }
.vx-actions--sm .vx-act__lbl { display: none; }
.vx-actions--lg .vx-act { border-color: var(--vx-ligne); padding: .6em 1em; font-size: .92rem; }

/* ---------- Toasts ---------- */
.vx-toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.vx-toast { pointer-events: auto; background: var(--vx-ecume); color: var(--vx-abysse); padding: .7em 1.1em; border-radius: var(--vx-r-m); font-weight: 600; font-size: .92rem; box-shadow: 0 12px 30px rgba(0, 10, 25, .45); max-width: min(92vw, 520px); animation: vxToast .25s ease; }
.vx-toast a { color: inherit; }
.vx-toast--err { background: var(--vx-signal); color: #fff; }
@keyframes vxToast { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Bandeau « en direct » ---------- */
.vx-ticker {
    display: flex; align-items: stretch; height: var(--vx-ticker); background: var(--vx-marine);
    border-bottom: 1px solid var(--vx-ligne); overflow: hidden; flex: none; position: relative; z-index: 5;
}
.vx-ticker__tag {
    flex: none; display: flex; align-items: center; gap: .5em; padding: 0 16px; background: var(--vx-signal); color: #fff;
    font-weight: 750; font-stretch: 112%; font-size: .86rem; white-space: nowrap;
}
.vx-ticker__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: vxBlink 1.6s steps(2, start) infinite; }
@keyframes vxBlink { to { visibility: hidden; } }
.vx-ticker__track { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
.vx-ticker__list { display: flex; align-items: center; height: 100%; gap: 0; margin: 0; padding: 0; list-style: none; width: max-content; animation: vxTicker var(--vx-ticker-duree, 60s) linear infinite; }
.vx-ticker:hover .vx-ticker__list, .vx-ticker:focus-within .vx-ticker__list { animation-play-state: paused; }
.vx-ticker__list li { display: flex; align-items: center; white-space: nowrap; padding: 0 22px; border-right: 1px solid var(--vx-ligne); font-size: .9rem; }
.vx-ticker__list a { text-decoration: none; color: var(--vx-ecume); }
.vx-ticker__list a:hover { text-decoration: underline; }
.vx-ticker__pays { color: var(--vx-brume); margin-right: .55em; }
.vx-ticker__list .is-critique .vx-ticker__pays { color: #ff8a80; }
@keyframes vxTicker { to { transform: translateX(-50%); } }

/* ==========================================================================
   PAGE CARTE
   ========================================================================== */
body.vx-page-carte { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.vx-carte { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); }

/* Colonne gauche */
.vx-rail { background: var(--vx-marine); border-right: 1px solid var(--vx-ligne); overflow-y: auto; padding: 18px 18px 30px; scrollbar-width: thin; scrollbar-color: var(--vx-ligne) transparent; }
.vx-rail__bloc { padding: 16px 0; border-top: 1px solid var(--vx-ligne-douce); }
.vx-rail__bloc:first-child { border-top: 0; padding-top: 0; }
.vx-rail__titre { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.vx-rail__titre a { font-size: .8rem; color: var(--vx-brume); text-decoration: none; font-weight: 600; }
.vx-rail__titre a:hover { color: var(--vx-ecume); }

.vx-search { position: relative; }
.vx-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--vx-brume); font-size: .85rem; pointer-events: none; }
.vx-search .vx-input { padding-left: 34px; }
.vx-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--vx-houle); border: 1px solid var(--vx-ligne); border-radius: var(--vx-r-m); list-style: none; margin: 0; padding: 4px; z-index: 30; max-height: 260px; overflow: auto; box-shadow: 0 16px 34px rgba(0, 10, 25, .5); }
.vx-suggest li { padding: .5em .6em; border-radius: var(--vx-r-s); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.vx-suggest li[aria-selected="true"], .vx-suggest li:hover { background: var(--vx-ligne); }
.vx-suggest small { color: var(--vx-brume); }

/* Une : liste d'articles compacte */
.vx-une { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.vx-une li a { display: block; padding: 9px 10px 9px 12px; border-left: 3px solid var(--vx-ligne); text-decoration: none; border-radius: 0 var(--vx-r-s) var(--vx-r-s) 0; }
.vx-une li a:hover { background: var(--vx-houle); }
.vx-une li.is-critique a { border-left-color: var(--vx-signal); }
.vx-une li.is-importante a { border-left-color: var(--vx-ambre); }
.vx-une__t { display: block; font-weight: 600; font-size: .93rem; line-height: 1.32; }
.vx-une__m { display: block; font-size: .78rem; color: var(--vx-brume); margin-top: 3px; }

/* Zones sous tension */
.vx-zones { list-style: none; margin: 0; padding: 0; }
.vx-zones button { width: 100%; display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 7px 4px; background: none; border: 0; border-radius: var(--vx-r-s); cursor: pointer; text-align: left; font-size: .92rem; }
.vx-zones button:hover { background: var(--vx-houle); }
.vx-zones__c { width: 12px; height: 12px; border-radius: 3px; }
.vx-zones small { color: var(--vx-brume); font-size: .78rem; }

.vx-barres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vx-barres a { display: block; text-decoration: none; font-size: .88rem; }
.vx-barres__l { display: flex; justify-content: space-between; margin-bottom: 4px; }
.vx-barres__l span:last-child { color: var(--vx-brume); font-variant-numeric: tabular-nums; }
.vx-barres__b { display: block; height: 4px; border-radius: 2px; background: var(--vx-ligne-douce); overflow: hidden; }
.vx-barres__b i { display: block; height: 100%; background: var(--vx-brume); border-radius: 2px; }
.vx-barres a:hover .vx-barres__b i { background: var(--vx-ecume); }

.vx-vide { color: var(--vx-brume); font-size: .9rem; margin: 0; }

/* Scène de la carte */
.vx-scene { position: relative; min-width: 0; overflow: hidden; background:
    radial-gradient(120% 90% at 50% 45%, #0a3a66 0%, #04294c 55%, #001d36 100%); }
.vx-scene::before { /* graticule */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image:
        linear-gradient(rgba(143, 166, 186, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 166, 186, .07) 1px, transparent 1px);
    background-size: 64px 64px;
}
.vx-vue { position: absolute; inset: 0; display: none; }
.vx-vue.is-on { display: block; }
.vx-map-svg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; }
.vx-map-svg.is-drag { cursor: grabbing; }
.vx-country { fill: var(--vx-terre-0); stroke: #0c3156; stroke-width: .6; vector-effect: non-scaling-stroke; transition: fill .2s; cursor: pointer; }
.vx-country[data-n="1"] { fill: var(--vx-terre-1); }
.vx-country[data-n="2"] { fill: var(--vx-terre-2); }
.vx-country[data-n="3"] { fill: var(--vx-terre-3); }
.vx-country.has-zone { fill: var(--zone); fill-opacity: var(--zone-op, .85); }
.vx-country:hover, .vx-country.is-hover { fill: #8fb3d3; fill-opacity: 1; }
.vx-country.has-zone:hover, .vx-country.has-zone.is-hover { fill: var(--zone); fill-opacity: 1; stroke: var(--vx-ecume); stroke-width: 1.2; }
.vx-country.is-sel { stroke: var(--vx-ecume); stroke-width: 1.8; }
.vx-country:focus { outline: none; }
.vx-country:focus-visible { stroke: var(--vx-ambre); stroke-width: 2; }

/* Onglets Terre / Espace */
.vx-onglets { position: absolute; top: 14px; left: 14px; z-index: 10; background: rgba(0, 26, 48, .78); backdrop-filter: blur(6px); }

/* Contrôles */
.vx-ctrl { position: absolute; top: 14px; right: 14px; z-index: 10; display: flex; flex-direction: column; border: 1px solid var(--vx-ligne); border-radius: var(--vx-r-m); overflow: hidden; background: rgba(0, 26, 48, .78); backdrop-filter: blur(6px); }
.vx-ctrl button { width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 0; border-bottom: 1px solid var(--vx-ligne); cursor: pointer; color: var(--vx-ecume); }
.vx-ctrl button:last-child { border-bottom: 0; }
.vx-ctrl button:hover { background: var(--vx-houle); }

/* Légende */
.vx-legende { position: absolute; left: 14px; bottom: 14px; z-index: 10; background: rgba(0, 26, 48, .82); backdrop-filter: blur(6px); border: 1px solid var(--vx-ligne); border-radius: var(--vx-r-m); padding: 12px 14px; font-size: .8rem; max-width: 240px; }
.vx-legende h2 { font-size: .82rem; font-weight: 700; margin: 0 0 8px; font-stretch: 108%; }
.vx-legende ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 5px; }
.vx-legende li { display: flex; align-items: center; gap: 8px; }
.vx-legende i { width: 14px; height: 10px; border-radius: 2px; flex: none; }
.vx-legende__densite { display: flex; align-items: center; gap: 6px; color: var(--vx-brume); }
.vx-legende__densite span { display: flex; }
.vx-legende__densite b { width: 18px; height: 8px; }
.vx-legende summary { cursor: pointer; font-weight: 700; list-style: none; }
.vx-legende summary::-webkit-details-marker { display: none; }

/* Info-bulle */
.vx-bulle { position: absolute; z-index: 20; pointer-events: none; background: var(--vx-ecume); color: var(--vx-abysse); border-radius: var(--vx-r-m); padding: 8px 11px; font-size: .84rem; line-height: 1.35; box-shadow: 0 10px 26px rgba(0, 10, 25, .5); transform: translate(14px, 14px); max-width: 260px; opacity: 0; transition: opacity .12s; }
.vx-bulle.is-on { opacity: 1; }
.vx-bulle strong { display: block; font-stretch: 110%; font-size: .95rem; }
.vx-bulle span { display: block; color: var(--vx-encre-douce); }
.vx-bulle .vx-bulle__z { color: var(--vx-encre); font-weight: 600; }

/* Vue Espace */
.vx-espace { width: 100%; height: 100%; display: block; }
.vx-espace .vx-astre { cursor: pointer; }
.vx-espace .vx-astre:hover circle, .vx-espace .vx-astre:focus-visible circle { stroke: var(--vx-ecume); stroke-width: 3; }
.vx-espace text { fill: var(--vx-ecume); font-family: var(--vx-sans); font-size: 15px; pointer-events: none; }
.vx-espace .vx-orbite { fill: none; stroke: rgba(143, 166, 186, .16); stroke-width: 1.2; }

/* Tiroir pays */
.vx-tiroir { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 40; background: var(--vx-marine); border-left: 1px solid var(--vx-ligne); display: flex; flex-direction: column; transform: translateX(102%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: -18px 0 40px rgba(0, 10, 25, .35); }
.vx-tiroir.is-on { transform: none; }
.vx-tiroir__tete { padding: 18px 20px 14px; border-bottom: 1px solid var(--vx-ligne); }
.vx-tiroir__ligne { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vx-tiroir__drapeau { font-size: 1.6rem; line-height: 1; margin-bottom: 6px; display: block; }
.vx-tiroir__nom { font-size: 1.8rem; }
.vx-tiroir__nom:focus { outline: none; }
.vx-tiroir__etat { margin: 10px 0 0; font-size: .88rem; display: flex; align-items: center; gap: 8px; color: var(--vx-brume); }
.vx-tiroir__etat i { width: 10px; height: 10px; border-radius: 2px; }
.vx-fermer { flex: none; width: 36px; height: 36px; border-radius: var(--vx-r-m); border: 1px solid var(--vx-ligne); background: transparent; cursor: pointer; color: var(--vx-ecume); }
.vx-fermer:hover { background: var(--vx-houle); }
.vx-tiroir__filtres { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.vx-tiroir__corps { flex: 1; overflow-y: auto; padding: 8px 12px 16px; }
.vx-tiroir__pied { padding: 12px 20px; border-top: 1px solid var(--vx-ligne); }
.vx-tiroir__pied .vx-btn { width: 100%; }

.vx-mini { display: block; text-decoration: none; padding: 12px 10px; border-bottom: 1px solid var(--vx-ligne-douce); border-radius: var(--vx-r-s); }
.vx-mini:hover { background: var(--vx-houle); }
.vx-mini__m { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .78rem; color: var(--vx-brume); margin-bottom: 5px; }
.vx-mini__t { font-weight: 650; line-height: 1.32; font-size: .98rem; }
.vx-mini__x { color: var(--vx-brume); font-size: .86rem; margin-top: 4px; line-height: 1.45; }
.vx-chargement { display: grid; place-items: center; padding: 50px 0; color: var(--vx-brume); }
.vx-chargement::before { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--vx-ligne); border-top-color: var(--vx-ecume); animation: vxSpin .8s linear infinite; margin-bottom: 10px; }
@keyframes vxSpin { to { transform: rotate(360deg); } }
.vx-tiroir__vide { padding: 30px 10px; color: var(--vx-brume); }
.vx-tiroir__vide p { margin: 0 0 14px; }

@media (max-width: 960px) {
    body.vx-page-carte { height: auto; overflow: visible; display: block; }
    .vx-carte { grid-template-columns: 1fr; }
    .vx-scene { height: 68vh; min-height: 380px; order: -1; }
    .vx-rail { border-right: 0; border-top: 1px solid var(--vx-ligne); }
    .vx-legende { max-width: calc(100% - 28px); padding: 9px 12px; }
    .vx-legende:not([open]) ul, .vx-legende:not([open]) .vx-legende__densite { display: none; }
    .vx-tiroir { position: fixed; top: auto; height: 78vh; width: 100%; border-left: 0; border-top: 1px solid var(--vx-ligne); border-radius: var(--vx-r-l) var(--vx-r-l) 0 0; transform: translateY(102%); }
}

/* ==========================================================================
   PAGES DE CONTENU (fil, sources, mon voxen, à propos)
   ========================================================================== */
.vx-entete { padding: 44px 0 28px; border-bottom: 1px solid var(--vx-ligne); background: linear-gradient(180deg, var(--vx-marine) 0%, var(--vx-abysse) 100%); }
.vx-section { padding: 36px 0 70px; }

/* Barre de filtres */
.vx-filtres { display: grid; grid-template-columns: minmax(200px, 1.6fr) repeat(3, minmax(130px, 1fr)); gap: 10px; margin-top: 24px; }
.vx-filtres__ligne2 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.vx-filtres__actifs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .86rem; color: var(--vx-brume); }
@media (max-width: 860px) { .vx-filtres { grid-template-columns: 1fr 1fr; } .vx-filtres .vx-search { grid-column: 1 / -1; } }

.vx-cols { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 48px; align-items: start; }
.vx-cols__side { position: sticky; top: calc(var(--vx-hdr) + 20px); display: flex; flex-direction: column; gap: 30px; }
@media (max-width: 980px) { .vx-cols { grid-template-columns: 1fr; } .vx-cols__side { position: static; } }

.vx-compte { font-size: .9rem; color: var(--vx-brume); margin: 0 0 8px; }

/* Article à la une du fil */
.vx-lead-story { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; padding: 0 0 30px; border-bottom: 1px solid var(--vx-ligne); margin-bottom: 8px; text-decoration: none; }
.vx-lead-story__img { aspect-ratio: 16 / 10; border-radius: var(--vx-r-m); overflow: hidden; background: var(--vx-houle); }
.vx-lead-story__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vx-lead-story__t { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 12px 0 10px; }
.vx-lead-story__t a { text-decoration: none; }
.vx-lead-story__t a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.vx-lead-story p { color: var(--vx-brume); margin: 0 0 14px; }
@media (max-width: 720px) { .vx-lead-story { grid-template-columns: 1fr; } }

/* Ligne d'article */
.vx-liste { list-style: none; margin: 0; padding: 0; }
.vx-ligne { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 22px; padding: 22px 0 18px 18px; border-bottom: 1px solid var(--vx-ligne-douce); }
.vx-ligne::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 22px; width: 3px; border-radius: 2px; background: var(--vx-ligne); }
.vx-ligne.is-critique::before { background: var(--vx-signal); }
.vx-ligne.is-importante::before { background: var(--vx-ambre); }
.vx-ligne--sans-img { grid-template-columns: 1fr; }
.vx-ligne__t { font-size: 1.22rem; font-weight: 680; font-stretch: 104%; line-height: 1.25; margin: 8px 0 6px; }
.vx-ligne__t a { text-decoration: none; }
.vx-ligne__t a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.vx-ligne__t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vx-ligne__x { color: var(--vx-brume); font-size: .94rem; margin: 0 0 8px; }
.vx-ligne .vx-actions, .vx-ligne .vx-meta a, .vx-ligne__pq { position: relative; z-index: 1; }
.vx-ligne__img { width: 168px; aspect-ratio: 3 / 2; border-radius: var(--vx-r-m); overflow: hidden; background: var(--vx-houle); align-self: start; margin-top: 6px; }
.vx-ligne__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vx-ligne__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-left: -8px; }
.vx-ligne__pq { font-size: .8rem; color: var(--vx-brume); display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.vx-ligne__pq i { color: var(--vx-calme); }
@media (max-width: 600px) { .vx-ligne { grid-template-columns: 1fr 96px; gap: 14px; } .vx-ligne__img { width: 96px; } .vx-ligne__x { display: none; } }

/* Pagination */
.vx-pages { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.vx-pages a, .vx-pages span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: var(--vx-r-m); border: 1px solid var(--vx-ligne); text-decoration: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.vx-pages a:hover { background: var(--vx-houle); }
.vx-pages .is-on { background: var(--vx-ecume); color: var(--vx-abysse); border-color: var(--vx-ecume); }
.vx-pages .is-gap { border: 0; min-width: 20px; padding: 0; }

/* Encarts latéraux */
.vx-encart { }
.vx-encart .vx-h3 { padding-bottom: 10px; border-bottom: 1px solid var(--vx-ligne); }
.vx-lus { list-style: none; margin: 0; padding: 0; counter-reset: lus; }
.vx-lus li { counter-increment: lus; display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--vx-ligne-douce); }
.vx-lus li::before { content: counter(lus); font-stretch: 118%; font-weight: 800; font-size: 1.15rem; color: var(--vx-brume); line-height: 1.2; }
.vx-lus a { text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.32; }
.vx-lus a:hover { text-decoration: underline; }

.vx-etat-vide { padding: 60px 20px; text-align: center; border: 1px dashed var(--vx-ligne); border-radius: var(--vx-r-l); }
.vx-etat-vide h2 { margin-bottom: .4em; }
.vx-etat-vide p { color: var(--vx-brume); margin: 0 auto 18px; max-width: 46ch; }

.vx-pub { margin: 24px 0; min-height: 100px; }

/* ==========================================================================
   PAGE ARTICLE (thème papier)
   ========================================================================== */
html[data-vx-theme="papier"] body.vx { background: var(--vx-papier); color: var(--vx-encre); }
.vx-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--vx-signal); z-index: 1400; }
.vx-art { padding: 34px 0 60px; }
.vx-art__retour { display: inline-flex; align-items: center; gap: .5em; color: var(--vx-encre-douce); text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: 26px; }
.vx-art__retour:hover { color: var(--vx-encre); }
.vx-art__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .88rem; font-weight: 600; color: var(--vx-encre-douce); }
.vx-art__kicker a { text-decoration: none; color: var(--vx-encre); border-bottom: 1px solid var(--vx-papier-ligne); }
.vx-art__kicker a:hover { border-bottom-color: var(--vx-encre); }
.vx-art__titre { color: var(--vx-marine); margin: 18px 0 20px; font-size: clamp(2rem, 4.6vw, 3rem); }
.vx-art__chapo { font-family: var(--vx-serif); font-size: 1.28rem; line-height: 1.5; color: var(--vx-encre-douce); margin: 0 0 22px; }
.vx-art__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 14px 0; border-top: 1px solid var(--vx-papier-ligne); border-bottom: 1px solid var(--vx-papier-ligne); font-size: .88rem; color: var(--vx-encre-douce); }
.vx-art__meta .vx-src__nom { color: var(--vx-encre); }
.vx-art__meta .vx-type--officielle { color: #1d6fb8; }
.vx-art__meta .vx-type--independante { color: #138a66; }
.vx-art__meta .vx-type--mainstream { color: #6a4fc4; }
.vx-art__meta .vx-type--youtube, .vx-art__meta .vx-type--twitter, .vx-art__meta .vx-type--instagram { color: #b0670c; }
.vx-art__fig { margin: 30px 0; }
.vx-art__fig img { width: 100%; border-radius: var(--vx-r-m); display: block; max-height: 520px; object-fit: cover; background: var(--vx-papier-ligne); }
.vx-art__fig figcaption { font-size: .8rem; color: var(--vx-encre-douce); margin-top: 8px; }
.vx-art__corps { font-family: var(--vx-serif); font-size: 1.18rem; line-height: 1.72; color: #10283e; margin-top: 28px; }
.vx-art__corps p { margin: 0 0 1.1em; max-width: 68ch; }
.vx-art__corps a { color: var(--vx-marine); }
.vx-art__lire { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 34px 0; padding: 20px 22px; border-radius: var(--vx-r-l); background: var(--vx-marine); color: var(--vx-ecume); }
.vx-art__lire p { margin: 0; color: var(--vx-brume); font-size: .92rem; }
.vx-art__lire strong { display: block; color: var(--vx-ecume); font-size: 1.05rem; margin-bottom: 2px; }
@media (max-width: 600px) { .vx-art__lire { flex-direction: column; align-items: flex-start; } }
.vx-art__barre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--vx-papier-ligne); border-bottom: 1px solid var(--vx-papier-ligne); }
html[data-vx-theme="papier"] .vx-act { color: var(--vx-encre-douce); }
html[data-vx-theme="papier"] .vx-act:hover { color: var(--vx-encre); border-color: var(--vx-papier-ligne); }
html[data-vx-theme="papier"] .vx-actions--lg .vx-act { border-color: var(--vx-papier-ligne); background: #fff; }
html[data-vx-theme="papier"] .vx-act.is-on[data-vx-like] { color: #d8301f; }
html[data-vx-theme="papier"] .vx-act.is-on[data-vx-save] { color: #b0670c; }
.vx-signaler { background: none; border: 0; color: var(--vx-encre-douce); font-size: .86rem; cursor: pointer; display: inline-flex; gap: .4em; align-items: center; padding: .4em; }
.vx-signaler:hover { color: #d8301f; }

.vx-regards { margin-top: 54px; }
.vx-regards__intro { color: var(--vx-encre-douce); margin: -6px 0 20px; max-width: 60ch; }
.vx-regards__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.vx-regard { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #fff; border: 1px solid var(--vx-papier-ligne); border-radius: var(--vx-r-l); text-decoration: none; color: var(--vx-encre); }
.vx-regard:hover { border-color: var(--vx-encre-douce); }
.vx-regard__t { font-weight: 680; line-height: 1.3; }
.vx-regard .vx-src__nom { color: var(--vx-encre); font-size: .88rem; }
.vx-regard .vx-meta { color: var(--vx-encre-douce); font-size: .8rem; margin-top: auto; }
.vx-regard .vx-type--officielle { color: #1d6fb8; }
.vx-regard .vx-type--independante { color: #138a66; }
.vx-regard .vx-type--mainstream { color: #6a4fc4; }
.vx-regard .vx-type--youtube, .vx-regard .vx-type--twitter, .vx-regard .vx-type--instagram { color: #b0670c; }
html[data-vx-theme="papier"] .vx-h2 { color: var(--vx-marine); }

/* Boîte de dialogue */
.vx-dialog { border: 1px solid var(--vx-ligne); border-radius: var(--vx-r-l); background: var(--vx-marine); color: var(--vx-ecume); padding: 0; width: min(520px, calc(100vw - 32px)); }
.vx-dialog::backdrop { background: rgba(0, 12, 26, .66); }
.vx-dialog form { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.vx-dialog__tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vx-dialog__tete h2 { margin: 0; }
.vx-radios { display: grid; gap: 6px; }
.vx-radios label { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--vx-ligne); border-radius: var(--vx-r-m); cursor: pointer; font-size: .92rem; }
.vx-radios label:has(input:checked) { border-color: var(--vx-ecume); background: var(--vx-houle); }
.vx-dialog__pied { display: flex; justify-content: flex-end; gap: 8px; }

/* ==========================================================================
   SOURCES
   ========================================================================== */
.vx-sources { width: 100%; border-collapse: collapse; }
.vx-sources th { text-align: left; font-size: .8rem; font-weight: 600; color: var(--vx-brume); padding: 10px 12px; border-bottom: 1px solid var(--vx-ligne); white-space: nowrap; }
.vx-sources td { padding: 14px 12px; border-bottom: 1px solid var(--vx-ligne-douce); vertical-align: middle; font-size: .93rem; }
.vx-sources tr:hover td { background: rgba(11, 58, 99, .4); }
.vx-sources .vx-src__nom { font-size: 1rem; }
.vx-sources td.vx-num { color: var(--vx-brume); }
@media (max-width: 760px) {
    .vx-sources thead { display: none; }
    .vx-sources tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--vx-ligne-douce); }
    .vx-sources td { border: 0; padding: 3px 0; }
    .vx-sources td:nth-child(n+3) { font-size: .82rem; }
}
.vx-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }

.vx-bloc-form { margin-top: 56px; padding: 26px; border: 1px solid var(--vx-ligne); border-radius: var(--vx-r-l); background: var(--vx-marine); }
.vx-grille-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vx-grille-form .vx-plein { grid-column: 1 / -1; }
@media (max-width: 640px) { .vx-grille-form { grid-template-columns: 1fr; } }

/* ==========================================================================
   MON VOXEN
   ========================================================================== */
.vx-onglets-page { display: flex; gap: 4px; margin-top: 26px; border-bottom: 1px solid var(--vx-ligne); overflow-x: auto; }
.vx-onglets-page a { padding: 12px 16px; text-decoration: none; color: var(--vx-brume); font-weight: 650; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.vx-onglets-page a:hover { color: var(--vx-ecume); }
.vx-onglets-page a.is-on { color: var(--vx-ecume); border-bottom-color: var(--vx-signal); }
.vx-onglets-page small { font-variant-numeric: tabular-nums; color: var(--vx-brume); margin-left: 4px; }

.vx-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.vx-choix input { position: absolute; opacity: 0; }
.vx-choix label { display: inline-flex; gap: .45em; align-items: center; padding: .42em .85em; border-radius: 999px; border: 1px solid var(--vx-ligne); cursor: pointer; font-size: .9rem; }
.vx-choix input:checked + label { background: var(--vx-ecume); color: var(--vx-abysse); border-color: var(--vx-ecume); }
.vx-choix input:focus-visible + label { outline: 2px solid var(--vx-ambre); outline-offset: 2px; }
.vx-fieldset { border: 0; padding: 0; margin: 0 0 34px; }
.vx-fieldset legend { padding: 0; margin-bottom: 4px; }
.vx-fieldset p { margin: 0 0 14px; color: var(--vx-brume); font-size: .92rem; }

.vx-algo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .vx-algo { grid-template-columns: 1fr; } }
.vx-note { padding: 16px 18px; border-left: 3px solid var(--vx-calme); background: var(--vx-marine); border-radius: 0 var(--vx-r-m) var(--vx-r-m) 0; color: var(--vx-ecume); font-size: .94rem; margin-bottom: 30px; }
.vx-note p { margin: 0 0 .5em; }
.vx-note p:last-child { margin: 0; }

/* ==========================================================================
   À PROPOS
   ========================================================================== */
.vx-manifeste { padding: 80px 0 60px; background: var(--vx-marine); border-bottom: 1px solid var(--vx-ligne); position: relative; overflow: hidden; }
.vx-manifeste__fond { position: absolute; inset: 0; opacity: .14; pointer-events: none; }
.vx-manifeste__fond .vx-country { fill: var(--vx-ecume); stroke: none; cursor: default; }
.vx-manifeste .vx-wrap { position: relative; }
.vx-manifeste h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 16ch; cursor: default; }
.vx-manifeste .vx-lead { font-size: 1.2rem; color: var(--vx-ecume); opacity: .82; }
.vx-citation { margin: 0; padding: 0 0 0 24px; border-left: 3px solid var(--vx-signal); font-family: var(--vx-serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.5; font-style: italic; max-width: 62ch; }
.vx-citation footer { font-family: var(--vx-sans); font-style: normal; font-size: .9rem; color: var(--vx-brume); margin-top: 14px; }
.vx-piliers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 34px 40px; margin-top: 30px; }
.vx-pilier i { color: var(--vx-signal); font-size: 1.1rem; margin-bottom: 12px; display: block; }
.vx-pilier p { color: var(--vx-brume); margin: 0; }
.vx-valeurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin-top: 26px; border-top: 1px solid var(--vx-ligne); }
.vx-valeur { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--vx-ligne); }
.vx-valeur h3 { font-size: 1.35rem; }
.vx-valeur p { color: var(--vx-brume); margin: 0; max-width: 40ch; }
.vx-appel { margin-top: 70px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 30px; border-radius: var(--vx-r-l); background: var(--vx-signal); color: #fff; }
.vx-appel h2 { margin: 0; color: #fff; }
.vx-appel .vx-btn { background: #fff; color: var(--vx-signal); border-color: #fff; }

/* ==========================================================================
   ADMIN & MODÉRATION
   ========================================================================== */
.vx-admin-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 24px 0 0; border-bottom: 1px solid var(--vx-ligne); }
.vx-admin-nav a { padding: 11px 14px; text-decoration: none; color: var(--vx-brume); font-weight: 650; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.vx-admin-nav a.is-on { color: var(--vx-ecume); border-bottom-color: var(--vx-ambre); }
.vx-admin-nav a:hover { color: var(--vx-ecume); }
.vx-admin-nav .vx-pastille { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--vx-signal); color: #fff; font-size: .72rem; margin-left: 6px; }
.vx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--vx-ligne); border-radius: var(--vx-r-l); overflow: hidden; margin: 26px 0; }
.vx-kpi { padding: 18px 20px; border-right: 1px solid var(--vx-ligne); background: var(--vx-marine); }
.vx-kpi:last-child { border-right: 0; }
.vx-kpi b { display: block; font-size: 1.9rem; font-stretch: 115%; font-weight: 780; font-variant-numeric: tabular-nums; }
.vx-kpi span { color: var(--vx-brume); font-size: .86rem; }
.vx-table-wrap { overflow-x: auto; border: 1px solid var(--vx-ligne); border-radius: var(--vx-r-l); }
.vx-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.vx-table th { text-align: left; font-size: .78rem; color: var(--vx-brume); font-weight: 600; padding: 10px 12px; background: var(--vx-marine); border-bottom: 1px solid var(--vx-ligne); white-space: nowrap; }
.vx-table td { padding: 10px 12px; border-bottom: 1px solid var(--vx-ligne-douce); vertical-align: middle; }
.vx-table tr:last-child td { border-bottom: 0; }
.vx-table td.vx-t-titre { max-width: 420px; }
.vx-table td.vx-t-titre a { text-decoration: none; font-weight: 600; }
.vx-table td.vx-t-titre a:hover { text-decoration: underline; }
.vx-table .vx-inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.vx-table .vx-select, .vx-table .vx-input { padding: .35em .6em; font-size: .85rem; width: auto; }
.vx-table .vx-select { padding-right: 1.8em; }
.vx-barre-outils { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin: 22px 0 14px; }
.vx-barre-outils form { display: flex; gap: 8px; flex-wrap: wrap; }
.vx-flash { margin: 22px 0 0; padding: 12px 16px; border-radius: var(--vx-r-m); border: 1px solid var(--vx-calme); background: rgba(79, 195, 161, .12); }
.vx-flash--err { border-color: var(--vx-signal); background: rgba(255, 69, 54, .12); }
.vx-panneaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 22px; }
.vx-panneau { padding: 22px; border: 1px solid var(--vx-ligne); border-radius: var(--vx-r-l); background: var(--vx-marine); display: flex; flex-direction: column; gap: 12px; }
.vx-panneau p { margin: 0; color: var(--vx-brume); font-size: .9rem; }
.vx-panneau .vx-h3 { margin: 0; }
.vx-pastille-c { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-right: 6px; }
.vx-details { border: 1px solid var(--vx-ligne); border-radius: var(--vx-r-l); background: var(--vx-marine); margin: 16px 0; }
.vx-details > summary { padding: 14px 18px; cursor: pointer; font-weight: 700; }
.vx-details > div { padding: 0 18px 18px; }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .vx *, .vx *::before, .vx *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .vx-ticker__list { animation: none; }
    .vx-ticker__track { overflow-x: auto; mask-image: none; }
    .vx-ticker__list li[aria-hidden="true"] { display: none; }
}
