/* Composition for the authenticated header popup only, without icon columns.
   Published Studio material, native visibility and focus states remain owners.
   Navigation, language controls, other menus and the mobile sheet are excluded. */
html body header.site-header #public-account-menu[data-site-account-menu="rich"]{
 width:360px;
 min-width:0;
 max-width:calc(100vw - 40px);
}
html body header.site-header #public-account-menu[data-site-account-menu="rich"]>[data-site-account-action]{
 display:grid!important;
 grid-template-columns:minmax(0,1fr);
 grid-template-rows:auto auto;
 gap:4px 12px!important;
 align-items:start;
 justify-content:normal!important;
 padding:12px!important;
 overflow:visible;
 font-weight:500;
}
html body header.site-header #public-account-menu[data-site-account-menu="rich"]>[data-site-account-action]::before{
 content:none!important;
 display:none!important;
}
html body header.site-header #public-account-menu[data-site-account-menu="rich"]>[data-site-account-action]::after{
 content:attr(data-site-account-description);
 position:static;
 display:block;
 grid-column:1;
 grid-row:2;
 min-width:0;
 color:var(--studio-ui-muted,#aaa);
 font-size:12px;
 font-weight:400;
 line-height:1.45;
 white-space:normal;
 overflow-wrap:anywhere;
 pointer-events:none;
}
/* The darker muted token is readable on the popup, but needs a little of the
   existing ink token on the lighter hover/focus surface (no extra palette). */
