/* WANTX UX 2 : systeme visuel unique (themes NUIT / CLAIR / AUTO), navigation, Moi, Parametres, photo, Fil, Mec du jour.
   Charge en dernier : redefinit les variables historiques (--bg, --card, --ink, --x-*) pour que toutes les pages suivent le theme.
   Regles : graphite lisible, cartes nuancees, ROSE = interactions sociales, JAUNE = action prioritaire unique. */

/* ------------------------------------------------------------------ tokens */
:root { --x-dock-h: 64px; --wx-dock-h: calc(var(--x-dock-h) + env(safe-area-inset-bottom, 0px)); --ux-r: 18px; --ux-ease: cubic-bezier(.2, .8, .2, 1); }
html[data-theme="standard"], html:not([data-theme]) {
  --ux-bg: #15171c; --ux-bg2: #1b1e24; --ux-card: #22262d; --ux-card2: #2b3039; --ux-line: rgba(255, 255, 255, .11);
  --ux-ink: #f4f5f7; --ux-dim: #adb4c1; --ux-pink: #ff5fa2; --ux-yellow: #ffd60a; --ux-on-yellow: #15171c; --ux-dock: rgba(27, 30, 36, .94);
  --ux-shadow: 0 10px 28px rgba(0, 0, 0, .38); --ux-green: #35d58b; --ux-violet: #b794ff; --ux-blue: #6fb4ff; color-scheme: dark;
}
html[data-theme="azur"] {
  --ux-bg: #f3f1ec; --ux-bg2: #ece9e2; --ux-card: #ffffff; --ux-card2: #f6f3ee; --ux-line: rgba(26, 32, 48, .14);
  --ux-ink: #1a2030; --ux-dim: #566074; --ux-pink: #d4286f; --ux-yellow: #f5c400; --ux-on-yellow: #1a1d23; --ux-dock: rgba(255, 255, 255, .95);
  --ux-shadow: 0 8px 22px rgba(26, 32, 48, .13); --ux-green: #0b7a49; --ux-violet: #6a43c9; --ux-blue: #1f66b8; color-scheme: light;
}
html[data-theme="standard"], html[data-theme="azur"], html:not([data-theme]) {
  --bg: var(--ux-bg); --bg2: var(--ux-bg2); --card: var(--ux-card); --ink: var(--ux-ink); --muted: var(--ux-dim); --line: var(--ux-line);
  --x-bg: var(--ux-bg2); --x-panel: var(--ux-card); --x-row: var(--ux-card2); --x-line: var(--ux-line); --x-txt: var(--ux-ink); --x-dim: var(--ux-dim);
  --x-yellow: var(--ux-yellow); --x-ink: var(--ux-on-yellow);
}
html[data-theme="azur"] { --gold: #8f6500; --gold-hover: #6f4e00; }
html[data-theme="standard"] { --gold: var(--ux-yellow); --gold-hover: #ffe45c; }
html[data-theme] body, html[data-theme] body.has-nav { background: var(--ux-bg) !important; color: var(--ux-ink); }
html[data-theme="azur"] a:not([class]) { color: #8f6500; }
html[data-theme="azur"] .btn.gold, html[data-theme="azur"] .wxfil-submit { background: var(--ux-yellow); color: var(--ux-on-yellow); }
html[data-theme="azur"] .btn.ghost { background: var(--ux-card); color: var(--ux-ink); border-color: var(--ux-line); }
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } body { transition: background-color .25s ease, color .25s ease; } }

/* ------------------------------------------------------------------ entete */
html body .topbar { background: var(--ux-bg); border-bottom: 1px solid var(--ux-line); backdrop-filter: blur(12px); }
html body.has-nav .desk-nav .desk-explore {
  appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center;
  margin: 0; padding: 25px 2px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: #e6e9ed; font: inherit; font-weight: 700; font-size: 13px;
  cursor: pointer; line-height: inherit;
}
html body.has-nav .desk-nav .desk-explore:hover,
html body.has-nav .desk-nav .desk-explore[aria-expanded="true"] { color: var(--ux-yellow); border-bottom-color: var(--ux-yellow); }
html body.has-nav .desk-nav .desk-explore:focus-visible { outline: 2px solid var(--ux-yellow); outline-offset: 2px; }
html[data-theme="azur"] body .topbar { background: #1b1e24; border-bottom-color: #1b1e24; color: #fff; }
html[data-theme="azur"] body .topbar a, html[data-theme="azur"] body .topbar .wx-mobile-menu { color: #fff; }
html body .wx-mobile-notify, html body .wx-mobile-menu { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }

/* ------------------------------------------------------------------ barre inferieure */
html body .wx-xdock { height: calc(var(--x-dock-h) + env(safe-area-inset-bottom, 0px)); grid-template-columns: 1fr 1fr 78px 1fr 1fr; background: var(--ux-dock); border-top: 1px solid var(--ux-line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 0 4px env(safe-area-inset-bottom, 0px); }
html body .wx-xdock a { min-height: 56px; min-width: 56px; gap: 3px; padding: 8px 2px 6px; font-size: 12px; font-weight: 700; color: var(--ux-dim); transition: color .15s ease, transform .15s var(--ux-ease); }
html body .wx-xdock a svg { width: 27px; height: 27px; stroke-width: 2; transition: transform .2s var(--ux-ease), fill .2s ease; }
html body .wx-xdock a:active svg { transform: scale(.88); }
html body .wx-xdock a.on { color: var(--ux-ink); }
html body .wx-xdock a.on svg { color: var(--ux-pink); fill: rgba(255, 95, 162, .16); transform: translateY(-1px); }
html body .wx-xdock a.on::before { content: ""; position: absolute; top: 0; left: 50%; width: 26px; height: 3px; margin-left: -13px; border-radius: 0 0 4px 4px; background: var(--ux-pink); }
html body .wx-xdock .dock-msg svg.dock-ico { width: 28px; height: 28px; color: var(--ux-ink); stroke-width: 2.1; }
html body .wx-xdock .dock-msg.on svg.dock-ico { color: var(--ux-pink); }
html body .wx-xdock .badge { top: 3px; left: calc(50% + 7px); min-width: 19px; height: 19px; line-height: 19px; background: var(--ux-pink); color: #fff; box-shadow: 0 0 0 2px var(--ux-dock); }
html body .wx-xdock .wx-dock-avatar { width: 30px; height: 30px; border: 2px solid var(--ux-line); background: var(--ux-card2); }
html body .wx-xdock a.on .wx-dock-avatar { border-color: var(--ux-pink); }
html body .wx-xdock .x-slot { position: relative; }
html body .wx-xdock .x-slot::after { content: "Créer"; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-family: inherit; font-weight: 700; font-size: 12px; line-height: 1; color: var(--ux-dim); }
/* + : 44px dans le dock (18px au-dessus du bas, au-dessus de « Créer »). Ne recouvre pas le contenu. */
html body.has-nav button.wx-xfab { width: 44px; height: 44px; max-width: 44px; max-height: 44px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); left: 50%; right: auto; transform: translateX(-50%);
  background: var(--ux-yellow); color: var(--ux-on-yellow);
  box-shadow: 0 0 0 3px var(--ux-dock), 0 4px 10px rgba(0, 0, 0, .25); transition: transform .18s var(--ux-ease), box-shadow .18s ease; }
html body.has-nav button.wx-xfab svg { width: 22px; height: 22px; stroke-width: 2.8; }
html body.has-nav button.wx-xfab.is-tucked { transform: translateX(-50%) scale(1); }
html body.has-nav button.wx-xfab:active { transform: translateX(-50%) scale(.92); }
html body.has-nav button.wx-xfab[aria-expanded="true"] { background: var(--ux-pink); color: #fff; }
html body.has-nav main.wrap { padding-bottom: calc(var(--wx-dock-h) + 24px); }
.wx-pfab { display: none !important; }
@media (min-width: 1000px) {
  /* PC : le + flottant recouvre les cartes. Explorer est dans le header. */
  html body.has-nav button.wx-xfab { display: none !important; }
  html body.has-nav .wx-xsheet { left: auto; right: 24px; bottom: auto; top: 80px; width: 430px; max-height: calc(100dvh - 104px); border-radius: 26px; border-bottom: 1px solid var(--ux-line); padding-bottom: 18px; }
}

/* feuille Explorer */
html body .wx-xsheet { background: var(--ux-card); border-color: var(--ux-line); box-shadow: var(--ux-shadow); }
html body .x-row { min-height: 60px; background: var(--ux-card2); border-color: var(--ux-line); transition: transform .15s var(--ux-ease), border-color .15s ease; }
html body .x-row:active { transform: scale(.985); }
html body .x-row b { font-size: 17px; }
html body .x-ico { color: var(--ux-ink); }
html body .x-row.i-envie .x-ico, html body .x-row.i-fil .x-ico, html body .x-row.i-salon .x-ico, html body .x-row.i-motd .x-ico { color: var(--ux-pink); }
html body .x-row.is-featured { border-color: var(--ux-pink); background: linear-gradient(90deg, rgba(255, 95, 162, .18), var(--ux-card2) 72%); }
html body .x-head h2 { color: var(--ux-ink); }
html[data-theme="azur"] body .x-head h2 img { filter: brightness(.25); }
html body .x-close { background: var(--ux-card2); color: var(--ux-ink); border-color: var(--ux-line); min-width: 48px; min-height: 48px; }

/* bandeau d'installation : une ligne compacte au-dessus de la barre, jamais un bloc geant */
html body .wantx-install-panel { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; margin: 0 0 12px; padding: 10px 12px; grid-template-columns: 30px minmax(0, 1fr) auto 36px; gap: 10px; align-items: center; border-radius: 16px;
  background: var(--ux-card); border-color: var(--ux-line); color: var(--ux-ink); box-shadow: var(--ux-shadow); z-index: 20; }
html body .wantx-install-panel > img { width: 30px; height: 30px; }
html body .wantx-install-copy b { font-size: 15px; color: var(--ux-ink); }
html body .wantx-install-copy p { display: none; }
html body .wantx-install-actions { grid-column: auto; flex-wrap: nowrap; }
html body .wantx-install-actions button { min-height: 44px; padding: 8px 12px; font-size: 14px; border-radius: 12px; }
html body .wantx-install-actions button:not(.wantx-install-later) { background: var(--ux-yellow); color: var(--ux-on-yellow); border-color: var(--ux-yellow); }
html body .wantx-install-actions .wantx-install-later { background: transparent; color: var(--ux-dim); border-color: var(--ux-line); }
html body .wantx-install-close { grid-column: 4; grid-row: 1; width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ux-dim); font-size: 22px; line-height: 1; cursor: pointer; }
html body .wantx-install-help { grid-column: 1 / -1; }
html body .wantx-install-help li { color: var(--ux-ink); }
html.wx-sheet-open .wantx-install-panel,
html body:has(.wx-citypick[open]) .wantx-install-panel { display: none !important; }
@media (min-width: 1000px) {
  html body .wantx-install-panel { max-width: 420px; }
  html body .x-row { min-height: 52px; }
}

/* ------------------------------------------------------------------ retours : messages flash et relance photo */
html body .flash { background: var(--ux-card); border: 1px solid var(--ux-line); border-left: 4px solid var(--ux-pink); color: var(--ux-ink); border-radius: 14px; padding: 12px 14px; animation: wx-in .3s var(--ux-ease); }
.wx-nudge { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; margin: 0 0 12px; border-radius: 14px; background: var(--ux-card); border: 1px solid var(--ux-line); color: var(--ux-ink) !important; text-decoration: none; }
.wx-nudge-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ux-pink); flex: none; }
.wx-nudge-go { margin-left: auto; font-size: 22px; color: var(--ux-dim); }
@keyframes wx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ icones et puces communes */
.uxm-ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.uxm-go { display: grid; place-items: center; color: var(--ux-dim); margin-left: auto; } .uxm-go .uxm-ico { width: 20px; height: 20px; }
.uxm-sec { margin: 22px 2px 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ux-dim); font-weight: 800; }
.wx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.wx-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--ux-card2); color: var(--ux-ink); border: 1px solid var(--ux-line); }
.wx-chip.is-ok { color: var(--ux-green); border-color: currentColor; } .wx-chip.is-wait { color: var(--ux-yellow); border-color: currentColor; } .wx-chip.is-todo { color: var(--ux-pink); border-color: currentColor; }
html[data-theme="azur"] .wx-chip.is-wait { color: #8f6500; }

/* ------------------------------------------------------------------ Moi : tableau de bord */
.wx-moi { padding-top: 6px; }
.wx-moi-card { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 22px; background: linear-gradient(135deg, var(--ux-card2), var(--ux-card)); border: 1px solid var(--ux-line); box-shadow: var(--ux-shadow); animation: wx-in .35s var(--ux-ease); }
.wx-moi-av { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ux-bg2); border: 3px solid var(--ux-pink); }
.wx-moi-av img { width: 100%; height: 100%; object-fit: cover; } .wx-moi-av svg { width: 62%; fill: var(--ux-dim); }
.wx-moi-id { min-width: 0; } .wx-moi-id h1 { margin: 0; font-size: 24px; line-height: 1.1; color: var(--ux-ink); overflow-wrap: anywhere; } .wx-moi-id p { margin: 4px 0 0; color: var(--ux-dim); font-size: 14px; }
.wx-progress { height: 8px; margin: 12px 4px 0; border-radius: 99px; background: var(--ux-card2); overflow: hidden; } .wx-progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ux-pink), var(--ux-yellow)); transition: width .6s var(--ux-ease); }
.wx-moi-todo { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 14px; min-height: 60px; border-radius: 16px; background: rgba(255, 95, 162, .14); border: 1px solid var(--ux-pink); color: var(--ux-ink) !important; text-decoration: none; }
.wx-moi-todo.is-soft { background: var(--ux-card); border-color: var(--ux-line); } .wx-moi-todo .uxm-ico { color: var(--ux-pink); width: 28px; height: 28px; }
.wx-moi-todo span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; } .wx-moi-todo small, .uxm-tile small, .wx-prow small, .wx-moi-settings small { color: var(--ux-dim); font-size: 13px; }
.wx-moi-ok { display: flex; align-items: center; gap: 8px; margin: 12px 4px 0; color: var(--ux-green); font-weight: 700; }
.wx-moi-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin: 14px 0 0; } .wx-moi-actions .btn { min-height: 48px; display: grid; place-items: center; text-align: center; }
.uxm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uxm-tile { position: relative; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px; border-radius: 16px; background: var(--ux-card); border: 1px solid var(--ux-line); color: var(--ux-ink) !important; text-decoration: none; transition: transform .15s var(--ux-ease), border-color .15s ease; overflow: hidden; }
.uxm-tile:active { transform: scale(.97); } .uxm-tile:focus-visible, .wx-prow:focus-visible, .wx-moi-todo:focus-visible, .wx-moi-settings:focus-visible { outline: 3px solid var(--ux-pink); outline-offset: 2px; }
.uxm-tile-ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--ux-card2); color: var(--ux-ink); }
.uxm-tile-txt { display: flex; flex-direction: column; min-width: 0; } .uxm-tile b { font-size: 15px; line-height: 1.2; }
.uxm-tile.is-pink .uxm-tile-ico { background: rgba(255, 95, 162, .18); color: var(--ux-pink); } .uxm-tile.is-hot .uxm-tile-ico { background: rgba(255, 120, 60, .18); color: #ff7a3c; }
.uxm-tile.is-gold .uxm-tile-ico { background: rgba(255, 214, 10, .2); color: #c99a00; } .uxm-tile.is-violet .uxm-tile-ico { background: rgba(183, 148, 255, .2); color: var(--ux-violet); }
.uxm-tile.is-green .uxm-tile-ico { background: rgba(53, 213, 139, .18); color: var(--ux-green); } .uxm-tile.is-blue .uxm-tile-ico { background: rgba(111, 180, 255, .2); color: var(--ux-blue); }
.wx-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .wx-feats .uxm-tile { flex-direction: column; align-items: flex-start; min-height: 112px; justify-content: space-between; padding: 14px; }
.wx-feats .uxm-tile:first-child { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 84px; background: linear-gradient(120deg, rgba(255, 214, 10, .2), var(--ux-card) 70%); border-color: rgba(255, 214, 10, .45); }
.wx-feats .uxm-tile.is-violet { background: linear-gradient(150deg, rgba(183, 148, 255, .2), var(--ux-card) 80%); } .wx-feats .uxm-tile.is-pink { background: linear-gradient(150deg, rgba(255, 95, 162, .18), var(--ux-card) 80%); }
.wx-moi-settings, .wx-prow { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 14px; border-radius: 16px; background: var(--ux-card); border: 1px solid var(--ux-line); color: var(--ux-ink) !important; text-decoration: none; width: 100%; text-align: left; }
.wx-moi-settings > span:nth-child(2), .wx-prow > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; } .wx-prow-ico { color: var(--ux-ink); }
.wx-plist { display: grid; gap: 8px; } .wx-plist-out { margin-top: 18px; } .wx-plist-out .wx-prow { color: var(--ux-pink) !important; }
.wx-params h1 { margin: 6px 2px 4px; font-size: 26px; color: var(--ux-ink); } .wx-lead { margin: 0 2px; color: var(--ux-dim); }
html body .wantx-install-entry { min-height: 48px; border-radius: 14px; }
@media (min-width: 900px) { .wx-moi, .wx-params { max-width: 640px; margin-inline: auto; } }

/* ------------------------------------------------------------------ photo de profil */
.wx-photo-req { max-width: 560px; margin: 0 auto; } .wx-photo-req h1 { margin: 6px 2px 12px; }
.wx-photo-status { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--ux-card); border: 1px solid var(--ux-line); }
.wx-photo-status p { margin: 2px 0 0; color: var(--ux-dim); font-size: 14px; } .wx-photo-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--ux-pink); }
.wx-photo-status.is-pending .wx-photo-dot { background: var(--ux-yellow); animation: wx-pulse 1.8s ease-out infinite; } .wx-photo-status.is-approved .wx-photo-dot { background: var(--ux-green); }
.uxm-photo-preview { width: 100%; max-height: 52vh; object-fit: cover; border-radius: 18px; margin: 12px 0; }
.wx-photo-steps { list-style: none; display: grid; gap: 8px; margin: 14px 0; padding: 0; counter-reset: s; }
.wx-photo-steps li { counter-increment: s; display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 12px; background: var(--ux-card); color: var(--ux-dim); border: 1px solid var(--ux-line); }
.wx-photo-steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ux-card2); font-weight: 800; font-size: 13px; }
.wx-photo-steps li.is-now { color: var(--ux-ink); border-color: var(--ux-pink); } .wx-photo-steps li.is-now::before { background: var(--ux-pink); color: #fff; }
.wx-photo-steps li.is-done { color: var(--ux-ink); } .wx-photo-steps li.is-done::before { content: "✓"; background: var(--ux-green); color: #fff; }
.wx-photo-form { display: grid; gap: 12px; } .wx-photo-pick { position: relative; display: grid; gap: 4px; place-items: center; text-align: center; min-height: 132px; padding: 18px; border-radius: 18px; border: 2px dashed var(--ux-pink); background: var(--ux-card); cursor: pointer; }
.wx-photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; } .wx-photo-pick b { font-size: 18px; } .wx-photo-pick small { color: var(--ux-dim); }
.wx-photo-note { color: var(--ux-dim); font-size: 13px; margin-top: 14px; }
@keyframes wx-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 214, 10, .55); } 100% { box-shadow: 0 0 0 10px rgba(255, 214, 10, 0); } }

