/* ATLAS · page Mission (une seule page) */
.ms-head .container { padding-bottom: 8px; }

/* Barre des sections, collante sous l'en-tête */
.ms-nav { position: sticky; top: var(--header-h, 80px); z-index: 40; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(15, 23, 42, .08); transition: box-shadow .25s; }
.ms-nav.stuck { box-shadow: 0 10px 24px -16px rgba(15, 23, 42, .35); }
.ms-nav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.ms-nav-in::-webkit-scrollbar { display: none; }
.ms-nav a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #475569; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.ms-nav a:hover { background: rgba(15, 23, 42, .05); color: #0F172A; }
.ms-nav a.on { background: #11366F; color: #fff; }
html[data-theme="dark"] .ms-nav { background: rgba(10, 20, 40, .9); border-bottom-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .ms-nav a { color: #A9BCDD; }
html[data-theme="dark"] .ms-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
html[data-theme="dark"] .ms-nav a.on { background: #1F4FD8; color: #fff; }

/* Sections numérotées */
.ms-sec { scroll-margin-top: calc(var(--header-h, 80px) + 64px); }
.ms-num { font: 600 13px/1 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .14em; color: #1F4FD8; margin: 0 0 10px; }
html[data-theme="dark"] .ms-num { color: #7DD3FC; }
.ms-sub { margin-top: 36px; scroll-margin-top: calc(var(--header-h, 80px) + 64px); }
.ms-h3 { font-size: 20px; margin: 0 0 8px; }

/* Rapports : trois blocs côte à côte */
.ms-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.ms-doc { border: 1px solid rgba(15, 23, 42, .1); border-radius: 16px; padding: 18px; background: rgba(255, 255, 255, .6); }
html[data-theme="dark"] .ms-doc { border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); }
.ms-doc h3 { font-size: 16px; margin: 0 0 12px; }
.ms-doc .pg-actions { margin-top: 0; flex-wrap: wrap; }
@media (max-width: 980px) { .ms-docs { grid-template-columns: 1fr; } }

/* Raccourcis à l'intérieur d'une section (Enseignes, Méthodologie) */
.ms-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.ms-chips a { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(15, 23, 42, .14); font-size: 13.5px; font-weight: 500; text-decoration: none; color: inherit; background: rgba(255, 255, 255, .6); }
.ms-chips a:hover { border-color: #1F4FD8; color: #1F4FD8; }
html[data-theme="dark"] .ms-chips a { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); }
html[data-theme="dark"] .ms-chips a:hover { border-color: #7DD3FC; color: #7DD3FC; }
.ms-anchor, .ms-msub, #labelvie, #carrefour, #walmart, #frise { scroll-margin-top: calc(var(--header-h, 80px) + 64px); }
.ms-msub { padding-top: 40px !important; }
#methodologie { padding-bottom: 8px !important; }
/* Page Analyse : la barre de sections reste lisible sur le fond du tableau de bord */
.an-page .ms-nav { z-index: 45; }

@media (max-width: 700px) {
  .ms-nav a { padding: 7px 12px; font-size: 13.5px; }
  .ms-nav-in { padding-left: 12px; padding-right: 12px; }
}
@media print { .ms-nav { display: none; } }
