/* Search shortcuts, notification center and cross-site search scopes */
.site-header {
    background:linear-gradient(115deg,rgba(255,255,255,.48),rgba(255,255,255,.24) 52%,rgba(255,255,255,.34)) !important;
    -webkit-backdrop-filter:blur(32px) saturate(1.8) !important;
    backdrop-filter:blur(32px) saturate(1.8) !important;
    border-top:1px solid rgba(255,255,255,.62) !important;
    border-bottom:1px solid rgba(30,34,48,.12) !important;
    box-shadow:0 1px 0 rgba(255,255,255,.42) inset,0 8px 30px rgba(18,22,36,.12),0 1px 2px rgba(18,22,36,.08) !important;
    transition:background .3s ease,box-shadow .3s ease,border-color .3s ease !important;
}
.site-header .site-nav a,
.site-header .site-header__icons {
    color:#171923;
    text-shadow:0 1px 2px rgba(255,255,255,.72);
}
.site-header__logo {
    display:flex;
    align-items:center;
    justify-content:center;
    padding:5px 8px;
    border:1px solid rgba(255,255,255,.72);
    border-radius:12px;
    background:rgba(255,255,255,.38);
    -webkit-backdrop-filter:blur(18px) saturate(1.6);
    backdrop-filter:blur(18px) saturate(1.6);
    box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 3px 12px rgba(10,14,28,.16);
}
.site-header__logo img { filter:none !important; }
.site-header.nav-light-text {
    background:linear-gradient(115deg,rgba(14,17,28,.56),rgba(14,17,28,.38) 52%,rgba(14,17,28,.48)) !important;
    border-top-color:rgba(255,255,255,.24) !important;
    border-bottom-color:rgba(255,255,255,.2) !important;
    box-shadow:0 1px 0 rgba(255,255,255,.16) inset,0 8px 30px rgba(0,0,0,.24) !important;
}
.site-header.nav-light-text .site-nav a:not(.-active),
.site-header.nav-light-text .site-header__icons {
    color:#fff !important;
    -webkit-text-stroke:0 !important;
    text-shadow:0 1px 3px rgba(0,0,0,.75) !important;
}
html[data-theme="dark"] .site-header {
    background:linear-gradient(115deg,rgba(25,28,40,.64),rgba(20,23,34,.40) 52%,rgba(25,28,40,.54)) !important;
    border-bottom-color:rgba(255,255,255,.12) !important;
    border-top-color:rgba(255,255,255,.18) !important;
}
html[data-theme="dark"] .site-header .site-nav a:not(.-active),
html[data-theme="dark"] .site-header .site-header__icons,
body.dark-mode .site-header .site-nav a:not(.-active),
body.dark-mode .site-header .site-header__icons {
    color:#fff !important;
    text-shadow:0 1px 3px rgba(0,0,0,.7) !important;
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
    .site-header { background:rgba(245,247,252,.92) !important; }
    .site-header.nav-light-text { background:rgba(14,17,28,.94) !important; }
    html[data-theme="dark"] .site-header { background:rgba(20,23,32,.94) !important; }
}

