/* Barre de la suite Newscloud, en tête de Playnest, Dowebo, Virtana et des pages publiques de newscloud.fr. Reprise de <x-suite::topbar> du paquet
   newscloud/suitespaces (navigation.css, « Shared top bar ») : mêmes dimensions (74 px, 60 px sous 800 px), même ordre,
   avec « La suite Newscloud » à la place du fil d'Ariane. Fichier identique dans les quatre dépôts. */
html body .nc-topbar { --suite-surface: #fff; --suite-line: #e5e9e8; --suite-ink: #222b32; --suite-muted: #5f6b72; --suite-soft: #f0f4f1; --suite-accent: #245b49; position: relative; z-index: 60; display: flex; flex: none; align-items: center; justify-content: space-between; gap: 20px; box-sizing: border-box; width: auto; height: 74px; min-height: 0; max-height: none; margin: 0; padding: 0 36px; border: 0; border-bottom: 1px solid var(--suite-line); border-radius: 0; background: var(--suite-surface); color: var(--suite-ink); font: 400 14px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: normal; text-align: left; text-transform: none; box-shadow: none; }
html body .nc-topbar *, html body .nc-topbar *::before, html body .nc-topbar *::after { box-sizing: border-box; }
html body .nc-topbar svg, html body .nc-topbar img { display: block; flex: none; max-width: none; }
/* Un bouton par marque, à gauche, logo et nom : la suite Newscloud, puis Dowebo, Playnest, Virtana et Webmail. Logos seuls sous 1100 px. */
html body .nc-topbar .nc-topbar-brands { display: flex; flex: 0 1 auto; align-items: center; gap: 6px; min-width: 0; margin: 0; padding: 0; }
html body .nc-topbar a.nc-topbar-suite { display: inline-flex; flex: none; align-items: center; gap: 10px; min-width: 0; height: 44px; margin: 0 4px 0 0; padding: 0 14px 0 6px; border: 1px solid var(--suite-line); border-radius: 12px; background: transparent; color: var(--suite-ink); text-decoration: none; white-space: nowrap; }
html body .nc-topbar a.nc-topbar-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; height: 44px; margin: 0; padding: 0 14px 0 6px; border: 1px solid var(--suite-line); border-radius: 12px; background: transparent; color: var(--suite-ink); text-decoration: none; white-space: nowrap; }
html body .nc-topbar .nc-topbar-brand-name { color: var(--suite-ink); font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
html body .nc-topbar a.nc-topbar-brand img { width: 30px; height: 30px; border-radius: 8px; }
html body .nc-topbar :is(a.nc-topbar-suite, a.nc-topbar-brand)[aria-current] { border-color: var(--suite-accent); background: var(--suite-soft); }
html body .nc-topbar :is(a.nc-topbar-suite, a.nc-topbar-brand):hover { border-color: var(--suite-line); background: var(--suite-soft); color: var(--suite-ink); }
html body .nc-topbar .nc-topbar-mark { width: 30px; height: 30px; }
html body .nc-topbar .nc-topbar-suite-name { color: var(--suite-muted); font-size: 14px; font-weight: 400; letter-spacing: -.01em; }
html body .nc-topbar .nc-topbar-suite-name strong { color: var(--suite-ink); font-weight: 650; letter-spacing: -.02em; }
html body .nc-topbar .nc-topbar-actions { display: flex; flex: none; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; }
html body .nc-topbar a.nc-topbar-bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--suite-ink); text-decoration: none; }
html body .nc-topbar a.nc-topbar-link { display: inline-flex; align-items: center; gap: 7px; height: 40px; margin: 0; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--suite-ink); font-size: 12px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; }
html body .nc-topbar a.nc-topbar-balance { display: inline-flex; align-items: center; gap: 7px; height: 40px; margin: 0 4px 0 0; padding: 0 12px; border: 1px solid var(--suite-line); border-radius: 999px; background: transparent; color: var(--suite-ink); font-size: 12px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
html body .nc-topbar a.nc-topbar-guest { display: inline-flex; align-items: center; height: 40px; margin: 0 0 0 6px; padding: 0 16px; border: 1px solid var(--suite-line); border-radius: 999px; background: transparent; color: var(--suite-ink); font-size: 12px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; }
html body .nc-topbar :is(a.nc-topbar-balance, a.nc-topbar-bell, a.nc-topbar-link, a.nc-topbar-guest):hover { background: var(--suite-soft); color: var(--suite-ink); }
html body .nc-topbar .nc-topbar-account { position: relative; flex: none; margin: 0 0 0 10px; padding: 0; border: 0; background: transparent; }
html body .nc-topbar .nc-topbar-account > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--suite-ink); font-size: 12px; font-weight: 400; line-height: 1.45; list-style: none; cursor: pointer; }
html body .nc-topbar .nc-topbar-account > summary::-webkit-details-marker { display: none; }
html body .nc-topbar .nc-topbar-account > summary::marker { content: ""; }
html body .nc-topbar .nc-topbar-avatar { display: grid; place-items: center; flex: none; width: 31px; height: 31px; margin: 0; border: 1px solid var(--suite-line); border-radius: 50%; background: var(--suite-soft); color: var(--suite-ink); font-size: 10px; font-weight: 600; line-height: 1; }
html body .nc-topbar .nc-topbar-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .nc-topbar .nc-topbar-menu { position: absolute; top: 48px; right: 0; z-index: 70; width: 230px; max-width: calc(100vw - 32px); margin: 0; padding: 6px; border: 1px solid var(--suite-line); border-radius: 12px; background: var(--suite-surface); box-shadow: 0 12px 32px #293e3215; }
html body .nc-topbar .nc-topbar-menu :is(a, button) { display: block; width: 100%; height: auto; min-height: 0; margin: 0; padding: 11px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--suite-ink); font: inherit; font-size: 13px; font-weight: 400; line-height: 1.4; letter-spacing: normal; text-align: left; text-decoration: none; text-transform: none; box-shadow: none; cursor: pointer; }
html body .nc-topbar .nc-topbar-menu :is(a, button):hover { background: var(--suite-soft); }
html body .nc-topbar .nc-topbar-menu a.nc-topbar-menu-phone { display: none; }
html body .nc-topbar .nc-topbar-menu form { margin: 4px 0 0; padding: 4px 0 0; border: 0; border-top: 1px solid var(--suite-line); }
html body .nc-topbar :focus-visible { outline: 3px solid var(--suite-accent); outline-offset: 2px; }
html body .nc-topbar .nc-suite-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 1500px) { html body .nc-topbar { padding-inline: 48px; } }
@media (max-width: 1150px) { html body .nc-topbar { padding-inline: 24px; } }
@media (max-width: 1100px) {
 html body .nc-topbar a.nc-topbar-brand { justify-content: center; width: 44px; padding: 0; border-color: transparent; }
 html body .nc-topbar .nc-topbar-brand-name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}
