/* PocketBoost, site membre. Aucune feuille externe : la CSP n'autorise que 'self'. */

@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/mplus-rounded-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/mplus-rounded-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/mplus-rounded-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/mplus-rounded-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/mplus-rounded-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/mplus-rounded-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/static/fonts/mplus-rounded-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/static/fonts/mplus-rounded-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* --- Jetons ------------------------------------------------------------- */

:root {
  --fond: oklch(0.968 0.01 235);
  --plan: oklch(0.995 0.003 235);
  --releve: oklch(0.94 0.014 235);
  --survol: oklch(0.915 0.018 235);
  --trait: oklch(0.885 0.016 235);
  --trait-fort: oklch(0.78 0.022 240);
  --texte: oklch(0.25 0.035 252);
  --doux: oklch(0.41 0.035 252);
  --discret: oklch(0.5 0.03 252);
  --accent: oklch(0.53 0.16 245);
  --accent-survol: oklch(0.47 0.16 245);
  --accent-doux: oklch(0.53 0.16 245 / 0.11);
  --sur-accent: oklch(0.99 0.005 245);
  --or: oklch(0.82 0.15 82);
  --or-doux: oklch(0.82 0.15 82 / 0.2);
  --sur-or: oklch(0.32 0.07 65);
  --ok: oklch(0.5 0.13 155);
  --ok-doux: oklch(0.6 0.13 155 / 0.14);
  --attente: oklch(0.52 0.12 65);
  --attente-doux: oklch(0.75 0.13 80 / 0.2);
  --alerte: oklch(0.52 0.19 25);
  --alerte-doux: oklch(0.6 0.19 25 / 0.12);
  --ombre: oklch(0.32 0.05 252 / 0.14);
  --ombre-forte: oklch(0.25 0.05 252 / 0.28);
  --voile: oklch(0.2 0.04 252 / 0.42);
  --focus: oklch(0.6 0.17 245);
  color-scheme: light;

  --police: "M PLUS Rounded 1c", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs: 0.75rem; --t-s: 0.8125rem; --t-m: 0.9375rem; --t-base: 1rem; --t-l: 1.1875rem;
  --t-xl: 1.4375rem; --t-2xl: 1.75rem;
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px; --e6: 32px; --e7: 48px;
  --r-s: 10px; --r-m: 16px; --r-l: 22px; --r-rond: 999px;
  --sortie: cubic-bezier(0.25, 1, 0.5, 1);
  --sortie-forte: cubic-bezier(0.16, 1, 0.3, 1);
  --cible: 44px;
  --haut: env(safe-area-inset-top, 0px);
  --bas: env(safe-area-inset-bottom, 0px);
  --barre: 64px;
  --z-entete: 10; --z-barre: 20; --z-annonce: 60;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: oklch(0.2 0.03 256);
    --plan: oklch(0.245 0.034 256);
    --releve: oklch(0.283 0.036 256);
    --survol: oklch(0.32 0.038 256);
    --trait: oklch(0.34 0.035 256);
    --trait-fort: oklch(0.45 0.035 256);
    --texte: oklch(0.96 0.01 245);
    --doux: oklch(0.84 0.022 245);
    --discret: oklch(0.73 0.028 245);
    --accent: oklch(0.77 0.13 235);
    --accent-survol: oklch(0.82 0.12 235);
    --accent-doux: oklch(0.77 0.13 235 / 0.14);
    --sur-accent: oklch(0.2 0.045 256);
    --or: oklch(0.84 0.14 85);
    --or-doux: oklch(0.84 0.14 85 / 0.16);
    --sur-or: oklch(0.27 0.06 65);
    --ok: oklch(0.79 0.14 155);
    --ok-doux: oklch(0.79 0.14 155 / 0.14);
    --attente: oklch(0.84 0.12 82);
    --attente-doux: oklch(0.84 0.12 82 / 0.14);
    --alerte: oklch(0.74 0.16 25);
    --alerte-doux: oklch(0.74 0.16 25 / 0.15);
    --ombre: oklch(0.08 0.02 256 / 0.45);
    --ombre-forte: oklch(0.05 0.02 256 / 0.6);
    --voile: oklch(0.08 0.03 256 / 0.62);
    --focus: oklch(0.8 0.13 235);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: oklch(0.2 0.03 256);
  --plan: oklch(0.245 0.034 256);
  --releve: oklch(0.283 0.036 256);
  --survol: oklch(0.32 0.038 256);
  --trait: oklch(0.34 0.035 256);
  --trait-fort: oklch(0.45 0.035 256);
  --texte: oklch(0.96 0.01 245);
  --doux: oklch(0.84 0.022 245);
  --discret: oklch(0.73 0.028 245);
  --accent: oklch(0.77 0.13 235);
  --accent-survol: oklch(0.82 0.12 235);
  --accent-doux: oklch(0.77 0.13 235 / 0.14);
  --sur-accent: oklch(0.2 0.045 256);
  --or: oklch(0.84 0.14 85);
  --or-doux: oklch(0.84 0.14 85 / 0.16);
  --sur-or: oklch(0.27 0.06 65);
  --ok: oklch(0.79 0.14 155);
  --ok-doux: oklch(0.79 0.14 155 / 0.14);
  --attente: oklch(0.84 0.12 82);
  --attente-doux: oklch(0.84 0.12 82 / 0.14);
  --alerte: oklch(0.74 0.16 25);
  --alerte-doux: oklch(0.74 0.16 25 / 0.15);
  --ombre: oklch(0.08 0.02 256 / 0.45);
  --ombre-forte: oklch(0.05 0.02 256 / 0.6);
  --voile: oklch(0.08 0.03 256 / 0.62);
  --focus: oklch(0.8 0.13 235);
  color-scheme: dark;
}

/* --- Base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--fond); color: var(--texte);
  font-family: var(--police); font-size: var(--t-base); line-height: 1.5; font-weight: 500;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 800; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: var(--accent); }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.ic-s { width: 16px; height: 16px; }
.ic-l { width: 24px; height: 24px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nombre { font-variant-numeric: tabular-nums; }
.sans-js { padding: var(--e5); text-align: center; }

.demarrage { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: var(--e3);
  color: var(--doux); font-weight: 800; }
.rond-charge { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--trait);
  border-top-color: var(--accent); animation: tourne 0.8s linear infinite; }
@keyframes tourne { to { transform: rotate(1turn); } }

/* --- Charpente ---------------------------------------------------------- */

.app { min-height: 100dvh; }
.coque { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100dvh; }
.entete {
  position: sticky; top: 0; z-index: var(--z-entete);
  display: flex; align-items: center; gap: var(--e3);
  padding: calc(var(--haut) + var(--e2)) var(--e4) var(--e2);
  background: color-mix(in oklch, var(--fond) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 200ms var(--sortie);
}
.entete.defile { border-bottom-color: var(--trait); }
.marque { display: flex; align-items: center; gap: var(--e2); font-weight: 800; font-size: var(--t-l);
  letter-spacing: -0.015em; text-decoration: none; color: var(--texte); margin-right: auto; }
.marque img { width: 30px; height: 30px; }
.marque b { color: var(--accent); font-weight: 800; }
.bouton-activite { position: relative; }
.pastille { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-rond); background: var(--accent); color: var(--sur-accent); font-size: 11px;
  font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--fond); }
.moi-mini { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--releve); flex: none; }
.moi-mini img { width: 100%; height: 100%; object-fit: cover; }

.contenu { width: 100%; max-width: 1080px; margin: 0 auto;
  padding: var(--e3) var(--e4) calc(var(--barre) + var(--bas) + var(--e6)); }

.barre {
  position: fixed; inset: auto 0 0 0; z-index: var(--z-barre);
  display: grid; grid-template-columns: repeat(7, 1fr);
  padding: 0 var(--e1) var(--bas);
  background: color-mix(in oklch, var(--plan) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--trait);
}
.barre-titre, .barre-pied { display: none; }
.onglet {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--barre); padding: 6px 2px; border: 0; background: none; color: var(--discret);
  font-size: 11px; font-weight: 700; text-decoration: none; border-radius: var(--r-m);
  transition: color 160ms var(--sortie);
}
.onglet .ic { width: 24px; height: 24px; transition: transform 200ms var(--sortie-forte); }
.onglet[aria-current="page"] { color: var(--accent); }
.onglet[aria-current="page"] .ic { stroke-width: 2.2; transform: translateY(-1px); }
.onglet:active .ic { transform: scale(0.92); }
.activite-dock { display: none; }