html body header.site-header #public-account-menu[data-site-account-menu="rich"]>[data-site-account-action]:is(:hover,:focus-visible)::after{
 color:color-mix(in srgb,var(--studio-ui-muted,#aaa) 75%,var(--studio-ui-ink,#eee) 25%);
}
@media(pointer:coarse){
 html body header.site-header #public-account-menu[data-site-account-menu="rich"]>[data-site-account-action]::after{font-size:14px}
}
@media(forced-colors:active){
 html body header.site-header #public-account-menu[data-site-account-menu="rich"]>[data-site-account-action]::after{color:CanvasText!important}
}

/* Shared light material: cookies and the light homepage account menu.
   White is the fallback without backdrop filtering or when transparency is reduced. */
:root{--site-light-glass-surface:#fff;--site-light-glass-blur:0px}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 :root{--site-light-glass-surface:rgba(255,255,255,.9);--site-light-glass-blur:16px}
}
@media(prefers-reduced-transparency:reduce){
 :root{--site-light-glass-surface:#fff;--site-light-glass-blur:0px}
}
/* White homepage: Cookies × Runway palette. The native dropdown continues
   to own geometry, focus, touch/hover policy, dismissal and navigation.
   The persistent header sits outside main; scope from the live page root.
   Match the existing card/pill breakpoint, never the dark mobile sheet. */
@media (min-width:1101px) {
 html:has(main#accueil) body header.site-header #public-account-menu[data-studio-dropdown] {
  --studio-dropdown-surface:var(--site-light-glass-surface);
  --studio-dropdown-backdrop-blur:var(--site-light-glass-blur);
  --studio-dropdown-rim:#d1d1d1;
  --studio-dropdown-hover:#dedede;
  --studio-dropdown-shadow:0 12px 32px -12px #00000030;
  --studio-ui-ink:#171717;
  --studio-ui-muted:#656565;
  color-scheme:light;
 }
 html:has(main#accueil) body header.site-header #public-account-menu[data-studio-dropdown]>span.studio-selection-option {
  color:#686868;
  border-bottom:0;
  border-radius:0;
  margin-block:0;
  display:flex!important;
  align-items:center;
  min-height:40px;
  box-sizing:border-box;
  padding-block:12px!important;
 }
 html:has(main#accueil) body header.site-header #public-account-menu[data-studio-dropdown]>[data-site-account-action]::after {
  color:var(--studio-ui-muted);
 }
 html:has(main#accueil) body header.site-header #public-account-menu[data-studio-dropdown]>[data-studio-dropdown-item]:is(:focus-visible,[aria-selected=true],[aria-current=page]) {
  --studio-ui-ink:#000;
 }
}
@media (min-width:1101px) and (hover:hover) and (pointer:fine) {
 html:not([data-studio-menu-input=touch]):has(main#accueil) body header.site-header #public-account-menu[data-studio-dropdown]>[data-studio-dropdown-item]:hover {
  --studio-ui-ink:#000;
 }
}
@media (min-width:1101px) and (forced-colors:active) {
 html:has(main#accueil) body header.site-header #public-account-menu[data-studio-dropdown] {
  --studio-dropdown-surface:Canvas;
  --studio-dropdown-backdrop-blur:0px;
  --studio-dropdown-rim:CanvasText;
  --studio-dropdown-hover:Highlight;
  --studio-dropdown-shadow:0 0 0 transparent;
  --studio-ui-ink:CanvasText;
  --studio-ui-muted:CanvasText;
 }
 html:has(main#accueil) body header.site-header #public-account-menu[data-studio-dropdown]>span.studio-selection-option {
  color:CanvasText;border-color:CanvasText;
 }
 html:has(main#accueil) body header.site-header #public-account-menu[data-studio-dropdown]>[data-studio-dropdown-item]:is(:hover,:focus-visible,[aria-selected=true],[aria-current=page]) {
  --studio-ui-ink:HighlightText;--studio-ui-muted:HighlightText;
 }
}

/* The site account menu uses Studio's secondary text pill and canonical glyph. */
html body header.site-header .client-access-tab-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--studio-menu-chevron-gap, 8px) !important;
  box-sizing: border-box;
  min-height: var(--studio-ui-control-height, 36px) !important;
  padding: 6px 16px !important;
  /* The glyph is inset within its 16px box. Balance the visible outer margins. */
  padding-inline-end: 11.5px !important;
  border: 1px solid var(--studio-ui-button-border, #ffffff40) !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body header.site-header .client-access-tab-trigger[aria-expanded="true"] {
  border-color: currentColor !important;
}
@media (pointer: coarse) {
  html body header.site-header .client-access-tab-trigger {
    min-height: var(--studio-ui-touch-height, 44px) !important;
  }
}
html body header.site-header .client-access-tab-trigger::after {
  content: "";
  display: block;
  inline-size: 16px;
  block-size: 16px;
  flex: none;
  margin: 0;
  opacity: .7;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%20stroke%3D%22none%22%20data-studio-glyph%3D%22chevron-up-down%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%3E%3Cpath%20d%3D%22M11.3415%204.74742C11.7185%204.41753%2012.2815%204.41753%2012.6585%204.74742L16.6585%208.24742C17.0741%208.61111%2017.1162%209.24287%2016.7526%209.6585C16.3889%2010.0741%2015.7571%2010.1163%2015.3415%209.75258L12%206.82877L8.65849%209.75258C8.24285%2010.1163%207.61109%2010.0741%207.24741%209.6585C6.88373%209.24287%206.92584%208.61111%207.34148%208.24742L11.3415%204.74742ZM7.24603%2014.3578C7.60885%2013.9414%208.24052%2013.8979%208.65692%2014.2608L12%2017.1737L15.3431%2014.2608C15.7594%2013.8979%2016.3911%2013.9414%2016.7539%2014.3578C17.1167%2014.7742%2017.0733%2015.4058%2016.6569%2015.7687L12.6569%2019.2539C12.2804%2019.582%2011.7196%2019.582%2011.3431%2019.2539L7.34305%2015.7687C6.92666%2015.4058%206.88322%2014.7742%207.24603%2014.3578Z%22%20fill%3D%22currentColor%22%20%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  pointer-events: none;
}
@media(prefers-reduced-motion:no-preference) {
 html body .client-resource-page[data-site-private-arrival] {
   animation: studio-page-arrival var(--studio-page-arrival-duration) var(--studio-page-arrival-easing);
 }
}

@media(prefers-reduced-motion:no-preference) {
 html body #accueil .hero-story:not(.ps-home-hero):not([data-site-editorial-arrival]) {
   animation: studio-hero-before-ready 1.2s step-end !important;
 }
 html body #accueil .hero-story[data-site-opening] :is(.hero-image,.hero-title,.hero-slide) {
   transition: none !important;
 }
}
@keyframes studio-hero-before-ready {from{opacity:0}to{opacity:1}}

/* Reserve the editorial layout before script startup. The delayed CSS fallback
   keeps the text readable if the client component never mounts. */
@media(scripting:enabled) and (prefers-reduced-motion:no-preference) {
 html body #accueil :is(.intro-dark,.after-carousel-story):not([data-site-editorial-arrival]) {
   animation: studio-page-arrival var(--studio-page-arrival-duration,640ms) var(--studio-page-arrival-easing,ease-out) 3s both !important;
 }
}

/* The existing slideshow footprint is the placeholder, not a second loader. */
html body #accueil:not([data-home-native-fallback])>.hero-story:not(.ps-home-hero),
html body .ps-client-selection [data-ps-entry-stage]{
 visibility:visible!important;background:var(--studio-slideshow-placeholder,rgba(145,145,145,.18))!important;box-shadow:inset 0 0 0 1px rgba(128,128,128,.14);opacity:1!important;animation:none!important;
}
html body #accueil:not([data-home-native-fallback])>.hero-story:not(.ps-home-hero)>*{visibility:hidden!important}

