/* =====================================================================
   CHEST — refonte « liquid glass » (2026-11-22) : coque de l'espace membre (app.html).
   3 thèmes visuels (html[data-layout]) chacun avec SON menu, clair/sombre, couleur d'accent :
   aurore (défaut) = pilule en haut · obsidienne = barre latérale · braise = dock en bas.
   Tout est scopé à #chestShell / #gl* : la connexion, Welcome et la newsletter ne changent pas.
   ===================================================================== */
html{
  --gl-ease:cubic-bezier(.16,1,.3,1);
  --gl-bg:linear-gradient(160deg,rgba(255,255,255,.075),rgba(255,255,255,.025) 42%,rgba(255,255,255,.02) 70%,rgba(255,255,255,.045));
  --gl-solid:rgba(14,14,18,.78);
  --gl-edge:rgba(255,255,255,.13);
  --gl-hi:inset 1.5px 1.5px 0 rgba(255,255,255,.16),inset -1px -1px 0 rgba(255,255,255,.04);
  --gl-shadow:0 24px 60px -24px rgba(0,0,0,.8);
  --gl-hover:rgba(255,255,255,.06);
  --gl-pop:linear-gradient(160deg,rgba(24,24,29,.92),rgba(13,13,17,.96));
  --gl-blur:30px;
  --gl-r:22px;
}
html[data-mode="light"]{
  --gl-bg:linear-gradient(160deg,rgba(255,255,255,.82),rgba(255,255,255,.6) 50%,rgba(255,255,255,.7));
  --gl-solid:rgba(255,255,255,.78);
  --gl-edge:rgba(20,20,40,.1);
  --gl-hi:inset 1.5px 1.5px 0 rgba(255,255,255,.9),inset -1px -1px 0 rgba(20,20,40,.04);
  --gl-shadow:0 20px 50px -26px rgba(30,20,50,.35);
  --gl-hover:rgba(20,20,40,.05);
  --gl-pop:linear-gradient(160deg,rgba(255,255,255,.95),rgba(248,246,250,.96));
}
html[data-layout="aurore"]{ --gl-r:26px; --gl-blur:40px; }
html[data-layout="obsidienne"]{ --gl-r:20px; --gl-blur:26px; }
html[data-layout="braise"]{ --gl-r:24px; --gl-blur:34px; }

/* ---------- Fonds : une lumière par thème, aux couleurs de l'accent ---------- */
#chestShell.c2-shell::before,#chestShell.c2-shell::after{ content:""; position:fixed; pointer-events:none; z-index:0; border-radius:50%; filter:blur(120px); transition:opacity .6s var(--gl-ease); }
html[data-layout="aurore"] #chestShell.c2-shell::before{ left:-12vw; bottom:-20vh; width:70vw; height:48vh; background:radial-gradient(closest-side,rgba(var(--a1-rgb,252,18,131),.42),transparent); }
html[data-layout="aurore"] #chestShell.c2-shell::after{ right:-14vw; bottom:-16vh; width:62vw; height:44vh; background:radial-gradient(closest-side,rgba(var(--a2-rgb,249,164,94),.34),transparent); }
html[data-layout="obsidienne"] #chestShell.c2-shell::before{ right:-8vw; top:-26vh; width:48vw; height:52vh; background:radial-gradient(closest-side,rgba(var(--a1-rgb,252,18,131),.26),transparent); }
html[data-layout="obsidienne"] #chestShell.c2-shell::after{ left:-20vw; bottom:-34vh; width:50vw; height:50vh; background:radial-gradient(closest-side,rgba(var(--a1-rgb,252,18,131),.09),transparent); }
html[data-layout="braise"] #chestShell.c2-shell::before{ right:-10vw; top:12vh; width:44vw; height:70vh; background:radial-gradient(closest-side,rgba(var(--a2-rgb,249,164,94),.32),transparent); }
html[data-layout="braise"] #chestShell.c2-shell::after{ right:14vw; top:40vh; width:36vw; height:46vh; background:radial-gradient(closest-side,rgba(var(--a1-rgb,252,18,131),.2),transparent); }
html[data-mode="light"] #chestShell.c2-shell::before,html[data-mode="light"] #chestShell.c2-shell::after{ opacity:.45; }
@media (prefers-reduced-motion:no-preference){
  html[data-layout="aurore"] #chestShell.c2-shell::before{ animation:glDrift 24s ease-in-out infinite alternate; }
  html[data-layout="aurore"] #chestShell.c2-shell::after{ animation:glDrift2 28s ease-in-out infinite alternate; }
  @keyframes glDrift{ to{ transform:translate3d(8vw,-4vh,0) scale(1.08); } }
  @keyframes glDrift2{ to{ transform:translate3d(-9vw,-3vh,0) scale(1.1); } }
}
#chestShell .c2-shell__light{ display:none !important; }
#chestShell > .sb,#chestShell > .chest-main{ position:relative; z-index:1; }