@media (min-width: 900px) {
  .coque { grid-template-columns: 240px minmax(0, 1fr); }
  .barre {
    position: sticky; top: 0; inset: auto; height: 100dvh; grid-row: 1 / span 2; grid-column: 1;
    display: flex; flex-direction: column; gap: 2px; padding: var(--e5) var(--e3);
    background: var(--releve); backdrop-filter: none; -webkit-backdrop-filter: none;
    border-top: 0; border-right: 1px solid var(--trait);
  }
  .barre-titre { display: flex; align-items: center; gap: var(--e2); padding: 0 var(--e3) var(--e5);
    font-size: var(--t-l); font-weight: 800; color: var(--texte); text-decoration: none; letter-spacing: -0.015em; }
  .barre-titre img { width: 34px; height: 34px; }
  .barre-titre b { color: var(--accent); }
  .onglet { flex-direction: row; justify-content: flex-start; gap: var(--e3); min-height: 46px;
    padding: 0 var(--e3); font-size: var(--t-m); color: var(--doux); }
  .onglet .ic { width: 22px; height: 22px; }
  .onglet:hover { background: var(--survol); color: var(--texte); }
  .onglet[aria-current="page"] { background: var(--accent-doux); color: var(--accent); }
  .barre-pied { display: block; margin-top: auto; padding: var(--e3); color: var(--discret); font-size: var(--t-s); }
  .entete { grid-column: 2; padding-inline: var(--e6); }
  .entete .marque { visibility: hidden; }
  .contenu { grid-column: 2; padding: var(--e4) var(--e6) var(--e7); }
}
@media (min-width: 1240px) {
  .coque { grid-template-columns: 240px minmax(0, 1fr) 384px; }
  .entete .bouton-activite { display: none; }
  .activite-dock {
    display: flex; flex-direction: column; grid-column: 3; grid-row: 1 / span 2;
    position: sticky; top: 0; height: 100dvh; border-left: 1px solid var(--trait); background: var(--releve);
  }
}

/* --- Titres de page ----------------------------------------------------- */

.page-tete { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--e3) var(--e4);
  margin: var(--e2) 0 var(--e5); }
.page-tete > div { flex: 1 1 240px; min-width: 0; }
.page-tete h1 { font-size: var(--t-2xl); }
.page-tete p { color: var(--doux); margin-top: var(--e1); font-size: var(--t-m); }
.maj { color: var(--discret); font-size: var(--t-s); }
.section { margin-top: var(--e6); }
.section > h2 { font-size: var(--t-l); margin-bottom: var(--e3); display: flex; align-items: baseline; gap: var(--e2); }
.section > h2 .compte { color: var(--discret); font-weight: 700; font-size: var(--t-m); }

/* --- Boutons et contrôles ---------------------------------------------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e2);
  min-height: var(--cible); padding: 0 var(--e4); border-radius: var(--r-rond);
  border: 1px solid var(--trait); background: var(--plan); color: var(--texte);
  font-size: var(--t-m); font-weight: 700; white-space: nowrap; text-decoration: none;
  transition: background-color 160ms var(--sortie), border-color 160ms var(--sortie), transform 120ms var(--sortie), opacity 160ms;
}
.bouton:hover { background: var(--survol); }
.bouton:active { transform: scale(0.97); }
.bouton.principal { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.bouton.principal:hover { background: var(--accent-survol); border-color: var(--accent-survol); }
.bouton.danger { color: var(--alerte); border-color: color-mix(in oklch, var(--alerte) 40%, var(--trait)); }
.bouton.danger:hover { background: var(--alerte-doux); }
.bouton.danger-plein { background: var(--alerte); border-color: var(--alerte); color: var(--sur-accent); }
.bouton.succes { background: var(--ok); border-color: var(--ok); color: var(--sur-accent); }
.bouton.discret { border-color: transparent; background: transparent; color: var(--doux); }
.bouton.discret:hover { background: var(--survol); color: var(--texte); }
.bouton.petit { min-height: 36px; padding: 0 var(--e3); font-size: var(--t-s); }
.bouton.icone { width: var(--cible); padding: 0; }
.bouton.icone.petit { width: 36px; }
.bouton[disabled], .bouton[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.bouton.charge { position: relative; color: transparent !important; pointer-events: none; }
.bouton.charge::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid currentColor; border-color: var(--doux) var(--doux) var(--doux) transparent;
  animation: tourne 0.7s linear infinite; }
.bouton.principal.charge::after { border-color: var(--sur-accent) var(--sur-accent) var(--sur-accent) transparent; }
.bouton img.emoji { width: 18px; height: 18px; }
.rangee { display: flex; flex-wrap: wrap; gap: var(--e2); align-items: center; }

.champ { display: grid; gap: 6px; }
.champ > span { font-size: var(--t-s); font-weight: 700; color: var(--doux); }
.saisie, select.saisie {
  min-height: var(--cible); width: 100%; padding: 0 var(--e4); border-radius: var(--r-m);
  border: 1px solid var(--trait); background: var(--plan); color: var(--texte); font-size: var(--t-base);
  transition: border-color 160ms var(--sortie), box-shadow 160ms var(--sortie);
}
.saisie::placeholder { color: var(--discret); opacity: 1; }
.saisie:hover { border-color: var(--trait-fort); }
.saisie:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }
.saisie[aria-invalid="true"] { border-color: var(--alerte); }
.recherche { position: relative; flex: 1 1 220px; }
.recherche .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--discret); pointer-events: none; }
.recherche .saisie { padding-left: 42px; border-radius: var(--r-rond); }

/* 02/11 : jamais plus large que son conteneur, les choix en trop defilent dedans
   (Safari iOS elargissait la page ou la feuille). */
.segments { display: inline-flex; padding: 3px; border-radius: var(--r-rond); background: var(--releve);
  border: 1px solid var(--trait); gap: 2px; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.segments::-webkit-scrollbar { display: none; }
.segments button { flex: none; min-height: 36px; padding: 0 var(--e3); border: 0; border-radius: var(--r-rond);
  background: none; color: var(--doux); font-size: var(--t-s); font-weight: 700; white-space: nowrap;
  transition: background-color 160ms var(--sortie), color 160ms var(--sortie); }
.segments button:hover { color: var(--texte); }
.segments button[aria-pressed="true"] { background: var(--plan); color: var(--texte); box-shadow: 0 1px 3px var(--ombre); }
.segments button small { color: var(--discret); font-weight: 700; margin-left: 4px; }

.interrupteur { display: flex; align-items: center; gap: var(--e3); width: 100%; padding: var(--e3) 0;
  border: 0; background: none; text-align: left; }
.interrupteur .piste { position: relative; flex: none; width: 50px; height: 30px; border-radius: var(--r-rond);
  background: var(--trait-fort); transition: background-color 200ms var(--sortie); }
.interrupteur .piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: oklch(1 0 0); box-shadow: 0 1px 3px oklch(0.2 0.03 256 / 0.3);
  transition: transform 220ms var(--sortie-forte); }
.interrupteur[aria-checked="true"] .piste { background: var(--ok); }
.interrupteur[aria-checked="true"] .piste::after { transform: translateX(20px); }
.interrupteur[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.interrupteur .libelle { flex: 1; min-width: 0; }
.interrupteur .libelle b { display: block; font-weight: 800; }
.interrupteur .libelle small { display: block; color: var(--doux); font-size: var(--t-s); }

.puce { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 9px;
  border-radius: var(--r-rond); background: var(--releve); color: var(--doux); font-size: var(--t-xs);
  font-weight: 800; white-space: nowrap; }
.puce.or { background: var(--or); color: var(--sur-or); }
.puce.ok { background: var(--ok-doux); color: var(--ok); }
.puce.attente { background: var(--attente-doux); color: var(--attente); }
.puce.alerte { background: var(--alerte-doux); color: var(--alerte); }
.puce.accent { background: var(--accent-doux); color: var(--accent); }
.puce .ic { width: 13px; height: 13px; }
.point { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.point.vif { animation: pouls 1.6s var(--sortie) infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, currentColor 50%, transparent); }
  70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* --- Blocs ------------------------------------------------------------- */

.bloc { background: var(--plan); border: 1px solid var(--trait); border-radius: var(--r-l); padding: var(--e4); }
.bloc + .bloc { margin-top: var(--e3); }
.liste { list-style: none; margin: 0; padding: 0; background: var(--plan); border: 1px solid var(--trait);
  border-radius: var(--r-l); overflow: hidden; }
.liste > li { display: flex; align-items: center; gap: var(--e3); min-height: 60px; padding: var(--e2) var(--e4); }
.liste > li + li { border-top: 1px solid var(--trait); }
.liste .qui { flex: 1; min-width: 0; }
.liste .qui b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste .qui small { display: block; color: var(--doux); font-size: var(--t-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; background: var(--releve); }
.code-ami { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.vide { display: grid; justify-items: center; text-align: center; gap: var(--e3); padding: var(--e7) var(--e4);
  border: 1.5px dashed var(--trait-fort); border-radius: var(--r-l); color: var(--doux); }
.vide img { width: 72px; height: 72px; opacity: 0.95; }
.vide h2 { font-size: var(--t-l); color: var(--texte); }
.vide p { max-width: 44ch; }
.verrou { display: flex; gap: var(--e3); align-items: flex-start; padding: var(--e4); border-radius: var(--r-l);
  background: var(--releve); color: var(--doux); }
.verrou .ic { color: var(--discret); margin-top: 2px; }
.verrou b { color: var(--texte); display: block; margin-bottom: 2px; }
.encart { display: flex; gap: var(--e3); align-items: flex-start; padding: var(--e3) var(--e4); border-radius: var(--r-m);
  background: var(--accent-doux); color: var(--texte); font-size: var(--t-m); }
.encart.alerte { background: var(--alerte-doux); }
.encart.alerte .ic { color: var(--alerte); }
.encart .ic { color: var(--accent); margin-top: 2px; }
.encart > div { flex: 1; min-width: 0; }
.encart + * { margin-top: var(--e4); }

.squelette { border-radius: var(--r-m); background: var(--releve); position: relative; overflow: hidden; }
.squelette::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--plan) 55%, transparent), transparent);
  transform: translateX(-100%); animation: lueur 1.4s var(--sortie) infinite; }
