/* WANTX — navigation V4 : dock (Profils · ENVIE · + · Messages · Moi) et feuille « Explorer WANTX ».
   Chargee apres wantx-final.css. Noir / graphite, blanc, jaune WANTX ; vert = en ligne uniquement. */
:root{
  --x-bg:#09090b; --x-panel:#111113; --x-row:#161618; --x-line:rgba(255,255,255,.1);
  --x-txt:#fff; --x-dim:rgba(255,255,255,.62); --x-yellow:#FFD60A; --x-ink:#0a0a0a;
  --x-dock-h:68px;
  --wx-dock-h:calc(var(--x-dock-h) + env(safe-area-inset-bottom,0px));
}

/* ---------------------------------------------------------------- dock */
.wx-xdock{
  position:fixed; z-index:60; left:0; right:0; bottom:0;
  display:grid; grid-template-columns:1fr 1fr 92px 1fr 1fr; align-items:stretch;
  height:calc(var(--x-dock-h) + env(safe-area-inset-bottom,0px));
  padding:0 6px env(safe-area-inset-bottom,0px);
  background:linear-gradient(180deg,#0f0f11,#08080a);
  border-top:1px solid var(--x-line);
}
.wx-xdock a{
  position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  min-width:0; padding:8px 2px 6px; color:var(--x-dim); text-decoration:none;
  font-weight:600;font-size:13px;line-height:1.1; letter-spacing:.01em; -webkit-tap-highlight-color:transparent;
}
.wx-xdock a svg{ width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.wx-xdock a.on{ color:var(--x-yellow); }
.wx-xdock .wx-dock-brand{width:26px;height:26px;object-fit:contain;flex-shrink:0}
.wx-xdock .wx-dock-avatar{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border-radius:50%;overflow:hidden;background:#25272b;border:1px solid #62666d;box-sizing:border-box}
.wx-xdock .wx-dock-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 30%}
.wx-xdock .wx-dock-avatar svg{width:22px;height:22px;stroke:#d9dce2;fill:none}
.wx-xdock a.on .wx-dock-avatar{border-color:var(--x-yellow)}
.wx-xdock a.on svg{ fill:rgba(255,214,10,.14); }
.wx-xdock .x-envie.on svg,.wx-xdock .x-envie svg{ stroke-width:1.9; }
.wx-xdock .x-slot{ pointer-events:none; }
.wx-xdock a:focus-visible,.wx-xfab:focus-visible,.x-close:focus-visible,.x-row:focus-visible{ outline:2px solid var(--x-yellow); outline-offset:2px; }
.wx-xdock .badge{
  position:absolute; top:4px; left:calc(50% + 6px); min-width:18px; height:18px; padding:0 5px; border-radius:9px;
  background:#E5173F; color:#fff; font:700 11px/18px inherit; font-family:inherit; text-align:center; font-style:normal; display:none;
}
.wx-xdock .badge.show{ display:block; }

/* ---------------------------------------------------------------- bouton + */
/* Mobile : 44px dans le dock, au-dessus du libellé « Créer ». Ne recouvre pas la grille. */
.wx-xfab{
  position:fixed; z-index:70; left:50%; transform:translateX(-50%);
  bottom:calc(env(safe-area-inset-bottom,0px) + 18px);
  width:44px; height:44px; max-width:44px; max-height:44px; border-radius:50%; border:0; padding:0; cursor:pointer;
  display:grid; place-items:center; background:var(--x-yellow); color:var(--x-ink);
  box-shadow:0 0 0 3px var(--x-bg), 0 6px 14px rgba(255,214,10,.22);
  transition:transform .16s ease, box-shadow .16s ease; -webkit-tap-highlight-color:transparent;
}
.wx-xfab:active{ transform:translateX(-50%) scale(.95); }
.wx-xfab svg{ grid-area:1/1; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.8; stroke-linecap:round; transition:opacity .14s ease, transform .2s ease; }
.wx-xfab .wx-fab-close{ opacity:0; transform:rotate(-90deg); }
.wx-xfab[aria-expanded="true"] .wx-fab-open{ opacity:0; transform:rotate(90deg); }
.wx-xfab[aria-expanded="true"] .wx-fab-close{ opacity:1; transform:none; }

/* ---------------------------------------------------------------- voile + feuille */
.wx-xveil{
  position:fixed; z-index:64; inset:0; background:rgba(0,0,0,.62); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.wx-xveil.is-open{ opacity:1; pointer-events:auto; }
.wx-xsheet{
  position:fixed; z-index:66; left:0; right:0; bottom:calc(var(--x-dock-h) + env(safe-area-inset-bottom,0px));
  max-height:calc(100dvh - var(--x-dock-h) - env(safe-area-inset-bottom,0px) - 24px); overflow-y:auto; overscroll-behavior:contain;
  padding:22px 16px 56px; border-radius:30px 30px 0 0;
  background:var(--x-panel); border:1px solid var(--x-line); border-bottom:0;
  box-shadow:0 -18px 50px rgba(0,0,0,.55);
  transform:translateY(24px); opacity:0; visibility:hidden; pointer-events:none;
  transition:transform .22s ease, opacity .18s ease, visibility 0s linear .22s;
}
.wx-xsheet:focus{ outline:0; }
.wx-xsheet.is-open{ transform:none; opacity:1; visibility:visible; pointer-events:auto; transition-delay:0s; }
.wx-xsheet::before{ content:""; position:absolute; top:8px; left:50%; width:44px; height:4px; margin-left:-22px; border-radius:2px; background:rgba(255,255,255,.22); }
.x-head{ display:flex; align-items:center; justify-content:space-between; margin:6px 0 14px; padding:0 4px; }
.x-head h2{ display:flex; align-items:center; gap:10px; margin:0; font-weight:800;font-size:21px;line-height:1; letter-spacing:.015em; color:var(--x-txt); text-transform:uppercase; }
.x-head h2 img{ height:27px; width:auto; display:block; }
.x-close{ width:48px; height:48px; border-radius:50%; border:1px solid var(--x-line); background:#202023; color:#fff; display:grid; place-items:center; cursor:pointer; padding:0; }
.x-close svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; }
.x-row{
  position:relative; display:grid; grid-template-columns:36px 1fr 22px; align-items:center; gap:14px;
  min-height:66px; margin:0 0 8px; padding:10px 16px; overflow:hidden;
  background:var(--x-row); border:1px solid rgba(255,255,255,.07); border-radius:16px; color:var(--x-txt); text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}
.x-row > *{ position:relative; z-index:1; }
.x-ico{ display:grid; place-items:center; color:var(--x-yellow); font-style:normal; }
.x-ico svg{ width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.x-row span{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.x-row b{ font-weight:700;font-size:18px;line-height:1.15; }
.x-row small{ font-weight:500;font-size:14px;line-height:1.25; color:var(--x-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.x-go{ width:20px; height:20px; fill:none; stroke:rgba(255,255,255,.45); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
html.wx-sheet-open body{ overflow:hidden; }

/* ---------------------------------------------------------------- pages : espace sous le dock */
html body.has-nav main.wrap{ padding-bottom:calc(var(--wx-dock-h) + 28px); }

/* ---------------------------------------------------------------- bureau */
@media (min-width:1000px){
  .wx-xdock{ display:none; }
  .wx-xfab{ display:none !important; }
  .wx-xsheet{ left:auto; right:28px; bottom:auto; top:80px; width:430px; max-height:calc(100dvh - 104px); border-radius:26px; border-bottom:1px solid var(--x-line); padding-bottom:18px; }
  .wx-xsheet::before{ display:none; }
  html body.has-nav main.wrap{ padding-bottom:48px; }
  html.wx-sheet-open body{ overflow:auto; }
}
@media (prefers-reduced-motion:reduce){
  .wx-xfab,.wx-xfab svg,.wx-xveil,.wx-xsheet{ transition-duration:.01ms !important; }
}

/* ---------------------------------------------------------------- invitation PWA : discrete
   Une petite carte, jamais une barre pleine largeur ; « Plus tard » devient une croix (7 jours de silence). */
html body .wx-install{
  left:12px !important; right:12px !important; width:auto !important; max-width:none;
  bottom:calc(var(--x-dock-h) + env(safe-area-inset-bottom,0px) + 10px) !important;
  padding:8px 8px 8px 14px !important; border:1px solid var(--x-line) !important; border-radius:14px !important;
  background:rgba(18,18,20,.96) !important; box-shadow:0 8px 24px rgba(0,0,0,.45);
  display:grid !important; grid-template-columns:minmax(0,1fr) auto 38px; align-items:center; column-gap:8px; row-gap:0; z-index:58;
}
html body .wx-install>b{ grid-column:1; grid-row:1; font-size:13.5px; font-weight:700; line-height:1.25; }
html body .wx-install>p{ display:none; }
html body .wx-install>.wx-install-go{ grid-column:2; grid-row:1; min-height:36px !important; padding:0 14px !important; font-size:13px !important; border-radius:10px !important; }
html body .wx-install .wx-install-close{
  grid-column:3 !important; grid-row:1 !important; justify-self:auto !important; margin:0 !important;
  width:38px; min-height:38px !important; padding:0 !important; border:0 !important; border-radius:10px !important;
  position:relative !important; overflow:hidden; white-space:nowrap; text-indent:-9999px; color:transparent !important; font-size:1px !important;
}
html body .wx-install .wx-install-close::before{ content:"\00d7"; text-indent:0; color:rgba(255,255,255,.65); font-size:24px; line-height:1; font-weight:400; position:absolute; inset:0; display:grid; place-items:center; }
html body:has(.wx-install:not([hidden]))::after,
html body.has-nav:has(.wx-install:not([hidden]))::after{ height:0 !important; }
@media (min-width:1000px){
  html body .wx-install{ left:24px !important; right:auto !important; width:380px !important; bottom:24px !important; }
}/* Navigation V4 : le viewport determine seul mobile/bureau. */
@media(min-width:1000px){html body.has-nav header.topbar{display:flex!important}html body.has-nav header.topbar .desk-nav{display:flex!important}html body.has-nav .wx-xdock{display:none!important}}
@media(max-width:999px){html body.has-nav .wx-xdock{display:grid!important}html body.has-nav header.topbar .desk-nav{display:none!important}}

/* ---------------------------------------------------------------- Fil WANTX + bouton + flottant de la page Profils */
.x-row.is-featured{ border-color:rgba(255,95,162,.55); background:linear-gradient(90deg,rgba(255,95,162,.16),var(--x-row) 70%); }
.x-row.is-featured .x-ico{ color:#ff5fa2; }
.wx-pfab{
  position:fixed; z-index:58; right:16px; bottom:calc(var(--x-dock-h) + 16px + env(safe-area-inset-bottom,0px));
  min-width:56px; height:56px; padding:0 18px 0 14px; border-radius:28px; border:0; cursor:pointer;
  display:inline-flex; align-items:center; gap:8px; background:var(--x-yellow); color:var(--x-ink);
  font:700 15px/1 inherit; font-family:inherit; box-shadow:0 8px 22px rgba(0,0,0,.4); -webkit-tap-highlight-color:transparent;
}
.wx-pfab svg{ width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; }
.wx-pfab:focus-visible{ outline:3px solid #ff5fa2; outline-offset:2px; }
.wx-pfab[aria-expanded="true"]{ opacity:0; pointer-events:none; }
/* Le contenu de la page ne passe jamais sous le bouton flottant. */
body.wx-has-pfab main.wrap{ padding-bottom:calc(var(--wx-dock-h) + 92px); }
@media (min-width:1000px){ .wx-pfab{ display:none; } }