/* ---------- Commun : marque, menus copiés, bouton profil ---------- */
.gl-brand{ display:none; align-items:center; gap:9px; flex:none; font-size:16px; font-weight:700; letter-spacing:-.03em; color:var(--ink,#f6f6f7)!important; }
.gl-brand img{ width:26px; height:26px; border-radius:8px; filter:drop-shadow(0 0 7px rgba(var(--a1-rgb,252,18,131),.5)); }
.gl-pill,.gl-dock{ display:none; }
#chestShell .c2-topbar a[data-page="account"][aria-label="Compte"]{ display:none !important; }
.gl-me{ width:38px; height:38px; flex:none; padding:0; border-radius:50%; border:1px solid var(--gl-edge); background:var(--gl-bg); box-shadow:var(--gl-hi); cursor:pointer; display:grid; place-items:center; overflow:hidden; transition:border-color .2s var(--gl-ease),transform .2s var(--gl-ease); }
.gl-me:hover,.gl-me[aria-expanded="true"]{ border-color:rgba(var(--a2-rgb,249,164,94),.55); }
.gl-me:active{ transform:scale(.96); }
.gl-me__av{ width:100%; height:100%; display:grid; place-items:center; font-size:12px; font-weight:700; color:#fff; background:linear-gradient(135deg,var(--a1,#fc1283),var(--a2,#f9a45e)); }
.gl-me__av img{ width:100%; height:100%; object-fit:cover; display:block; }
/* Entrées hors formule : cadenas discret (shell.js pose plan-no-school) */
html.plan-no-school .nav-i[data-page="school-v2"] .sb-txt::after{ content:""; display:inline-block; width:9px; height:9px; margin-left:6px; vertical-align:-1px; opacity:.6;
  background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center/contain no-repeat; }
/* Groupes du menu (barre latérale) */
.sb-grp{ display:block; padding:16px 14px 6px; font-size:11.5px; font-weight:500; color:var(--ink-3,#7a7a82); white-space:nowrap; }
.sb-grp:first-child{ padding-top:4px; }
.sb-grp[hidden]{ display:none; }
.sbT:checked ~ .sb .sb-grp{ height:1px; padding:0; margin:10px 14px; background:rgba(var(--fg-rgb,255,255,255),.08); }
.sbT:checked ~ .sb .sb-grp .sb-txt{ display:none; }
#chestShell .sb-label{ display:none; }
#chestShell #crumbCat{ font-family:'Instrument Sans',system-ui,sans-serif !important; text-transform:none !important; letter-spacing:0 !important; font-size:12.5px !important; }
#chestShell .sb-acc__label{ text-transform:none; letter-spacing:0; font-size:11.5px; font-weight:500; }

/* ---------- Barre du haut en verre (aurore + braise, bureau) ---------- */
@media (min-width:901px){
  html:is([data-layout="aurore"],[data-layout="braise"]) #chestShell > .sb{ display:none !important; }
  html:is([data-layout="aurore"],[data-layout="braise"]) #chestShell .gl-brand{ display:flex; }
  html:is([data-layout="aurore"],[data-layout="braise"]) #chestShell .c2-topbar{
    margin:14px 18px 0; padding:8px 8px 8px 18px !important; min-height:60px !important; border-radius:999px; position:relative; z-index:20;
    border:1px solid var(--gl-edge) !important; background:var(--gl-bg); box-shadow:var(--gl-shadow),var(--gl-hi);
    -webkit-backdrop-filter:blur(var(--gl-blur)) saturate(1.4); backdrop-filter:blur(var(--gl-blur)) saturate(1.4); flex-wrap:nowrap !important; }
  html:is([data-layout="aurore"],[data-layout="braise"]) #chestShell .c2-topbar::before{ content:""; position:absolute; top:-1px; left:12%; right:12%; height:1px; pointer-events:none; background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent); }
  html:is([data-layout="aurore"],[data-layout="braise"]) #chestShell .c2-topbar .chest-progress{ left:30px; right:30px; }
  html[data-layout="aurore"] #chestShell #crumb{ display:none !important; }
  html:is([data-layout="aurore"],[data-layout="braise"]) #chestShell .c2-search label{ border-radius:999px !important; }
  html[data-layout="aurore"] #chestShell .c2-search label{ width:188px !important; transition:width .24s var(--gl-ease), border-color .2s ease; }
  html[data-layout="aurore"] #chestShell .c2-search label:focus-within{ width:228px !important; }

  /* Aurore : pilule de navigation centrée, lentille qui glisse (jamais rognée) */
  html[data-layout="aurore"] #chestShell .gl-pill{ display:flex; position:relative; align-items:center; gap:2px; margin:0 auto; padding:4px; border-radius:999px;
    background:rgba(0,0,0,.22); border:1px solid rgba(var(--fg-rgb,255,255,255),.07); flex:0 0 auto; overflow:visible; }
  html[data-mode="light"][data-layout="aurore"] #chestShell .gl-pill{ background:rgba(20,20,40,.04); }
  .gl-pill .gl-lens{ position:absolute; left:0; top:4px; bottom:4px; border-radius:999px; opacity:0; pointer-events:none; z-index:0;
    background:linear-gradient(160deg,rgba(255,255,255,.14),rgba(255,255,255,.05)); box-shadow:inset 1px 1px 0 rgba(255,255,255,.22);
    transition:transform .38s var(--gl-ease),width .38s var(--gl-ease),opacity .2s ease; }
  html[data-mode="light"] .gl-pill .gl-lens{ background:rgba(255,255,255,.9); box-shadow:0 2px 10px rgba(20,20,40,.08); }
  .gl-pill .nav-i{ position:relative; z-index:1; padding:7px 10px !important; gap:6px !important; border-radius:999px !important; font-size:12.5px !important; font-weight:500 !important; background:none !important; flex:none; white-space:nowrap; }
  .gl-pill .nav-i::before{ display:none !important; }
  .gl-pill .nav-i .ic{ width:16px; height:16px; flex:0 0 16px !important; }
  .gl-pill .nav-i.on{ color:#170510 !important; font-weight:600 !important; background:linear-gradient(135deg,var(--a1,#fc1283),var(--a2,#f9a45e)) !important;
    box-shadow:0 6px 18px -6px rgba(var(--a1-rgb,252,18,131),.7),inset 0 1px 0 rgba(255,255,255,.4); }
  .gl-pill .nav-i.on .ic{ stroke:#170510 !important; filter:none !important; }
  .gl-pill .nav-i.adm.on .sb-txt{ color:#170510; -webkit-text-fill-color:#170510; }
  .gl-pill .gl-sep{ width:1px; height:16px; margin:0 2px; background:rgba(var(--fg-rgb,255,255,255),.12); flex:none; }
  .gl-pill [hidden]{ display:none !important; }
}
/* Adaptatif intermédiaire : garder School et tous les onglets entiers dès 1200px */
@media (min-width:1201px) and (max-width:1440px){
  html[data-layout="aurore"] #chestShell .c2-search label{ width:156px !important; padding:0 10px !important; gap:7px !important; }
  html[data-layout="aurore"] #chestShell #c2SearchKbd{ display:none !important; }
  html[data-layout="aurore"] #chestShell .c2-topbar{ gap:10px !important; padding:7px 8px 7px 14px !important; }
  .gl-pill .nav-i{ padding:7px 8.5px !important; gap:5px !important; font-size:12.2px !important; }
}
/* Pilule trop large sous 1200px : on garde les icônes, le nom de la page active reste */
@media (min-width:901px) and (max-width:1200px){
  .gl-pill .nav-i:not(.on) .sb-txt{ display:none; }
  .gl-pill .nav-i:not(.on){ padding:8px 9px !important; }
}

/* ---------- Braise : dock flottant en bas ---------- */
@media (min-width:901px){
  html[data-layout="braise"] #chestShell .gl-dock{ display:flex; position:fixed; left:50%; bottom:16px; transform:translateX(-50%); z-index:40; align-items:flex-end; gap:2px; padding:7px;
    border-radius:24px; border:1px solid var(--gl-edge); background:var(--gl-bg); box-shadow:var(--gl-shadow),var(--gl-hi),0 0 60px -30px rgba(var(--a1-rgb,252,18,131),.6);
    -webkit-backdrop-filter:blur(var(--gl-blur)) saturate(1.4); backdrop-filter:blur(var(--gl-blur)) saturate(1.4); }
  .gl-dock .nav-i{ --s:1; flex-direction:column !important; justify-content:flex-end; gap:4px !important; width:76px; padding:8px 0 7px !important; border-radius:17px !important;
    font-size:11px !important; font-weight:500 !important; background:none !important; }
  .gl-dock .nav-i::before{ display:none !important; }
  .gl-dock .nav-i .ic{ width:21px; height:21px; flex:none !important; transform:translateY(calc((var(--s) - 1) * -20px)) scale(var(--s)); transform-origin:bottom center; transition:transform .22s var(--gl-ease); }
  .gl-dock .nav-i:hover{ background:var(--gl-hover) !important; }
  .gl-dock .nav-i.on{ color:var(--ink,#f6f6f7) !important; background:linear-gradient(160deg,rgba(var(--a1-rgb,252,18,131),.28),rgba(var(--a2-rgb,249,164,94),.14)) !important; box-shadow:inset 1px 1px 0 rgba(255,255,255,.18); }
  .gl-dock .nav-i.on .ic{ stroke:var(--a2,#f9a45e) !important; filter:drop-shadow(0 0 8px rgba(var(--a1-rgb,252,18,131),.45)) !important; }
  html[data-mode="light"] .gl-dock .nav-i.on .ic{ stroke:var(--a1,#fc1283) !important; filter:none !important; }
  .gl-dock .nav-i.on::after{ content:""; position:absolute; bottom:-4px; left:50%; width:4px; height:4px; margin-left:-2px; border-radius:50%; background:var(--a2,#f9a45e); box-shadow:0 0 6px var(--a2,#f9a45e); }
  .gl-dock .gl-dsep{ width:1px; margin:10px 4px; align-self:stretch; background:rgba(var(--fg-rgb,255,255,255),.1); }
  .gl-dock [hidden]{ display:none !important; }
}

/* ---------- Obsidienne : barre latérale en verre, décollée du bord ---------- */
@media (min-width:901px){
  html[data-layout="obsidienne"] #chestShell > .sb{ margin:14px 0 14px 14px; min-height:0 !important; height:calc(100vh - 28px); position:sticky; top:14px; border-radius:var(--gl-r);
    border:1px solid var(--gl-edge); background:var(--gl-bg) !important; box-shadow:var(--gl-shadow),var(--gl-hi);
    -webkit-backdrop-filter:blur(var(--gl-blur)) saturate(1.3); backdrop-filter:blur(var(--gl-blur)) saturate(1.3); }
  html[data-layout="obsidienne"] #chestShell > .sb::after{ display:none; }
  html[data-layout="obsidienne"] #chestShell > .sb::before{ left:12%; right:12%; top:-1px; height:1px; background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent); border-radius:0; }
  html[data-layout="obsidienne"] #chestShell .sb-tog__bg path{ fill:var(--gl-solid); }
  html[data-layout="obsidienne"] #chestShell .nav-i{ border-radius:11px; font-weight:500; }
  html[data-layout="obsidienne"] #chestShell .nav-i.on{ font-weight:600; }
  html[data-layout="obsidienne"] #chestShell .c2-topbar{ border-bottom:0 !important; }
  html[data-layout="obsidienne"] #chestShell .sb-out{ border-radius:12px; }
}

/* ---------- Menu profil (verre, ouvert sous l'avatar) ---------- */
.gl-pop{ position:fixed; left:0; top:0; z-index:200; width:330px; max-height:calc(100vh - 24px); overflow:auto; padding:8px; box-sizing:border-box;
  border-radius:calc(var(--gl-r) - 2px); border:1px solid var(--gl-edge); background:var(--gl-pop); color:var(--ink,#f6f6f7);
  -webkit-backdrop-filter:blur(36px) saturate(1.4); backdrop-filter:blur(36px) saturate(1.4);
  box-shadow:0 34px 80px -24px rgba(0,0,0,.8),var(--gl-hi); font:400 13.5px/1.4 'Instrument Sans',system-ui,sans-serif;
  opacity:0; visibility:hidden; transform:translateY(-6px) scale(.98); transform-origin:top right;
  transition:opacity .16s ease,transform .28s var(--gl-ease),visibility 0s linear .28s; scrollbar-width:thin; }
.gl-pop.is-open{ opacity:1; visibility:visible; transform:none; transition:opacity .16s ease,transform .28s var(--gl-ease),visibility 0s; }
.gl-pop__head{ display:flex; align-items:center; gap:11px; padding:8px 8px 12px; }
.gl-pop__av{ width:40px; height:40px; flex:none; border-radius:12px; overflow:hidden; display:grid; place-items:center; font-weight:700; font-size:13px; color:#fff; background:linear-gradient(135deg,var(--a1,#fc1283),var(--a2,#f9a45e)); }
.gl-pop__av img{ width:100%; height:100%; object-fit:cover; }
.gl-pop__id{ min-width:0; flex:1; }
.gl-pop__id b{ display:block; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gl-pop__id small{ display:block; font-size:12px; color:var(--ink-3,#7a7a82); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gl-plan{ flex:none; font-size:11px; font-weight:700; padding:3px 9px; border-radius:99px; color:var(--ink,#f6f6f7);
  background:linear-gradient(135deg,rgba(var(--a1-rgb,252,18,131),.26),rgba(var(--a2-rgb,249,164,94),.18)); box-shadow:inset 0 0 0 1px rgba(var(--a1-rgb,252,18,131),.25); }
.gl-item{ display:flex; align-items:center; gap:11px; width:100%; padding:9px 10px; border:0; border-radius:11px; background:none; color:var(--ink-2,#9b9ba1)!important; font:inherit; text-align:left; cursor:pointer; transition:background .15s,color .15s; box-sizing:border-box; }
.gl-item svg{ width:17px; height:17px; flex:none; }
.gl-item:hover{ background:var(--gl-hover); color:var(--ink,#f6f6f7)!important; }
.gl-out,.gl-out:hover{ color:var(--red,#ff4d5e)!important; }
.gl-sep2{ height:1px; margin:6px 4px; background:rgba(var(--fg-rgb,255,255,255),.08); }
.gl-h{ display:flex; justify-content:space-between; gap:8px; padding:8px 10px 7px; font-size:11.5px; color:var(--ink-3,#7a7a82); }
.gl-themes{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; padding:0 4px 4px; }
.gl-th{ display:flex; flex-direction:column; gap:6px; padding:5px; border-radius:12px; border:1px solid rgba(var(--fg-rgb,255,255,255),.08); background:rgba(var(--fg-rgb,255,255,255),.02); color:var(--ink-2,#9b9ba1); font:inherit; font-size:11.5px; cursor:pointer; transition:border-color .2s,transform .2s var(--gl-ease); }
.gl-th:hover{ border-color:rgba(var(--a2-rgb,249,164,94),.45); transform:translateY(-1px); }
.gl-th[aria-pressed="true"]{ border-color:rgba(var(--a1-rgb,252,18,131),.6); color:var(--ink,#f6f6f7); box-shadow:0 0 0 3px rgba(var(--a1-rgb,252,18,131),.14); }
.gl-th__n{ display:flex; justify-content:space-between; align-items:center; padding:0 2px; }
.gl-th__n i{ width:11px; height:11px; border-radius:50%; border:1.5px solid rgba(var(--fg-rgb,255,255,255),.25); }
.gl-th[aria-pressed="true"] .gl-th__n i{ border:0; background:linear-gradient(135deg,var(--a1,#fc1283),var(--a2,#f9a45e)); }
.gl-mini{ position:relative; display:block; height:48px; border-radius:8px; overflow:hidden; background:#070707; border:1px solid rgba(255,255,255,.06); }
.gl-mini *{ position:absolute; display:block; }
.gl-mini.ob em{ right:-14px; top:-18px; width:46px; height:40px; border-radius:50%; background:rgba(var(--a1-rgb,252,18,131),.55); filter:blur(10px); }
.gl-mini.ob b{ left:4px; top:4px; bottom:4px; width:13px; border-radius:4px; background:rgba(255,255,255,.12); }
.gl-mini.ob u{ left:21px; top:4px; right:4px; height:22px; border-radius:4px; background:rgba(255,255,255,.07); }
.gl-mini.ob i{ left:21px; right:4px; bottom:4px; height:14px; border-radius:4px; background:rgba(255,255,255,.05); }
.gl-mini.au em{ left:-10px; right:-10px; bottom:-22px; height:40px; border-radius:50%; background:linear-gradient(90deg,var(--a1,#fc1283),var(--a2,#f9a45e)); filter:blur(9px); opacity:.85; }
.gl-mini.au b{ left:8px; right:8px; top:4px; height:7px; border-radius:9px; background:rgba(255,255,255,.16); }
.gl-mini.au u{ left:8px; right:8px; top:15px; height:18px; border-radius:6px; background:rgba(255,255,255,.1); }
.gl-mini.br em{ right:-6px; top:4px; width:36px; height:40px; border-radius:50%; background:rgba(var(--a2-rgb,249,164,94),.6); filter:blur(10px); }
.gl-mini.br b{ right:4px; top:4px; bottom:4px; width:20px; border-radius:5px; background:linear-gradient(165deg,rgba(var(--a2-rgb,249,164,94),.5),rgba(var(--a1-rgb,252,18,131),.25)); }
.gl-mini.br u{ left:4px; top:4px; right:28px; height:22px; border-radius:5px; background:rgba(255,255,255,.08); }
.gl-mini.br i{ left:14px; right:38px; bottom:4px; height:7px; border-radius:9px; background:rgba(255,255,255,.18); }
.gl-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; color:var(--ink-2,#9b9ba1); }
.gl-seg{ display:inline-flex; padding:3px; border-radius:11px; background:rgba(var(--fg-rgb,255,255,255),.04); border:1px solid rgba(var(--fg-rgb,255,255,255),.08); }
.gl-seg button{ display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border:0; border-radius:8px; background:none; color:var(--ink-2,#9b9ba1); font:inherit; font-size:12px; cursor:pointer; }
.gl-seg button svg{ width:14px; height:14px; }
.gl-seg button[aria-pressed="true"]{ background:var(--ink,#f6f6f7); color:var(--bg-0,#0a0a0c); }
.gl-accents{ display:grid; grid-template-columns:repeat(7,1fr); gap:8px; padding:2px 10px 8px; }
.gl-acc{ aspect-ratio:1; width:100%; border-radius:50%; border:0; cursor:pointer; box-shadow:inset 0 0 0 1px rgba(255,255,255,.18); transition:transform .2s var(--gl-ease),box-shadow .2s; }
.gl-acc:hover{ transform:scale(1.1); }
.gl-acc[aria-pressed="true"]{ box-shadow:0 0 0 2px var(--bg-0,#0a0a0c),0 0 0 4px var(--ink,#f6f6f7); }

/* ---------- Écran de chargement : petit, centré, sans bulle ni bouton (logo CHEST d'un trait + texte shimmer) ---------- */
.chest-loader{ background:transparent !important; }
.chest-loader .ch-loader{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  display:inline-flex; align-items:center; gap:7px; padding:0; border:0; border-radius:0;
  background:transparent; box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none;
  font-size:14px; font-weight:500; letter-spacing:.01em; white-space:nowrap;
}
.ch-loader__svg{ width:17px; height:17px; flex:none; color:#e4e4e7; }
html[data-mode="light"] .ch-loader__svg{ color:#3f3f46; }
.ch-loader__path{ stroke-dasharray:100; stroke-dashoffset:100; animation:chDrawStroke 2.5s infinite; }
.ch-loader__text{
  display:inline-block; background-clip:text; -webkit-background-clip:text; color:transparent; -webkit-text-fill-color:transparent;
  background-size:200% auto; animation:chTextShimmer 2s ease-in-out infinite;
  background-image:linear-gradient(90deg,rgb(161 161 170) 0%,rgb(161 161 170) 38%,rgb(255 255 255) 50%,rgb(161 161 170) 62%,rgb(161 161 170) 100%);
}
html[data-mode="light"] .ch-loader__text{
  background-image:linear-gradient(90deg,rgb(113 113 122) 0%,rgb(113 113 122) 38%,rgb(24 24 27) 50%,rgb(113 113 122) 62%,rgb(113 113 122) 100%);
}
.ch-loader__chev{ width:14px; height:14px; flex:none; color:rgb(113 113 122); }
html[data-mode="light"] .ch-loader__chev{ color:rgb(161 161 170); }
@keyframes chDrawStroke{
  0%{ stroke-dashoffset:100; animation-timing-function:ease-in-out; }
  50%{ stroke-dashoffset:0; animation-timing-function:ease-in-out; }
  100%{ stroke-dashoffset:-100; }
}
@keyframes chTextShimmer{
  0%{ background-position:100% center; }
  100%{ background-position:-100% center; }
}
@media (prefers-reduced-motion:reduce){
  .ch-loader__path{ stroke-dashoffset:0; animation:none; }
  .ch-loader__text{ animation:none; background:none; -webkit-text-fill-color:var(--ink,#f6f6f7); color:var(--ink,#f6f6f7); }
}

/* ---------- Téléphone : barre d'onglets du bas pour les 3 thèmes ---------- */
@media (max-width:900px){
  .gl-pill,.gl-dock,.gl-brand{ display:none !important; }
  #chestShell .sb-nav .sb-grp{ display:none !important; }
  #chestShell.c2-shell > .sb{ border-radius:22px 22px 0 0; }
  .gl-me{ width:34px; height:34px; }
}

/* ---------- Case HQ (admin principal) : plus de pixels, une lueur douce ---------- */
#chestHq{ border-radius:999px !important; overflow:hidden; }
#chestHq .chest-hq__sky{ image-rendering:auto !important; filter:blur(3px) saturate(1.1); transform:scale(1.15); }

/* Barre du haut Aurore/Braise : une seule ligne même avec les actions de la page */
@media (min-width:901px){
  html:is([data-layout="aurore"],[data-layout="braise"]) #chestShell .c2-topbar > div:last-of-type{ flex-wrap:nowrap !important; min-width:0; }
  html:is([data-layout="aurore"],[data-layout="braise"]) #chestShell #c2PageActions{ flex-wrap:nowrap !important; min-width:0; overflow:hidden; }
  html:is([data-layout="aurore"],[data-layout="braise"]) #chestShell #c2PageActions > *{ flex:none; }
}

/* Barre centrée et fluide sans jamais rogner School */
@media (min-width:901px){
  html:is([data-layout="aurore"],[data-layout="braise"]) #chestShell .c2-topbar{ width:calc(100% - 32px); max-width:1480px; margin-left:auto !important; margin-right:auto !important; box-sizing:border-box; }
  html:is([data-layout="aurore"],[data-layout="braise"]) #chestShell .gl-brand img{ width:30px; height:30px; border-radius:10px; }
  html:is([data-layout="aurore"],[data-layout="braise"]) #chestShell .gl-brand{ font-size:16.5px; }
  .gl-pill .nav-i .ic{ width:16px !important; height:16px !important; flex:0 0 16px !important; }
  .gl-dock .nav-i .ic{ width:23px; height:23px; }
  #chestShell .gl-me{ width:38px; height:38px; }
}
@media (min-width:901px){
  html[data-layout="aurore"] #chestShell #c2PageActions{ max-width:300px; }
  html[data-layout="aurore"] #chestShell #c2PageActions > *{ flex:0 1 auto !important; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  html[data-layout="aurore"] #chestShell #c2PageActions > *:last-child{ flex:0 0 auto !important; }
}
@media (min-width:1320px){
  html[data-layout="aurore"] #chestShell #c2PageActions{ max-width:360px; }
}
@media (min-width:901px){ html[data-layout] #chestShell .c2-topbar > div:has(> #c2PageActions){ flex-wrap:nowrap !important; } }

/* ---------- Garde Connexion & Welcome : aucun volet/menu/dock du shell ne doit apparaître sur la page de login ---------- */
html:is(.is-loggedout,.wel-boot-hide) #chestShell,
html:is(.is-loggedout,.wel-boot-hide) #chestShell::before,
html:is(.is-loggedout,.wel-boot-hide) #chestShell::after,
html:is(.is-loggedout,.wel-boot-hide) #chestShell .c2-topbar,
html:is(.is-loggedout,.wel-boot-hide) #chestShell .gl-dock,
html:is(.is-loggedout,.wel-boot-hide) #glMePop{
  display:none !important; visibility:hidden !important; pointer-events:none !important;
}
html.is-loggedout, html.is-loggedout body{ overflow:hidden !important; height:100vh !important; height:100dvh !important; }
html.is-welcome #chestShell.c2-shell::before,
html.is-welcome #chestShell.c2-shell::after{ opacity:0 !important; }
html.is-welcome #chestShell .gl-dock,
html.is-welcome #glMePop{ opacity:0 !important; pointer-events:none !important; visibility:hidden !important; }

/* Welcome → dashboard : tant que le dashboard n'est pas entièrement arrivé, une couche transparente couvre l'iframe.
   Chrome envoie la molette à l'iframe même inerte / pointer-events:none → la page ne défilait plus au-dessus du dashboard. */
html.is-welcome #chestShell .chest-view{ position:relative; }
html.is-welcome #chestShell .chest-view::after{ content:""; position:absolute; inset:0; z-index:60; pointer-events:auto !important; background:transparent; }

/* ===== 2026-11-26 : icône Admin (couronne) + actions du Calendrier dans la barre du haut ===== */
/* La couronne prenait son dégradé (#sba) dans la barre latérale, masquée en Aurore / Braise → icône vide partout. */
html:is([data-layout="aurore"],[data-layout="braise"]) #chestShell :is(.gl-pill,.gl-dock) .nav-i.adm:not(.on) .ic{ stroke:#ffb23a !important; }
html[data-mode="light"]:is([data-layout="aurore"],[data-layout="braise"]) #chestShell :is(.gl-pill,.gl-dock) .nav-i.adm:not(.on) .ic{ stroke:#e07a00 !important; }
html[data-mode="light"] #chestShell .nav-i.adm .sb-txt{ background:linear-gradient(90deg,#e06a00,#d99a00); -webkit-background-clip:text; background-clip:text; }

/* Prochaine annonce : nom coupé proprement, heure toujours visible */
#chestShell .c2n{ --c:var(--amber-rgb,232,179,57); display:flex; align-items:center; gap:8px; height:38px; padding:0 12px; min-width:0; border-radius:12px;
  border:1px solid rgba(var(--c),.28); background:rgba(var(--c),.08); font-size:12.5px; color:var(--ink,#f6f6f7); white-space:nowrap; }
#chestShell .c2n.is-hi{ --c:var(--red-rgb,255,77,94); }
#chestShell .c2n i{ flex:none; width:7px; height:7px; border-radius:99px; background:rgb(var(--c)); box-shadow:0 0 10px rgba(var(--c),.9); }
#chestShell .c2n__k{ flex:none; color:var(--ink-2,#9b9ba1); }
#chestShell .c2n__n{ min-width:0; overflow:hidden; text-overflow:ellipsis; font-weight:600; }
#chestShell .c2n__t{ flex:none; font-family:'Fragment Mono',ui-monospace,monospace; font-size:11px; color:rgb(var(--c)); }
html[data-mode="light"] #chestShell .c2n__t{ filter:brightness(.75); }
/* Paire suivie */
#chestShell .c2p{ display:flex; align-items:center; gap:7px; height:38px; padding:0 10px 0 12px; border-radius:12px; border:1px solid rgba(var(--fg-rgb,255,255,255),.12);
  background:rgba(var(--fg-rgb,255,255,255),.04); color:var(--ink,#f6f6f7); font:inherit; font-size:12.5px; cursor:pointer; white-space:nowrap;
  transition:border-color .2s cubic-bezier(.16,1,.3,1), background .2s cubic-bezier(.16,1,.3,1), transform .16s ease-out; }
#chestShell .c2p:hover{ border-color:rgba(var(--fg-rgb,255,255,255),.24); background:rgba(var(--fg-rgb,255,255,255),.07); }
#chestShell .c2p:active{ transform:scale(.97); }
#chestShell .c2p:focus-visible{ outline:2px solid var(--a1,#fc1283); outline-offset:2px; }
#chestShell .c2p__k{ color:var(--ink-2,#9b9ba1); }
#chestShell .c2p b{ font-weight:600; }
#chestShell .c2p svg{ color:var(--ink-3,#7a7a82); transition:transform .2s cubic-bezier(.16,1,.3,1); }
#chestShell .c2p[aria-expanded="true"] svg{ transform:rotate(180deg); }
/* Liste des paires : dans <body>, en position fixe (plus jamais coupée par la barre) */
.c2p-list{ position:fixed; z-index:9000; max-height:min(420px,68vh); overflow-y:auto; overscroll-behavior:contain; padding:6px; border-radius:14px; box-sizing:border-box;
  border:1px solid rgba(var(--fg-rgb,255,255,255),.12); background:linear-gradient(160deg,rgba(var(--dk-rgb,14,14,17),.97),rgba(var(--dk-rgb,9,9,11),.99));
  -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px); box-shadow:0 18px 44px rgba(0,0,0,.55), inset 1px 1px 0 rgba(255,255,255,.1);
  transform-origin:top right; animation:c2pIn .18s cubic-bezier(.16,1,.3,1); scrollbar-width:thin; }
.c2p-list[hidden]{ display:none !important; }
html[data-mode="light"] .c2p-list{ background:rgba(255,255,255,.97); border-color:rgba(20,20,40,.12); box-shadow:0 18px 44px rgba(20,20,40,.18); }
.c2p-list__head{ position:sticky; top:0; z-index:2; padding:2px 2px 6px; background:inherit; }
.c2p-list__search{ width:100%; height:34px; padding:0 10px; border-radius:9px; border:1px solid rgba(var(--fg-rgb,255,255,255),.14); background:rgba(var(--fg-rgb,255,255,255),.05); color:var(--ink,#f6f6f7); font:inherit; font-size:12.5px; box-sizing:border-box; outline:none; }
.c2p-list__search:focus{ border-color:var(--a1,#fc1283); }
html[data-mode="light"] .c2p-list__search{ border-color:rgba(20,20,40,.14); background:rgba(20,20,40,.04); color:#141418; }
.c2p-list__grp{ padding:8px 10px 4px; font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3,#7a7a82); }
.c2p-list__empty{ padding:14px 10px; font-size:12.5px; color:var(--ink-3,#7a7a82); text-align:center; }
.c2p-list button{ width:100%; display:flex; align-items:baseline; gap:10px; padding:9px 10px; border:0; border-radius:10px; background:none; color:var(--ink,#f6f6f7); font:inherit; font-size:13px; text-align:left; cursor:pointer; }
.c2p-list button:hover, .c2p-list button:focus-visible{ background:rgba(var(--fg-rgb,255,255,255),.07); outline:none; }
.c2p-list button[aria-selected="true"]{ background:rgba(var(--a1-rgb,252,18,131),.12); }
.c2p-list b{ font-weight:600; min-width:74px; }
.c2p-list small{ font-size:11.5px; color:var(--ink-3,#7a7a82); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@keyframes c2pIn{ from{ opacity:0; transform:translateY(-4px) scale(.98); } }
/* Écrans moyens : on garde le nom de l'annonce, on retire les libellés */
@media (max-width:1440px){ #chestShell .c2n__k, #chestShell .c2p__k{ display:none; } }
/* Téléphone : mêmes infos, plus compactes (pas plus grosses) */
@media (max-width:760px){
  #chestShell .c2n, #chestShell .c2p{ height:32px; border-radius:10px; font-size:12px; }
  #chestShell .c2n{ padding:0 9px; gap:6px; max-width:calc(100vw - 205px); }
  #chestShell .c2n__t{ font-size:10.5px; }
  #chestShell .c2p{ padding:0 7px 0 9px; gap:4px; }
  .c2p-list{ max-height:55vh; }
  .c2p-list button{ padding:10px; }
}
@media (prefers-reduced-motion:reduce){ .c2p-list{ animation:none; } #chestShell .c2p, #chestShell .c2p svg{ transition:none; } }
/* Téléphone : quand une page pose ses actions, le titre de la page (déjà visible dans le menu du bas) leur laisse la place */
@media (max-width:760px){
  #chestShell .c2-topbar:has(#c2PageActions:not([hidden]):not(:empty)) #crumb{ display:none !important; }
  #chestShell .c2-topbar:has(#c2PageActions:not([hidden]):not(:empty)) #c2PageActions{ max-width:calc(100vw - 104px) !important; margin-left:auto; }
  #chestShell #c2PageActions{ gap:6px !important; }
}
@media (max-width:760px){ #chestShell #c2PageActions .c2x-o{ display:none; } }