@keyframes lueur { to { transform: translateX(100%); } }

/* --- Cartes du jeu ----------------------------------------------------- */

.carte { position: relative; display: block; width: 100%; aspect-ratio: 184 / 257; padding: 0; border: 0;
  border-radius: 6.5% / 4.6%; background: var(--releve); overflow: hidden;
  box-shadow: 0 1px 2px var(--ombre), 0 4px 12px var(--ombre); }
.carte img { width: 100%; height: 100%; object-fit: cover; }
button.carte { transition: transform 200ms var(--sortie-forte), box-shadow 200ms var(--sortie), filter 200ms; }
button.carte:hover { transform: translateY(-3px); box-shadow: 0 2px 4px var(--ombre), 0 10px 22px var(--ombre-forte); }
button.carte:active { transform: scale(0.97); }
.carte.manquante img { filter: grayscale(1) contrast(0.85); opacity: 0.42; }
.carte .nb { position: absolute; right: 5px; bottom: 5px; min-width: 24px; height: 22px; padding: 0 6px;
  border-radius: var(--r-rond); background: oklch(0.2 0.03 256 / 0.82); color: oklch(0.98 0 0);
  font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }

.rarete { display: inline-flex; align-items: center; gap: 1px; color: var(--accent); vertical-align: middle; }
.rarete .ic { width: 14px; height: 14px; }
.rarete.etoile { color: oklch(0.78 0.15 82); }
.rarete.chroma { color: oklch(0.7 0.16 320); }
.rarete.couronne { color: oklch(0.75 0.15 75); }
.rarete.etoile.arc { color: oklch(0.68 0.16 300); }
.carte-nom { position: absolute; inset: 0; display: grid; place-items: center; padding: 8%;
  color: var(--doux); font-size: var(--t-xs); font-weight: 700; line-height: 1.25; text-align: center;
  overflow-wrap: anywhere; }
.carte.manquante .carte-nom { opacity: 0.6; }

/* Pioches miracles : les cinq cartes en éventail, comme un booster ouvert. */
.gps { display: grid; gap: var(--e4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.gp { position: relative; background: var(--plan); border: 1px solid var(--trait); border-radius: var(--r-l);
  padding: var(--e4) var(--e4) var(--e3); overflow: hidden; isolation: isolate; }
.gp::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: -1;
  background: radial-gradient(120% 100% at 50% 0%, var(--or-doux), transparent 70%); }
.gp-tete { display: flex; align-items: center; gap: var(--e3); }
.gp-tete .piece { width: 42px; height: 42px; flex: none; }
.gp-tete .qui { flex: 1; min-width: 0; }
.gp-tete .qui b { display: block; font-size: var(--t-l); font-weight: 800; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-tete .qui small { color: var(--doux); font-size: var(--t-s); }
.eventail { display: flex; justify-content: center; padding: var(--e5) var(--e3) var(--e4); }
.eventail .carte { flex: 0 1 112px; min-width: 0; margin-inline: -5px; transform-origin: 50% 120%; }
.eventail .carte:nth-child(1) { transform: rotate(-9deg) translateY(10px); }
.eventail .carte:nth-child(2) { transform: rotate(-4.5deg) translateY(2px); }
.eventail .carte:nth-child(3) { transform: translateY(-1px); z-index: 1; }
.eventail .carte:nth-child(4) { transform: rotate(4.5deg) translateY(2px); }
.eventail .carte:nth-child(5) { transform: rotate(9deg) translateY(10px); }
.eventail .carte:hover, .eventail .carte:focus-visible { transform: translateY(-10px) scale(1.06); z-index: 2; }
.gp-pied { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2); padding-top: var(--e3);
  border-top: 1px solid var(--trait); }
.gp-pied .code-ami { color: var(--doux); font-size: var(--t-s); margin-right: auto; }

/* Pioches du jeu : une fiche par pioche, cinq emplacements comme les dos de
   cartes du jeu ; seuls les god packs gardent l'eventail dore. */
.section-texte { color: var(--doux); font-size: var(--t-s); margin: calc(-1 * var(--e2)) 0 var(--e3); max-width: 70ch; }
.resume-pioches { display: grid; gap: var(--e3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin-bottom: var(--e5); align-items: start; }
.resume-pioches .stats { margin-top: 0; }
.resume-pioches .stat b { white-space: nowrap; }
.resume-colonne { display: grid; gap: var(--e2); }
.stat-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; color: var(--doux); }
.stat-ic .ic { width: 26px; height: 26px; }
/* Bouton Actualiser : le delai minimum du jeu reste toujours ecrit dessous. */
.actualiser { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e3); padding: var(--e4);
  border-radius: var(--r-l); background: var(--plan); border: 1px solid var(--trait); }
