/* La marque et les rubriques partagent le repli ; le contenu pilote la bascule. */
#applicationNavigation{opacity:1;background:transparent!important;clip-path:inset(0);transition:height 220ms ease,opacity 180ms ease,clip-path 220ms ease}
html body>aside{background:transparent!important}
#navigationSections{display:contents}
#navigationSections>.nav{visibility:visible;opacity:1;transition:opacity 180ms ease,visibility 0s}
html.colorstock-navigation-collapsed #navigationSections>.nav{visibility:hidden;opacity:0;transition:opacity 180ms ease,visibility 0s 220ms}
html.colorstock-navigation-collapsed #applicationNavigation{overflow:clip!important;pointer-events:none;visibility:hidden;opacity:0;border-block-width:0!important}
html.colorstock-navigation-collapsed #applicationNavigation>.brand{pointer-events:none}
html.colorstock-navigation-collapsed #applicationNavigation>.navigation-scroll-hint{display:none!important}
@media (orientation:landscape){
  html{--navigation-main-offset:calc(var(--landscape-identity-width) + 4px);--navigation-heading-offset:0px}
  html.colorstock-navigation-collapsed{--navigation-main-offset:4px;--navigation-heading-offset:0px}
  html body.colorstock-v5>main,html body.colorstock-v5:has(#scaleAgendaPreview:not([hidden]))>main{grid-column:1/-1!important;margin-inline:var(--navigation-main-offset) 4px!important}
  html body>main>.main-topbar{margin-inline-start:var(--navigation-heading-offset);width:calc(100% - var(--navigation-heading-offset))}
  html.colorstock-navigation-ready body>main{transition:margin-inline-start 220ms ease}
  html.colorstock-navigation-ready body>main>.main-topbar{transition:margin-inline-start 220ms ease,width 220ms ease}
  html body aside>#applicationNavigation{width:calc(var(--landscape-identity-width) - 4px)!important;margin-left:4px!important;scroll-padding-top:calc(var(--colorstock-topbar-height,61px) + 2px)}
  html body aside>#applicationNavigation>.brand:has(>.brand-identity){position:sticky;top:0;z-index:10;padding-left:clamp(6px,1vw,12px)!important;padding-right:clamp(6px,1vw,12px)!important;background:transparent!important}
  html.colorstock-navigation-collapsed #applicationNavigation{height:0!important;min-height:0!important;clip-path:inset(0)}
  html.colorstock-navigation-main-notch main:not(:has(.agenda-stage-expanded,.idle-ongoing-expanded,:fullscreen,dialog[open])){clip-path:polygon(0 var(--navigation-main-notch-height),var(--navigation-main-notch-width) var(--navigation-main-notch-height),var(--navigation-main-notch-width) 0,100% 0,100% 100%,0 100%)}
  html[dir="rtl"].colorstock-navigation-main-notch main:not(:has(.agenda-stage-expanded,.idle-ongoing-expanded,:fullscreen,dialog[open])){clip-path:polygon(0 0,calc(100% - var(--navigation-main-notch-width)) 0,calc(100% - var(--navigation-main-notch-width)) var(--navigation-main-notch-height),100% var(--navigation-main-notch-height),100% 100%,0 100%)}
}
@media (orientation:portrait){
  html body aside>#applicationNavigation{width:100%!important;margin-left:0!important;height:calc(var(--colorstock-topbar-height,61px) + 2px)!important;min-height:0!important}
  html.colorstock-navigation-collapsed body aside>#applicationNavigation{height:0!important;min-height:0!important;border-block-width:0!important;opacity:0;clip-path:inset(0)}
  html.colorstock-navigation-collapsed body>aside{row-gap:0!important}
  html.colorstock-navigation-collapsed body>aside:has(>.scale-box[hidden]){padding-block:0!important}
  html.colorstock-navigation-collapsed body>main{margin-top:0!important}
}
@media (prefers-reduced-motion:reduce){
  html.colorstock-navigation-ready body>main,html.colorstock-navigation-ready body>main>.main-topbar,#applicationNavigation,#navigationSections>.nav{transition:none!important}
}
