.site-header{position:sticky;top:0;z-index:1000;display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;max-width:none;margin:0;padding:.85rem max(1.2rem,calc((100% - 1320px)/2 + 1.2rem));box-sizing:border-box;border-bottom:1px solid var(--st-edge, #3a2a1f);background:rgba(13,6,1,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:var(--st-ink, #fff0e2);font-family:Georgia,serif}.site-header a:link,.site-header a:visited{color:var(--st-accent, #ff9a4d);text-decoration:none}.site-header .site-navigation{display:flex;align-items:center;gap:7px}.site-header .site-navigation a,.site-header .site-navigation button{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin:0;padding:10px 12px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--st-accent, #f6ddc9);font:500 13px system-ui;white-space:nowrap}.site-header .site-navigation .admin-menu-toggle{border-color:var(--st-edge, #795033);color:var(--st-accent, #ffb57b);cursor:pointer}@media(max-width:600px){.site-header{padding:12px;gap:5px}.site-header .site-navigation{gap:2px}.site-header .site-navigation a,.site-header .site-navigation button{padding:10px}}
@media(max-width:600px){.site-header .tatouage-wordmark-link{min-width:0;flex-shrink:1;overflow:hidden}.site-header .tatouage-wordmark{font-size:15px;overflow:hidden}.site-header .site-navigation{flex-shrink:0}.site-header .site-navigation a,.site-header .site-navigation button{padding:7px}.site-header .site-navigation .ui-icon{width:18px;height:18px}}

.site-header .site-navigation a.header-add-photo{background:var(--st-accent, #ff6a00);border-color:var(--st-accent, #ff6a00);color:var(--st-ink, #160b04);font-weight:750}.site-header .site-navigation a.header-add-photo:hover{background:var(--st-highlight, #ff8733)}

.mobile-nav-slot{display:contents}

/* DOM and desktop order: favourites, lives, directory, gallery, tools, account, photo, menu. */
.site-header .site-navigation{margin-left:auto}
.site-header .site-navigation>a,.site-header .site-navigation>button{order:0}

@media(max-width:799.98px){
 body{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
 .site-header{padding:12px;gap:8px;backdrop-filter:none;-webkit-backdrop-filter:none}
 .site-header .site-navigation{margin-left:auto;gap:5px}
 .site-header .site-navigation::before{content:"";position:fixed;inset:auto 0 0;height:calc(64px + env(safe-area-inset-bottom,0px));box-sizing:border-box;border-top:1px solid var(--st-edge, #60412c);background:var(--st-bg, #0d0601);pointer-events:none}

 .site-header .site-navigation>a,.site-header .site-navigation>button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:8px;width:40px;height:44px}
 .site-header .site-navigation .ui-icon,.site-header .site-navigation .live-icon{width:20px;height:20px;flex:none}
 .site-header .site-navigation .mobile-nav-slot{display:flex;position:fixed;bottom:env(safe-area-inset-bottom,0px);align-items:center;justify-content:center;width:20%;height:64px;box-sizing:border-box;padding:0}
 .site-header .site-navigation .header-slot-favourites{left:0}
 .site-header .site-navigation .header-slot-projects{left:20%}
 .site-header .site-navigation .header-slot-photo{left:40%}
 .site-header .site-navigation .header-slot-directory{left:60%}
 .site-header .site-navigation .header-slot-gallery{left:80%}
 .site-header .site-navigation .mobile-nav-slot>a{position:static;display:inline-flex;width:44px;height:44px;padding:8px;margin:0;box-sizing:border-box}
 .site-header .site-navigation .header-slot-photo>a{width:52px;height:52px;padding:0;border-radius:50%;box-shadow:0 3px 14px var(--st-accent-a33, #ff6a0033)}
 .site-header .site-navigation .header-slot-photo .ui-icon{width:25px;height:25px}
 .site-header .site-navigation [hidden]{display:none!important}
}

@media(max-width:799.98px){.site-header.header-with-account-menu .header-account{display:none}}

/* Header intermédiaire : conserver Ajouter une photo sans dépasser. */
@media(min-width:800px) and (max-width:1199.98px){
 .site-header{gap:8px;padding-inline:1.2rem;flex-wrap:nowrap}
 .site-header .site-navigation{gap:3px;min-width:0}
 .site-header .site-navigation :is(a,button){gap:5px;padding:9px 7px}


 .site-header .site-navigation a.header-add-photo{flex-direction:column;gap:2px;padding:6px 10px}
}
@media(max-width:999.98px){
 .site-header .tatouage-wordmark-suffix{display:block;line-height:1.05}
 .site-header .tatouage-wordmark-ext{display:inline}
 .site-header .tatouage-wordmark-dot{color:#fff}
 .site-header .tatouage-wordmark::before{content:"tatouage\A.online";white-space:pre;line-height:1.05}
 .site-header .tatouage-wordmark>span{line-height:1.05}
}

/* Une règle commune pour tous les libellés : visibles, même sous 800px. */
.site-header .site-navigation :is(a,button)>span{display:inline-block;position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:nowrap;line-height:1.2}
.site-header .tatouage-wordmark{font-size:16px}
.site-header .tatouage-wordmark-icon{width:24px;height:24px}
.site-header .tatouage-wordmark-link{gap:6px}
@media(max-width:1199.98px){
 .site-header .site-navigation :is(a,button){flex-direction:column;gap:3px}
 .site-header .site-navigation :is(a,button)>span{font-size:10px}
}
@media(max-width:799.98px){
 .site-header .site-navigation .mobile-nav-slot>a{width:100%;height:60px;padding:5px 2px}
 .site-header .site-navigation .header-slot-photo>a{width:100%;height:60px;border-radius:10px;box-shadow:none}
 .site-header .site-navigation .header-slot-photo .ui-icon{width:22px;height:22px}
 .site-header .site-navigation .header-slot-photo>a>span{white-space:normal;text-align:center;max-width:100%}
 .site-header .site-navigation>a,.site-header .site-navigation>button{width:auto;min-width:38px;padding:5px;margin-inline:0}
}

/* Le libellé photo reste visible face aux anciens styles des pages propriétaire. */
.site-header .site-navigation a.header-add-photo>span{display:inline-block!important;visibility:visible;opacity:1;position:static;width:auto;height:auto;overflow:visible;clip-path:none}
.site-header .site-navigation a.header-add-photo>span,.site-header .site-navigation button.admin-menu-toggle>span{display:none!important}
/* Photo et Menu : dimensions constantes, sans toucher aux autres boutons. */
header.site-header .site-navigation a.header-add-photo,header.site-header .site-navigation button.admin-menu-toggle{box-sizing:border-box;display:inline-flex;flex:0 0 44px;flex-direction:row;align-items:center;justify-content:center;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;max-height:44px;padding:0;margin:0 3px;gap:0;border-radius:10px;box-shadow:none}
header.site-header .site-navigation a.header-add-photo>.ui-icon,header.site-header .site-navigation button.admin-menu-toggle>.ui-icon{display:block;flex:0 0 22px;width:22px;height:22px;margin:0}
header.site-header .site-navigation a.header-add-photo>span,header.site-header .site-navigation button.admin-menu-toggle>span{display:none!important}

/* Pendant la saisie dans l'iframe du chat, ne pas faire remonter la nav basse
   au-dessus du clavier mobile. Elle revient dès que le clavier disparaît. */
@media (max-width:799.98px) {
  html.heho-chat-keyboard-open .site-header .site-navigation::before,
  html.heho-chat-keyboard-open .site-header .site-navigation .mobile-nav-slot { visibility:hidden; pointer-events:none; }
}
