/* Header V5 : une barre collante, sombre comme la scene d'ouverture de la home, accents citron vert.
   La barre est un conteneur de requetes : elle s'adapte a la largeur de la colonne, pas de l'ecran. */

.sh5{
    --sh5-night: #0c0d12;
    --sh5-night-2: #161720;
    --sh5-ink: #f5f0f6;
    --sh5-soft: #b9b1c2;
    --sh5-line: rgba(245, 240, 246, .12);
    --sh5-lime: #BFD641;
    --sh5-pink: #BC70A4;
    --sh5-radius: 18px;

    container: sh5 / inline-size;
    position: sticky;
    top: 8px;
    z-index: 1030;
    margin: 10px 0 14px;
    font-family: Arial, Helvetica, sans-serif;
}

.sh5-bar{
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 64px;
    padding: 10px 14px 10px 20px;
    border-radius: var(--sh5-radius);
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(188, 112, 164, .22), transparent 55%),
        radial-gradient(90% 160% at 100% 100%, rgba(191, 214, 65, .14), transparent 60%),
        linear-gradient(180deg, var(--sh5-night-2), var(--sh5-night));
    color: var(--sh5-ink);
    border: 1px solid var(--sh5-line);
    box-shadow: 0 10px 30px -18px rgba(12, 13, 18, .55);
    transition: min-height .25s ease, padding .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.sh5.is-scrolled .sh5-bar{
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
    background-color: rgba(12, 13, 18, .86);
    box-shadow: 0 18px 40px -20px rgba(12, 13, 18, .8);
}
@supports (backdrop-filter: blur(1px)){
    .sh5.is-scrolled .sh5-bar{ backdrop-filter: saturate(140%) blur(14px); }
}
.sh5.is-mega .sh5-bar{ border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* ------------------------------------------------ logo */
.sh5-logo{ display: inline-flex; align-items: center; flex: 0 0 auto; border-radius: 10px; }
html body .sh5-logo img{ height: 40px; width: auto; display: block; transition: transform .3s ease, height .25s ease; }
.sh5.is-scrolled .sh5-logo img{ height: 34px; }
html body .sh5-logo:hover img{ transform: rotate(-2deg) scale(1.03); }

/* ------------------------------------------------ navigation */
.sh5-nav{ flex: 1 1 auto; min-width: 0; }
.sh5-nav ul{ display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
html body .sh5-link{
    position: relative;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 12px;
    border: 0; border-radius: 999px;
    background: transparent;
    color: var(--sh5-ink);
    font: 600 15px/1 Arial, Helvetica, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
html body .sh5-link::after{
    content: "";
    position: absolute; left: 12px; right: 12px; bottom: 3px;
    height: 2px; border-radius: 2px;
    background: var(--sh5-lime);
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease;
}
html body .sh5-link:hover{ color: #fff; background: rgba(255, 255, 255, .06); }
html body .sh5-link:hover::after, html body .sh5-link.is-active::after{ transform: scaleX(1); }
html body .sh5-link.is-active{ color: var(--sh5-lime); }
html body .sh5-link:focus-visible, .sh5 button:focus-visible, .sh5 a:focus-visible{ outline: 2px solid var(--sh5-lime); outline-offset: 2px; }
html body .sh5-link--explore{ color: var(--sh5-lime); }
html body .sh5-link--explore[aria-expanded="true"]{ background: rgba(191, 214, 65, .14); }
.sh5-caret{ font-size: 10px; transition: transform .25s ease; }
html body .sh5-link--explore[aria-expanded="true"] .sh5-caret{ transform: rotate(180deg); }

.sh5-dot{
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--sh5-pink);
    box-shadow: 0 0 0 0 rgba(188, 112, 164, .7);
    animation: sh5-pulse 2.2s ease-out infinite;
}
@keyframes sh5-pulse{
    0%{ box-shadow: 0 0 0 0 rgba(188, 112, 164, .7); }
    70%{ box-shadow: 0 0 0 8px rgba(188, 112, 164, 0); }
    100%{ box-shadow: 0 0 0 0 rgba(188, 112, 164, 0); }
}

/* ------------------------------------------------ outils a droite */
.sh5-tools{ display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }

.sh5 kbd{
    display: inline-grid; place-items: center;
    min-width: 24px; height: 24px; padding: 0 6px;
    border: 1px solid var(--sh5-line); border-bottom-width: 2px; border-radius: 7px;
    background: rgba(255, 255, 255, .06);
    color: inherit;
    font: 600 12px/1 ui-monospace, Consolas, monospace;
}

.sh5-icon{
    display: inline-grid; place-items: center;
    width: 40px; height: 40px;
    border: 1px solid transparent; border-radius: 50%;
    background: transparent;
    color: var(--sh5-ink);
    font: 700 13px/1 Arial, Helvetica, sans-serif;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.sh5-icon:hover{ background: rgba(255, 255, 255, .08); border-color: var(--sh5-line); }
.sh5-theme:hover i{ transform: rotate(-20deg); }
.sh5-theme i{ transition: transform .3s ease; color: var(--sh5-lime); }
.sh5-admin{ color: var(--sh5-pink); }

.sh5-bell{ display: inline-flex; align-items: center; }

.sh5-login{
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 16px;
    border: 0; border-radius: 999px;
    background: var(--sh5-lime);
    color: #15160f;
    font: 700 14px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.sh5-login:hover{ transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(191, 214, 65, .9); }

.sh5-account{ position: relative; }
.sh5-avatar{
    display: grid; place-items: center;
    width: 40px; height: 40px; padding: 0;
    border: 2px solid var(--sh5-lime); border-radius: 50%;
    background: var(--sh5-pink);
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.sh5-avatar:hover, .sh5-avatar[aria-expanded="true"]{ transform: scale(1.05); box-shadow: 0 0 0 4px rgba(191, 214, 65, .18); }
.sh5-avatar img{ width: 100%; height: 100%; object-fit: cover; }
.sh5-avatar-initial{ color: #fff; font: 700 16px/1 Arial, Helvetica, sans-serif; }

.sh5-menu{
    position: absolute; right: 0; top: calc(100% + 12px);
    z-index: 2;
    width: 260px; padding: 8px;
    border: 1px solid var(--sh5-line); border-radius: 16px;
    background: var(--sh5-night-2);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7);
    animation: sh5-drop .2s ease both;
}
.sh5-menu-who{ display: grid; gap: 2px; margin: 4px 8px 8px; }
.sh5-menu-who small{ color: var(--sh5-soft); font-size: 12px; }
.sh5-menu-who strong{ color: var(--sh5-ink); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .sh5-menu a, .sh5-menu-out{
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 10px;
    border: 0; border-radius: 10px;
    background: transparent;
    color: var(--sh5-ink);
    font: 500 14px/1.2 Arial, Helvetica, sans-serif;
    text-align: left; text-decoration: none;
    cursor: pointer;
}
html body .sh5-menu a i, .sh5-menu-out i{ width: 16px; color: var(--sh5-lime); text-align: center; }
html body .sh5-menu a:hover, .sh5-menu-out:hover{ background: rgba(255, 255, 255, .07); }
.sh5-menu hr{ margin: 6px 4px; border: 0; border-top: 1px solid var(--sh5-line); opacity: 1; }
.sh5-menu-out{ color: var(--sh5-soft); }
.sh5-menu-out i{ color: var(--sh5-pink); }

.sh5-burger{ display: none; gap: 4px; align-content: center; }
.sh5-burger span{ display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--sh5-ink); }

/* ------------------------------------------------ grand menu */
.sh5-mega{
    position: absolute; left: 0; right: 0; top: 100%;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 8px 28px;
    padding: 22px 24px 18px;
    border: 1px solid var(--sh5-line); border-top: 0;
    border-radius: 0 0 var(--sh5-radius) var(--sh5-radius);
    background: linear-gradient(180deg, var(--sh5-night), #101118);
    color: var(--sh5-ink);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85);
    animation: sh5-drop .22s ease both;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}
.sh5-mega h2{
    margin: 0 0 12px;
    color: var(--sh5-lime);
    font: 700 11px/1 Arial, Helvetica, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.sh5-mega-col{ min-width: 0; }
.sh5-mega-col:not(.sh5-mega-col--main){ animation: sh5-rise .35s ease both; }
.sh5-mega-col:nth-child(3){ animation-delay: .04s; }
.sh5-mega-col:nth-child(4){ animation-delay: .08s; }

html body .sh5-mega-door{
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 6px; padding: 10px 12px;
    border-radius: 14px;
    color: var(--sh5-ink); text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}
html body .sh5-mega-door i{
    display: grid; place-items: center; flex: 0 0 auto;
    width: 38px; height: 38px; border-radius: 12px;
    background: rgba(191, 214, 65, .12); color: var(--sh5-lime);
    font-size: 16px;
}
html body .sh5-mega-door strong{ display: block; font: italic 400 19px/1.1 Georgia, 'Times New Roman', serif; }
html body .sh5-mega-door small{ display: block; margin-top: 3px; color: var(--sh5-soft); font-size: 13px; }
html body .sh5-mega-door:hover{ background: rgba(255, 255, 255, .06); transform: translateX(3px); color: #fff; }
.sh5-mega-minor{ display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 12px 0; }
html body .sh5-mega-minor a{ color: var(--sh5-soft); font-size: 13px; text-decoration: none; }
html body .sh5-mega-minor a:hover{ color: var(--sh5-lime); }
html body .sh5-mega-more{ display: inline-block; margin-top: 10px; color: var(--sh5-lime); font-size: 13px; font-weight: 700; text-decoration: none; }
html body .sh5-mega-more:hover{ text-decoration: underline; }
.sh5-mega-note{
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 8px;
    margin: 8px 0 0; padding-top: 12px;
    border-top: 1px solid var(--sh5-line);
    color: var(--sh5-soft); font-size: 12px;
}

/* listes de liens (menu et feuille mobile) */
.sh5-list{ margin: 0; padding: 0; list-style: none; }
html body .sh5-list a{
    display: flex; align-items: center; gap: 9px;
    padding: 6px 8px; margin: 0 -8px;
    border-radius: 9px;
    color: var(--sh5-ink, #f5f0f6);
    font-size: 14px; line-height: 1.25;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, padding-left .18s ease;
}
html body .sh5-list a:hover{ background: rgba(255, 255, 255, .06); color: var(--sh5-lime, #BFD641); padding-left: 12px; }
.sh5-list-mark{ width: 14px; flex: 0 0 auto; color: var(--sh5-lime, #BFD641); font-size: 12px; text-align: center; opacity: .85; }
.sh5-list-pic{ display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; font-size: 18px; }
.sh5-list-pic img{ width: 30px; height: 30px; object-fit: contain; transition: transform .25s ease; }
html body .sh5-list a:hover .sh5-list-pic img{ transform: rotate(-8deg) scale(1.12); }
.sh5-list-empty{ color: var(--sh5-soft, #b9b1c2); }
.sh5-skel{
    display: block; height: 12px; margin: 9px 0; border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06));
    background-size: 200% 100%;
    animation: sh5-shimmer 1.2s linear infinite;
}

.sh5-scrim{ position: fixed; inset: 0; z-index: 1020; background: transparent; }
.sh5-scrim--dim{ background: rgba(12, 13, 18, .35); animation: sh5-fade .2s ease both; }

/* ------------------------------------------------ feuille mobile */
.sh5-sheet{
    --sh5-ink: #f5f0f6; --sh5-soft: #b9b1c2; --sh5-line: rgba(245, 240, 246, .12); --sh5-lime: #BFD641; --sh5-pink: #BC70A4;
    position: fixed; inset: 0; z-index: 1055;
    display: flex; flex-direction: column; gap: 6px;
    padding: 14px 18px 24px;
    overflow-y: auto;
    background:
        radial-gradient(100% 50% at 100% 0%, rgba(188, 112, 164, .25), transparent 60%),
        linear-gradient(180deg, #161720, #0c0d12);
    color: var(--sh5-ink);
    font-family: Arial, Helvetica, sans-serif;
    animation: sh5-slide .28s cubic-bezier(.2, .8, .2, 1) both;
}
.sh5-sheet-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sh5-sheet-head .sh5-logo img{ height: 36px; width: auto; }
.sh5-sheet .sh5-icon{ color: var(--sh5-ink); font-size: 20px; }
.sh5-sheet-search{
    display: flex; align-items: center; gap: 12px;
    height: 50px; padding: 0 16px; margin-bottom: 8px;
    border: 1px solid var(--sh5-line); border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    color: var(--sh5-soft); font-size: 16px; text-align: left;
}
.sh5-sheet-search i{ color: var(--sh5-lime); }
.sh5-sheet-nav{ display: grid; }
html body .sh5-sheet-nav a{
    display: flex; align-items: center; gap: 10px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--sh5-line);
    color: var(--sh5-ink); text-decoration: none;
    font: italic 400 26px/1.1 Georgia, 'Times New Roman', serif;
}
html body .sh5-sheet-nav a i{ margin-left: auto; color: var(--sh5-lime); font-size: 16px; }
html body .sh5-sheet-nav a:nth-child(1){ animation: sh5-rise .3s .05s ease both; }
html body .sh5-sheet-nav a:nth-child(2){ animation: sh5-rise .3s .09s ease both; }
html body .sh5-sheet-nav a:nth-child(3){ animation: sh5-rise .3s .13s ease both; }
html body .sh5-sheet-nav a:nth-child(4){ animation: sh5-rise .3s .17s ease both; }
.sh5-sheet-group{ border-bottom: 1px solid var(--sh5-line); }
.sh5-sheet-group summary{
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 4px;
    color: var(--sh5-lime);
    font: 700 12px/1 Arial, Helvetica, sans-serif; letter-spacing: .14em; text-transform: uppercase;
    cursor: pointer; list-style: none;
}
.sh5-sheet-group summary::-webkit-details-marker{ display: none; }
.sh5-sheet-group summary::after{ content: "+"; font-size: 20px; font-weight: 400; transition: transform .2s ease; }
.sh5-sheet-group[open] summary::after{ transform: rotate(45deg); }
.sh5-sheet-group .sh5-list{ padding: 0 4px 12px 12px; }
.sh5-sheet-links{ display: grid; padding: 0 4px 12px; }
html body .sh5-sheet-links a{ padding: 8px 0; color: var(--sh5-ink); text-decoration: none; }
.sh5-sheet-minor{ display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 16px 4px; }
html body .sh5-sheet-minor a{ color: var(--sh5-soft); font-size: 14px; text-decoration: none; }
.sh5-sheet-foot{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.sh5-pill{
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 16px;
    border: 1px solid var(--sh5-line); border-radius: 999px;
    background: rgba(255, 255, 255, .05); color: var(--sh5-ink);
    font: 600 14px/1 Arial, Helvetica, sans-serif;
}
.sh5-pill i{ color: var(--sh5-lime); }
.sh5-pill--solid{ border: 0; background: var(--sh5-lime); color: #15160f; }

html.sh5-lock, html.sh5-lock body{ overflow: hidden; }

/* ------------------------------------------------ largeurs (de la colonne, pas de l'ecran) */
@container sh5 (max-width: 1040px){
    html body .sh5-link{ padding: 9px 9px; }
    html body .sh5-link::after{ left: 9px; right: 9px; }
}
/* Barre entre 840 et 960 px (portables 1366 px) : liens et outils se touchaient. On resserre. */
@container sh5 (max-width: 960px){
    .sh5-bar{ gap: 10px; padding-left: 14px; padding-right: 10px; }
    .sh5-logo img{ height: 34px; }
    html body .sh5-link{ padding: 9px 7px; font-size: 14px; }
    html body .sh5-link::after{ left: 7px; right: 7px; }
    .sh5-tools{ gap: 4px; }
    .sh5-icon{ width: 36px; height: 36px; }
    .sh5-avatar{ width: 36px; height: 36px; }
}
@container sh5 (max-width: 840px){
    .sh5-nav, .sh5-lang, .sh5-theme, .sh5-admin{ display: none; }
    .sh5-burger{ display: inline-grid; }
    .sh5-bar{ gap: 10px; padding-left: 14px; }
    .sh5-mega{ display: none; }
}
@container sh5 (max-width: 440px){
    .sh5-login span{ display: none; }
    .sh5-login{ width: 40px; padding: 0; justify-content: center; }
    html body .sh5-logo img{ height: 32px; }
    .sh5-bell{ display: none; }
}
@media (max-width: 640px){
    .sh5{ top: 0; margin: 6px 0 10px; }
}

/* ------------------------------------------------ animations */
@keyframes sh5-drop{ from{ opacity: 0; transform: translateY(-8px); } to{ opacity: 1; transform: none; } }
@keyframes sh5-rise{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: none; } }
@keyframes sh5-pop{ from{ opacity: 0; transform: translateY(-10px) scale(.97); } to{ opacity: 1; transform: none; } }
@keyframes sh5-fade{ from{ opacity: 0; } to{ opacity: 1; } }
@keyframes sh5-slide{ from{ opacity: 0; transform: translateX(24px); } to{ opacity: 1; transform: none; } }
@keyframes sh5-shimmer{ from{ background-position: 200% 0; } to{ background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce){
    .sh5 *, .sh5-sheet *, .sh5-sheet, .sh5-scrim{ animation: none !important; transition: none !important; }
}

/* La cloche garde sa bulle claire ailleurs : dans la barre sombre, elle devient une icone comme les autres. */
html body .sh5 .sh5-bell .gtl-bell__button{
    width: 40px; height: 40px;
    border: 1px solid transparent; border-radius: 50%;
    background: transparent; color: var(--sh5-ink);
    box-shadow: none;
}
html body .sh5 .sh5-bell .gtl-bell__button:hover{ background: rgba(255, 255, 255, .08); border-color: var(--sh5-line); }

/* Dans la feuille mobile, une section depliee ne doit pas ecraser les autres blocs. */
.sh5-sheet > *{ flex-shrink: 0; }

/* ------------------------------------------------ recherche dans la barre */
.sh5-bar{ position: relative; }
.sh5-find{ position: relative; display: flex; align-items: center; }
.sh5-find-toggle{ display: none; }
.sh5-find-box{
    position: relative;
    display: flex; align-items: center;
    width: clamp(190px, 22cqw, 250px);
    height: 40px;
    border: 1px solid var(--sh5-line); border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    transition: width .25s ease, border-color .2s ease, background-color .2s ease;
}
.sh5-find-box:hover{ border-color: rgba(191, 214, 65, .4); }
.sh5-find-box:focus-within{ width: clamp(230px, 30cqw, 320px); border-color: rgba(191, 214, 65, .65); background: rgba(255, 255, 255, .08); }
.sh5-find-icon{ position: absolute; left: 14px; color: var(--sh5-lime); font-size: 14px; pointer-events: none; }
/* Le theme sombre du site peint les champs de recherche : on reprend la main. */
html body .sh5 .sh5-find input[type="search"],
html body .sh5 .sh5-find input[type="search"]:focus{
    flex: 1; min-width: 0; height: 100%;
    padding: 0 36px 0 38px;
    border: 0; border-radius: 999px; outline: 0; box-shadow: none;
    background: transparent;
    color: var(--sh5-ink);
    font: 500 14px/1 Arial, Helvetica, sans-serif;
}
html body .sh5 .sh5-find input[type="search"]::placeholder{ color: var(--sh5-soft); opacity: 1; }
.sh5 .sh5-find input[type="search"]::-webkit-search-cancel-button{ display: none; }
.sh5-find .sh5-kbd{ position: absolute; right: 8px; color: var(--sh5-soft); pointer-events: none; transition: opacity .2s ease; }
.sh5-find-box:focus-within .sh5-kbd{ opacity: 0; }
.sh5-find-close{ display: none; }

.sh5-find-results{
    position: absolute; top: calc(100% + 10px); right: 0;
    z-index: 3;
    width: max(100%, 340px);
    max-height: min(70vh, 560px); overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--sh5-line); border-radius: 16px;
    background: var(--sh5-night-2);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .75);
    animation: sh5-drop .18s ease both;
}
.sh5-find-item{
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 6px 8px;
    border: 0; border-radius: 10px;
    background: transparent; color: var(--sh5-ink);
    text-align: left; cursor: pointer;
}
.sh5-find-item:hover, .sh5-find-item:focus-visible{ background: rgba(255, 255, 255, .07); }
.sh5-result-pic{ display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: #f7f2ee; overflow: hidden; }
.sh5-result-pic img{ width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.sh5-result-name{ font-size: 14px; font-weight: 600; line-height: 1.25; }
.sh5-find-item:hover .sh5-result-name{ color: var(--sh5-lime); }
.sh5-find-all{
    display: flex; align-items: center; gap: 10px; width: 100%;
    margin-top: 6px; padding: 10px 12px;
    border: 1px dashed rgba(191, 214, 65, .35); border-radius: 12px;
    background: transparent; color: var(--sh5-lime);
    font: 600 14px/1.2 Arial, Helvetica, sans-serif; text-align: left; cursor: pointer;
}
.sh5-find-all span{ flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh5-find-all:hover{ background: rgba(191, 214, 65, .1); border-style: solid; }

/* Barre etroite : une loupe, et le champ se deplie dans la barre, par-dessus la navigation. */
@container sh5 (max-width: 1040px){
    .sh5-find{ position: static; }
    .sh5-find-toggle{ display: inline-grid; }
    .sh5-find-box{ display: none; }
    .sh5-find.is-open .sh5-find-toggle{ visibility: hidden; }
    .sh5-find.is-open .sh5-find-box{
        display: flex;
        position: absolute; z-index: 4;
        left: 150px; right: 14px; top: 50%;
        width: auto;
        transform: translateY(-50%);
        background: var(--sh5-night-2);
        animation: sh5-unfold .2s ease both;
    }
    .sh5-find.is-open .sh5-kbd{ display: none; }
    .sh5-find.is-open .sh5-find-close{
        display: grid; place-items: center;
        position: absolute; right: 4px;
        width: 32px; height: 32px;
        border: 0; border-radius: 50%;
        background: transparent; color: var(--sh5-soft); cursor: pointer;
    }
    .sh5-find.is-open .sh5-find-close:hover{ color: var(--sh5-ink); background: rgba(255, 255, 255, .08); }
    .sh5-find-results{ width: 100%; }
}
@container sh5 (max-width: 440px){
    .sh5-find.is-open .sh5-find-box{ left: 10px; right: 10px; }
}
@keyframes sh5-unfold{ from{ opacity: 0; transform: translateY(-50%) scaleX(.96); } to{ opacity: 1; transform: translateY(-50%); } }

/* ------------------------------------------------ notifications (panneau de la cloche) avec la barre V5 */
/* Meme langage que la barre : nuit, citron vert, titre en italique Georgia. Le panneau vit hors du
   header (dans le layout) : on le cible par la presence du fond V5. */
html:has(.bg5) .gtl-bell__panel{
    --gtl-notif-surface: #161720;
    --gtl-notif-text: #f5f0f6;
    --gtl-notif-muted: #b9b1c2;
    --gtl-notif-border: rgba(245, 240, 246, .12);
    --gtl-notif-hover: rgba(255, 255, 255, .06);
    --gtl-notif-unseen: rgba(191, 214, 65, .09);
    --gtl-notif-accent: #BFD641;
    --gtl-notif-accent-strong: #BC70A4;
    --gtl-notif-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85);
    border-radius: 20px;
    background:
        radial-gradient(120% 70% at 0% 0%, rgba(188, 112, 164, .2), transparent 60%),
        radial-gradient(90% 60% at 100% 100%, rgba(191, 214, 65, .1), transparent 60%),
        linear-gradient(180deg, #161720, #0c0d12);
    font-family: Arial, Helvetica, sans-serif;
    animation: sh5-drop .22s ease both;
}
html:has(.bg5) .gtl-bell__head{
    padding: 16px 12px 12px 20px;
    border-bottom: 1px solid var(--gtl-notif-border);
    font: italic 400 21px/1.1 Georgia, 'Times New Roman', serif;
}
html:has(.bg5) .gtl-bell__close{
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border: 0; border-radius: 50%;
    background: transparent; color: var(--gtl-notif-muted);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
html:has(.bg5) .gtl-bell__close:hover{ background: rgba(255, 255, 255, .08); color: #fff; transform: rotate(90deg); }
html:has(.bg5) .gtl-bell__list{ padding: 6px 8px 8px; }
html:has(.bg5) .gtl-bell__empty{ padding: 34px 22px 30px; }
html:has(.bg5) .gtl-bell__empty > i{
    display: inline-grid; place-items: center;
    width: 58px; height: 58px; margin-bottom: 14px;
    border: 1px solid rgba(191, 214, 65, .3); border-radius: 50%;
    background: rgba(191, 214, 65, .08);
    color: #BFD641; font-size: 1.35rem; opacity: 1;
    animation: sh5-pulse-ring 2.6s ease-out infinite;
}
html:has(.bg5) .gtl-bell__empty-title{ font: italic 400 20px/1.2 Georgia, 'Times New Roman', serif; color: #f5f0f6; }
html:has(.bg5) .gtl-bell__empty-text{ max-width: 30ch; margin: 6px auto 0; line-height: 1.55; }
html:has(.bg5) .gtl-bell__all{
    padding: 13px 16px;
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}
html:has(.bg5) .gtl-bell__all:hover{ background: rgba(191, 214, 65, .08); color: #BFD641; }
html:has(.bg5) .gtl-notif{ border-radius: 12px; }
html:has(.bg5) .gtl-notif.is-unseen{ box-shadow: inset 2px 0 0 #BFD641; }
@keyframes sh5-pulse-ring{
    0%{ box-shadow: 0 0 0 0 rgba(191, 214, 65, .35); }
    70%{ box-shadow: 0 0 0 12px rgba(191, 214, 65, 0); }
    100%{ box-shadow: 0 0 0 0 rgba(191, 214, 65, 0); }
}
html:has(.bg5) .gtl-bell__panel a.gtl-bell__all,
html:has(.bg5) .gtl-bell__panel a.gtl-bell__all:hover{ color: #BFD641; }

/* ================================================================ THEME CLAIR */
/* La barre et ses panneaux suivent le theme : ivoire translucide, texte encre. Le citron vert
   reste vif pour les aplats (bouton, soulignement) ; pour le texte il passe a un vert olive
   lisible sur fond clair. */
[data-theme="light"] .sh5,
[data-theme="light"] .sh5-sheet{
    --sh5-night: #fffdfb;
    --sh5-night-2: #ffffff;
    --sh5-ink: #1d1a24;
    --sh5-soft: #6b6276;
    --sh5-line: rgba(29, 26, 36, .1);
    --sh5-lime: #5f6f12;
    --sh5-pink: #a85d94;
    --sh5-hover: rgba(29, 26, 36, .05);
}
[data-theme="light"] .sh5-bar{
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(188, 112, 164, .12), transparent 55%),
        radial-gradient(90% 160% at 100% 100%, rgba(191, 214, 65, .18), transparent 60%),
        linear-gradient(180deg, rgba(255, 253, 251, .94), rgba(251, 246, 248, .94));
    box-shadow: 0 10px 30px -20px rgba(80, 40, 70, .35);
}
[data-theme="light"] .sh5.is-scrolled .sh5-bar{ background-color: rgba(255, 253, 251, .82); box-shadow: 0 16px 36px -22px rgba(80, 40, 70, .45); }
[data-theme="light"] .sh5-logo img{ filter: invert(1) hue-rotate(180deg) saturate(1.2); }

html[data-theme="light"] body .sh5-link:hover{ color: var(--sh5-ink); background: var(--sh5-hover); }
html[data-theme="light"] body .sh5-link::after{ background: #BFD641; height: 3px; }
html[data-theme="light"] body .sh5-link--explore[aria-expanded="true"]{ background: rgba(191, 214, 65, .28); }
[data-theme="light"] .sh5-icon:hover,
html[data-theme="light"] body .sh5 .sh5-bell .gtl-bell__button:hover{ background: var(--sh5-hover); }
[data-theme="light"] .sh5-theme i{ color: #c9a227; }
[data-theme="light"] .sh5-login,
[data-theme="light"] .sh5-pill--solid{ background: #BFD641; color: #1d1a24; }
[data-theme="light"] .sh5-avatar{ border-color: #BFD641; }

[data-theme="light"] .sh5-menu,
[data-theme="light"] .sh5-find-results{ background: #ffffff; box-shadow: 0 24px 50px -22px rgba(80, 40, 70, .4); }
html[data-theme="light"] body .sh5-menu a:hover,
[data-theme="light"] .sh5-menu-out:hover,
[data-theme="light"] .sh5-find-item:hover,
html[data-theme="light"] body .sh5-list a:hover,
html[data-theme="light"] body .sh5-mega-door:hover{ background: var(--sh5-hover); color: var(--sh5-ink); }
[data-theme="light"] .sh5-find-item:hover .sh5-result-name{ color: var(--sh5-pink); }
[data-theme="light"] .sh5-result-pic{ background: #f6f1ee; }

[data-theme="light"] .sh5-mega{
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(191, 214, 65, .16), transparent 60%),
        linear-gradient(180deg, #fffdfb, #fbf6f8);
    box-shadow: 0 30px 60px -34px rgba(80, 40, 70, .5);
}
[data-theme="light"] .sh5-mega-door i{ background: rgba(191, 214, 65, .3); }
[data-theme="light"] .sh5-skel{ background: linear-gradient(90deg, rgba(29,26,36,.05), rgba(29,26,36,.1), rgba(29,26,36,.05)); background-size: 200% 100%; }
[data-theme="light"] .sh5-scrim--dim{ background: rgba(29, 26, 36, .16); }

[data-theme="light"] .sh5-find-box{ background: rgba(29, 26, 36, .04); }
[data-theme="light"] .sh5-find-box:focus-within,
[data-theme="light"] .sh5-find.is-open .sh5-find-box{ background: #ffffff; border-color: rgba(95, 111, 18, .45); }
[data-theme="light"] .sh5 kbd{ background: rgba(29, 26, 36, .04); }
[data-theme="light"] .sh5-find-all{ border-color: rgba(95, 111, 18, .35); }
[data-theme="light"] .sh5-find-all:hover{ background: rgba(191, 214, 65, .18); }

[data-theme="light"] .sh5-sheet{
    background:
        radial-gradient(100% 50% at 100% 0%, rgba(188, 112, 164, .16), transparent 60%),
        linear-gradient(180deg, #fffdfb, #fbf6f8);
}
[data-theme="light"] .sh5-sheet-search,
[data-theme="light"] .sh5-pill{ background: rgba(29, 26, 36, .04); }

/* Notifications en clair */
html[data-theme="light"]:has(.bg5) .gtl-bell__panel,
html[data-theme="light"]:has(.bg5) .gtl-bell__panel{
    --gtl-notif-surface: #ffffff;
    --gtl-notif-text: #1d1a24;
    --gtl-notif-muted: #6b6276;
    --gtl-notif-border: rgba(29, 26, 36, .1);
    --gtl-notif-hover: rgba(29, 26, 36, .04);
    --gtl-notif-unseen: rgba(191, 214, 65, .14);
    --gtl-notif-accent: #5f6f12;
    background:
        radial-gradient(120% 70% at 0% 0%, rgba(188, 112, 164, .1), transparent 60%),
        radial-gradient(90% 60% at 100% 100%, rgba(191, 214, 65, .14), transparent 60%),
        #ffffff;
    box-shadow: 0 30px 60px -28px rgba(80, 40, 70, .45);
}
html[data-theme="light"]:has(.bg5) .gtl-bell__close:hover{ background: rgba(29, 26, 36, .06); color: #1d1a24; }
html[data-theme="light"]:has(.bg5) .gtl-bell__empty > i{ color: #5f6f12; background: rgba(191, 214, 65, .18); border-color: rgba(95, 111, 18, .3); }
html[data-theme="light"]:has(.bg5) .gtl-bell__empty-title{ color: #1d1a24; }
html[data-theme="light"]:has(.bg5) .gtl-bell__panel a.gtl-bell__all,
html[data-theme="light"]:has(.bg5) .gtl-bell__panel a.gtl-bell__all:hover{ color: #5f6f12; }
html[data-theme="light"]:has(.bg5) .gtl-notif.is-unseen{ box-shadow: inset 2px 0 0 #9fb52a; }

/* ------------------------------------------------ menu des langues */
.sh5-lang{ position: relative; }
.sh5-lang-btn{
    display: inline-flex; align-items: center; gap: 7px;
    height: 40px; padding: 0 10px 0 12px;
    border: 1px solid var(--sh5-line); border-radius: 999px;
    background: transparent; color: var(--sh5-ink);
    font: 700 13px/1 Arial, Helvetica, sans-serif; letter-spacing: .04em;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}
.sh5-lang-btn:hover,
.sh5-lang-btn[aria-expanded="true"]{ background: var(--sh5-hover, rgba(255, 255, 255, .08)); border-color: rgba(191, 214, 65, .5); }
.sh5-lang-btn[aria-expanded="true"] .sh5-caret{ transform: rotate(180deg); }
.sh5-flag{ width: 18px; height: 13px; border-radius: 3px; background-size: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex: 0 0 auto; }
.sh5-lang-menu{ width: 210px; }
.sh5-lang-item{
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px; border: 0; border-radius: 10px;
    background: transparent; color: var(--sh5-ink);
    font: 500 14px/1.2 Arial, Helvetica, sans-serif; text-align: left;
    cursor: pointer;
}
.sh5-lang-item:hover{ background: var(--sh5-hover, rgba(255, 255, 255, .07)); }
.sh5-lang-item .sh5-lang-name{ flex: 1; }
.sh5-lang-item small{ color: var(--sh5-soft); font-weight: 700; letter-spacing: .06em; }
.sh5-lang-item.is-active{ font-weight: 700; }
.sh5-lang-item.is-active i{ color: var(--sh5-lime); }

/* Selecteur a deux options du menu mobile */
.sh5-seg{
    display: inline-flex; padding: 3px;
    border: 1px solid var(--sh5-line); border-radius: 999px;
    background: rgba(255, 255, 255, .04);
}
.sh5-seg button{
    display: inline-flex; align-items: center; gap: 7px;
    height: 36px; padding: 0 14px;
    border: 0; border-radius: 999px;
    background: transparent; color: var(--sh5-soft);
    font: 600 14px/1 Arial, Helvetica, sans-serif;
}
.sh5-seg button.is-active{ background: #BFD641; color: #1d1a24; }
[data-theme="light"] .sh5-seg{ background: rgba(29, 26, 36, .04); }