.actualiser-delai { display: flex; align-items: flex-start; gap: var(--e2); }
.actualiser-delai .stat-ic { width: 24px; height: 24px; }
.actualiser-delai .stat-ic .ic { width: 20px; height: 20px; }
.actualiser-delai .delai { display: block; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.35; }
.actualiser-delai p { color: var(--doux); font-size: var(--t-s); margin-top: 2px; max-width: 46ch; }
.section-pioches { scroll-margin-top: 84px; }
.section-pioches > .section-texte:last-child { margin-bottom: 0; }
.pioches { display: grid; gap: var(--e4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.pioche { position: relative; display: flex; flex-direction: column; gap: var(--e3); background: var(--plan);
  border: 1px solid var(--trait); border-radius: var(--r-l); padding: var(--e4) var(--e4) var(--e3); }
.pioche.gp { gap: var(--e2); }
.pioche.compacte { background: none; border: 0; border-radius: 0; padding: 0; }
.pioche-tete { display: flex; align-items: center; gap: var(--e3); min-height: 44px; }
.pioche-tete .qui { flex: 1; min-width: 0; }
.pioche-tete .qui b { display: block; font-weight: 800; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pioche.gp .pioche-tete .qui b { font-size: var(--t-l); }
.pioche-tete .qui small { display: block; color: var(--doux); font-size: var(--t-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pioche-tete .booster { width: auto; height: 56px; flex: none; filter: drop-shadow(0 2px 3px var(--ombre)); }
.avatar.leveinard { border-radius: 0; object-fit: contain; background: none; }
.pioche .puces { display: flex; flex-wrap: wrap; gap: var(--e1); }
.cinq-cartes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--e2); }
.pioche.gp .eventail { padding-top: var(--e4); }
.lot { position: relative; display: grid; place-content: center; justify-items: center; gap: 4px; aspect-ratio: 184 / 257;
  padding: 6%; border-radius: 6.5% / 4.6%; background: var(--releve); border: 1px dashed var(--trait-fort); }
.lot img { width: 72%; max-width: 48px; height: auto; }
.lot b { font-size: var(--t-xs); font-weight: 800; font-variant-numeric: tabular-nums; }
.lot.grisee > img, .lot.grisee > b, .carte.grisee img { filter: grayscale(1); opacity: 0.45; }
/* Deja piochee : la carte (ou l'objet) obtenue garde ses couleurs, cerclee d'or. */
.carte.obtenue, .lot.obtenue { outline: 3px solid var(--or); outline-offset: 2px; }
.lot.obtenue { border-style: solid; }
.pioche.piochee .carte:not(.obtenue) img, .pioche.piochee .lot:not(.obtenue) > img,
.pioche.piochee .lot:not(.obtenue) > b { filter: grayscale(0.7); opacity: 0.5; }
.obtenue-tag { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); padding: 1px 6px;
  border-radius: var(--r-rond); background: var(--or); color: var(--sur-or); font-size: 0.625rem; font-weight: 800;
  line-height: 1.5; white-space: nowrap; pointer-events: none; }
.nouvelle-tag { position: absolute; left: 4px; bottom: 5px; padding: 1px 6px; border-radius: var(--r-rond);
  background: var(--ok); color: var(--sur-accent); font-size: 0.625rem; font-weight: 800; line-height: 1.6;
  white-space: nowrap; pointer-events: none; }
.carte .oeil, .lot .oeil { position: absolute; left: 4px; top: 4px; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: oklch(0.2 0.03 256 / 0.82); color: oklch(0.98 0 0); }
.carte .oeil .ic, .lot .oeil .ic { width: 13px; height: 13px; }
.pioche-pied { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e3); padding-top: var(--e3);
  border-top: 1px solid var(--trait); color: var(--doux); font-size: var(--t-s); }
.pioche.compacte .pioche-pied { border-top: 0; padding-top: 0; }
.pioche-pied .chrono { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; color: var(--texte);
  font-weight: 700; font-variant-numeric: tabular-nums; }
.pioche-pied .chrono .ic { width: 16px; height: 16px; color: var(--doux); }
.pioche-pied .cout { display: inline-flex; align-items: center; gap: 4px; color: var(--texte); font-weight: 800; }
.pioche-pied .cout img { width: 22px; height: auto; }
.pioche-pied .note { flex: 1 1 220px; }
.pioche.finie .cinq-cartes, .pioche.finie .eventail { filter: saturate(0.35); opacity: 0.7; }
.pioche.finie .chrono { color: var(--doux); }

/* Amis : la ligne d'un ami qui propose une pioche se deroule. */
.liste > li.ami { flex-wrap: wrap; }
.ami-ligne { display: flex; align-items: center; gap: var(--e3); flex: 1; min-width: 0; min-height: 44px; padding: 0;
  border: 0; border-radius: var(--r-m); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ami-ligne .chevron { flex: none; width: 18px; height: 18px; color: var(--discret); transition: transform 200ms var(--sortie); }
.ami-ligne[aria-expanded="true"] .chevron { transform: rotate(90deg); }
.ami-ligne:hover .chevron { color: var(--texte); }
.ami-pioche { flex-basis: 100%; padding: var(--e1) 0 var(--e3); }
.ami-pioche.apparait { animation: deplie 240ms var(--sortie-forte); }
@keyframes deplie { from { opacity: 0; transform: translateY(-6px); } }

/* Collection */
.rail { display: flex; gap: var(--e2); overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px var(--e3);
  margin: 0 calc(-1 * var(--e4)); padding-inline: var(--e4); scrollbar-width: thin; scroll-padding-inline: var(--e4); }
.ext { flex: none; scroll-snap-align: start; display: grid; grid-template-columns: 44px auto; align-items: center;
  gap: 0 var(--e2); min-height: 60px; padding: 6px var(--e3) 6px 6px; border-radius: var(--r-m);
  border: 1.5px solid var(--trait); background: var(--plan); text-align: left; max-width: 220px;
  transition: border-color 160ms var(--sortie), background-color 160ms var(--sortie); }
.ext:hover { border-color: var(--trait-fort); }
.ext[aria-pressed="true"] { border-color: var(--c2); background: color-mix(in oklch, var(--c1) 22%, var(--plan)); }
.ext .vis { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; }
.ext .vis img { width: 44px; height: 44px; }
.ext .vis i { display: grid; place-items: center; width: 26px; height: 40px; border-radius: 4px;
  background: linear-gradient(160deg, var(--c1), var(--c2)); color: oklch(0.2 0.03 256); font-style: normal;
  font-size: 9px; font-weight: 800; box-shadow: 0 1px 3px var(--ombre); }
.ext b { font-size: var(--t-s); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ext small { font-size: var(--t-xs); color: var(--doux); font-variant-numeric: tabular-nums; }
.outils { display: flex; flex-wrap: wrap; gap: var(--e2) var(--e3); align-items: center; margin: var(--e3) 0 var(--e4); }
.outils select.saisie { width: auto; min-width: 150px; border-radius: var(--r-rond); }
.progression { display: flex; align-items: center; gap: var(--e3); margin-bottom: var(--e4); }
.progression .jauge { flex: 1; }
.progression b { font-size: var(--t-m); font-variant-numeric: tabular-nums; white-space: nowrap; }
.jauge { height: 8px; border-radius: var(--r-rond); background: var(--releve); overflow: hidden; }
.jauge > i { display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--c1, var(--accent)), var(--c2, var(--accent)));
  clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0 round 999px);
  transition: clip-path 500ms var(--sortie-forte); }
.grille { display: grid; gap: var(--e3) var(--e2); grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.grille > li { list-style: none; content-visibility: auto; contain-intrinsic-size: auto 150px; }
.grille > li:has(.auto-rapide) { position: relative; }
/* 11/11 : ajout rapide a l'auto partage, en haut a droite de la carte. */
.auto-rapide { position: absolute; top: 4px; right: 4px; z-index: 1; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%; border: 0;
  background: oklch(0.2 0.03 256 / 0.72); color: oklch(0.98 0 0);
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.35); opacity: 0.85;
  transition: background-color 160ms var(--sortie), opacity 160ms, transform 120ms var(--sortie); }
.auto-rapide::before { content: ""; position: absolute; inset: -7px; }
.auto-rapide .ic { width: 16px; height: 16px; }
.auto-rapide:hover { opacity: 1; background: oklch(0.2 0.03 256 / 0.9); }
.auto-rapide:active { transform: scale(0.9); }
.auto-rapide:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 2px; }
.auto-rapide.actif { opacity: 1; background: var(--accent); color: var(--sur-accent); }
.auto-rapide.charge { pointer-events: none; opacity: 0.5; }
@media (hover: hover) { .grille > li:not(:hover) .auto-rapide:not(.actif):not(:focus-visible) { opacity: 0; } }
/* Fiche carte : meme forme que les autres demandes, coche quand la carte est dans la file. */
.bouton-auto { border-style: dashed; }
.auto-maintenant { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e3); margin-top: var(--e3); }
.bouton-auto .ic { color: var(--accent); }
.bouton-auto.actif { border-style: solid; border-color: var(--accent); color: var(--accent); background: color-mix(in oklch, var(--accent) 12%, transparent); }
.grille, .grille ul { margin: 0; padding: 0; }
@media (min-width: 600px) { .grille { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: var(--e4) var(--e3); } }

