/* Faubourg55 V6.2 : mode « Gouverner le pays », poste de commandement (PCOM) en paysage.
   Trois bandes : bandeau supérieur sur une ligne, carte (environ 70 % de l'écran), bureau à onglets avec une
   ligne d'explication de deux lignes au plus. Complète styles.css : classes préfixées .gov- ; #root porte
   .gov-on pendant le mode. */

.gov-on { container: govroot / size; }
.gov { position: absolute; inset: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #070C1C; }
.gov [hidden] { display: none !important; }

/* ---------- Bandeau supérieur : date | InfoPresse + Doxa Nostrum | réglages, pause, vitesse (+ croix) ---------- */
.gov-top { position: relative; z-index: 6; display: flex; align-items: center; gap: 8px; height: calc(38px + var(--safe-top));
  padding: var(--safe-top) calc(40px + var(--safe-right)) 0 calc(6px + var(--safe-left)); background: #050914; border-bottom: 1px solid #1E2A4C; }
.gov-when { flex: none; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 4px; border-radius: 8px; text-align: left; }
.gov-when:hover { background: rgba(255, 255, 255, .06); }
.gov-emb { font-size: 20px; line-height: 1; }
.gov-dt { display: grid; line-height: 1.05; }
.gov-dt b { font-size: 12.5px; font-weight: 900; white-space: nowrap; }
.gov-dt small { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gov .gov-ticker { flex: 1 1 auto; min-width: 0; height: 30px; border: 1px solid #2A1520; border-bottom: 2px solid #E5232A; border-radius: 6px; }
.gov .gov-ticker .flash { font-size: 8.5px; padding: 0 7px; letter-spacing: .08em; }
.gov .gov-ticker .item { font-size: 13.5px; }
.gov-poll { flex: none; display: grid; gap: 1px; min-width: 124px; padding: 2px 8px; border-radius: 8px; background: #0E1630; border: 1px solid #22305A; line-height: 1.1; }
.gov-poll small { font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.gov-poll small b { color: #9FC3FF; }
.gov-poll .gl { display: flex; align-items: center; gap: 5px; }
.gov-poll .gl > b { font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.gov-poll .gd { width: 9px; font-style: normal; font-size: 9px; font-weight: 900; }
.gov-poll .gd.up { color: var(--ok); }
.gov-poll .gd.down { color: #FF8A8E; }
.gov-poll .gt { flex: 1; min-width: 28px; height: 5px; background: rgba(255, 255, 255, .1); border-radius: 3px; overflow: hidden; }
.gov-poll .gt i { display: block; height: 100%; border-radius: 3px; transition: width .6s ease, background .6s ease; }
.gov-ctl { flex: none; display: flex; gap: 4px; }
.gov-ic { width: 30px; height: 30px; border-radius: 8px; background: #0E1630; border: 1px solid #22305A; font-size: 14px; font-weight: 900; display: grid; place-items: center; padding: 0; }
.gov-ic:hover { background: #16214A; }
.gov-ic.pp[aria-pressed="true"] { background: var(--accent); color: #111; border-color: var(--accent); }
.gov-ic.spd { font-size: 12px; color: var(--accent); }

/* ---------- Espace central : la carte ---------- */
.gov-stage { position: relative; min-height: 0; overflow: hidden; background: #0C1A3A; }
.gov-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.gov-sea { fill: #10224A; }
.gov-grid { fill: none; stroke: rgba(150, 180, 255, .08); stroke-width: .8; vector-effect: non-scaling-stroke; pointer-events: none; }
.gov-eq { fill: none; stroke: rgba(150, 180, 255, .18); stroke-width: .9; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.gov-ice { fill: #D5DFEE; stroke: none; pointer-events: none; }
.gov-bloc { fill: rgb(122, 120, 108); stroke: rgba(7, 12, 28, .95); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill .9s ease; cursor: pointer; }
.gov-bloc:hover { filter: brightness(1.12); }
.gov-bloc.sel { stroke: #fff; stroke-width: 2.2; }
.gov-borders { fill: none; stroke: rgba(8, 12, 26, .35); stroke-width: .5; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.gov-france { fill: #2F5BFF; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gov-art16 .gov-france { stroke: #FFD400; }
.gov-paris { fill: #fff; stroke: #1B3BC4; stroke-width: 1.4; vector-effect: non-scaling-stroke; pointer-events: none; }
.gov-labels text { fill: rgba(255, 255, 255, .95); font-weight: 800; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgba(5, 8, 18, .8); stroke-linejoin: round; pointer-events: none; }
.gov-base { fill: #9FB4FF; stroke: #0B1020; stroke-width: .8; vector-effect: non-scaling-stroke; pointer-events: none; }
.gov-om g { cursor: pointer; }
.gov-om .hit { fill: transparent; }
.gov-om .dot { fill: #3D6BFF; stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.gov-om g.on .dot { fill: var(--accent); stroke: #fff; animation: gov-blink 1.2s steps(2) infinite; }
@keyframes gov-blink { 50% { opacity: .35; } }
/* Trafic maritime, flottes, sous-marins */
.gov-ship { pointer-events: none; }
.gov-ship path { fill: #C9D3E6; stroke: #0A1430; stroke-width: .6; vector-effect: non-scaling-stroke; opacity: .85; }
.gov-froute { fill: none; stroke: rgba(126, 220, 255, .55); stroke-width: 1.3; stroke-dasharray: 3 4; stroke-linecap: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.gov-fleetm circle { fill: #0B1838; stroke: #7EDCFF; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.gov-fleetm text { font-size: 9px; text-anchor: middle; dominant-baseline: central; }
.gov-snle0 { pointer-events: none; }
.gov-snle0 circle { fill: rgba(143, 211, 255, .25); stroke: #8FD3FF; stroke-width: 1; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.gov-snle { pointer-events: none; }
.gov-snle .wake { fill: none; stroke: rgba(160, 210, 255, .55); stroke-width: 1.3; stroke-dasharray: 1 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gov-snle .sub circle { fill: #0B1838; stroke: #8FD3FF; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.gov-snle .sub text { font-size: 8px; text-anchor: middle; dominant-baseline: central; }
/* Repères : OPEX, dossiers, sommets */
.gov-opexmark, .gov-pin, .gov-invite { pointer-events: none; }
.gov-opexmark circle { fill: rgba(229, 72, 77, .25); stroke: #FF6B70; stroke-width: 1.2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: gov-pulse 1.8s ease-in-out infinite; }
.gov-opexmark text, .gov-pin text { font-size: 8px; text-anchor: middle; dominant-baseline: central; }
.gov-pin circle { fill: rgba(11, 16, 32, .9); stroke: #9FC3FF; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.gov-pin.incident circle { stroke: #FFB27A; }
.gov-pin.coup circle { stroke: #FF6B70; transform-box: fill-box; transform-origin: center; animation: gov-pulse 1.8s ease-in-out infinite; }
.gov-invite circle { fill: rgba(242, 193, 78, .22); stroke: var(--accent); stroke-width: 1.4; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: gov-pulse 1.8s ease-in-out infinite; }
.gov-invite text { font-size: 10px; text-anchor: middle; dominant-baseline: central; }
@keyframes gov-pulse { 50% { transform: scale(1.35); stroke-opacity: .3; } }
/* Avion présidentiel COTAM Unité */
.gov-flight { pointer-events: none; }
.gov-flight .route { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 1.2; stroke-dasharray: 1 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gov-flight .trail { fill: none; stroke: #fff; stroke-opacity: .85; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gov-flight .trail2 { fill: none; stroke: #fff; stroke-opacity: .28; stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gov-shadow path { fill: rgba(0, 0, 0, .45); stroke: none; }
.gov-flight .dest { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: gov-ring 1.6s ease-out infinite; }
@keyframes gov-ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.gov-plane path { fill: #fff; stroke: #1B3BC4; stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* Carte de France du Premier ministre */
.gov-pm .gov-stage { background: #0B1430; }
.gov-dep { fill: rgb(124, 120, 106); stroke: rgba(7, 12, 28, .7); stroke-width: .8; vector-effect: non-scaling-stroke; transition: fill .9s ease; cursor: pointer; }
.gov-dep:hover { filter: brightness(1.12); }
.gov-zname { fill: #fff; font-size: 24px; font-weight: 900; paint-order: stroke; stroke: rgba(5, 8, 18, .85); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
.gov-rlab { fill: #fff; font-size: 24px; font-weight: 900; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgba(5, 8, 18, .85); stroke-width: 6px; stroke-linejoin: round; pointer-events: none; }
.gov-rlab.hot { fill: #FFB3B6; }
.gov-rlab.hot .ic { animation: gov-blink 1.2s steps(2) infinite; }
.gov-rlab.sel { fill: var(--accent); }
.gov-rlab .ic { font-size: .9em; }

/* Indicateurs et états, en surimpression en haut à gauche de la carte */
.gov-hudl { position: absolute; z-index: 4; left: calc(6px + var(--safe-left)); top: 6px; right: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; pointer-events: none; }
.gov-hudl > * { pointer-events: auto; }
.gov-kpis { display: flex; flex-wrap: wrap; gap: 4px; }
.gov-kpi { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 999px; background: rgba(5, 9, 22, .82); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; }
.gov-kpi i { font-style: normal; font-size: 12px; }
.gov-kpi small { font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.gov-kpi b { font-size: 12.5px; font-weight: 900; font-variant-numeric: tabular-nums; }
#k-cap b { color: var(--accent); }
#k-cap b.bump { animation: bump .35s ease; }
.gov-kpi b.ok { color: var(--ok); }
.gov-kpi b.warn { color: var(--accent); }
.gov-kpi b.hot { color: #FFB27A; }
.gov-kpi b.bad { color: #FF8A8E; }
.gov-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.gov-flags:empty { display: none; }
.gov-flag { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(10, 18, 40, .88); border: 1px solid var(--line); white-space: nowrap; }
.gov-flag.art16 { background: #3B2E05; border-color: #FFD400; color: #FFE680; animation: blink 2s steps(2) infinite; }
.gov-flag.alert.a1 { border-color: #FF9F43; color: #FFC58A; }
.gov-flag.alert.a2 { background: #4A0F16; border-color: var(--danger); color: #FFB3B6; }
.gov-flag.snle, .gov-flag.fleet { border-color: #8FD3FF; color: #CDEBFF; }
.gov-flag.opex { border-color: #FF6B70; color: #FFC2C4; }
.gov-flag.intel { border-color: #B39DFF; color: #DCD2FF; }
.gov-flag.council { border-color: var(--ok); color: #B8F5D6; }
.gov-trip { display: flex; align-items: center; gap: 8px; max-width: 100%; background: rgba(10, 22, 58, .92); border: 1px solid #3D6BFF; border-radius: 999px; padding: 3px 3px 3px 12px; font-size: 12px; font-weight: 800; animation: fade .3s ease; }
.gov-trip .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gov-trip button { flex: none; background: var(--danger); color: #fff; border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 900; }
.gov-absent { background: rgba(92, 18, 30, .9); color: #FFD3D6; border: 1px solid var(--danger); border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 800; }
.gov-paused { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 20px; border-radius: 999px; background: rgba(4, 6, 14, .8);
  border: 2px solid var(--accent); color: var(--accent); font-weight: 900; letter-spacing: .2em; pointer-events: none; animation: blink 1.6s steps(2) infinite; }
.gov-paused-on .gov-map * { animation-play-state: paused !important; }
.gov-legend { position: absolute; z-index: 3; right: calc(6px + var(--safe-right)); bottom: 6px; display: flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(5, 9, 22, .78);
  font-size: 10px; font-weight: 800; color: var(--muted); pointer-events: none; }
.gov-legend span { width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-left: 4px; }
/* InfoPresse : dépêches en bas à gauche de la carte */
.gov-stage .infopresse { position: absolute; z-index: 4; left: calc(6px + var(--safe-left)); bottom: 6px; width: min(400px, 46%); height: 84px; overflow: visible; }
.gov .ip-card { max-width: none; margin: 0; padding: 6px 10px; }
.gov .ip-card.out { transform: translateY(-30%); }
.gov .ip-title { font-size: 12.5px; }
.gov .ip-text { font-size: 12px; }
/* Résultat d'une action : petite carte qui s'efface seule */
.gov-tripcard { position: absolute; z-index: 5; right: calc(8px + var(--safe-right)); bottom: 30px; max-width: min(320px, 42%); background: rgba(7, 10, 22, .92); border-left: 4px solid var(--ok); border-radius: 4px 12px 12px 4px; padding: 7px 11px; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); animation: gov-in .4s ease-out; }
.gov-tripcard.ko { border-left-color: var(--danger); }
.gov-tripcard b { display: block; font-size: 12.5px; }
.gov-tripcard p { margin: 2px 0 0; font-size: 11.5px; line-height: 1.3; color: #D6DBEA; }
@keyframes gov-in { from { transform: translateX(30px); opacity: 0; } }

/* ---------- Bureau : onglets pleine largeur et explication sur deux lignes ---------- */
.gov-bureau { position: relative; z-index: 6; display: grid; gap: 4px; padding: 5px calc(6px + var(--safe-right)) calc(4px + var(--safe-bottom)) calc(6px + var(--safe-left)); background: #050914; border-top: 1px solid #1E2A4C; }
.gov-tabs4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.gov-tabs4 button { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 8px; border-radius: 10px; background: #0E1630; border: 1px solid #22305A; font-weight: 900; font-size: 14px; min-width: 0; }
.gov-tabs4 button:hover { background: #16214A; }
.gov-tabs4 button[aria-pressed="true"] { background: var(--accent); color: #111; border-color: var(--accent); }
.gov-tabs4 i { font-style: normal; font-size: 17px; }
.gov-tabs4 span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gov-tabs4 .s { display: none; }
.gov-tabs4 .badge { position: absolute; top: -5px; right: 6px; font-style: normal; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 900; border-radius: 999px; padding: 1px 6px; }
.gov-exp { margin: 0; min-height: 2.6em; font-size: 12px; line-height: 1.3; color: #C9D0E4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 0 2px; }

/* Panneau d'un onglet : colonnes côte à côte qui défilent à l'horizontale */
.gov-drawer { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; top: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); background: rgba(9, 13, 28, .96);
  border-top: 2px solid var(--accent); animation: gov-up .2s ease-out; }
@keyframes gov-up { from { transform: translateY(16px); opacity: 0; } }
.gov-drawer > header { display: flex; align-items: center; gap: 10px; padding: 6px calc(8px + var(--safe-right)) 4px calc(10px + var(--safe-left)); }
.gov-drawer h3 { margin: 0; font-size: 15px; }
.gov-capm { height: 26px; padding: 0 10px; font-weight: 900; color: var(--accent); }
.gov-drawer .close, .gov-side .close { margin-left: auto; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); font-size: 15px; }
.gov-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 0 calc(8px + var(--safe-right)) 8px calc(8px + var(--safe-left)); -webkit-overflow-scrolling: touch; }
.gov-col { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; background: rgba(255, 255, 255, .025); border: 1px solid #1E2A4C; border-radius: 12px; padding: 8px; }
.gov-col.wide { grid-column: span 1; min-width: 300px; }
.gov-col > * { flex: none; }
.gov-col h4 { margin: 0; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.gov-col h5 { margin: 4px 0 0; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.gov-col .offer { width: 100%; background: var(--bg); padding: 6px 9px; }
.gov-col .offer b { font-size: 13px; }
.gov-col .offer small { font-size: 11px; }
.gov-col .offer.gov-cur { border-color: var(--ok); }
.gov-col .offer.gov-busy { opacity: .75; }
.gov-col .cta { font-size: 14px; padding: 9px 12px; }
.gov-p { margin: 0; text-align: left; font-size: 12.5px; line-height: 1.4; color: #D6DBEA; }
/* Dossiers : ONU, ambassadeurs, coups d'État, sommets */
.gov-doss { display: grid; gap: 4px; background: var(--bg); border: 1px solid #22305A; border-left: 3px solid #9FC3FF; border-radius: 10px; padding: 7px 9px; text-align: left; }
.gov-doss.incident { border-left-color: #FFB27A; }
.gov-doss.coup { border-left-color: #FF6B70; }
.gov-doss.gov-invc { border-left-color: var(--accent); }
.gov-doss.soon .gov-count { color: #FF8A8E; }
.gov-doss-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.gov-doss-h b { font-size: 13px; }
.gov-doss > small { font-size: 11px; color: var(--muted); }
.gov-doss p { margin: 0; font-size: 11.5px; line-height: 1.3; color: #C9D0E4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gov-opts { display: flex; flex-wrap: wrap; gap: 4px; }
.gov-opts button { font-size: 11.5px; font-weight: 800; padding: 5px 9px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.gov-opts button:hover:not(:disabled) { border-color: var(--accent); }
.gov-opts button:disabled { opacity: .4; }
.gov-opts .gov-veto { border-color: #8A2A33; color: #FFB3B6; }
.gov-opts .gov-risky { border-color: #8A2A33; background: #2A0E14; color: #FFC2C4; }
.gov-count { color: var(--accent); font-weight: 900; font-size: 11px; white-space: nowrap; }
/* Pays au vert */
.gov-bchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px; }
.gov-bchip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 8px; background: color-mix(in srgb, var(--c) 30%, var(--bg)); border: 1px solid var(--c); text-align: left; }
.gov-bchip i { font-style: normal; }
.gov-bchip span { font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gov-bchip b { font-size: 11px; font-variant-numeric: tabular-nums; }
.gov-bchip.green b { color: #B8F5D6; }
/* Marine */
.gov-fleet { display: grid; gap: 4px; }
.gov-fleet.sel .offer { border-color: var(--accent); }
.gov-zones { display: flex; flex-wrap: wrap; gap: 4px; }
.gov-zones button { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: #0E2240; border: 1px solid #2D5A8A; color: #CDEBFF; }
.gov-zones button:disabled { opacity: .4; }
/* Posture des armées */
.gov-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.gov-level { display: grid; gap: 2px; text-align: left; background: var(--bg); border: 2px solid var(--line); border-radius: 10px; padding: 5px 7px; }
.gov-level b { font-size: 11.5px; line-height: 1.2; }
.gov-level span { font-weight: 900; color: var(--accent); font-size: 11px; }
.gov-level[aria-pressed="true"] { opacity: 1; }
.gov-level.a0[aria-pressed="true"] { border-color: var(--ok); }
.gov-level.a1[aria-pressed="true"] { border-color: #FF9F43; }
.gov-level.a2[aria-pressed="true"] { border-color: var(--danger); background: #2A0E14; }
.gov-level:disabled:not([aria-pressed="true"]) { opacity: .45; }
.gov-a16 { border-color: #FFD400 !important; background: #2B2306 !important; }
.gov-a16 b { color: #FFE680; }
/* Bouton rouge */
.gov-nukebtn { margin-top: 4px; padding: 9px 12px; border-radius: 10px; background: repeating-linear-gradient(-45deg, #3A0A10 0 8px, #4A0D14 8px 16px); border: 2px solid #E5232A; color: #FFD3D6; font-weight: 900; font-size: 14px; letter-spacing: .04em; }
.gov-nukebtn:hover { background: #5A0E16; }
/* Fil des crises, régions (Premier ministre) */
.gov-feed { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.gov-feed li { font-size: 11.5px; line-height: 1.3; color: #D6DBEA; background: var(--bg); border-radius: 8px; padding: 5px 7px; }
.gov-feed small { display: block; font-size: 9.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.gov-regs { display: grid; gap: 3px; }
.gov-reg { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(40px, 1fr) auto; align-items: center; gap: 8px; padding: 4px 7px; border-radius: 8px; background: var(--bg); text-align: left; }
.gov-reg span { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gov-reg i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c) var(--w), rgba(255, 255, 255, .08) var(--w)); }
.gov-reg b { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.gov-rchips { display: flex; flex-wrap: wrap; gap: 3px; }
.gov-rchip { width: 30px; height: 30px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; display: grid; place-items: center; padding: 0; }
.gov-rchip[aria-pressed="true"] { border-color: var(--accent); background: #3B2E05; }
.gov-treebtn { width: 100%; }

/* ---------- Fiches latérales : bloc, outre-mer, région ---------- */
.gov-side { position: absolute; z-index: 9; top: 6px; bottom: 6px; right: calc(6px + var(--safe-right)); width: min(360px, 46%); background: color-mix(in srgb, var(--panel) 97%, transparent); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; -webkit-overflow-scrolling: touch; animation: gov-in .25s ease-out; }
.gov-side > * { flex: none; }
.gov-side header { display: flex; align-items: center; gap: 10px; }
.gov-side header h3 { margin: 0; font-size: 16px; }
.gov-sic { font-size: 24px; }
.gov-side h4 { margin: 4px 0 0; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.gov-side .cta { font-size: 14px; padding: 10px 14px; }
.gov-side .offer { width: 100%; background: var(--bg); }
.gov-side .offer .price { text-align: right; line-height: 1.2; }
.gov-list { display: grid; gap: 6px; }
.gov-hint { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.35; text-align: left; }
.gov-note { margin: 0; font-size: 11.5px; line-height: 1.4; color: #C9D0E4; background: var(--bg); border-radius: 10px; padding: 7px 9px; text-align: left; }
.gov-note.warn { color: #FFD9A0; border: 1px solid #6B4A1A; }
.gov-why { color: #FF9AA2 !important; }
.gov-open { color: var(--ok) !important; }
.gov-meter { display: grid; gap: 4px; }
.gov-meter-l { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.gov-meter-l b { font-weight: 900; white-space: nowrap; }
.gov-bar { position: relative; height: 7px; background: rgba(255, 255, 255, .08); border-radius: 4px; overflow: hidden; }
.gov-bar i { display: block; height: 100%; border-radius: 4px; }
.gov-bar em { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; opacity: .8; }

/* ---------- Arbre de décisions (harpe 7 × 3) ---------- */
.gov-sheet { position: absolute; inset: 0; z-index: 10; background: rgba(5, 7, 15, .62); display: grid; place-items: center; padding: calc(6px + var(--safe-top)) calc(8px + var(--safe-right)) calc(6px + var(--safe-bottom)) calc(8px + var(--safe-left)); animation: fade .2s ease; }
.gov-panel { width: 100%; max-width: 1100px; height: 100%; max-height: 640px; background: var(--panel); border-radius: 20px; padding: 10px 12px 12px; display: grid;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; animation: up .25s ease-out; box-shadow: 0 16px 50px rgba(0, 0, 0, .5); }
.gov-sheet.still, .gov-sheet.still .gov-panel { animation: none; }
.gov-panel > header { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* La croix de sortie reste en haut à droite : la fermeture du panneau se range à sa gauche. */
.gov-panel > header .close { margin-right: 30px; }
.gov-panel .momentum { flex: none; height: 38px; }
.gov-panel .tabs.gov-tabs { flex: 1; min-width: 0; display: flex; gap: 6px; padding: 4px; }
.gov-tabs button { flex: 1 1 0; min-width: 0; height: 36px; font-size: 17px; position: relative; }
.gov-tabs button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gov-tabs button em { font-style: normal; font-size: 10px; font-weight: 900; background: var(--danger); color: #fff; border-radius: 999px; padding: 1px 6px; }
.gov-panel .close { margin-left: auto; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--panel-2); font-size: 17px; }
.gov-treecol { display: grid; grid-template-columns: minmax(84px, 12%) minmax(0, 1fr) minmax(84px, 12%); gap: 6px; min-height: 0; }
.gov-lnames { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; }
.gov-lnames span { display: flex; align-items: center; gap: 5px; overflow: hidden; }
.gov-lnames.right span { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.gov-lnames i { font-style: normal; font-size: 16px; }
.harp.gov-harp { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); min-height: 0; height: 100%; }
.harp.gov-harp .core-band { position: static; grid-column: 4; grid-row: 1 / -1; width: auto; height: auto; margin: 0 4px; }
.gov-harp .node { width: 44px; height: 44px; font-size: 20px; }
.gov-harp .node.core { width: 48px; height: 48px; }
.gov-harp .node.gov-risk { border-style: dashed; }
.gov-harp .node.gov-risk::after { content: "🚧"; position: absolute; top: -8px; left: -9px; font-size: 10px; }
.gov-harp .node.owned.gov-risk::after { content: none; }
.gov-detail { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 14px; align-items: center; min-height: 0; padding: 9px 12px; }
.gov-d1 { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
.gov-d1 h4 { margin: 0 4px 0 0; font-size: 15px; flex: none; }
.gov-d2 { grid-column: 1; margin: 0; font-size: 12.5px; line-height: 1.35; color: #D6DBEA; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gov-dn { color: var(--muted); }
.gov-dn b { color: var(--text); }
.gov-detail .buy { grid-column: 2; grid-row: 1 / span 2; height: 46px; padding: 0 18px; white-space: nowrap; }
.tagl.gov-law { background: #1E3A7A; color: #B9CCFF; }
.tagl.gov-res { background: #4A3A12; color: #FFD98A; }
.gov-fx { display: flex; flex-wrap: nowrap; gap: 5px; min-width: 0; overflow: hidden; }
.gov-fx span { flex: none; font-size: 11px; font-weight: 800; background: var(--panel-2); border-radius: 6px; padding: 2px 7px; }
.gov-fx .up { color: var(--ok); }
.gov-fx .down { color: #FF8A8E; }

/* ---------- Modales en paysage ---------- */
.gov-on .modal { align-items: start; }
.gov-on .modal > .box { margin: auto 0; max-height: 100%; overflow-y: auto; }
.modal .box.gov-wide { max-width: 860px; }
.modal .box.gov-mid { max-width: 640px; }
.modal .box.gov-tvbox { padding: 0; overflow: hidden; }
.gov-tvgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); text-align: left; }
.gov-tvgrid .tv { display: flex; flex-direction: column; }
.gov-tvgrid .tv-where { margin-top: auto; }
.gov-tvright { display: grid; gap: 8px; align-content: start; padding: 12px 14px 14px; }
.gov-on .postures button:disabled { opacity: .4; }
.postures.gov-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gov-abroad { display: grid; gap: 6px; background: #3A1520; border: 1px solid var(--danger); border-radius: 12px; padding: 8px 10px; font-size: 13px; text-align: left; }
.gov-abroad b { color: #FFD3D6; }
.gov-abroad label { display: flex; align-items: center; gap: 8px; font-weight: 800; cursor: pointer; }
.gov-abroad input { width: 20px; height: 20px; margin: 0; accent-color: var(--danger); }
.gov-verdict { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gov-verdict .row { grid-template-columns: 26px minmax(0, 1fr); }
.gov-who { display: grid; gap: 2px; }
.gov-seats { font-size: 13px; color: var(--muted); }
.gov-seats b { color: var(--text); }
.modal .box.gov-extreme { box-shadow: 0 0 0 3px #E5232A, 0 0 40px rgba(229, 35, 42, .5); }
.gov-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.gov-btns > * { flex: 1 1 160px; }
.gov-set { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border-radius: 12px; padding: 8px 10px; font-size: 13px; font-weight: 800; }
.gov-seg { display: flex; gap: 4px; }
.gov-seg button { min-width: 44px; height: 32px; padding: 0 10px; border-radius: 8px; background: var(--panel-2); font-weight: 900; }
.gov-seg button[aria-pressed="true"] { background: var(--accent); color: #111; }

/* Protocole nucléaire */
.modal .box.gov-nukebox { background: #12060A; border: 2px solid #E5232A; box-shadow: 0 0 50px rgba(229, 35, 42, .35); }
.gov-nuke { display: grid; gap: 12px; }
.gov-nuke-h { font-size: 12px; font-weight: 900; letter-spacing: .14em; color: #FF6B70; padding-bottom: 8px; border-bottom: 1px solid #4A1018; }
.gov-nuke p { font-size: 14px; line-height: 1.45; color: #F2D9DB; }
.gov-code { font-size: 13px; color: #F2D9DB; background: #22080E; border: 1px dashed #8A2A33; border-radius: 10px; padding: 8px; }
.gov-code b { font-size: 18px; letter-spacing: .3em; color: #fff; font-variant-numeric: tabular-nums; }
.gov-codein { justify-self: center; width: 160px; text-align: center; font: inherit; font-size: 26px; font-weight: 900; letter-spacing: .4em; color: #fff; background: #050207; border: 2px solid #8A2A33; border-radius: 10px; padding: 8px; outline: none; }
.gov-codein:focus { border-color: #E5232A; }
.gov-red { background: #B3121A; color: #fff; font-weight: 900; border-radius: 999px; padding: 12px 18px; font-size: 15px; border: 2px solid #FF4D55; }
.gov-red:hover { background: #D0161F; }
.gov-targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 5px; }
.gov-targets button { padding: 7px 8px; border-radius: 8px; background: #22080E; border: 1px solid #5A1820; color: #F2D9DB; font-size: 12px; font-weight: 800; text-align: left; }
.gov-targets button:hover { border-color: #FF4D55; }
.gov-targets i { font-style: normal; }
.gov-hold { position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.gov-hold i { position: absolute; inset: 0; width: 0; background: rgba(255, 255, 255, .28); }
.gov-hold span { position: relative; }
.gov-hold.holding i { width: 100%; transition: width 2s linear; }

/* Fin du monde : écran blanc, champignon atomique, message */
.gov-apoc { position: absolute; inset: 0; z-index: 25; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: end; padding: 12px 16px calc(16px + var(--safe-bottom)); background: #fff; animation: gov-flash 3.5s ease-out forwards; }
@keyframes gov-flash { 0% { background: #fff; } 25% { background: #fff; } 100% { background: #E9E2DC; } }
.gov-mush { height: 100%; max-height: 62vh; width: auto; overflow: visible; }
.gov-mush .m-stem { transform-box: fill-box; transform-origin: 50% 100%; animation: gov-stem 2.6s ease-out .4s both; }
.gov-mush .m-cap { transform-box: fill-box; transform-origin: 50% 100%; animation: gov-cap 3s ease-out .4s both; }
.gov-mush .m-ring { animation: gov-fadein 1.4s ease-out 1.8s both; }
.gov-mush .m-base { transform-box: fill-box; transform-origin: 50% 100%; animation: gov-base 2s ease-out .2s both; }
@keyframes gov-stem { from { transform: scaleY(0); } }
@keyframes gov-cap { from { transform: translateY(120px) scale(.25); opacity: 0; } 30% { opacity: 1; } }
@keyframes gov-base { from { transform: scaleX(.2); opacity: 0; } }
@keyframes gov-fadein { from { opacity: 0; } }
.gov-apoc-t { display: grid; gap: 8px; justify-items: center; text-align: center; color: #2A1F1A; max-width: 640px; animation: gov-fadein 1.2s ease-out 3s both; }
.gov-apoc-t small { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #7A5444; }
.gov-apoc-t h2 { margin: 0; font-size: 26px; }
.gov-apoc-t p { margin: 0; font-size: 14px; color: #5A4A42; }
.gov-apoc-t .cta { --player: #2A1F1A; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .gov-apoc, .gov-mush *, .gov-apoc-t { animation: none !important; }
}

/* Fin de mandat */
.gov-end { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: center; }
.gov-end-l { display: grid; gap: 8px; justify-items: center; }
.gov-end-r { display: grid; gap: 10px; }
.gov-grade { font-size: 64px; font-weight: 900; line-height: 1; display: grid; justify-items: center; gap: 2px; }
.gov-grade small { font-size: 13px; color: var(--muted); font-weight: 800; }
.gov-grade.gA { color: var(--ok); }
.gov-grade.gB { color: #A8E6C3; }
.gov-grade.gC { color: var(--accent); }
.gov-grade.gD { color: #FFB27A; }
.gov-grade.gE { color: #FF8A8E; }
.gov-notes { display: grid; gap: 6px; }
.gov-notes div { display: flex; justify-content: space-between; gap: 10px; background: var(--bg); border-radius: 10px; padding: 7px 10px; font-size: 14px; }
.gov-notes b { font-variant-numeric: tabular-nums; }

/* Toast au-dessus du bureau */
.gov-on .toast { bottom: calc(96px + var(--safe-bottom)); }

/* ---------- Écrans bas (téléphone en paysage) ---------- */
@container govroot (max-height: 480px) {
  .gov-top { height: calc(36px + var(--safe-top)); }
  .gov .gov-ticker { height: 28px; }
  .gov .gov-ticker .item { font-size: 12.5px; }
  .gov-tabs4 button { height: 34px; font-size: 13px; }
  .gov-exp { font-size: 11px; }
  .gov-stage .infopresse { height: 70px; }
  .gov .ip-text { -webkit-line-clamp: 1; }
  .gov-kpi { height: 24px; padding: 0 7px; }
  .gov-kpi small { display: none; }
  .gov-harp .node { width: 36px; height: 36px; font-size: 16px; border-width: 2px; }
  .gov-harp .node.core { width: 40px; height: 40px; border-width: 3px; }
  .gov-harp .node .price { font-size: 9px; bottom: -8px; }
  .gov-panel { padding: 8px 10px 10px; gap: 6px; }
  .gov-panel .detail { padding: 7px 10px; }
  .gov-d1 h4 { font-size: 14px; }
  .gov-d2 { font-size: 12px; }
  .gov-panel .buy { height: 40px; font-size: 14px; }
  .gov-on .modal { padding-top: calc(8px + var(--safe-top)); padding-bottom: calc(8px + var(--safe-bottom)); }
  .modal .box.gov-box { gap: 8px; padding: 12px 14px; }
  .modal .box.gov-tvbox { padding: 0; }
  .gov-box .big-ic { font-size: 32px; }
  .gov-box h2 { font-size: 18px; }
  .gov-box .cta { font-size: 15px; padding: 10px 16px; }
  .gov-box .ghost { padding: 9px 16px; }
  .gov-box .tv-title { font-size: 17px; padding: 8px 12px; }
  .gov-box .tv-sub { font-size: 13px; padding: 6px 12px; }
  .gov-box .postures { gap: 6px; }
  .gov-box .postures button { padding: 6px 10px; }
  .gov-tvright { gap: 6px; padding: 10px 12px 12px; }
  .gov-abroad { padding: 6px 10px; gap: 3px; font-size: 12px; }
  .gov-box .postures .pt small { font-size: 11.5px; }
  .gov-grade { font-size: 50px; }
  .gov-box .kpis div { padding: 6px; }
  .gov-box .kpis b { font-size: 17px; }
  .gov-nuke p { font-size: 13px; }
  .gov-apoc-t h2 { font-size: 21px; }
}

/* ---------- Écrans étroits ---------- */
@container govroot (max-width: 700px) {
  .gov-tabs4 .l { display: none; }
  .gov-tabs4 .s { display: inline; }
}
@container govroot (max-width: 900px) {
  .gov-tabs4 button { gap: 5px; padding: 0 5px; font-size: 13px; }
}
@container govroot (max-width: 820px) {
  .gov-poll { min-width: 96px; }
  .gov-poll .gt { display: none; }
  .gov-dt small { display: none; }
  .gov-cols { grid-auto-columns: minmax(230px, 1fr); }
}
@container govroot (max-width: 620px) {
  .gov-tvgrid, .gov-end { grid-template-columns: minmax(0, 1fr); }
  .postures.gov-2col, .gov-verdict { grid-template-columns: minmax(0, 1fr); }
  .gov-tabs4 i { display: none; }
  .gov-legend { display: none; }
}