@media (max-width: 800px) {
 html body .nc-topbar { height: 60px; gap: 12px; padding-inline: 20px; }
 html body .nc-topbar .nc-topbar-mark { width: 28px; height: 28px; }
 html body .nc-topbar .nc-topbar-brands { gap: 2px; }
 html body .nc-topbar a.nc-topbar-suite { height: 40px; margin-right: 2px; padding: 0 12px 0 5px; }
 html body .nc-topbar a.nc-topbar-brand { width: 40px; height: 40px; }
 html body .nc-topbar a.nc-topbar-brand img { width: 26px; height: 26px; }
 html body .nc-topbar a.nc-topbar-link { justify-content: center; width: 40px; padding: 0; }
 html body .nc-topbar a.nc-topbar-balance { height: 34px; padding: 0 10px; }
 html body .nc-topbar a.nc-topbar-balance svg { display: none; }
 html body .nc-topbar a.nc-topbar-guest { height: 36px; padding: 0 14px; }
 html body .nc-topbar .nc-topbar-account { margin-left: 4px; }
 html body .nc-topbar a.nc-topbar-discover { display: none; }
 /* Icons only on a phone: the labels and the name stay read. */
 html body .nc-topbar :is(.nc-topbar-label, .nc-topbar-name) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}
@media (max-width: 560px) {
 html body .nc-topbar .nc-topbar-suite-name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
 html body .nc-topbar a.nc-topbar-suite { padding: 0 5px; }
 /* Sur un téléphone, le site courant n'a pas besoin de son propre bouton : son en-tête porte déjà son logo. */
 html body .nc-topbar :is(a.nc-topbar-suite, a.nc-topbar-brand)[aria-current] { display: none; }
 html body .nc-topbar .nc-topbar-brands { gap: 0; }
 html body .nc-topbar a.nc-topbar-suite, html body .nc-topbar a.nc-topbar-brand { justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; }
 html body .nc-topbar a.nc-topbar-suite { border-color: transparent; }
 html body .nc-topbar a.nc-topbar-brand img, html body .nc-topbar .nc-topbar-mark { width: 24px; height: 24px; }
}
@media (max-width: 480px) {
 /* Place pour Webmail à côté des marques : « Abonnement » passe dans le menu du compte. */
 html body .nc-topbar a.nc-topbar-subscription { display: none; }
 html body .nc-topbar .nc-topbar-menu a.nc-topbar-menu-phone { display: block; }
}
@media (max-width: 380px) {
 html body .nc-topbar { gap: 8px; padding-inline: 14px; }
 html body .nc-topbar a.nc-topbar-suite, html body .nc-topbar a.nc-topbar-brand { width: 30px; height: 30px; }
 html body .nc-topbar a.nc-topbar-brand img, html body .nc-topbar .nc-topbar-mark { width: 22px; height: 22px; }
 html body .nc-topbar .nc-topbar-actions { gap: 0; }
 html body .nc-topbar a.nc-topbar-bell { width: 34px; }
 html body .nc-topbar a.nc-topbar-balance { margin-right: 2px; padding: 0 8px; }
}
/* Thème sombre des sites qui en ont un (Virtana : data-theme sur <html>). */
:root[data-theme=dark] body .nc-topbar { --suite-surface: #1f252b; --suite-line: #333c44; --suite-ink: #f2f4f3; --suite-muted: #aab4b8; --suite-soft: #2b333a; --suite-accent: #8fd0b0; }
@media (prefers-color-scheme: dark) { :root[data-theme=system] body .nc-topbar { --suite-surface: #1f252b; --suite-line: #333c44; --suite-ink: #f2f4f3; --suite-muted: #aab4b8; --suite-soft: #2b333a; --suite-accent: #8fd0b0; } }
@media print { html body .nc-topbar { display: none; } }