/* Compte */
.profil { display: flex; align-items: center; gap: var(--e4); }
.profil .avatar { width: 64px; height: 64px; }
.profil h2 { font-size: var(--t-xl); }
.profil .rangee { margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--e2); margin-top: var(--e4); }
.stat { display: flex; align-items: center; gap: var(--e3); padding: var(--e3); border-radius: var(--r-m); background: var(--releve); }
.stat img { width: 36px; height: 36px; flex: none; }
.stat b { display: block; font-size: var(--t-l); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat small { display: block; color: var(--doux); font-size: var(--t-xs); line-height: 1.3; }
.vitalites { display: grid; border-radius: var(--r-l); background: var(--plan); border: 1px solid var(--trait); }
.vitalite { padding: var(--e4); }
.vitalite + .vitalite { border-top: 1px solid var(--trait); }
.vitalite-tete { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e2); }
.vitalite-tete b { font-weight: 800; display: inline-flex; align-items: center; gap: var(--e2); }
.vitalite-tete b img { width: 28px; height: 28px; object-fit: contain; flex: none; }
/* Couleurs des jauges relues dans les textures du jeu (cmn_icn_stamina_*_gauge, cmn_img_pack_power_gauge). */
.v-booster { --jauge: linear-gradient(90deg, #fcc1db, #c4d1ff, #a1f6c8); }
.v-premium { --jauge: linear-gradient(90deg, #ffe58a, #f2b93b); }
.v-pioche { --jauge: linear-gradient(90deg, #f0c72b, #f7aa67); }
.v-evenement { --jauge: linear-gradient(90deg, #40f2ff, #58b3ff); }
.v-echange { --jauge: linear-gradient(90deg, #85f475, #41e584); }
.vitalite-tete span { font-size: var(--t-xl); font-weight: 800; font-variant-numeric: tabular-nums; }
.vitalite-tete span small { font-size: var(--t-m); color: var(--discret); }
.crans { display: flex; gap: 5px; margin: var(--e3) 0 var(--e2); }
.crans i { flex: 1; height: 10px; border-radius: var(--r-rond); background: var(--releve); }
.crans i.plein { background: var(--jauge, var(--accent)); }
.crans i.charge { background: linear-gradient(90deg, transparent var(--p, 0%), var(--releve) var(--p, 0%)), var(--jauge, var(--accent)); }
.vitalite p { font-size: var(--t-s); color: var(--doux); font-variant-numeric: tabular-nums; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: var(--e2) var(--e4); margin: 0; font-size: var(--t-m); }
.details dt { color: var(--doux); }
.details dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }

/* Groupe */
.groupe-tete { display: flex; align-items: center; gap: var(--e4); margin: var(--e2) 0 var(--e5); }
.groupe-tete .piece { width: 76px; height: 76px; flex: none; filter: drop-shadow(0 6px 14px var(--ombre-forte)); }
.groupe-tete h1 { font-size: var(--t-2xl); }
.groupe-tete p { color: var(--doux); margin-top: 2px; }
.etat-vague { display: grid; gap: var(--e4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.etat-vague .bloc h2 { font-size: var(--t-m); color: var(--doux); font-weight: 700; margin-bottom: var(--e2); }
.places { display: flex; align-items: baseline; gap: var(--e2); }
.places b { font-size: var(--t-2xl); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.places span { color: var(--doux); }
.sieges { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: var(--e3); }
.sieges i { height: 10px; border-radius: var(--r-rond); background: var(--releve); }
.sieges i.pris { background: var(--ok); }
.sieges i.trop { background: var(--alerte); }
.mon-statut { display: flex; align-items: center; gap: var(--e2); font-size: var(--t-l); font-weight: 800; margin-bottom: var(--e3); }
.statut { flex: none; }
.gps-mini { display: grid; gap: var(--e3); }
.gp-mini { display: flex; align-items: center; gap: var(--e3); padding: var(--e3); border-radius: var(--r-m);
  background: var(--plan); border: 1px solid var(--trait); }
.gp-mini .cinq { display: flex; gap: 4px; flex: 1; min-width: 0; }
.gp-mini .cinq .carte { flex: 0 1 52px; border-radius: 4px; }
.gp-mini .qui { flex: none; width: 108px; }
.gp-mini .qui b { display: block; font-weight: 800; font-size: var(--t-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-mini .qui small { display: block; color: var(--doux); font-size: var(--t-xs); }

/* Amis */
.nettoyage { margin-top: var(--e4); }
.noms { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--e3) 0 var(--e4); }
.noms span { padding: 3px 10px; border-radius: var(--r-rond); background: var(--releve); font-size: var(--t-s); }
.liste .ami-gp { margin-top: var(--e1); }
.liste .puces-ami { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--e1); }
.liste .puces-ami .ami-gp { margin-top: 0; }

/* --- Feuilles (dialog) ------------------------------------------------- */

dialog.feuille { padding: 0; border: 0; color: var(--texte); background: var(--plan);
  width: 100%; max-width: 100%; max-height: calc(100dvh - var(--haut) - 24px); margin: auto 0 0;
  border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: 0 -10px 40px var(--ombre-forte); overflow: hidden;
  overscroll-behavior: contain; }
dialog.feuille[open] { display: flex; flex-direction: column; animation: monte 280ms var(--sortie-forte); }
dialog.feuille::backdrop { background: var(--voile); animation: apparait 200ms var(--sortie); }
dialog.feuille.ferme { animation: descend 200ms var(--sortie) forwards; }
dialog.feuille.ferme::backdrop { animation: disparait 200ms var(--sortie) forwards; }
@keyframes monte { from { transform: translateY(100%); } }
@keyframes descend { to { transform: translateY(100%); } }
@keyframes apparait { from { opacity: 0; } }
@keyframes disparait { to { opacity: 0; } }
.feuille-tete { display: flex; align-items: center; gap: var(--e2); padding: var(--e3) var(--e3) var(--e2) var(--e5); flex: none; }
.feuille-tete::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 5px; margin-left: -20px;
  border-radius: var(--r-rond); background: var(--trait-fort); }
.feuille-tete h2 { flex: 1; min-width: 0; font-size: var(--t-l); }
.feuille-corps { overflow-y: auto; padding: 0 var(--e5) calc(var(--e5) + var(--bas)); flex: 1; overscroll-behavior: contain; }
@media (min-width: 720px) {
  dialog.feuille { width: min(860px, calc(100% - 48px)); max-height: min(820px, calc(100dvh - 48px)); margin: auto;
    border-radius: var(--r-l); box-shadow: 0 30px 80px var(--ombre-forte); }
  dialog.feuille[open] { animation: zoom 240ms var(--sortie-forte); }
  dialog.feuille.ferme { animation: dezoom 160ms var(--sortie) forwards; }
  dialog.feuille.etroite { width: min(520px, calc(100% - 48px)); }
  .feuille-tete::before { display: none; }
  @keyframes zoom { from { opacity: 0; transform: scale(0.96) translateY(8px); } }
  @keyframes dezoom { to { opacity: 0; transform: scale(0.97); } }
}

.fiche { display: grid; gap: var(--e5); grid-template-columns: minmax(0, 1fr); padding-top: var(--e2); }
@media (min-width: 720px) { .fiche { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } }
.holo { position: relative; width: min(100%, 300px); margin: 0 auto; perspective: 900px; }
.holo .carte { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 400ms var(--sortie-forte);
  box-shadow: 0 4px 10px var(--ombre), 0 18px 40px var(--ombre-forte); border-radius: 4.6% / 3.3%; }
.holo .carte::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--brille, 0);
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), oklch(1 0 0 / 0.55), transparent 45%),
    linear-gradient(115deg, transparent 30%, oklch(0.9 0.12 200 / 0.28) 45%, oklch(0.9 0.14 330 / 0.24) 55%, transparent 70%);
  mix-blend-mode: soft-light; transition: opacity 300ms var(--sortie); }
.holo.actif .carte { transition-duration: 80ms; }
.fiche h3 { font-size: var(--t-xl); }
.fiche .meta { display: flex; flex-wrap: wrap; gap: var(--e2); margin-top: var(--e2); }
.fiche dl { margin-top: var(--e4); }
.demande { margin-top: var(--e5); padding-top: var(--e5); border-top: 1px solid var(--trait); display: grid; gap: var(--e4); }
.demande h4 { margin: 0; font-size: var(--t-base); font-weight: 800; }
.demande details summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: var(--t-m); padding: var(--e1) 0; }
.demande details[open] summary { margin-bottom: var(--e2); }
.raison { font-size: var(--t-s); color: var(--doux); }

/* --- Activité : messages de Jenny --------------------------------------- */

.activite-tete { display: flex; align-items: center; gap: var(--e2); padding: var(--e5) var(--e4) var(--e3); }
.activite-tete h2 { flex: 1; font-size: var(--t-l); }
/* max-content : un .fil (overflow hidden) n'a pas de hauteur minimale et serait ecrase quand la liste deborde. */
.activite-liste { flex: 1; overflow-y: auto; padding: 0 var(--e4) var(--e5); display: grid; align-content: start;
  grid-auto-rows: max-content; gap: var(--e3); }
.feuille-corps > .activite-liste { padding: 0; }
.fil { background: var(--plan); border: 1px solid var(--trait); border-radius: var(--r-l); overflow: hidden; }
.fil-tete { display: flex; align-items: center; gap: var(--e3); padding: var(--e3) var(--e4); border-bottom: 1px solid var(--trait); }
.fil-tete .carte { width: 34px; flex: none; border-radius: 3px; box-shadow: none; }
.fil-tete .ic-titre { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-doux); color: var(--accent); flex: none; }
.fil-tete .qui { flex: 1; min-width: 0; }
.fil-tete .qui b { display: block; font-weight: 800; font-size: var(--t-m); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fil-tete .qui small { display: block; color: var(--discret); font-size: var(--t-xs); }
.fil-corps { padding: var(--e3) var(--e4) var(--e4); display: grid; gap: var(--e3); }
.msg { display: grid; gap: var(--e2); font-size: var(--t-m); }
.msg + .msg { padding-top: var(--e3); border-top: 1px dashed var(--trait); }
.msg-texte { overflow-wrap: anywhere; }
.msg-texte p + p, .msg-texte p + ul, .msg-texte ul + p { margin-top: 6px; }
.msg-texte ul { margin: 0; padding-left: 1.2em; }
.msg-texte code { padding: 1px 5px; border-radius: 6px; background: var(--releve); font-size: 0.92em; }
.msg-texte blockquote { margin: 0; padding: 4px 0 4px 12px; border-left: 1px solid var(--trait-fort); color: var(--doux); }
.msg-texte .sous { color: var(--discret); font-size: var(--t-xs); }
.msg-texte .titre-md { font-weight: 800; font-size: var(--t-base); }
.msg-texte .mention { padding: 0 4px; border-radius: 5px; background: var(--accent-doux); color: var(--accent); font-weight: 700; }
.msg-texte img.emoji { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.25em; }
.msg-attente { display: flex; align-items: center; gap: var(--e2); color: var(--doux); }
.msg-attente .points i { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%;
  background: currentColor; animation: saute 1.2s var(--sortie) infinite; }
.msg-attente .points i:nth-child(2) { animation-delay: 0.15s; }
.msg-attente .points i:nth-child(3) { animation-delay: 0.3s; }
@keyframes saute { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.embed { --embed: var(--trait-fort); display: grid; gap: var(--e2); padding: var(--e3) var(--e4); border-radius: var(--r-m);
  border: 1px solid color-mix(in oklch, var(--embed) 50%, var(--trait));
  background: color-mix(in oklch, var(--embed) 9%, var(--plan)); }
.embed-auteur { font-size: var(--t-s); font-weight: 700; color: var(--doux); }
.embed-titre { display: flex; align-items: center; gap: var(--e2); font-weight: 800; }
.embed-titre .point { color: var(--embed); width: 10px; height: 10px; }
.embed-champs { display: grid; gap: var(--e2) var(--e4); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.embed-champ { min-width: 0; }
.embed-champ.large { grid-column: 1 / -1; }
.embed-champ b { display: block; font-size: var(--t-s); }
.embed-image { border-radius: var(--r-s); max-height: 360px; width: auto; }
.embed-vignette { float: right; width: 64px; border-radius: var(--r-s); margin-left: var(--e3); }
.embed-pied { font-size: var(--t-xs); color: var(--discret); }
.msg-boutons { display: flex; flex-wrap: wrap; gap: var(--e2); }
/* 11/11 : reponse a un /trade depuis le site */
.choix-echange { display: grid; gap: var(--e3); margin-top: var(--e4); padding-top: var(--e4); border-top: 1px solid var(--trait); }
.choix-echange h3 { margin: 0; font-size: var(--t-m, 1rem); text-wrap: balance; }
.choix-texte { margin: 0; color: var(--doux); font-size: var(--t-s); max-width: 60ch; }
.choix-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: var(--e2);
  max-height: 340px; overflow-y: auto; padding: 4px; overscroll-behavior: contain; }
.choix-carte { padding: 0; border: 0; background: none; border-radius: var(--r-s); cursor: pointer;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1); }
.choix-carte:hover:not(:disabled) { transform: translateY(-3px); }
.choix-carte:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.choix-carte:disabled { opacity: 0.5; cursor: default; }
.choix-confirme { display: grid; grid-template-columns: 110px 1fr; gap: var(--e4); align-items: start; }
.choix-confirme p { margin: 0 0 var(--e2); }
.choix-alerte { color: var(--attente); font-weight: 700; font-size: var(--t-s); }
@media (prefers-reduced-motion: reduce) { .choix-carte { transition: none; } .choix-carte:hover:not(:disabled) { transform: none; } }
.msg-fichiers { display: flex; flex-wrap: wrap; gap: var(--e2); }
.msg-fichiers img { max-height: 280px; border-radius: var(--r-s); }
.fil-erreur { color: var(--alerte); font-size: var(--t-s); font-weight: 700; }

/* --- Annonces (toasts) ------------------------------------------------- */

.annonces { position: fixed; z-index: var(--z-annonce); left: 50%; transform: translateX(-50%);
  bottom: calc(var(--barre) + var(--bas) + var(--e3)); width: min(440px, calc(100% - 32px));
  display: grid; gap: var(--e2); pointer-events: none; }
@media (min-width: 900px) { .annonces { bottom: var(--e5); left: calc(50% + 120px); } }
/* popover : on retire le style navigateur (inset 0, marge auto, cadre) pour garder la position ci-dessus. */
.annonces[popover] { inset: auto auto calc(var(--barre) + var(--bas) + var(--e3)) 50%; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
@media (min-width: 900px) { .annonces[popover] { bottom: var(--e5); left: calc(50% + 120px); } }
.annonces[popover]:not(:popover-open) { display: none; }
/* Fiche ouverte : en haut, pour ne pas cacher ses boutons du bas. */
.annonces[popover].sur-fiche { top: calc(var(--haut) + var(--e5)); bottom: auto; }
.annonce { display: flex; gap: var(--e3); align-items: flex-start; padding: var(--e3) var(--e4); border-radius: var(--r-m);
  background: var(--texte); color: var(--fond); box-shadow: 0 10px 30px var(--ombre-forte); font-size: var(--t-m);
  pointer-events: auto; animation: annonce 260ms var(--sortie-forte); }
.annonce.alerte .ic { color: var(--alerte); }
.annonce.ok .ic { color: var(--ok); }
.annonce p { flex: 1; }
.annonce.part { animation: annonce-part 200ms var(--sortie) forwards; }
@keyframes annonce { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes annonce-part { to { opacity: 0; transform: translateY(6px); } }

/* --- Connexion --------------------------------------------------------- */

.accueil { min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--haut) + var(--e6)) var(--e5) calc(var(--bas) + var(--e6));
  position: relative; overflow: hidden; isolation: isolate; }
.accueil::before { content: ""; position: absolute; inset: -20% -10% auto; height: 70%; z-index: -1;
  background: radial-gradient(50% 60% at 30% 40%, oklch(0.8 0.1 300 / 0.28), transparent 70%),
    radial-gradient(50% 60% at 70% 30%, oklch(0.82 0.1 210 / 0.32), transparent 70%); }
.accueil-corps { width: min(420px, 100%); display: grid; justify-items: center; text-align: center; gap: var(--e5); }
.boosters { display: flex; justify-content: center; align-items: flex-end; height: 236px; margin-bottom: var(--e2); }
.boosters img { width: 90px; height: 173px; margin-inline: -6px; transform-origin: 50% 100%;
  filter: drop-shadow(0 10px 18px var(--ombre-forte)); }
.boosters img:nth-child(1) { transform: rotate(-12deg) translateY(4px) scale(1.12); }
.boosters img:nth-child(2) { z-index: 1; transform: translateY(-8px) scale(1.32); }
.boosters img:nth-child(3) { transform: rotate(12deg) translateY(4px) scale(1.12); }
.accueil h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
.accueil h1 b { color: var(--accent); }
.accueil-corps > p { color: var(--doux); font-size: var(--t-l); max-width: 30ch; }
.bouton.discord { min-height: 52px; padding: 0 var(--e5); font-size: var(--t-base); background: oklch(0.56 0.2 274);
  border-color: oklch(0.56 0.2 274); color: oklch(0.99 0 0); }
.bouton.discord:hover { background: oklch(0.5 0.2 274); border-color: oklch(0.5 0.2 274); }
.accueil small { color: var(--discret); font-size: var(--t-s); max-width: 36ch; }
.accueil .encart { text-align: left; width: 100%; }

/* --- Mouvement réduit -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .squelette::after, .point.vif { animation: none !important; }
  .rond-charge, .bouton.charge::after { animation-duration: 1.2s !important; animation-iteration-count: infinite !important; }
  .holo .carte { transform: none !important; }
  .eventail .carte:hover, .eventail .carte:focus-visible { transform: none; }
}

/* --- Missions ------------------------------------------------------------ */

@media (max-width: 899px) { .onglet { font-size: 10px; letter-spacing: -0.01em; } .onglet span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; } }
.ext { position: relative; }
.ext-pret { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-rond);
  display: grid; place-items: center; background: var(--or); color: var(--sur-or); font-size: var(--t-xs); font-weight: 800;
  box-shadow: 0 0 0 2px var(--fond); }
.puce.mini { min-height: 20px; padding: 0 7px; font-size: 11px; vertical-align: 2px; }

.missions { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e2); }
.mission { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--e3); align-items: center; padding: var(--e3) var(--e3) var(--e3) var(--e4); border-radius: var(--r-l);
  background: var(--plan); border: 1px solid var(--trait); }
.mission.secrete { grid-template-columns: 48px minmax(0, 1fr) auto; }
.mission-fond { position: absolute; z-index: -1; inset: 0 0 0 auto; width: min(52%, 300px); height: 100%; object-fit: cover;
  object-position: right center; opacity: 0.55; pointer-events: none; }
.mission-vis { width: 48px; height: 48px; display: grid; place-items: center; align-self: start; }
.secret-vis { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--texte); color: var(--plan); font-size: var(--t-xl); font-weight: 800; }
.mission-corps { min-width: 0; display: grid; gap: 6px; }
.mission-titre { margin: 0; font-weight: 700; line-height: 1.35; text-wrap: pretty; }
.mission-titre .puce { margin-left: 6px; }
.mission-indice { margin: 0; color: var(--doux); font-size: var(--t-s); }
.mission-jauge { display: flex; align-items: center; gap: var(--e2); max-width: 340px; }
.mission-jauge .jauge { flex: 1; }
.jauge.fine { height: 6px; }
.mission-jauge small { color: var(--doux); font-size: var(--t-xs); font-weight: 800; white-space: nowrap; }
.mission-cartes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.mission-cartes .carte { width: 46px; border-radius: 4px; }
.mission-cartes .carte .nb { font-size: 10px; }
.mission-manque { display: grid; gap: 6px; }
.manque-titre { margin: 0; font-size: var(--t-s); font-weight: 700; }
.manque-titre small { margin-left: 8px; color: var(--doux); font-weight: 600; }
.manque { position: relative; display: grid; justify-items: center; gap: 2px; width: 46px; }
.manque .carte { width: 46px; }
.manque-n { position: absolute; top: 2px; right: 2px; padding: 0 4px; border-radius: 4px; background: var(--texte);
  color: var(--plan); font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.manque small { color: var(--doux); font-size: 9px; line-height: 1.1; text-align: center; }
.manque-plus { color: var(--doux); font-size: var(--t-xs); font-weight: 700; }
.mission-fin { display: grid; justify-items: end; gap: var(--e2); }
.gains { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.gain { position: relative; display: flex; align-items: center; gap: 3px; min-height: 40px; padding: 3px 8px 3px 3px;
  border-radius: var(--r-m); background: var(--releve); }
.gain img { width: 34px; height: 34px; object-fit: contain; }
.gain img.gain-carte { width: 30px; height: 42px; border-radius: 3px; }
.gain b { font-size: var(--t-xs); font-weight: 800; font-variant-numeric: tabular-nums; }
.gain-texte { padding-left: 6px; font-size: var(--t-xs); font-weight: 700; color: var(--doux); max-width: 120px; line-height: 1.2; }
.mission.a_recuperer, .mission.atteint { background: color-mix(in srgb, var(--or) 14%, var(--plan));
  border-color: color-mix(in srgb, var(--or) 60%, var(--trait)); }
.mission.recuperee { background: var(--releve); }
.mission.recuperee .mission-fond { opacity: 0.25; }
.mission.recuperee .gain img { opacity: 0.55; }
.mission.recuperee .mission-titre { color: var(--doux); }
.mission.secrete { border-style: dashed; border-color: var(--trait-fort); }
@media (max-width: 640px) {
  .mission { grid-template-columns: minmax(0, 1fr); padding-left: var(--e3); }
  .mission.secrete { grid-template-columns: 48px minmax(0, 1fr); }
  .mission-fond { width: 70%; }
  .mission-fin { justify-items: start; }
  .mission.secrete .mission-fin { grid-column: 2; }
  .gains { justify-content: flex-start; }
}

/* --- Combats ------------------------------------------------------------- */

.modes-combat { display: grid; gap: var(--e2); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mode-combat { display: flex; align-items: center; gap: var(--e3); min-height: 72px; padding: var(--e3) var(--e4);
  border-radius: var(--r-l); border: 1.5px solid var(--trait); background: var(--plan); color: var(--texte); text-align: left;
  transition: border-color 160ms var(--sortie), background-color 160ms var(--sortie), transform 160ms var(--sortie-forte); }
.mode-combat img { width: 40px; height: 40px; flex: none; }
.mode-combat b { display: block; font-weight: 800; }
.mode-combat small { display: block; color: var(--doux); font-size: var(--t-s); }
.mode-combat:hover:not([disabled]) { border-color: var(--accent); background: var(--accent-doux); }
.mode-combat:active:not([disabled]) { transform: scale(0.98); }
.mode-combat[disabled] { opacity: 0.5; cursor: not-allowed; }
.mode-combat.charge { opacity: 0.7; cursor: progress; }
.mode-combat.charge img { animation: tourne 1.2s linear infinite; }
.rejeu-boosters { display: flex; flex-wrap: wrap; gap: var(--e2); }
.rejeu-booster { min-height: 44px; padding: 8px var(--e3); border-radius: var(--r-m); border: 1.5px solid var(--trait);
  background: var(--plan); font-weight: 700; text-align: left;
  transition: border-color 160ms var(--sortie), background-color 160ms var(--sortie); }
.rejeu-booster:hover { border-color: var(--trait-fort); }
.rejeu-booster[aria-pressed="true"] { border-color: var(--c2); background: color-mix(in oklch, var(--c1) 22%, var(--plan)); }
.combat-direct { display: grid; gap: var(--e4); }
.combat-tete { display: flex; align-items: center; gap: var(--e3); flex-wrap: wrap; }
.combat-tete > img { width: 48px; height: 48px; }
.combat-tete > div { flex: 1; min-width: min(180px, 100%); }
.combat-statut { margin-top: 6px; color: var(--doux); font-size: var(--t-s); font-weight: 700; overflow-wrap: anywhere; }
.combat-tete h2 { font-size: var(--t-l); margin-bottom: 4px; }
.combat-direct .progression { margin: 0; }
.table-combats { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.table-combats th, .table-combats td { padding: 8px 6px; text-align: left; border-top: 1px solid var(--trait); }
.table-combats thead th { border-top: 0; color: var(--doux); font-weight: 700; }
.table-combats td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-combats tbody th { font-weight: 700; }
.table-combats tr.fini { color: var(--discret); }
.combat-bilan { margin-bottom: var(--e4); }
.combat-bilan h2 { font-size: var(--t-l); }
@media (prefers-reduced-motion: reduce) { .mode-combat.charge img { animation: none; } }

/* 02/11 : god pack confirme Live par un membre sur Discord (bouton ✅ de l'affiche). */
.puces-gp { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.puce.live { background: var(--ok-doux); color: var(--ok); font-weight: 700; }
.point-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.point-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor;
  animation: pouls-live 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
@keyframes pouls-live { from { transform: scale(1); opacity: 0.6; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .point-live::after { animation: none; } }

/* --- Admin (proprietaire seulement) ------------------------------------- */

.entete-admin[aria-current="page"] { color: var(--accent); background: var(--accent-doux); }
@media (max-width: 899px) { .onglet.admin { display: none; } }
@media (min-width: 900px) { .entete-admin { display: none; } }

.admin-groupes { display: grid; gap: var(--e3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 272px), 1fr)); align-items: start; }
.admin-groupe { display: flex; flex-direction: column; gap: var(--e3); min-width: 0; padding: var(--e4);
  background: var(--plan); border: 1px solid var(--trait); border-radius: var(--r-l); }
.admin-groupe.actif { border-color: color-mix(in oklch, var(--ok) 38%, var(--trait)); }
.admin-groupe.sans { background: var(--releve); border-style: dashed; border-color: var(--trait-fort); }
.admin-groupe .sieges { margin-top: 0; }
.admin-groupe-tete { display: flex; align-items: center; gap: var(--e3); min-width: 0; }
.admin-groupe-tete > div { min-width: 0; }
.admin-groupe-tete .piece { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 4px 8px var(--ombre)); }
.admin-groupe-tete h3, .admin-groupe-tete b { display: block; font-size: var(--t-l); font-weight: 800; line-height: 1.2; }
.admin-groupe-tete small { display: block; color: var(--doux); font-size: var(--t-s); }
.piece.admin-sans { display: grid; place-items: center; border-radius: 50%; background: var(--plan); color: var(--doux);
  filter: none; }
.admin-groupe-pied { margin-top: auto; padding-top: var(--e1); }

.admin-puces { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.admin-puces > li { display: flex; min-width: 0; max-width: 100%; }
.admin-puce { display: inline-flex; align-items: center; gap: var(--e2); min-height: 36px; max-width: 100%; min-width: 0;
  padding: 4px 12px 4px 4px; border: 1px solid transparent; border-radius: var(--r-rond); background: var(--releve);
  font-size: var(--t-s); font-weight: 700; text-align: left; transition: background-color 160ms var(--sortie); }
.admin-groupe.sans .admin-puce { background: var(--plan); }
.admin-puce:hover { background: var(--survol); }
.admin-puce.alerte { border-color: color-mix(in oklch, var(--alerte) 45%, transparent); }
.admin-puce .point { color: var(--alerte); }
.admin-puce-texte { display: grid; min-width: 0; line-height: 1.2; }
.admin-puce-texte > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-puce-texte small { color: var(--doux); font-size: var(--t-xs); font-weight: 500; }
.avatar.mini { width: 28px; height: 28px; }

/* Piste minmax(0, 1fr) et min-width: 0 : Safari iOS elargissait la grille a la largeur des filtres (02/11). */
.admin-outils { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--e3); margin-bottom: var(--e3); }
.admin-outils .recherche { max-width: 440px; }
.admin-filtres { display: flex; width: fit-content; }
.admin-liste > li { padding: 0; }
.admin-ligne { display: flex; align-items: center; gap: var(--e3); width: 100%; min-width: 0; min-height: 60px;
  padding: var(--e2) var(--e4); border: 0; background: none; text-align: left;
  transition: background-color 160ms var(--sortie); }
.admin-ligne:hover { background: var(--survol); }
.admin-ligne:focus-visible { outline-offset: -3px; border-radius: var(--r-l); }
.admin-ligne .puce { flex: none; }
.admin-ligne > .ic { color: var(--discret); }
.admin-liste-zone > .admin-note:first-child { margin-bottom: var(--e2); }

.admin-reglages { padding-block: var(--e1); }
.admin-reglage { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e3);
  padding: var(--e3) 0; }
.admin-reglage + .admin-reglage { border-top: 1px solid var(--trait); }
.admin-reglage-texte { flex: 1 1 260px; min-width: 0; }
.admin-reglage-texte b { display: block; font-weight: 800; }
.admin-reglage-texte small { display: block; color: var(--doux); font-size: var(--t-s); max-width: 60ch; }
.admin-reglage > b { font-weight: 800; }
.admin-pas { display: inline-flex; align-items: center; gap: var(--e2); }
.admin-pas output { min-width: 3ch; text-align: center; font-size: var(--t-l); font-weight: 800; }
.admin-ligne-champ { display: flex; flex-wrap: wrap; gap: var(--e2); align-items: center; min-width: 0; }
.admin-ligne-champ > .saisie { flex: 1 1 200px; min-width: 0; width: auto; }
.admin-reglage .admin-ligne-champ { flex: 1 1 320px; }

.encart.ok { background: var(--ok-doux); }
.encart.ok .ic { color: var(--ok); }
.encart.retour { align-items: center; }
.encart.retour > .ic { align-self: flex-start; margin-top: 2px; }
.encart.retour p + p { margin-top: 2px; }
.encart.retour .bouton { flex: none; margin: -6px -8px -6px 0; }

#feuille-admin { --largeur-admin: 640px; }
@media (min-width: 720px) { dialog#feuille-admin { width: min(var(--largeur-admin), calc(100% - 48px)); } }
.admin-profil { margin-top: var(--e1); }
.admin-profil > div { display: grid; gap: var(--e2); min-width: 0; }
.admin-compte { color: var(--doux); font-weight: 700; overflow-wrap: anywhere; }
.admin-details { margin-top: var(--e4); }
.admin-details, .admin-ids .details { align-items: center; }
.admin-details + .encart { margin-top: var(--e4); }
.admin-volet { margin-top: var(--e5); padding-top: var(--e4); border-top: 1px solid var(--trait); }
.admin-volet > h3 { font-size: var(--t-m); font-weight: 800; }
.admin-volet > * + * { margin-top: var(--e3); }
.admin-volet > .interrupteur { padding-block: var(--e2); }
.admin-volet > .interrupteur + .interrupteur { margin-top: 0; }
.admin-champ { display: grid; gap: 6px; min-width: 0; }
.admin-etiquette { font-size: var(--t-s); font-weight: 700; color: var(--doux); }
.admin-note { color: var(--doux); font-size: var(--t-s); max-width: 65ch; }
.admin-note .ic { vertical-align: -3px; margin-right: 6px; }
.interrupteur.arme .libelle small { color: var(--alerte); font-weight: 700; }
.admin-historique { list-style: none; margin: 0; padding: 0; }
.admin-historique li { display: flex; align-items: center; gap: var(--e2); padding: var(--e2) 0; font-size: var(--t-m); }
.admin-historique li + li { border-top: 1px solid var(--trait); }
.admin-historique .ic { color: var(--doux); }
.admin-historique time { margin-left: auto; padding-left: var(--e3); color: var(--doux); font-size: var(--t-s); white-space: nowrap; }
.admin-ids { padding: var(--e4); border-radius: var(--r-m); background: var(--releve); }
.admin-id { min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.admin-secrets { display: grid; gap: .5rem; padding-top: .75rem; border-top: 1px solid var(--releve); }
.admin-id.secret { font-family: ui-monospace, monospace; font-size: .85em; word-break: break-all; }
.admin-ids .rangee { flex-wrap: nowrap; }
@media (max-width: 599px) {
  .admin-ids .details { grid-template-columns: 1fr; row-gap: 2px; }
  .admin-ids .details dd + dt { margin-top: var(--e2); }
}
.admin-ids-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e2);
  margin-top: var(--e3); }

.admin-lancer > * + * { margin-top: var(--e4); }
.admin-lancer .saisie { max-width: 180px; }

/* 11/11 : auto partage (page Compte) */
.auto-reglages { margin-top: var(--e4); gap: var(--e3) var(--e4); }
.auto-interrupteur { cursor: pointer; }
.auto-interrupteur input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.auto-file-titre { font-size: var(--t-m); margin: var(--e4) 0 var(--e2); }
.auto-vignette { width: 40px; height: 56px; flex: none; border-radius: 4px; object-fit: cover; background: var(--releve); }
.auto-haut { transform: rotate(-90deg); }
.liste > li.fait { opacity: 0.6; }

/* 11/11 : ancre #/compte/autoshare, sous l en-tete fixe */
#autoshare, #autotrade { scroll-margin-top: 88px; }
#autoshare:focus, #autotrade:focus { outline: none; }

/* 11/11 : mode automatique ou moi-meme de /share et /trade */
.mode-ligne { display: flex; align-items: center; justify-content: space-between; gap: var(--e3);
  padding: var(--e3) 0; border-top: 1px solid var(--trait); }
.mode-texte { min-width: 0; flex: 1; }
.mode-texte b { display: block; font-weight: 800; }
.mode-texte small { display: block; color: var(--doux); font-size: var(--t-s); text-wrap: pretty; }
@media (max-width: 520px) {
  .mode-ligne { flex-direction: column; align-items: stretch; }
  .mode-ligne .segments { align-self: flex-start; }
}

/* 11/11 : auto echange, une paire par ligne (recue, sens, donnee). */
.liste > li.ae-ligne { flex-wrap: wrap; }
.ae-carte { display: flex; align-items: center; gap: var(--e2); flex: 1 1 150px; min-width: 0; }
.ae-carte .qui { min-width: 0; }
.ae-carte .qui b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-sens { flex: none; color: var(--doux); }
.ae-ligne > .rangee, .ae-ligne > .puce { margin-left: auto; }

/* 11/11 : carte d'activite d'un /trade, la paire de cartes d'abord. */
.fil-echange { display: grid; gap: var(--e2); padding: var(--e4); }
.ech-paire { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: var(--e3); max-width: 300px; width: 100%; margin: 0 auto var(--e2); }
.ech-cote { margin: 0; display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.ech-cote .carte { width: 100%; max-width: 104px; }
.ech-cote figcaption { display: grid; gap: 1px; min-width: 0; max-width: 100%; }
.ech-cote figcaption small { color: var(--doux); font-size: var(--t-xs); }
.ech-cote figcaption b { font-size: var(--t-s, .875rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ech-trou { width: 100%; max-width: 104px; aspect-ratio: 184 / 257; border-radius: 6px; border: 2px dashed var(--trait);
  display: grid; place-items: center; color: var(--doux); font-size: 1.6rem; font-weight: 800; background: var(--releve); }
.ech-sens { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--releve); color: var(--accent); border: 1px solid var(--trait); }
.fil-echange.vif .ech-sens svg { animation: ech-tourne 2.4s cubic-bezier(.22, 1, .36, 1) infinite; }
.fil-echange.rate .ech-sens { color: var(--alerte, #d33); }
@keyframes ech-tourne { 0%, 35% { transform: rotate(0); } 65%, 100% { transform: rotate(180deg); } }
.ech-statut { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: var(--t-m); }
.ech-statut .point { color: var(--ok); }
.ech-resume { margin: 0; text-align: center; color: var(--doux); font-size: var(--t-s, .875rem); text-wrap: pretty; }
.ech-actions { display: grid; gap: var(--e3); }
.ech-actions .msg-boutons { justify-content: center; }
.ech-actions .choix-echange { margin-top: 0; }
.ech-details { border-top: 1px solid var(--trait); padding-top: var(--e2); }
.ech-details > summary { cursor: pointer; color: var(--doux); font-size: var(--t-xs); text-align: center; list-style: none; }
.ech-details > summary::-webkit-details-marker { display: none; }
.ech-details > .fil-corps { padding: var(--e3) 0 0; }
.choix-pied { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .fil-echange.vif .ech-sens svg { animation: none; } }