/* ------------------------------------------------------------------ apparence */
.wx-theme-picks { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; } .wx-theme-picks legend { font-weight: 800; margin-bottom: 8px; }
.wx-theme-pick { position: relative; display: block; } .wx-theme-pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.wx-theme-card { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; min-height: 76px; padding: 12px; border-radius: 16px; background: var(--ux-card); border: 2px solid var(--ux-line); transition: border-color .15s ease, transform .15s var(--ux-ease); }
.wx-theme-card .wx-sw { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--ux-line); } .wx-theme-card b { font-size: 17px; } .wx-theme-card small { color: var(--ux-dim); }
.wx-theme-pick input:checked + .wx-theme-card { border-color: var(--ux-pink); box-shadow: 0 0 0 3px rgba(255, 95, 162, .25); } .wx-theme-pick input:focus-visible + .wx-theme-card { outline: 3px solid var(--ux-pink); outline-offset: 2px; }
.wx-sw.sw-nuit { background: linear-gradient(135deg, #15171c 55%, #ffd60a 56%); } .wx-sw.sw-clair { background: linear-gradient(135deg, #f3f1ec 55%, #f5c400 56%); } .wx-sw.sw-auto { background: linear-gradient(135deg, #15171c 50%, #f3f1ec 50%); }
.wx-hint { color: var(--ux-dim); font-size: 13px; margin: 10px 2px 14px; }

/* ------------------------------------------------------------------ reactions Fil (lisibles et espacees sur Android) */
.wxfil-react summary { width: 48px; height: 48px; background: var(--ux-card2); border-color: var(--ux-line); color: var(--ux-ink); }
.wxfil-react[open] summary { background: var(--ux-pink); border-color: var(--ux-pink); color: #fff; }
.wxfil-fan { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; width: min(94vw, 352px); background: var(--ux-card); border-color: var(--ux-line); box-shadow: var(--ux-shadow); animation: wx-in .18s var(--ux-ease); }
.wxfil-r { min-height: 68px; gap: 4px; font-size: .72rem; line-height: 1.1; text-align: center; color: var(--ux-ink); border-radius: 14px; transition: transform .12s var(--ux-ease), background .12s ease; }
.wxfil-r:active { transform: scale(.9); } .wxfil-r.is-pop { animation: wx-pop .35s var(--ux-ease); }
.wxfil-ico { width: 26px; height: 26px; stroke-width: 1.9; }
html[data-theme="azur"] .wxfil-ico-fetish { color: #444c5c; } html[data-theme="azur"] .wxfil-ico-sexchem .wxfil-mound, html[data-theme="azur"] .wxfil-ico-sexchem .wxfil-straw { stroke: #8892a4; } html[data-theme="azur"] .wxfil-ico-sexchem .wxfil-mound { fill: #fff; }
html[data-theme="azur"] .wxfil-ico-verre { color: #1f66b8; } html[data-theme="azur"] .wxfil-ico-club { color: #6a43c9; } html[data-theme="azur"] .wxfil-ico-coeur, html[data-theme="azur"] .wxfil-ico-flamme, html[data-theme="azur"] .wxfil-ico-pig { color: #d4286f; }
.wxfil-chip { min-height: 32px; gap: 5px; background: var(--ux-card2); } .wxfil-chip .wxfil-ico { width: 20px; height: 20px; }
@keyframes wx-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ------------------------------------------------------------------ Mec du jour : coeurs de notation */
.wxmec-vote { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 6px; align-items: stretch; margin: 12px 0 6px; }
.wxmec-vote button { min-height: 64px; border-radius: 16px; border: 1px solid var(--ux-line); background: var(--ux-card2); color: var(--ux-ink); display: grid; place-items: center; gap: 0; padding: 4px; transition: transform .14s var(--ux-ease), background .14s ease; }
.wxmec-vote button[value="0"] { grid-column: 6; grid-row: 1; min-width: 56px; font-size: 13px; color: var(--ux-dim); }
.wxmec-vote button:not([value="0"]) .wxmec-heart { width: 34px; height: 34px; }
.wxmec-vote button:not([value="0"]) span { font-size: 12px; font-weight: 800; color: var(--ux-dim); }
.wxmec-vote button.is-lit .wxmec-heart, .wxmec-vote button.is-mine .wxmec-heart { fill: var(--ux-pink); } .wxmec-vote button:active { transform: scale(.9); }
.wxmec-vote button.is-mine { background: rgba(255, 95, 162, .2); border-color: var(--ux-pink); }
.wxmec-heart { stroke: var(--ux-pink); } .wxmec-heart.is-on { fill: var(--ux-pink); }
.wxmec-card { background: var(--ux-card); border-color: var(--ux-line); border-radius: 22px; box-shadow: var(--ux-shadow); } .wxmec-photo { max-height: 56vh; }

/* ------------------------------------------------------------------ Fil : composeur avec photos de l'appareil */
.wxfil-addphoto { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; min-height: 64px; padding: 10px 12px; border-radius: 16px; border: 2px dashed var(--ux-pink); background: var(--ux-card2); cursor: pointer; }
.wxfil-addphoto input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.wxfil-addphoto .uxm-ico { width: 30px; height: 30px; color: var(--ux-pink); justify-self: center; } .wxfil-addphoto b { display: block; } .wxfil-addphoto small { color: var(--ux-dim); }
.wxfil-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; } .wxfil-previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; animation: wx-in .25s var(--ux-ease); }
html body .wxfil-submit, html body .btn.gold { transition: transform .12s var(--ux-ease), box-shadow .15s ease; } html body .wxfil-submit:active, html body .btn.gold:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* Couche --wx-* (wantx-final.css) : memes valeurs que les themes ; fond de page unifie. */
html[data-theme="standard"], html:not([data-theme]) { --wx-dim: rgba(255,255,255,.68); --wx-dim-2: rgba(255,255,255,.46); --wx-hair: rgba(255,255,255,.11); --wx-hair-2: rgba(255,255,255,.18); }
html[data-theme="azur"] { --wx-dim: rgba(26,32,48,.70); --wx-dim-2: rgba(26,32,48,.52); --wx-hair: rgba(26,32,48,.12); --wx-hair-2: rgba(26,32,48,.20); }
html[data-theme] { --wx-ink: var(--ux-bg); --wx-ink-2: var(--ux-bg2); --wx-ink-3: var(--ux-card); --wx-pure: var(--ux-ink); --wx-act: var(--ux-yellow); --wx-desire: var(--ux-pink); --wx-desire-soft: var(--ux-pink); }
html[data-theme] body.has-nav:not(.wantx-landing):not(.admin-body):not(.wx-x), html[data-theme] body.page-home:not(.wantx-landing):not(.admin-body):not(.wx-x), html[data-theme] body.wx-home:not(.wantx-landing):not(.admin-body):not(.wx-x) {
  background-color: var(--ux-bg) !important; background-image: none !important; color: var(--ux-ink); }
html body .uxm-tile b, html body .wx-moi-todo b, html body .wx-prow b, html body .wx-moi-settings b { color: var(--ux-ink); }
html body .uxm-tile small, html body .wx-moi-todo small, html body .wx-prow small, html body .wx-moi-settings small { color: var(--ux-dim); }
html body .wx-moi-id h1, html body .wx-params h1 { color: var(--ux-ink); }
html body .wxfil-field textarea, html body .wxfil-composer input[type=file] { background: var(--ux-bg2); color: var(--ux-ink); border-color: var(--ux-line); }
html body .wxfil-field textarea::placeholder { color: var(--ux-dim); opacity: .85; }
html body .wxfil-pick summary { font-size: .95rem; font-weight: 700; color: var(--ux-dim); min-height: 48px; }
html body .wxfil-card, html body .wxfil-new, html body .wxfil-empty, html body .wxfil-offline { border-radius: var(--ux-r); box-shadow: var(--ux-shadow); }
html body .wxfil-hero h1 { font-size: 1.7rem; }
html body .wxfil-tabs a { background: var(--ux-card); border-color: var(--ux-line); color: var(--ux-ink); transition: transform .12s var(--ux-ease); } html body .wxfil-tabs a:active { transform: scale(.96); }

/* CLAIR : les cartes volontairement sombres de l'application (photos, hero, bandeaux) restent sombres avec texte clair, lisibles sur fond ivoire. */
html[data-theme="azur"] :is(a.v4-photo, .wxd-editorial, .wx-univ a, a.cta-now, .wxm-pulse, .wxf-hero, .wx-citymenu, .hn-status, .ev-hero, .ev-bridge-hot, .c-intro, .c-exo, details.c-card, .c-end, a.health-entry, .wx-pro-hero, button.wantx-install-entry, .wx-prow.wantx-install-entry, .wx-set-more, .wxd-filters summary, .wxd-filter-panel) {
  --wx-pure: #fff; --wx-dim: rgba(255,255,255,.72); --wx-dim-2: rgba(255,255,255,.55); --ink: #fff; --muted: rgba(255,255,255,.74); color: #fff; }
html[data-theme="azur"] :is(a.v4-photo, .wxd-editorial, .wx-univ a, .wxm-pulse, .wxf-hero, .wx-citymenu, .hn-status, .ev-hero, .ev-bridge-hot, .c-intro, .c-exo, details.c-card, .c-end, .wx-pro-hero, button.wantx-install-entry, .wx-prow.wantx-install-entry) :is(b, strong, h1, h2, h3, p, span, small, label, li) { color: inherit; }
html[data-theme="azur"] :is(a.v4-photo, .wxd-editorial, .wx-univ a, .wxm-pulse, .wxf-hero, .wx-citymenu, .hn-status, .ev-hero, .ev-bridge-hot, .c-intro, .c-exo, details.c-card, .c-end, .wx-pro-hero) :is(small, .muted, .lead-set) { color: rgba(255,255,255,.74); }
html[data-theme="azur"] :is(.wxm-pulse, .wxf-hero, .wx-citymenu, .ev-hero, .c-intro, .c-exo, .c-end) a:not(.btn) { color: #ffd60a; }
html[data-theme="azur"] a.cta-now { background: #1b1e24; color: #ffd60a; }
html[data-theme="azur"] button.wantx-install-entry, html[data-theme="azur"] .wx-prow.wantx-install-entry { background: #1b1e24; color: #fff; border-color: #1b1e24; }
html[data-theme="azur"] main a.on, html[data-theme="azur"] main a.wxs-propose, html[data-theme="azur"] main a.wxs-propose span { color: #1a1d23 !important; }
html[data-theme="azur"] .wx-app-footer-brand img { filter: none; }

/* CLAIR : correctifs de lisibilite (ilots sombres : texte clair force ; cartes sombres d'origine passees en clair). */
html[data-theme="azur"] :is(a.v4-photo, .wxd-editorial, .wx-univ a, .wxm-pulse, .wxf-hero, .wx-citymenu, .hn-status, .ev-hero, .ev-bridge-hot, .c-intro, .c-exo, details.c-card, .c-end, .wx-pro-hero, a.health-entry, a.cta-now, button.wantx-install-entry, .wx-prow.wantx-install-entry) :is(b, strong, h1, h2, h3, h4, p, span, small, li, em):not(.btn) { color: #fff !important; }
html[data-theme="azur"] :is(.wxm-pulse, .wxf-hero, .wx-citymenu, .ev-hero, .c-intro, .c-exo, .c-end) a:not(.btn), html[data-theme="azur"] a.cta-now, html[data-theme="azur"] a.health-entry { color: #ffd60a !important; }
html[data-theme="azur"] :is(small, .muted) { --_d: 1; }
html[data-theme="azur"] :is(article.legal-page, section.wx-photo-card, div.sheet-card, label.display-opt, fieldset.display-opts, .empty-box, article.health-card, a.health-card, p.health-note, a.health-screen, header.wx-compat-intro, header.wxc-hero, .wx-compat-intro) {
  background: var(--ux-card) !important; color: var(--ux-ink) !important; border-color: var(--ux-line) !important; }
html[data-theme="azur"] :is(article.legal-page, section.wx-photo-card, div.sheet-card, label.display-opt, fieldset.display-opts, .empty-box, article.health-card, a.health-card, p.health-note, a.health-screen, header.wx-compat-intro, header.wxc-hero) :is(h1, h2, h3, h4, p, li, b, strong, legend, label, em):not(.btn) { color: var(--ux-ink) !important; }
html[data-theme="azur"] :is(article.legal-page, section.wx-photo-card, div.sheet-card, label.display-opt, fieldset.display-opts, .empty-box, article.health-card, a.health-card, p.health-note, header.wx-compat-intro, header.wxc-hero) :is(small, .muted, span:not(.health-ico)) { color: var(--ux-dim) !important; }
html[data-theme="azur"] :is(article.legal-page, header.wx-compat-intro, header.wxc-hero, .empty-box) a:not(.btn):not(.wxc-cta) { color: #8f6500 !important; }
html[data-theme="azur"] a.wxc-cta, html[data-theme="azur"] a.wxc-cta * { color: #1a1d23 !important; }
html[data-theme="azur"] .wx-pro-hero :is(small, p, .muted) { color: rgba(255,255,255,.82) !important; }
html[data-theme="azur"] fieldset.display-opts legend, html[data-theme="azur"] legend { color: var(--ux-ink); }
html[data-theme="azur"] :is(a.v4-chip) { color: #fff !important; } html[data-theme="azur"] a.v4-chip.is-dispo { color: #1a1d23 !important; }
html[data-theme="azur"] a.wx-citymenu-on, html[data-theme="azur"] .wx-citymenu a.on { background: #ffd60a; color: #1a1d23 !important; }

html[data-theme="azur"] body .wx-app-footer, html[data-theme="azur"] body .wx-app-footer :is(small, span, p, a, b) { color: var(--ux-dim) !important; background-color: transparent; }
html[data-theme="azur"] body .wx-app-footer-brand img { filter: brightness(.3); }
html[data-theme="azur"] body .wxfil-link { color: #8f6500; } html[data-theme="azur"] body .wxfil-danger { color: #b3261e; }
html[data-theme="azur"] body .wxm-guide-badge { color: #1a1d23 !important; } html[data-theme="azur"] body .wx-photo-badge { color: #fff !important; }
html[data-theme="azur"] body :is(header.wx-compat-intro, header.wxc-hero) :is(h1, h2, h3, p, span, li, b, strong, small):not(.btn) { color: var(--ux-ink) !important; }
html[data-theme="azur"] body :is(header.wx-compat-intro, header.wxc-hero) :is(p.muted, small) { color: var(--ux-dim) !important; }
html[data-theme="azur"] body :is(a.v4-city, a.v4-card, article.v4-card) :is(b, span, small, em) { color: #fff !important; }
html[data-theme="azur"] body a.wxfil-link { color: #8f6500 !important; } html[data-theme="azur"] body a.wxfil-link.wxfil-danger, html[data-theme="azur"] body button.wxfil-danger { color: #b3261e !important; }
html[data-theme="azur"] body.has-nav :is(.wxm-pulse, .wxm-main) span.wxm-guide-badge:not(.btn):not(.x1):not(.x2) { color: #1a1d23 !important; }
html[data-theme="azur"] body.has-nav :is(section.wx-photo-card, .wx-photo-card) span.wx-photo-badge:not(.btn):not(.x1):not(.x2) { color: #fff !important; }
/* Messages : l'ancien glyphe texte « ✉ » (pseudo-element, minuscule) est remplace par le vrai pictogramme SVG de 28 px, comme les autres onglets. */
html body .wx-xdock a.dock-msg::before, html body .wx-xdock a.dock-msg::after { content: none !important; display: none !important; }
html body .wx-xdock a.dock-msg svg.dock-ico { display: block !important; width: 28px !important; height: 28px !important; stroke-width: 2.1; fill: none; }
@media (max-width: 380px) {
  .uxm-tile { gap: 8px; padding: 10px; } .uxm-tile-ico { width: 34px; height: 34px; border-radius: 11px; } .uxm-tile b { font-size: 14px; } .uxm-tile small { font-size: 12px; }
  .wx-moi-card { gap: 12px; padding: 14px; } .wx-moi-av { width: 64px; height: 64px; } .wx-moi-id h1 { font-size: 21px; }
}
/* Inscription : le bloc « d'ou nous connais-tu » devient discret (plus de grand titre au milieu du formulaire). */
html body .register-acquisition h2 { font-size: 1rem; margin: 18px 0 4px; line-height: 1.25; }
html body .register-acquisition > p { font-size: .88rem; line-height: 1.4; color: var(--ux-dim, #adb4c1); margin: 0 0 10px; }

/* Badge officiel : visuel uniquement */
.wx-badge-founder{display:inline-block;margin-top:3px;padding:2px 7px;border:1px solid rgba(214,174,82,.75);border-radius:999px;background:rgba(40,30,10,.78);color:#e8c46a;font:800 9.5px/1.3 Manrope,system-ui,sans-serif;letter-spacing:.06em;white-space:nowrap}
.wx-badge-admin{border-color:rgba(120,190,255,.7);color:#9fd0ff;background:rgba(10,24,44,.8)}

/* Lot 54 — badges de rôle : icône seule dans les petites cartes (pseudo toujours lisible), icône + texte quand la place le permet. */
.wx-badge-founder{display:inline-flex;align-items:center;gap:4px;margin-top:3px;vertical-align:middle}
.wx-badge-founder svg{width:14px;height:14px;flex:none}
.wx-badge-founder em{font-style:normal}
.wx-badge-crown{color:#ffd24a}.wx-badge-team{color:#ff5fb0;border-color:rgba(255,95,176,.7)}
.v4-info .wx-badge-founder{align-self:flex-start;padding:2px 4px;margin-top:0}.v4-info .wx-badge-founder em{display:none}
.wx-badge-founder:not(.v4-info *) em{display:none}
@media (min-width:640px){.wx-badge-founder:not(.v4-info *) em{display:inline}}
/* Lot 54 — invitation aux notifications (texte validé, aucune photo : illustration vectorielle, aucun droit d'image requis) */
.sheet-card.wx-pushpop{position:relative;overflow:hidden;text-align:center;padding:26px 22px 22px;border:1.5px solid rgba(255,45,149,.75);border-radius:26px;background:radial-gradient(120% 90% at 50% 0%,rgba(255,45,149,.28),rgba(20,8,26,.96) 55%),#0b0710;box-shadow:0 0 34px rgba(255,45,149,.35),inset 0 0 0 1px rgba(255,210,74,.25)}
.wx-pushpop-bell{width:64px;height:64px;margin:0 auto 6px;display:block;filter:drop-shadow(0 0 10px rgba(255,210,74,.55))}
.wx-pushpop h2{margin:6px 0 10px;font:900 clamp(22px,6vw,28px)/1.15 Manrope,system-ui,sans-serif;color:#ffd24a;letter-spacing:-.01em}
.wx-pushpop h2 b{color:#fff}
.wx-pushpop p{margin:0 auto 18px;max-width:34ch;color:#f2eaf6;font-size:16px;line-height:1.5}.wx-pushpop p em{font-style:normal;color:#ff5fb0;font-weight:800}
.wx-pushpop .envie-actions{display:grid;gap:10px}
.wx-pushpop .btn{min-height:50px;border-radius:999px;font-weight:800;font-size:16px;display:inline-flex;align-items:center;justify-content:center;gap:10px}
.wx-pushpop-yes{background:linear-gradient(180deg,#ff3fa4,#c2147a)!important;color:#fff!important;border:1.5px solid #ffd24a!important;box-shadow:0 0 18px rgba(255,45,149,.55)}
.wx-pushpop-yes svg{width:22px;height:22px;flex:none}
.wx-pushpop-later{background:rgba(0,0,0,.45)!important;color:#ffd24a!important;border:1.5px solid rgba(255,210,74,.7)!important}
.wx-pushpop-x{position:absolute;top:10px;right:10px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.45);background:rgba(0,0,0,.4);color:#fff;font-size:26px;line-height:1;cursor:pointer}
.wx-pushpop button:focus-visible{outline:3px solid #ffd24a;outline-offset:2px}
@media (prefers-reduced-motion:no-preference){.wx-pushpop-bell{animation:wxpp-ring 3.2s ease-in-out infinite;transform-origin:50% 12%}@keyframes wxpp-ring{0%,70%,100%{transform:rotate(0)}76%{transform:rotate(9deg)}82%{transform:rotate(-8deg)}88%{transform:rotate(5deg)}94%{transform:rotate(-3deg)}}}
/* Lot 54 — visuel de l'invitation : portrait fourni par le propriétaire (adulte), en bandeau fondu en haut de la carte. */
.wx-pushpop{padding-top:176px!important}
.wx-pushpop-ph{position:absolute;inset:0 0 auto 0;height:230px;overflow:hidden;pointer-events:none;z-index:0}
.wx-pushpop-ph img{width:100%;height:100%;object-fit:cover;object-position:28% 22%;display:block}
.wx-pushpop-ph::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,7,16,0) 70%,#0b0710 98%),linear-gradient(180deg,rgba(11,7,16,0) 45%,#0b0710 100%)}
.wx-pushpop>*:not(.wx-pushpop-ph){position:relative;z-index:1}
.wx-pushpop>.wx-pushpop-x{position:absolute}
.wx-pushpop>.wx-pushpop-bell{position:absolute;top:34px;right:22px;width:62px;height:62px;margin:0}
.wx-pushpop h2,.wx-pushpop p{text-shadow:0 1px 8px rgba(0,0,0,.7)}
/* Lot 60 — invitation aux notifications : PC = portrait à gauche, texte à droite ; Android = portrait en bandeau, texte dessous (jamais de texte sur le visage). */
html body #notif-ask.sheet{z-index:2000}
.sheet-card.wx-pushpop{max-height:94dvh;overflow-y:auto;padding:268px 20px calc(20px + env(safe-area-inset-bottom,0px))!important;text-align:center}
.wx-pushpop .wx-pushpop-ph{height:262px}
.wx-pushpop .wx-pushpop-ph img{object-position:30% 46%}
.wx-pushpop>.wx-pushpop-bell{top:14px;left:14px;right:auto;width:52px;height:52px}
.wx-pushpop h2{font-size:clamp(21px,5.6vw,26px)}
.wx-pushpop-yes,.wx-pushpop-later{min-height:52px}
@media (min-width:700px){
  html body #notif-ask.sheet{place-items:center}
  .sheet-card.wx-pushpop{width:min(780px,94vw)!important;max-width:780px!important;min-height:420px;padding:34px 34px 30px 360px!important;text-align:left;display:flex;flex-direction:column;justify-content:center}
  .wx-pushpop .wx-pushpop-ph{inset:0 auto 0 0;width:43%;height:auto}
  .wx-pushpop .wx-pushpop-ph img{object-position:32% 12%}
  .wx-pushpop .wx-pushpop-ph::after{background:linear-gradient(90deg,rgba(11,7,16,0) 52%,#0b0710 100%),linear-gradient(180deg,rgba(11,7,16,0) 70%,#0b0710 100%)}
  .wx-pushpop>.wx-pushpop-bell{position:relative;top:auto;right:auto;margin:0 0 8px;width:60px;height:60px}
  .wx-pushpop p{margin:0 0 20px;max-width:none}
  .wx-pushpop h2{font-size:28px}
}
.sheet-card.wx-pushpop .wx-pushpop-ph img{max-height:none;margin:0;border-radius:0}

/* Lot 60 — fidélité aux références fournies : logo WANTX, titre blanc + WANTX fuchsia, bouton principal fuchsia, secondaire contour or, boutons côte à côte sur PC. */
.wx-pushpop h2::before{content:"";display:block;width:128px;height:34px;margin:0 auto 10px;background:url('../images/brand/wantx-logo-officiel-640.png') center/contain no-repeat}
.wx-pushpop h2{color:#fff}.wx-pushpop h2 b{color:#ff2d95}
.wx-pushpop p{color:#fff}
html body #notif-ask .wx-pushpop-yes{background:linear-gradient(180deg,#ff3fa4,#c8147c)!important;color:#fff!important;border:1.5px solid rgba(255,255,255,.4)!important;box-shadow:0 0 18px rgba(255,45,149,.5)}
html body #notif-ask .wx-pushpop-later{background:rgba(10,4,14,.55)!important;color:#fff!important;border:1.5px solid #ffd24a!important}
@media (min-width:700px){
  .wx-pushpop h2::before{margin:0 0 12px}
  .sheet-card.wx-pushpop h2{padding-right:76px}
  .wx-pushpop>.wx-pushpop-bell{position:absolute;top:84px;left:auto;right:34px;margin:0;width:56px;height:56px}
  .wx-pushpop .envie-actions{grid-template-columns:1.5fr 1fr}
}
#voice-timer{color:#ffd24a}
#media-ok::before,#voice-send::before{content:"➤";margin-right:8px}
/* Lot 65 - navigation : lien Boutique en or WANTX */
html body.has-nav .desk-nav a.desk-shop,html body.has-nav .desk-nav a.desk-shop:hover{color:#ffd60a !important}
