/* Extrait de app.css par outils/adapter-maquette.py : le menu latéral de la maquette. */
/* ───────── Menu latéral v3 (menu.js) : sélecteur de site, pages et sous-pages, menu réduit à volets ───────── */
a.oe-lockup, .oe-lockup-lien { text-decoration: none; color: inherit; }
.marque a.oe-lockup { border-radius: var(--r-sm); }
.marque a.oe-lockup:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.side { gap: var(--s-1); }
.marque { margin-bottom: 2px; }

/* Sélecteur de site */
.sw { position: relative; margin-bottom: var(--s-2); }
.sw-b {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--fg);
  font: inherit; text-align: left; cursor: pointer;
  transition: background var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease);
}
.sw-b:hover, .sw-b[aria-expanded="true"] { background: var(--surface-2); border-color: var(--border-strong); }
.sw-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sw-m {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent-text); font-size: var(--t-12); font-weight: 650; line-height: 1;
  box-shadow: inset 0 0 0 1px var(--accent-ring);
}
.sw-m-org { background: var(--surface-3); color: var(--fg); box-shadow: inset 0 0 0 1px var(--border-strong); }
.sw-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; line-height: 1.25; }
.sw-t b { font-size: var(--t-13); font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-t small { display: flex; align-items: center; gap: 5px; font-size: var(--t-12); color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.sw-c { flex: none; width: 16px; height: 16px; color: var(--fg-3); }

.sw-menu, .maq-menu {
  position: fixed; z-index: 60; width: 340px; max-width: calc(100vw - 16px);
  display: flex; flex-direction: column; gap: 2px; padding: var(--s-2); border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 96%, transparent); color: var(--fg); font-size: var(--t-13);
  opacity: 0; transform: translateY(-4px) scale(.985); transform-origin: top left;
  transition: opacity var(--dur-enter) var(--ease), transform var(--dur-enter) var(--ease);
}
.maq-menu { width: 260px; transform-origin: bottom left; transform: translateY(4px) scale(.985); }
.sw-menu.on, .maq-menu.on { opacity: 1; transform: none; }
.sw-menu[hidden], .maq-menu[hidden] { display: none; }
.sw-q { width: 100%; margin-bottom: 2px; }
.sw-org { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin: 6px var(--s-2) 4px; }
.sw-org span { font-size: var(--t-12); font-weight: 560; color: var(--fg-2); }
.sw-org small { font-size: var(--t-12); color: var(--fg-3); }
.sw-l { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.sw-o {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 16px; align-items: center; gap: 10px;
  min-height: 48px; padding: 6px var(--s-2); border-radius: var(--r-md); cursor: pointer;
  transition: background var(--dur-hover) var(--ease);
}
.sw-o:hover, .sw-o.actif { background: var(--surface-2); }
.sw-ot { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sw-ot b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-ot small { font-size: var(--t-12); color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-o .badge { white-space: nowrap; }
.sw-k { width: 16px; height: 16px; color: var(--accent-text); opacity: 0; }
.sw-o[aria-selected="true"] .sw-k, .sw-k.on { opacity: 1; }
.sw-vide { margin: var(--s-2); color: var(--fg-3); font-size: var(--t-13); }
.sw-vide[hidden] { display: none; }
.sw-sep { height: 1px; margin: 4px 0; background: var(--border); }
.sw-a {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 var(--s-2); border-radius: var(--r-md);
  color: var(--fg-2); text-decoration: none; transition: background var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}
.sw-a svg { width: 18px; height: 18px; flex: none; color: var(--fg-3); }
.sw-a .ic-f { fill: currentColor; stroke: none; opacity: .14; }
.sw-a:hover, .sw-a:focus-visible { background: var(--surface-2); color: var(--fg); outline: none; }
.sw-a:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.sw-a .nav-tag, .sw-a .sw-k { margin-left: auto; }
.sw-a[aria-current="page"] { color: var(--fg); font-weight: 500; }

/* Retour au site (contexte du compte) */
.nav-retour {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 var(--s-2); margin-bottom: var(--s-2);
  border-radius: var(--r-md); color: var(--fg-3); font-size: var(--t-13); text-decoration: none; white-space: nowrap;
  transition: background var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}
.nav-retour svg { width: 16px; height: 16px; flex: none; }
.nav-retour span { overflow: hidden; text-overflow: ellipsis; }
.nav-retour:hover { background: var(--surface-2); color: var(--fg); }
.nav-retour:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Sections et pages */
#nav.nav-v3 { display: flex; flex-direction: column; gap: var(--s-3); }
#nav.nav-v3 .nav-g { margin-top: 0; gap: 0; }
#nav.nav-v3 .nav-plat { border-top: 1px solid var(--border); padding-top: var(--s-3); }
.nav-sec { margin: 0 0 4px; padding: 0 var(--s-2); font-size: var(--t-11); font-weight: 560; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.nav-liste { display: flex; flex-direction: column; gap: 1px; }
.nav-i { position: relative; }
#nav.nav-v3 .nav-a { height: 32px; gap: 10px; }
#nav.nav-v3 .nav-a svg { width: 18px; height: 18px; }
#nav.nav-v3 .nav-a span:first-of-type { overflow: hidden; text-overflow: ellipsis; }
.nav-i.a-sous > .nav-a { padding-right: 34px; }
.nav-i.a-sous > .nav-a .nav-n { margin-right: 2px; }
.nav-ouvrir {
  position: absolute; right: 2px; top: 2px; width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: var(--r-sm); background: none; color: var(--fg-3); cursor: pointer;
  transition: background var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}
.nav-ouvrir svg { width: 14px; height: 14px; transform: rotate(-90deg); transition: transform var(--dur-enter) var(--ease); }
.nav-i[data-ouvert] > .nav-ouvrir svg { transform: none; }
.nav-ouvrir:hover { background: var(--surface-3); color: var(--fg); }
.nav-ouvrir:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Page ouverte qui a des sous-pages : le titre s'allume, la sous-page porte le fond. */
.nav-i.a-sous > .nav-a[aria-current="page"] { background: none; box-shadow: none; }
.nav-i.a-sous > .nav-a.liq::before { display: none; }
.nav-i.a-sous > .nav-a[aria-current="page"]::after { display: none; }
.nav-i.a-sous > .nav-a[aria-current="page"]:hover { background: var(--surface-2); }

/* Sous-pages : filet vertical aligné sur l'icône, ouverture en hauteur */
.nav-sous { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--dur-enter) var(--ease), visibility 0s linear var(--dur-enter); }
.nav-i[data-ouvert] > .nav-sous { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--dur-enter) var(--ease); }
.nav-i:not(.a-sous) > .nav-sous { display: none; }
.nav-sous-in { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 1px; margin-left: 16px; padding: 0 0 0 11px; border-left: 1px solid var(--border); }
.nav-sous-in > .nav-s:nth-child(2) { margin-top: 2px; }
.nav-sous-in > .nav-s:last-child { margin-bottom: 4px; }
.nav-vol-t { display: none; }
.nav-s {
  position: relative; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 var(--s-2); border-radius: var(--r-sm);
  color: var(--fg-3); font-size: var(--t-13); text-decoration: none; white-space: nowrap;
  transition: background var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}
.nav-s span:first-child { overflow: hidden; text-overflow: ellipsis; }
.nav-s:hover { background: var(--surface-2); color: var(--fg); }
.nav-s:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nav-s .nav-n { margin-left: auto; font-family: var(--mono); font-size: var(--t-11); color: var(--fg-3); }
.nav-s .nav-n.crit { color: var(--red); }
.nav-s[aria-current="true"] { background: var(--surface-2); color: var(--fg); font-weight: 500; }
.nav-s[aria-current="true"]::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px var(--glow); }

/* Section repliable (options) */
.nav-tete { display: flex; align-items: center; gap: 6px; width: 100%; height: 24px; margin-bottom: 4px; padding: 0 var(--s-2); border: 0; border-radius: var(--r-sm); background: none; color: var(--fg-3); font: inherit; font-size: var(--t-11); font-weight: 560; letter-spacing: .04em; text-transform: uppercase; text-align: left; cursor: pointer; transition: color var(--dur-hover) var(--ease); }
.nav-tete:hover { color: var(--fg); }
.nav-tete:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nav-tete-n { font-family: var(--mono); font-size: var(--t-11); letter-spacing: 0; color: var(--fg-3); }
.nav-chev { width: 14px; height: 14px; margin-left: auto; transition: transform var(--dur-enter) var(--ease); }
.nav-g[data-ferme] .nav-chev { transform: rotate(-90deg); }
.nav-g[data-ferme] .nav-liste { display: none; }
.nav-a .nav-tag, .sw-a .nav-tag { margin-left: auto; padding: 0 6px; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: 11px; line-height: 18px; color: var(--fg-3); }
.nav-a.nav-module { color: var(--fg-3); }
.nav-a.nav-module:hover { color: var(--fg); }

/* Outils de la maquette, au pied */
.maq { position: relative; }
.maq-b {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 var(--s-2);
  border: 1px dashed var(--border-strong); border-radius: var(--r-md); background: none; color: var(--fg-3);
  font: inherit; font-size: var(--t-12); cursor: pointer; transition: background var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}
.maq-b > svg:first-child { width: 16px; height: 16px; flex: none; }
.maq-b small { margin-left: auto; font-size: var(--t-11); color: var(--fg-3); }
.maq-b .sw-c { width: 14px; height: 14px; margin-left: 0; }
.maq-b:hover, .maq-b[aria-expanded="true"] { background: var(--surface-2); color: var(--fg); }
.maq-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.side-pied { border-top: 1px solid var(--border); padding-top: var(--s-3); }
.side-pied .maq { grid-column: 1 / -1; }

/* Menu réduit (bureau) : icônes seules, la page s'ouvre en volet au survol ou au clavier */
.app[data-replie="1"] .sw-t, .app[data-replie="1"] .sw-c, .app[data-replie="1"] .nav-sec,
.app[data-replie="1"] .nav-tete, .app[data-replie="1"] .nav-tag, .app[data-replie="1"] .nav-ouvrir,
.app[data-replie="1"] .nav-retour span, .app[data-replie="1"] .maq-b span, .app[data-replie="1"] .maq-b small { display: none; }
.app[data-replie="1"] .sw-b { justify-content: center; padding: 6px 0; border-color: transparent; background: none; min-height: 40px; }
.app[data-replie="1"] .nav-retour, .app[data-replie="1"] .maq-b { justify-content: center; padding: 0; }
.app[data-replie="1"] #nav.nav-v3 { gap: var(--s-2); }
.app[data-replie="1"] #nav.nav-v3 .nav-g + .nav-g { border-top: 1px solid var(--border); padding-top: var(--s-2); }
.app[data-replie="1"] .nav-g[data-ferme] .nav-liste { display: flex; }
.app[data-replie="1"] #nav.nav-v3 .nav-a { height: 36px; padding: 0; justify-content: center; }
.app[data-replie="1"] #nav.nav-v3 .nav-a svg { width: 20px; height: 20px; }
.app[data-replie="1"] .nav-i.a-sous > .nav-a[aria-current="page"] { background: var(--surface-2); }
.app[data-replie="1"] .nav-i > .nav-sous, .app[data-replie="1"] .nav-i:not(.a-sous) > .nav-sous {
  display: block; position: fixed; left: 56px; top: var(--vol-y, 0); z-index: 60; padding-left: 12px;
  visibility: hidden; opacity: 0; transform: translateX(-4px); transition: opacity var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease), visibility 0s linear var(--dur-hover);
}
.app[data-replie="1"] .nav-i[data-vol] > .nav-sous, .app[data-replie="1"] .nav-i:focus-within > .nav-sous {
  visibility: visible; opacity: 1; transform: none; transition: opacity var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease);
}
.app[data-replie="1"] .nav-sous-in {
  overflow: visible; min-width: 200px; margin: 0; padding: 6px; border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 97%, transparent); box-shadow: var(--pop-shadow);
}
.app[data-replie="1"] .nav-vol-t { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); padding: 6px var(--s-2); font-size: var(--t-13); font-weight: 600; color: var(--fg); text-decoration: none; white-space: nowrap; }
.app[data-replie="1"] .nav-i.a-sous .nav-vol-t { margin-bottom: 2px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.nav-vol-t small { font-size: var(--t-11); font-weight: 400; color: var(--fg-3); }
.app[data-replie="1"] .nav-s[aria-current="true"]::before { display: none; }
.app[data-replie="1"] .nav-s .nav-n:not(:empty) { display: inline; position: static; width: auto; height: auto; margin-left: auto; font-size: var(--t-11); background: none; box-shadow: none; border-radius: 0; }
.app[data-replie="1"] .nav-s .nav-n.crit { background: none; }

/* Tiroir (étroit) : tout en clair, pas de volets */
@media (max-width: 1023px) {
  .app[data-tiroir="ouvert"] .side { transform: none; }
  .app[data-tiroir="ouvert"] .voile { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 35; }
  .app[data-replie="1"] .sw-t, .app[data-replie="1"] .sw-c, .app[data-replie="1"] .nav-sec, .app[data-replie="1"] .nav-tete,
  .app[data-replie="1"] .nav-tag, .app[data-replie="1"] .nav-ouvrir, .app[data-replie="1"] .nav-retour span,
  .app[data-replie="1"] .maq-b span, .app[data-replie="1"] .maq-b small { display: revert; }
  .app[data-replie="1"] .nav-ouvrir { display: grid; }
  .app[data-replie="1"] .sw-b { justify-content: flex-start; padding: 6px 8px; border-color: var(--border); }
  .app[data-replie="1"] #nav.nav-v3 .nav-a { height: 32px; padding: 0 var(--s-2); justify-content: flex-start; }
  .app[data-replie="1"] .nav-g[data-ferme] .nav-liste { display: none; }
  .app[data-replie="1"] .nav-i > .nav-sous { position: static; display: grid; padding: 0; opacity: 1; transform: none; }
  .app[data-replie="1"] .nav-i:not(.a-sous) > .nav-sous { display: none; }
  .app[data-replie="1"] .nav-sous-in { min-width: 0; margin-left: 16px; padding: 0 0 0 11px; border: 0; border-left: 1px solid var(--border); border-radius: 0; background: none; box-shadow: none; overflow: hidden; }
  .app[data-replie="1"] .nav-vol-t { display: none; }
}
@media (pointer: coarse) {
  #nav.nav-v3 .nav-a, .nav-s { min-height: 44px; height: auto; }
  .nav-ouvrir { width: 40px; height: 40px; }
  .nav-tete { min-height: 40px; }
  .nav-i.a-sous > .nav-a { padding-right: 46px; }
}
@media (prefers-reduced-motion: reduce) { .nav-sous, .nav-i[data-ouvert] > .nav-sous, .nav-ouvrir svg { transition: none; } }

/* Menu du compte : l'usage du forfait a quitté la barre latérale */
.cq-usage { align-items: center; }
.cq-usage-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cq-usage-t small { font-size: var(--t-12); color: var(--fg-3); }
.cq-usage-m { width: 36px; height: 4px; margin-left: auto; flex: none; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.cq-usage-m i { display: block; height: 100%; background: var(--accent); }
.orli-b[aria-expanded="true"] { border-color: color-mix(in srgb, var(--accent) 55%, var(--border-strong)); background: var(--accent-soft); }

/* Fil d'Ariane : site › page › sous-page */
.espace[hidden] { display: none; }
.fil [hidden] { display: none; }
.fil-sous { font-size: var(--t-13); color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Page Compte : les rubriques sont les sous-pages du menu latéral ; la liste interne ne double plus le menu en bureau
   (elle reste lisible par les lecteurs d'écran et sert d'onglets en étroit). */
@media (min-width: 1024px) {
  .app:not([data-replie="1"]) .reglages { grid-template-columns: minmax(0, 1fr); }
  .app:not([data-replie="1"]) .reglages > nav { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.fil-org { display: inline-flex; align-items: center; min-height: 28px; }
@media (max-width: 767px) {
  .fil .fil-org, .fil .fil-org + .sep, .fil .fil-sous-sep, .fil .fil-sous { display: none; }
}

/* ───────── Menu v3.1 : tête et pied fixes, menu qui défile seul, sélecteur épuré, tendances ───────── */
.side { overflow: hidden; gap: 0; }
.side-tete { flex: none; display: flex; flex-direction: column; gap: 6px; padding-bottom: var(--s-3); margin: 0 calc(-1 * var(--s-3)); padding-inline: var(--s-3); border-bottom: 1px solid transparent; transition: border-color var(--dur-hover) var(--ease), box-shadow var(--dur-hover) var(--ease); position: relative; z-index: 2; }
.side-tete.defile { border-bottom-color: var(--border); box-shadow: 0 8px 16px -12px rgba(0, 0, 0, .6); }
.side-tete .marque { margin-bottom: 0; }
.side-tete .sw { margin-bottom: 0; }
#nav.nav-v3 { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 calc(-1 * var(--s-3)); padding: var(--s-3) var(--s-3) var(--s-4); scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
#nav.nav-v3::-webkit-scrollbar { width: 6px; }
#nav.nav-v3::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
.side-pied { flex: none; margin: 0 calc(-1 * var(--s-3)); padding: var(--s-3) var(--s-3) 0; border-top: 1px solid transparent; transition: border-color var(--dur-hover) var(--ease), box-shadow var(--dur-hover) var(--ease); position: relative; z-index: 2; }
.side-pied.defile { border-top-color: var(--border); box-shadow: 0 -8px 16px -12px rgba(0, 0, 0, .6); }
[data-theme="clair"] .side-tete.defile, [data-theme="clair"] .side-pied.defile { box-shadow: none; }

/* Mini-courbes à droite des entrées */
.sp { display: block; flex: none; overflow: visible; }
.sp-l { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sp-a { fill: currentColor; opacity: .1; stroke: none; }
.sp-p { fill: currentColor; }
#nav.nav-v3 .nav-a > span:first-of-type { flex: 1 1 auto; min-width: 0; }
.nav-sp { width: 32px; height: 14px; color: var(--fg-3); opacity: .75; transition: opacity var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease); }
.nav-a:hover .nav-sp { opacity: 1; color: var(--fg-2); }
.nav-a[aria-current="page"] .nav-sp { color: var(--accent-text); opacity: 1; }
.nav-sp.crit, .nav-a:hover .nav-sp.crit { color: var(--red); opacity: 1; }
#nav.nav-v3 .nav-a.a-tend { padding-right: 34px; }
#nav.nav-v3 .nav-a.a-tend .nav-n { margin: 0 8px 0 0; }
#nav.nav-v3 .nav-a .nav-sp { margin-left: 0; }
.app[data-replie="1"] #nav.nav-v3 .nav-a.a-tend { padding-right: 0; }
.app[data-replie="1"] .nav-sp { display: none; }

/* Aperçu au survol */
.nav-apercu { position: fixed; z-index: 70; width: 232px; padding: var(--s-3); border-radius: var(--r-lg); pointer-events: none; background: color-mix(in srgb, var(--surface) 97%, transparent); color: var(--fg); opacity: 0; transform: translateX(-4px); transition: opacity var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease); }
.nav-apercu.on { opacity: 1; transform: none; }
.nav-apercu[hidden] { display: none; }
.nav-apercu p { margin: 0; }
.nav-ap-t { display: flex; justify-content: space-between; gap: var(--s-2); font-size: var(--t-12); color: var(--fg-3); }
.nav-ap-v { margin-top: 4px !important; font-size: var(--t-16); font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.nav-ap-d { font-size: var(--t-12); color: var(--fg-2); }
.nav-ap-sp { width: 100%; height: 44px; margin-top: var(--s-2); color: var(--accent-text); }
.nav-apercu.crit .nav-ap-sp, .nav-apercu.crit .nav-ap-v { color: var(--red); }

/* Volet du menu réduit : la tendance sous le titre */
.nav-vol-tend { display: none; }
.app[data-replie="1"] .nav-vol-tend { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 2px var(--s-2) 8px; margin-bottom: 2px; border-bottom: 1px solid var(--border); color: var(--accent-text); }
.app[data-replie="1"] .nav-vol-tend.crit { color: var(--red); }
.nav-vol-tend span { display: flex; flex-direction: column; min-width: 0; }
.nav-vol-tend b { font-size: var(--t-13); font-weight: 560; color: var(--fg); white-space: nowrap; }
.nav-vol-tend small { font-size: var(--t-11); color: var(--fg-3); white-space: nowrap; }
.app[data-replie="1"] .nav-i:not(.a-sous) .nav-vol-tend { border-bottom: 0; margin-bottom: 0; }
.app[data-replie="1"] .nav-i .nav-vol-t + .nav-vol-tend { margin-top: -2px; }
.app[data-replie="1"] .nav-i.a-sous .nav-vol-t:has(+ .nav-vol-tend) { border-bottom: 0; margin-bottom: 0; padding-bottom: 4px; }

/* Sélecteur de site, épuré : recherche, sites, ajout */
.sw-menu { width: 300px; padding: 0; gap: 0; overflow: hidden; }
.sw-menu .sw-q { display: flex; align-items: center; gap: var(--s-2); height: 44px; margin: 0; padding: 0 var(--s-3); border-bottom: 1px solid var(--border); }
.sw-menu .sw-q svg { width: 16px; height: 16px; flex: none; color: var(--fg-3); }
.sw-menu .sw-q input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--fg); font: inherit; font-size: var(--t-13); }
.sw-menu .sw-q input::placeholder { color: var(--fg-3); }
.sw-g { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); padding: var(--s-3) var(--s-3) 4px; }
.sw-g span { font-size: var(--t-11); font-weight: 560; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.sw-g a { font-size: var(--t-12); color: var(--fg-2); text-decoration: none; border-radius: var(--r-sm); }
.sw-g a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.sw-g a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw-menu .sw-l { padding: 0 6px; max-height: 264px; gap: 1px; }
.sw-menu .sw-o { grid-template-columns: 24px minmax(0, 1fr) 40px 16px; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: var(--r-md); box-shadow: none; }
.sw-menu .sw-o .sw-m { width: 24px; height: 24px; font-size: var(--t-11); }
.sw-menu .sw-o.actif { background: var(--surface-2); }
.sw-ot b mark { background: none; color: var(--accent-text); font-weight: 650; }
.sw-ot small { display: flex; align-items: center; gap: 5px; }
.sw-o.warn .sw-dot { background: var(--amber); box-shadow: 0 0 0 2px color-mix(in srgb, var(--amber) 22%, transparent); }
.sw-o.warn small { color: color-mix(in srgb, var(--amber) 80%, var(--fg-3)); }
.sw-sp { width: 40px; height: 16px; color: var(--fg-3); }
.sw-o.actif .sw-sp { color: var(--accent-text); }
.sw-o.warn .sw-sp { color: var(--amber); }
.sw-menu .sw-k { width: 16px; height: 16px; opacity: 1; color: var(--accent-text); }
.sw-menu .sw-vide { padding: var(--s-2) var(--s-3); margin: 0; }
.sw-ajout { display: flex; align-items: center; gap: 10px; height: 40px; margin: 6px 6px 0; padding: 0 8px; border-radius: var(--r-md); color: var(--fg-2); font-size: var(--t-13); text-decoration: none; transition: background var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease); }
.sw-ajout svg { width: 16px; height: 16px; flex: none; }
.sw-ajout:hover, .sw-ajout:focus-visible { background: var(--surface-2); color: var(--fg); outline: none; }
.sw-ajout:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.sw-pied { display: flex; gap: var(--s-3); margin: 6px 0 0; padding: 8px var(--s-3); border-top: 1px solid var(--border); font-size: var(--t-11); color: var(--fg-3); }
.sw-pied kbd { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-right: 2px; padding: 0 3px; border: 1px solid var(--border); border-radius: 3px; font-family: var(--mono); font-size: 10px; color: var(--fg-2); background: var(--surface-2); }
@media (pointer: coarse) { .sw-pied { display: none; } .sw-menu .sw-o { min-height: 52px; } .sw-ajout { height: 48px; } }

/* ───────── Sélecteur v3 : espace puis service, panneau à deux colonnes ───────── */
.fav { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.fav svg { width: 14px; height: 14px; }
.fav-sac { background: linear-gradient(160deg, #F59E0B, #C2410C); }
.fav-acc { background: linear-gradient(160deg, #8B5CF6, #5B21B6); }
.fav-plume { background: linear-gradient(160deg, #10B981, #047857); }
.fav-lune { background: linear-gradient(160deg, #64748B, #1E293B); }
.fav-reseau { background: var(--surface-3); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.fav-accueil { background: var(--surface-3); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.fav-accueil svg { width: 14px; height: 14px; }
.fav-accueil .ic-f { fill: currentColor; stroke: none; opacity: .14; }

.sw-b { display: grid; grid-template-columns: minmax(0, 1fr) 16px; grid-template-rows: auto auto; align-items: center; column-gap: 8px; row-gap: 0; min-height: 0; padding: 0; overflow: hidden; }
.sw-b .sw-c { grid-column: 2; grid-row: 1 / 3; margin-right: 8px; }
.sw-l1, .sw-l2 { grid-column: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 0 0 8px; }
.sw-l1 { height: 30px; font-size: var(--t-12); color: var(--fg-2); border-bottom: 1px solid var(--border); }
.sw-l2 { height: 38px; font-size: var(--t-13); }
.sw-av { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: var(--fg); color: var(--bg); font-size: 10px; font-weight: 700; line-height: 1; }
.sw-en { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.sw-offre { flex: none; padding: 0 5px; border: 1px solid var(--border-strong); border-radius: 4px; font-size: 10px; line-height: 15px; color: var(--fg-3); letter-spacing: .02em; }
.sw-l2 b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }
.sw-l2 .sw-dot { margin-left: auto; }
.sw-dot.warn, .sw-o.warn .sw-dot { background: var(--amber); box-shadow: 0 0 0 2px color-mix(in srgb, var(--amber) 22%, transparent); }
.sw-b:hover .sw-l1 { border-bottom-color: var(--border-strong); }
.app[data-replie="1"] .sw-b { display: flex; padding: 4px 0; }
.app[data-replie="1"] .sw-l1 { display: none; }
.app[data-replie="1"] .sw-l2 { padding: 0; justify-content: center; height: 32px; }
.app[data-replie="1"] .sw-l2 b, .app[data-replie="1"] .sw-l2 .sw-dot { display: none; }
.app[data-replie="1"] .sw-l2 .fav { width: 28px; height: 28px; border-radius: 8px; }
.app[data-replie="1"] .sw-l2 .fav svg { width: 16px; height: 16px; }

.sw-menu { width: 580px; max-width: calc(100vw - 16px); }
.sw-cols { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 300px; }
.sw-esp { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.sw-h { margin: 6px 8px 4px; font-size: var(--t-11); font-weight: 560; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.sw-l .sw-h { margin: 10px 8px 4px; }
.sw-el { display: flex; flex-direction: column; gap: 2px; }
.sw-e { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 8px; border: 0; border-radius: var(--r-md); background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: background var(--dur-hover) var(--ease); }
.sw-e .sw-av { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; }
.sw-e:not([aria-selected="true"]) .sw-av { background: var(--surface-3); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.sw-et { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.sw-et b { font-size: var(--t-13); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-et small { font-size: var(--t-11); color: var(--fg-3); }
.sw-e:hover { background: var(--surface-2); }
.sw-e[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.sw-e:focus-visible, .sw-e-plus:focus-visible, .sw-console:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sw-e-plus, .sw-console { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px; border: 0; border-radius: var(--r-md); background: none; color: var(--fg-3); font: inherit; font-size: var(--t-12); text-decoration: none; cursor: pointer; transition: background var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease); }
.sw-e-plus svg, .sw-console svg { width: 15px; height: 15px; flex: none; }
.sw-e-plus:hover, .sw-console:hover { background: var(--surface-2); color: var(--fg); }
.sw-console { margin-top: auto; border-top: 1px solid var(--border); border-radius: 0 0 var(--r-md) var(--r-md); padding-top: 2px; }
.sw-console .nav-tag { margin-left: auto; }
.sw-svc { display: flex; flex-direction: column; min-width: 0; }
.sw-menu .sw-svc .sw-q { height: 46px; }
.sw-menu .sw-l { flex: 1; max-height: 300px; padding: 0 6px 6px; }
.sw-menu .sw-o { grid-template-columns: 22px minmax(0, 1fr) 40px 16px; }
.sw-o-acc .sw-ot b { font-weight: 560; }
.sw-note { margin: 8px 8px 0; padding: 8px 10px; border: 1px dashed var(--border-strong); border-radius: var(--r-md); font-size: var(--t-12); color: var(--fg-3); }
.sw-ot b.mono { font-family: var(--mono); font-size: var(--t-12); }
.sw-ajout { flex-wrap: wrap; height: auto; min-height: 44px; margin: 0 6px 6px; padding: 6px 8px; border: 1px dashed var(--border-strong); column-gap: 10px; row-gap: 0; }
.sw-ajout small { flex-basis: 100%; padding-left: 26px; font-size: var(--t-11); color: var(--fg-3); }
.sw-ajout svg { color: var(--accent-text); }
.sw-menu.sw-etroit .sw-cols { grid-template-columns: minmax(0, 1fr); }
.sw-menu.sw-etroit .sw-esp { border-right: 0; border-bottom: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; align-items: center; }
.sw-menu.sw-etroit .sw-esp > .sw-h, .sw-menu.sw-etroit .sw-e-plus, .sw-menu.sw-etroit .sw-console { display: none; }
.sw-menu.sw-etroit .sw-el { flex-direction: row; gap: 4px; width: 100%; }
.sw-menu.sw-etroit .sw-e { flex: 1; min-width: 0; }
.sw-menu.sw-etroit .sw-pied { display: none; }
.sw-menu.sw-etroit .sw-l { max-height: min(52dvh, 340px); }
#nav.nav-v3 .nav-plat:first-child { border-top: 0; padding-top: 0; }