.global-search-scopes { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin:14px 4px 0; }
.global-search-scopes a { color:rgba(255,255,255,.72); text-decoration:none; font:600 12px Inter,sans-serif; padding:8px 12px; border:1px solid rgba(255,255,255,.12); border-radius:999px; background:rgba(255,255,255,.05); transition:.18s ease; }
.global-search-scopes a:hover,.global-search-scopes a[aria-current="page"] { color:#fff; border-color:rgba(255,255,255,.28); background:rgba(255,255,255,.13); }

/* ── Cloche notification ── */
.site-notification { position:relative; display:inline-flex; align-items:center; }

/* Le trigger est un <button>, pas un <span> — son hover est géré ici, pas par .site-header__icons */
.site-notification__trigger {
    position:relative; border:0; background:transparent; color:inherit; cursor:pointer;
    display:grid !important; place-items:center;
    width:36px !important; height:36px !important; border-radius:10px;
    transition:background .2s; flex-shrink:0;
    padding:0 !important; transform:none !important;
    box-sizing:border-box;
}
.site-notification__trigger:hover { background:rgba(0,0,0,0.07); transform:none !important; }
html[data-theme="dark"] .site-notification__trigger:hover,
body.dark-mode .site-notification__trigger:hover { background:rgba(255,255,255,0.10); }
html:not([data-theme="dark"]) .site-notification__trigger { color:#25263a; }
.site-notification__trigger .material-symbols-outlined {
    font-size:22px !important; line-height:1 !important;
    padding:0 !important; transform:none !important;
    display:block !important; width:auto !important; height:auto !important;
}

/* Badge compteur */
.site-notification__badge {
    position:absolute; top:1px; right:0;
    min-width:17px; height:17px; padding:0 4px;
    display:grid !important; place-items:center;
    border-radius:999px;
    background:#ef2525; color:#fff;
    font:800 10px Inter,sans-serif;
    box-shadow:0 2px 9px rgba(239,37,37,.4);
    pointer-events:none; cursor:default !important;
}
.site-header__icons .site-notification__badge { padding:0 4px !important; }
.site-notification__badge[hidden] { display:none !important; }

/* ── Panneau ── */
.site-notification__panel {
    position:absolute; z-index:100001;
    right:0; top:calc(100% + 8px);
    width:min(360px,calc(100vw - 24px));
    max-height:min(480px,72vh);
    overflow:hidden;
    color:#f5f5fb;
    background:rgba(16,17,28,0.97);
    border:1px solid rgba(255,255,255,.13);
    border-radius:20px;
    box-shadow:0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04) inset;
    backdrop-filter:blur(28px) saturate(1.6);
    -webkit-backdrop-filter:blur(28px) saturate(1.6);
    display:none; flex-direction:column;
}
.site-notification.is-open .site-notification__panel { display:flex; animation:siteNotifIn .18s ease-out; }

/* En-tête */
.site-notification__head {
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    padding:14px 16px 12px;
    border-bottom:1px solid rgba(255,255,255,.08);
    flex-shrink:0;
}
.site-notification__head strong { font:800 13px/1 Inter,sans-serif; color:#fff; }
.site-notification__read {
    border:1px solid rgba(255,255,255,.1); border-radius:8px;
    color:rgba(255,255,255,.55); background:rgba(255,255,255,.04);
    cursor:pointer; font:600 11px Inter,sans-serif;
    padding:5px 10px; transition:all .15s;
}
.site-notification__read:hover { background:rgba(255,255,255,.1); color:#fff; }

/* Liste scrollable */
.site-notification__list { overflow-y:auto; flex:1; padding:8px 8px 10px; }
.site-notification__list::-webkit-scrollbar { width:4px; }
.site-notification__list::-webkit-scrollbar-thumb { background:rgba(255,255,255,.12); border-radius:4px; }

/* Items */
.site-notification__item {
    display:flex; flex-direction:column; gap:4px;
    color:inherit; text-decoration:none;
    padding:10px; border-radius:12px;
    transition:background .15s;
    border-top:1px solid rgba(255,255,255,.05);
}
.site-notification__item:first-child { border-top:none; }
.site-notification__item:hover { background:rgba(255,255,255,.07); }
.site-notification__item b {
    display:block; font:700 12px/1.35 Inter,sans-serif; color:#eef0fa;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.site-notification__item small {
    display:flex; align-items:center; gap:6px;
    color:rgba(255,255,255,.38); font:500 10px Inter,sans-serif;
}
.site-notification__item small::before {
    content:''; display:inline-block; width:6px; height:6px;
    border-radius:50%; flex-shrink:0; background:rgba(255,218,0,.7);
}

.site-notification__empty {
    padding:20px 12px; color:rgba(255,255,255,.38);
    font:500 12px Inter,sans-serif; text-align:center;
}

@keyframes siteNotifIn { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }
@media(max-width:768px) {
    .site-notification__panel { position:fixed; left:16px; right:auto; top:68px; width:min(360px,calc(100vw - 32px)); max-height:calc(100vh - 84px); }
}
@media(max-width:480px) {
    .site-notification__panel { left:12px; right:auto; top:60px; width:calc(100vw - 24px); max-height:calc(100vh - 72px); }
}
@media(max-width:600px) { .global-search-scopes{gap:6px} .global-search-scopes a{font-size:11px;padding:7px 10px} }

/* Activation des notifications push */
.site-notif-push-btn {
    display:flex; align-items:center; gap:9px;
    width:calc(100% - 16px); min-height:38px; margin:4px 8px 8px;
    padding:7px 11px; border:1px solid rgba(255,218,0,.18); border-radius:10px;
    color:rgba(255,255,255,.76); background:rgba(255,218,0,.045);
    font:600 11px/1.2 Inter,sans-serif; cursor:pointer; text-align:left;
    box-sizing:border-box; flex:0 0 auto; align-self:stretch; min-width:0;
    transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.site-notif-push-btn:hover { color:#fff; background:rgba(255,218,0,.1); border-color:rgba(255,218,0,.32); }
.site-notif-push-btn .material-symbols-outlined { color:#e8c92b; font-size:17px; line-height:1; }
.site-header__icons .site-notif-push-btn .material-symbols-outlined { display:block!important; width:auto!important; height:auto!important; padding:0!important; margin:0!important; font-size:17px!important; line-height:1!important; transform:none!important; flex:0 0 auto; }
.site-header__icons .site-notification__panel .site-notif-push-btn { text-align:left; white-space:normal; }
.site-notif-push-btn__arrow { margin-left:auto; color:rgba(255,255,255,.42); font-size:15px; transition:transform .16s ease; }
.site-notif-push-btn:hover .site-notif-push-btn__arrow { transform:translateX(2px); color:rgba(255,255,255,.8); }
.site-notif-ios-note {
    margin:-2px 12px 10px;
    color:rgba(210,220,255,.5);
    font:500 10.5px/1.5 Inter,sans-serif;
}
