/* Menu connecté : sections repliables, favoris, recherche (public/assets/js/menu-metiers.js). */
html body .pc-sidebar .pc-navbar .menu-masque { display: none !important; }
html body .pc-sidebar .pc-navbar.menu-recherche .menu-masque { display: block !important; }
html body .pc-sidebar .pc-navbar.menu-recherche .menu-cache,
html body .pc-sidebar .pc-navbar .menu-cache { display: none !important; }
html body .pc-sidebar .pc-navbar.menu-recherche .menu-hit > .pc-submenu { display: block !important; }
.pc-sidebar .pc-navbar .menu-aucun { padding: 10px 24px; font-size: .85rem; opacity: .7; }
html body .pc-sidebar .pc-navbar .menu-aucun[hidden] { display: none !important; }

.pc-sidebar .pc-navbar .menu-section-titre { cursor: pointer; user-select: none; align-items: center; }
.pc-sidebar .pc-navbar .menu-section-titre label { cursor: pointer; }
.pc-sidebar .pc-navbar .menu-section-titre:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; border-radius: 6px; }
.pc-sidebar .pc-navbar .menu-chevron { margin-left: auto; font-size: .95rem; opacity: .6; transition: transform .15s ease; }
.pc-sidebar .pc-navbar .menu-section-titre.menu-ferme .menu-chevron { transform: rotate(-90deg); }
.pc-sidebar .pc-navbar .menu-fav-titre { cursor: default; }
html body .pc-sidebar .pc-navbar .menu-fav-titre[hidden] { display: none !important; }

.pc-sidebar .pc-navbar .menu-outils { display: flex; gap: 6px; align-items: center; padding: 8px 16px 4px; }
.pc-sidebar .menu-recherche-champ { position: relative; flex: 1 1 auto; min-width: 0; }
.pc-sidebar .menu-recherche-champ i { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); opacity: .55; pointer-events: none; }
.pc-sidebar .menu-recherche-saisie { width: 100%; padding: 6px 8px 6px 30px; border-radius: 8px; border: 1px solid rgba(128, 128, 128, .35); background: rgba(255, 255, 255, .08); color: inherit; font-size: .85rem; }
.pc-sidebar .menu-recherche-saisie::placeholder { color: inherit; opacity: .55; }
.pc-sidebar .menu-recherche-saisie:focus { outline: 2px solid currentColor; outline-offset: 1px; }
.pc-sidebar .menu-outils-boutons { display: flex; gap: 2px; flex: 0 0 auto; }
.pc-sidebar .menu-outil { border: 0; background: transparent; color: inherit; opacity: .6; padding: 4px; border-radius: 6px; line-height: 1; }
.pc-sidebar .menu-outil:hover, .pc-sidebar .menu-outil:focus-visible { opacity: 1; background: rgba(128, 128, 128, .18); }

.pc-sidebar .menu-avec-etoile, .pc-sidebar .menu-fav { position: relative; }
.pc-sidebar .menu-etoile { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: inherit; padding: 4px; line-height: 1; border-radius: 6px; opacity: 0; transition: opacity .12s ease; z-index: 2; }
.pc-sidebar .menu-avec-etoile:hover > .menu-etoile, .pc-sidebar .menu-fav:hover > .menu-etoile,
.pc-sidebar .menu-etoile:focus-visible, .pc-sidebar .menu-etoile.actif { opacity: .85; }
.pc-sidebar .menu-etoile.actif { color: #f5a524; }
.pc-sidebar .menu-etoile:hover { background: rgba(128, 128, 128, .2); }
@media (hover: none) { .pc-sidebar .menu-etoile { opacity: .45; } }

.pc-sidebar a.pc-link.menu-courant { font-weight: 700; }

/* Barre latérale compacte (icônes seules) : on masque les outils tant qu'elle n'est pas survolée. */
@media (min-width: 1025px) {
    body[data-edu-disposition="compacte"] .pc-sidebar:not(:hover):not(:focus-within) .menu-outils,
    body[data-edu-disposition="compacte"] .pc-sidebar:not(:hover):not(:focus-within) .menu-etoile,
    body[data-edu-disposition="compacte"] .pc-sidebar:not(:hover):not(:focus-within) .menu-chevron { display: none !important; }
}

/* Lot MN-1 : une rubrique sans entrée (aucun droit pour cet utilisateur) disparaît entièrement. */
html body .pc-sidebar .pc-navbar .menu-vide { display: none !important; }

/* Lot design du 10/11/2026 : « Plus de rubriques », rubriques en pastilles douces (couleurs issues des jetons du thème). */
html body .pc-sidebar .pc-navbar:not(.menu-plus-ouvert):not(.menu-recherche) .menu-plus-item { display: none !important; }
.pc-sidebar .pc-navbar .menu-plus-titre { cursor: pointer; user-select: none; align-items: center; margin-top: .5rem; }
.pc-sidebar .pc-navbar .menu-plus-titre label { cursor: pointer; }
.pc-sidebar .pc-navbar .menu-plus-titre .menu-chevron { transition: transform .2s ease; }
.pc-sidebar .pc-navbar.menu-plus-ouvert .menu-plus-titre .menu-chevron { transform: rotate(90deg); }
.pc-sidebar .pc-navbar .menu-section-titre,
.pc-sidebar .pc-navbar .menu-plus-titre { border-radius: var(--edu-radius-md, 12px); margin-inline: .5rem; padding-inline: .75rem; transition: background-color .2s ease, transform .2s ease; }
.pc-sidebar .pc-navbar .menu-section-titre:hover,
.pc-sidebar .pc-navbar .menu-plus-titre:hover { background: rgba(var(--edu-color-primary-rgb, 10, 132, 255), .08); }
.pc-sidebar .pc-navbar .menu-section-titre:not(.menu-ferme) { background: rgba(var(--edu-color-primary-rgb, 10, 132, 255), .10); }
.pc-sidebar .pc-navbar a.pc-link { border-radius: var(--edu-radius-md, 12px); transition: background-color .2s ease, transform .15s ease; }
.pc-sidebar .pc-navbar a.pc-link:hover { transform: translateX(2px); }
.pc-sidebar .pc-navbar a.menu-courant { background: rgba(var(--edu-color-primary-rgb, 10, 132, 255), .14); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
    .pc-sidebar .pc-navbar * { transition: none !important; }
    .pc-sidebar .pc-navbar a.pc-link:hover { transform: none; }
}
.pc-sidebar .pc-navbar .menu-doublon { display: none !important; }