/* The white page keeps one borderless placeholder, including the renderer swap. */
@property --studio-public-placeholder-opacity {
 syntax: '<number>'; inherits: true; initial-value: 1;
}
@keyframes studio-public-placeholder-in {
 from {--studio-public-placeholder-opacity:0}
 to {--studio-public-placeholder-opacity:1}
}
html body #accueil{--studio-slideshow-placeholder:var(--studio-photo-slot-color,rgba(0,0,0,.05))}
html body #accueil:not([data-home-native-fallback])>.hero-story:not(.ps-home-hero),
html body #accueil>.ps-home-hero[data-ps-first-photo]{
 background:color-mix(in srgb,var(--studio-slideshow-placeholder,rgba(145,145,145,.18)) calc(var(--studio-public-placeholder-opacity,1) * 100%),transparent)!important;
 border:0!important;
 box-shadow:none!important;
}
@media(prefers-reduced-motion:no-preference){
 html body #accueil{animation:studio-public-placeholder-in var(--studio-page-arrival-duration,640ms) ease-in-out}
 html:root body #accueil>.intro-dark.editorial-grid {
   animation:studio-page-arrival var(--studio-page-arrival-duration,640ms) ease-in-out both!important;
 }
}

/* The private slideshow veil follows the dark canvas beneath it. */

html body .ps-client-selection [data-ps-entry-stage],
html:root body .ps-client-selection .ps-hero[data-ps-first-photo]{box-shadow:none}

html body #accueil :is(.ps-home-gallery .client-photo-visual,.public-story-tile) {
 background:var(--studio-slideshow-placeholder);
 border:0;
 box-shadow:none;
}

/* Use the same desktop footprint before and after device detection. */
@media(min-width:1101px) and (hover:hover) and (pointer:fine){
 html:not([data-studio-surface-device]) body #accueil {
  --ps-site-card-ratio:var(--ps-slideshow-desktop-ratio,1440 / 700);
  --ps-site-card-min-height:0px;
 }
}

/* Give the dark private placeholder enough definition, including on black. */
html body .ps-client-selection [data-ps-entry-stage],
html:root body .ps-client-selection .ps-hero[data-ps-first-photo]{
 box-shadow:inset 0 0 0 1px var(--studio-private-photo-contour);
}
html body .ps-client-selection .client-photo-visual,
html body main.client-resource-page .client-photo-library .client-photo-visual{
 background:var(--studio-private-photo-placeholder);
 box-shadow:inset 0 0 0 1px var(--studio-private-photo-contour);
}

/* Private photos share a surface and contour on grey and black canvases. */
html:has(main.client-resource-page) {
 --studio-private-photo-placeholder:var(--studio-photo-slot-color,rgba(13,13,13,.65));
 --studio-private-photo-contour:var(--studio-photo-slot-rim,rgba(255,255,255,.09));
}

/* The veil fades on the persistent host, through the first-photo handoff. */
@property --studio-private-veil-opacity {
 syntax: '<number>'; inherits: true; initial-value: 1;
}
@keyframes studio-private-veil-in {
 from {--studio-private-veil-opacity:0}
 to {--studio-private-veil-opacity:1}
}
html body .ps-client-selection {
 --studio-slideshow-placeholder:color-mix(in srgb,var(--studio-private-photo-placeholder) calc(var(--studio-private-veil-opacity,1) * 100%),transparent);
}
@media(prefers-reduced-motion:no-preference) {
 html body .ps-client-selection{animation:studio-private-veil-in var(--studio-page-arrival-duration,640ms) ease-in-out}
}

/* Fade the reserved surface independently of the decoded photograph. */
html body #accueil :is(.ps-home-gallery .client-photo-visual,.public-story-tile) {
 background:color-mix(in srgb,var(--studio-slideshow-placeholder) calc(var(--studio-photo-slot-opacity,1) * 100%),transparent);
}
html body .ps-client-selection .client-photo-visual,
html body main.client-resource-page .client-photo-library .client-photo-visual {
 background:color-mix(in srgb,var(--studio-private-photo-placeholder) calc(var(--studio-photo-slot-opacity,1) * 100%),transparent);
 box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--studio-private-photo-contour) calc(var(--studio-photo-slot-opacity,1) * 100%),transparent);
}
@media(prefers-reduced-motion:no-preference) {
 html body :is(#accueil .ps-home-gallery .client-photo-visual,#accueil .public-story-tile,.ps-client-selection .client-photo-visual,main.client-resource-page .client-photo-library .client-photo-visual) {
  animation:studio-photo-slot-arrival var(--studio-page-arrival-duration,640ms) ease-in-out;
 }
}

/* Private image controls sit on the same surface as the carousel. */
html:root body :is(.ps-client-selection,main.client-resource-page .client-photo-library)
 .client-photo-visual :is(button:has(>picture),picture) {
 background:transparent!important;
}

/* Center the loading group in the page pane. Native Studio exposes its inset. */
html:root body .client-resource-loading {
 display:grid;
 place-items:center;
 inset-inline-start:var(--references-sidebar-inset,0px)!important;
 inset-inline-end:0!important;
 width:auto!important;
}
html:root body .client-resource-loading>div {
 position:static!important;
 inset:auto!important;
 transform:none!important;
}
