/* Wishmaster : design system « paquet cadeau ».
 *
 * Source : le design system Claude Design (wishmaster.css), repris tel quel
 * pour les tokens et les composants (.btn, .card, .chip, .gift, .secret,
 * .wish, .menu…). Les anciennes classes `wm-*` des pages sont rhabillées plus
 * bas avec ces mêmes tokens : une seule palette, un seul jeu de formes.
 *
 * Thème : clair par défaut, sombre (« coin du feu ») si l'appareil le
 * demande, ou forcé par l'attribut data-theme posé sur <html> (choix du menu
 * du compte, gardé dans le navigateur).
 *
 * Polices servies par l'instance (licence OFL, voir static/fonts) : aucune
 * requête vers un site tiers.
 */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/atkinson-hyperlegible-next-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  /* Papier & surfaces */
  --paper: #fdf4e7;
  --surface: #fffcf6;
  --surface-2: #f7ead6;
  --surface-3: #f0dfc4;
  /* Encre */
  --ink: #2a2018;
  --ink-2: #5b4c3e;
  --ink-3: #75634f;
  --line: #eadbc3;
  --line-strong: #d3bd9b;
  /* Sapin (accent, actions) */
  --sapin: #1f6b4a;
  --sapin-hover: #185a3d;
  --sapin-tint: #e2efe5;
  --sapin-ink: #17543a;
  --on-sapin: #fffcf6;
  /* Or (ruban, décor ; jamais pour du texte courant) */
  --or: #d9a93a;
  --or-line: #e3c27a;
  --or-tint: #fbf0d6;
  --or-ink: #7a5608;
  /* Houx (destructif) */
  --houx: #a3302b;
  --houx-hover: #8a2420;
  --houx-tint: #f8e3df;
  --houx-ink: #8a2420;
  --on-houx: #fffcf6;
  /* Noël : baie (rouge canneberge, décor festif) & nuit (sapin profond) */
  --baie: #a61e34;
  --baie-tint: #f9e1e3;
  --baie-ink: #8e1a2c;
  --nuit: #123d2b;
  --on-nuit: #fdf4e7;
  --on-nuit-2: rgba(253, 244, 231, .78);
  --lumiere: #4fae80;
  --neige: rgba(122, 86, 8, .10);
  /* Focus */
  --focus: #2563c9;
  /* Ombres chaudes */
  --shadow-1: 0 1px 2px rgba(74, 46, 18, .06), 0 8px 24px -14px rgba(74, 46, 18, .30);
  --shadow-2: 0 2px 6px rgba(74, 46, 18, .07), 0 22px 44px -22px rgba(74, 46, 18, .38);
  /* Typo */
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Espacements (base 4) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  /* Rayons */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  /* Neige légère : deux semis de flocons décalés */
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #17120e;
  --surface: #211a15;
  --surface-2: #2b231c;
  --surface-3: #362b22;
  --ink: #f5e9d6;
  --ink-2: #cdbba3;
  --ink-3: #a8957e;
  --line: #392e25;
  --line-strong: #514234;
  --sapin: #6cc59a;
  --sapin-hover: #86d3ad;
  --sapin-tint: #1c3227;
  --sapin-ink: #93ddb8;
  --on-sapin: #0e2118;
  --or: #e0b552;
  --or-line: #8a6c2a;
  --or-tint: #2e2514;
  --or-ink: #ecc66e;
  --houx: #ee8a80;
  --houx-hover: #f4a79f;
  --houx-tint: #3a1d1a;
  --houx-ink: #f4a79f;
  --on-houx: #2a0f0c;
  --baie: #f08a96;
  --baie-tint: #3d1a20;
  --baie-ink: #f6a9b2;
  --nuit: #0f2a1f;
  --on-nuit: #f5e9d6;
  --on-nuit-2: rgba(245, 233, 214, .78);
  --lumiere: #6cc59a;
  --neige: rgba(255, 255, 255, .07);
  --focus: #8ab6ff;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 26px -14px rgba(0, 0, 0, .7);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 48px -22px rgba(0, 0, 0, .8);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #17120e; --surface: #211a15; --surface-2: #2b231c; --surface-3: #362b22;
    --ink: #f5e9d6; --ink-2: #cdbba3; --ink-3: #a8957e; --line: #392e25; --line-strong: #514234;
    --sapin: #6cc59a; --sapin-hover: #86d3ad; --sapin-tint: #1c3227; --sapin-ink: #93ddb8; --on-sapin: #0e2118;
    --or: #e0b552; --or-line: #8a6c2a; --or-tint: #2e2514; --or-ink: #ecc66e;
    --houx: #ee8a80; --houx-hover: #f4a79f; --houx-tint: #3a1d1a; --houx-ink: #f4a79f; --on-houx: #2a0f0c;
    --baie: #f08a96; --baie-tint: #3d1a20; --baie-ink: #f6a9b2;
    --nuit: #0f2a1f; --on-nuit: #f5e9d6; --on-nuit-2: rgba(245, 233, 214, .78); --lumiere: #6cc59a; --neige: rgba(255, 255, 255, .07);
    --focus: #8ab6ff;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 26px -14px rgba(0, 0, 0, .7);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 48px -22px rgba(0, 0, 0, .8);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4, .t-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.15;
  text-wrap: balance;
}
p { text-wrap: pretty; }
.t-display { font-size: 48px; line-height: 1.05; }
.t-h1 { font-size: 36px; }
.t-h2 { font-size: 26px; }
.t-h3 { font-size: 20px; }
.t-body { font-size: 17px; }
.t-small { font-size: 15px; }
.t-meta { font-size: 14px; color: var(--ink-3); }
.t-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.t-muted { color: var(--ink-2); }
.t-num { font-variant-numeric: tabular-nums; }
a { color: var(--sapin-ink); text-underline-offset: 3px; }
a:hover { color: var(--sapin-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 16px; } }

/* ---------- Icônes (SVG trait) ---------- */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 24px; height: 24px; }
.ic-sm { width: 16px; height: 16px; }
.ic-dots { stroke-width: 3.2; }
.ic-fill { fill: currentColor; stroke: none; }

/* ---------- Barre du haut : sapin de nuit, liseré or, guirlande ---------- */
.topbar { position: relative; z-index: 2; background: var(--nuit); color: var(--on-nuit); border-bottom: 3px solid var(--or); }
/* Guirlande : ampoules baie / or / vert, accrochées sous le liseré */
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; pointer-events: none;
  background:
    radial-gradient(circle at 12px 4px, var(--baie) 3px, transparent 3.7px) 0 0 / 72px 10px repeat-x,
    radial-gradient(circle at 36px 5px, var(--or) 3px, transparent 3.7px) 0 0 / 72px 10px repeat-x,
    radial-gradient(circle at 60px 4px, var(--lumiere) 3px, transparent 3.7px) 0 0 / 72px 10px repeat-x; }
.topbar .brand { color: var(--on-nuit); }
.topbar .t-meta { color: var(--on-nuit-2); }
.topbar .btn-ghost { color: var(--on-nuit) !important; }
.topbar .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.topbar-in { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--baie); color: var(--on-sapin); display: grid; place-items: center; position: relative; overflow: hidden; }
.brand-mark::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 5px; margin-left: -2.5px; background: var(--or); }
.brand-mark::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 5px; margin-top: -2.5px; background: var(--or); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); color: var(--on-nuit-2) !important; text-decoration: none; font-weight: 600; font-size: 16px; }
.nav-link:hover { color: var(--on-nuit) !important; }
.nav-link[aria-current="page"] { color: var(--on-nuit) !important; text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--or); color: #2a2018; font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; }
.topbar .nav { margin-left: auto; }
/* Pilule du compte : avatar + nom + chevron, ouvre le menu */
.usermenu { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 16px 4px 6px; border-radius: var(--r-pill); border: 1.5px solid color-mix(in srgb, var(--or) 65%, transparent); background: rgba(255, 255, 255, .06); color: var(--on-nuit); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.usermenu:hover { background: rgba(255, 255, 255, .12); }
.usermenu[aria-expanded="true"] { background: rgba(255, 255, 255, .14); border-color: var(--or); }
.usermenu[aria-expanded="true"] .chev { transform: rotate(180deg); }
.chev { transition: transform .15s ease; }

/* ---------- Menus déroulants ---------- */
.dropdown { position: relative; display: inline-flex; }
.menu { position: absolute; right: 0; top: calc(100% + 14px); z-index: 30; min-width: 300px; padding: 8px; display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--or); border-radius: 16px; box-shadow: var(--shadow-2); text-align: left; }
.menu-head { display: flex; gap: 12px; align-items: center; padding: 10px 12px 12px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: none; color: var(--ink) !important; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-2); }
.menu-item .ic { color: var(--ink-3); }
.menu-item .chip { margin-left: auto; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-sm { min-width: 230px; }
/* Sous-menu dépliable (Thème) dans le menu du compte */
.menu-item .chev { margin-left: auto; }
.menu-item[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu-sub { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; }
.menu-title { padding: 8px 14px 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
/* Options à choix unique : coche à droite sur l'option active */
.menu-item .check { margin-left: auto; color: var(--sapin-ink); }
.menu-item[aria-checked="false"] .check { visibility: hidden; }
.menu-item[aria-checked="true"] { background: var(--sapin-tint); }
.menu-item small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); line-height: 1.2; }
.lang-code { display: inline-grid; place-items: center; width: 34px; height: 24px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 700; letter-spacing: .04em; flex: none; }
/* Boutons-icônes de la barre (langue, thème) */
.bar-tools { display: flex; gap: 4px; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--on-nuit-2); cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); color: var(--on-nuit); }
.icon-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .16); color: var(--on-nuit); box-shadow: inset 0 0 0 1.5px var(--or); }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 4px 0 14px; font-weight: 600; }
/* Sélecteur compact (langue, thème) : un vrai <select>, en pilule */
.select-sm { width: auto; min-height: 44px; padding: 0 40px 0 16px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; }
.topbar .select-sm { background-color: rgba(255, 255, 255, .06); color: var(--on-nuit); border-color: rgba(255, 255, 255, .22); }
.topbar .select-sm option { color: #2a2018; background: #fffcf6; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barre d'onglets mobile : même nuit de sapin, liseré or */
.tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--nuit); border-top: 3px solid var(--or); padding: 6px 6px 10px; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; justify-content: center; border-radius: 14px; color: var(--on-nuit-2) !important; text-decoration: none; font-size: 13px; font-weight: 600; }
.tab[aria-current="page"] { color: var(--on-nuit) !important; background: rgba(255, 255, 255, .14); box-shadow: inset 0 -2px 0 var(--or); }

/* ---------- Boutons (pilule, cible ≥ 44px) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 1.5px solid transparent; font: inherit; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--sapin); color: var(--on-sapin) !important; }
.btn-primary:hover { background: var(--sapin-hover); }
.btn-secondary { background: var(--surface); color: var(--ink) !important; border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--sapin-ink) !important; }
.btn-ghost:hover { background: var(--sapin-tint); }
.btn-danger { background: var(--surface); color: var(--houx-ink) !important; border-color: var(--houx); }
.btn-armed { background: var(--houx); color: var(--on-houx) !important; box-shadow: 0 0 0 4px var(--houx-tint); }
.btn-gold { background: var(--or); color: #2a2018 !important; }
.btn[disabled] { background: var(--surface-2); color: var(--ink-3) !important; border-color: transparent; cursor: not-allowed; box-shadow: none; }
.btn-icon { width: 48px; padding: 0; }
.armed-hint { font-size: 14px; color: var(--houx-ink); font-weight: 600; }

/* ---------- Champs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 15px; font-weight: 700; color: var(--ink); }
.hint { font-size: 14px; color: var(--ink-3); }
.input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; }
.input::placeholder { color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.url-add { display: flex; gap: 8px; padding: 8px; border-radius: var(--r-pill); background: var(--surface); border: 1.5px solid var(--line-strong); align-items: center; }
.url-add .input { border: 0; min-height: 48px; background: transparent; border-radius: var(--r-pill); }
.url-add .input:focus { box-shadow: none; }
.select { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }

/* Segmenté (langue, filtres) */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: var(--surface-2); }
.seg-btn { min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- Puces & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 12px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: 14px; font-weight: 700; white-space: nowrap; }
.chip-sapin { background: var(--sapin-tint); color: var(--sapin-ink); }
.chip-or { background: var(--or-tint); color: var(--or-ink); box-shadow: inset 0 0 0 1px var(--or-line); }
.chip-houx { background: var(--houx-tint); color: var(--houx-ink); }
.chip-baie { background: var(--baie-tint); color: var(--baie-ink); }
.chip-outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }

.stars { display: inline-flex; gap: 2px; color: var(--or); }
.stars .off { color: var(--line-strong); }

/* ---------- Avatars ---------- */
.avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 16px; flex: none; position: relative; color: var(--ink); background: var(--surface-3); }
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.av-1 { background: #f3d9c4; color: #5a3014; }
.av-2 { background: #d6e6da; color: #1d4a33; }
.av-3 { background: #e9dcf0; color: #4a2a5c; }
.av-4 { background: #f5e3b0; color: #5c430a; }
.av-5 { background: #d7e3ef; color: #1f3d5c; }
.av-6 { background: #f0d3d0; color: #6a1f1a; }
:root[data-theme="dark"] .av-1 { background: #4a2f1e; color: #f3d9c4; }
:root[data-theme="dark"] .av-2 { background: #22402f; color: #d6e6da; }
:root[data-theme="dark"] .av-3 { background: #3d2c48; color: #e9dcf0; }
:root[data-theme="dark"] .av-4 { background: #4a3a12; color: #f5e3b0; }
:root[data-theme="dark"] .av-5 { background: #233a52; color: #d7e3ef; }
:root[data-theme="dark"] .av-6 { background: #4c2420; color: #f0d3d0; }
.avatar-managed::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 16px; height: 16px; border-radius: 50%; background: var(--or); border: 2.5px solid var(--surface); }
.avatars { display: flex; }
.avatars .avatar { border: 2.5px solid var(--surface); margin-left: -10px; }
.avatars .avatar:first-child { margin-left: 0; }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card-pad { padding: 24px; }
.card-flat { box-shadow: none; }
.card-sunken { background: var(--surface-2); border-color: transparent; box-shadow: none; }

/* Carte « paquet » : un ruban rouge baie liseré d'or, l'étiquette y est accrochée */
.gift { position: relative; overflow: hidden; }
.gift::before { content: ""; position: absolute; top: 0; bottom: 0; right: 61px; width: 14px;
  background: linear-gradient(90deg, var(--or) 0 2px, var(--baie) 2px 12px, var(--or) 12px 14px); }
.ribbon-v { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--or) 0 2px, var(--baie) 2px calc(100% - 2px), var(--or) calc(100% - 2px)); }
.ribbon-h { position: absolute; left: 0; right: 0; background: linear-gradient(180deg, var(--or) 0 2px, var(--baie) 2px calc(100% - 2px), var(--or) calc(100% - 2px)); }
.bow { position: absolute; fill: var(--baie); stroke: var(--or); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 3px 4px rgba(74, 20, 18, .25)); }
/* Brin de houx devant les titres de section */
.section-title > h2::before { content: ""; display: inline-block; width: 1.05em; height: .8em; margin-right: .35em; vertical-align: -.02em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 20'%3E%3Cpath d='M14 12C10 4 4 3 1 6c3 0 4 2 3 4 2-1 4 0 4 2 1-1 4-1 6 0z' fill='%232f8a5f'/%3E%3Cpath d='M14 12c4-8 10-9 13-6-3 0-4 2-3 4-2-1-4 0-4 2-1-1-4-1-6 0z' fill='%232f8a5f'/%3E%3Ccircle cx='11.5' cy='14.5' r='3' fill='%23c0293f'/%3E%3Ccircle cx='16.5' cy='14.5' r='3' fill='%23c0293f'/%3E%3Ccircle cx='14' cy='10.5' r='3' fill='%23d63a50'/%3E%3C/svg%3E") center / contain no-repeat; }
.gift-body { padding: 24px 132px 24px 24px; position: relative; }
.gift-tag { position: absolute; top: 18px; right: 22px; z-index: 1; min-width: 92px; padding: 10px 14px; background: var(--surface); border: 1.5px solid var(--or-line); border-radius: 12px; box-shadow: var(--shadow-1); text-align: center; }
.gift-tag-num { display: block; font-family: var(--font-serif); font-size: 28px; font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.gift-tag-unit { display: block; font-size: 13px; font-weight: 700; color: var(--or-ink); margin-top: 4px; }

/* ---------- Rappel du secret ---------- */
.secret { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--or-tint); color: var(--ink-2); font-size: 15px; box-shadow: inset 0 0 0 1px var(--or-line); }
.secret strong { color: var(--ink); }
.secret .ic { color: var(--or-ink); }

/* ---------- Souhaits ---------- */
.wish { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px; }
.wish + .wish { border-top: 1px solid var(--line); }
.wish-img { width: 112px; height: 112px; border-radius: var(--r-md); background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); position: relative; overflow: hidden; }
.wish-img-photo { background: linear-gradient(160deg, var(--surface-3), var(--surface-2)); }
.wish-title { font-family: var(--font-serif); font-size: 20px; font-weight: 600; line-height: 1.25; }
.wish-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.wish-price { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.wish-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 200px; }
/* Déjà réservé : rayures de sucre d'orge, très douces */
.wish.is-taken { background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--baie) 7%, transparent) 14px 19px); }
.wish.is-taken .wish-img { filter: saturate(.4); }
.wish.is-mine { background: color-mix(in srgb, var(--sapin-tint) 55%, transparent); }
@media (max-width: 720px) {
  .wish { grid-template-columns: 80px minmax(0, 1fr); }
  .wish-img { width: 80px; height: 80px; }
  .wish-actions { grid-column: 1 / -1; min-width: 0; flex-direction: row; flex-wrap: wrap; }
  .wish-actions .btn { flex: 1 1 140px; }
}

/* Poignée de réordonnancement */
.grip { width: 44px; min-height: 44px; display: grid; place-items: center; color: var(--ink-3); background: transparent; border: 0; border-radius: 10px; cursor: grab; }

/* ---------- Divers ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.link-more { font-weight: 700; font-size: 15px; text-decoration: none; }
.feed-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.feed-item + .feed-item { border-top: 1px solid var(--line); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--sapin); border-radius: 999px; }
.kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; padding: 2px 8px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); }
.swatch { height: 72px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.archived { filter: grayscale(.35); }
.banner-archive { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2); font-size: 15px; border: 1.5px dashed var(--line-strong); }

/* Avatars en thème automatique sombre (le design ne les donne que pour le
 * thème sombre forcé). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .av-1 { background: #4a2f1e; color: #f3d9c4; }
  :root:not([data-theme="light"]) .av-2 { background: #22402f; color: #d6e6da; }
  :root:not([data-theme="light"]) .av-3 { background: #3d2c48; color: #e9dcf0; }
  :root:not([data-theme="light"]) .av-4 { background: #4a3a12; color: #f5e3b0; }
  :root:not([data-theme="light"]) .av-5 { background: #233a52; color: #d7e3ef; }
  :root:not([data-theme="light"]) .av-6 { background: #4c2420; color: #f0d3d0; }
}

/* =========================================================
   Page : papier, neige légère
   ========================================================= */

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 22% 30%, var(--neige) 1.6px, transparent 2.2px),
    radial-gradient(circle at 74% 78%, var(--neige) 1.2px, transparent 1.8px);
  background-size: 150px 150px, 96px 96px;
  -webkit-font-smoothing: antialiased;
}

h1 { font-size: 36px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

::placeholder { color: var(--ink-3); }

.topbar { position: sticky; top: 0; z-index: 20; }
.topbar .brand-mark { flex: none; }
.usermenu { list-style: none; user-select: none; }
.usermenu::-webkit-details-marker { display: none; }
.dropdown[open] > .usermenu { background: rgba(255, 255, 255, .14); border-color: var(--or); }
.dropdown[open] > .usermenu .chev { transform: rotate(180deg); }
.usermenu .wm-avatar { width: 32px; height: 32px; font-size: 13px; }
.menu-head .wm-avatar { width: 44px; height: 44px; font-size: 16px; }
.menu-head p { overflow-wrap: anywhere; }
.menu-sub[hidden] { display: none; }
.nav-link.is-current { color: var(--on-nuit) !important; text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.icon-txt { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 720px) {
  .topbar-in { gap: 8px 12px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
  .topbar .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .topbar .nav::-webkit-scrollbar { display: none; }
  .topbar .dropdown { margin-left: auto; }
  .usermenu .usermenu-name { display: none; }
  .usermenu { padding: 4px 10px 4px 6px; }
  .menu { position: fixed; left: 12px; right: 12px; top: 72px; min-width: 0; }
  .nav-link { padding: 0 12px; }
}

/* En-têtes de page communs (fil d'Ariane, titre, sous-titre) */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-head__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-height: 44px; font-size: 15px; }

/* Carte « paquet » cliquable (tableau de bord) */
a.card.gift { display: block; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.card.gift:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: inherit; }
.gift-body > * + * { margin-top: 16px; }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.gift.is-archived { filter: grayscale(.35); }

/* Entête d'événement : ruban croisé et nœud */
.event-hero { position: relative; overflow: hidden; }
.event-hero__body { position: relative; padding: 40px 220px 104px 40px; display: flex; flex-direction: column; gap: 18px; }
.event-hero .gift-tag { top: 28px; right: 68px; min-width: 112px; padding: 14px 16px; }
.event-hero .gift-tag-num { font-size: 40px; }
@media (max-width: 720px) {
  .event-hero__body { padding: 28px 24px 96px; }
  .event-hero .ribbon-v { right: 40px !important; }
  .event-hero .gift-tag { top: auto; bottom: 14px; right: 80px; }
  .event-hero .bow { display: none; }
}

/* Cartes de participant */
.people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.person { display: flex; gap: 14px; align-items: center; padding: 18px; color: inherit; text-decoration: none; }
a.person:hover { border-color: var(--line-strong); color: inherit; }
.person.is-me { background: var(--sapin-tint); border-color: transparent; box-shadow: none; }
.person.is-waiting { box-shadow: none; border-style: dashed; border-color: var(--line-strong); background: transparent; }
.person__text { flex: 1; min-width: 0; }

/* Mise en page à deux colonnes du design : contenu + colonne latérale */
.layout-2 { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.layout-2__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.layout-2__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }

/* Liste compacte de lignes cliquables dans une carte (mes listes…) */
.rowlink { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; min-height: 56px; color: inherit !important; text-decoration: none; }
.rowlink:hover { background: var(--surface-2); }
.rowlink + .rowlink { border-top: 1px solid var(--line); }
.rowlink--muted { color: var(--ink-2) !important; padding: 0; min-height: 48px; }
.rowlink--muted:hover { background: none; color: var(--ink) !important; }

/* =========================================================
   Anciennes classes des pages, rhabillées avec les tokens
   ========================================================= */

/* Alias : quelques styles en ligne référencent encore ces noms. */
:root {
  --wm-bg: var(--paper);
  --wm-surface: var(--surface);
  --wm-surface-alt: var(--surface-2);
  --wm-border: var(--line);
  --wm-border-strong: var(--line-strong);
  --wm-text: var(--ink);
  --wm-text-muted: var(--ink-3);
  --wm-accent: var(--sapin);
  --wm-accent-soft: var(--sapin-tint);
  --wm-gold: var(--or-ink);
  --wm-gold-soft: var(--or-tint);
  --wm-danger: var(--houx-ink);
  --wm-danger-soft: var(--houx-tint);
  --wm-space-1: 4px;
  --wm-space-2: 8px;
  --wm-space-3: 12px;
  --wm-space-4: 16px;
  --wm-space-6: 24px;
  --wm-space-8: 32px;
  --wm-space-12: 48px;
  --wm-radius: var(--r-lg);
  --wm-radius-sm: var(--r-sm);
  --wm-text-sm: 15px;
}

.wm-page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 32px 80px; }
.wm-page--narrow { max-width: 560px; }
@media (max-width: 720px) { .wm-page { padding: 24px 16px 64px; } }

.wm-page > * + * { margin-top: 24px; }
.wm-page > .page-head + *, .wm-page > .crumbs + * { margin-top: 16px; }

.wm-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 24px; }
@media (max-width: 720px) { .wm-card { padding: 18px; } }
.wm-card--link { display: block; text-decoration: none; color: inherit !important; transition: transform .15s ease, box-shadow .15s ease; }
.wm-card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

.wm-muted { color: var(--ink-3); font-size: 15px; }
.wm-center { text-align: center; }
.wm-prose { max-width: 44rem; }
.wm-grow { flex: 1; min-width: 8rem; }
.wm-prewrap { white-space: pre-wrap; }

.wm-stack { display: flex; flex-direction: column; gap: 16px; }
.wm-stack > * { margin: 0; }
.wm-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wm-row--between { justify-content: space-between; }
.wm-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.wm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: 24px; align-items: start; }
.wm-split { display: grid; gap: 24px; align-items: start; }
@media (min-width: 62rem) {
  .wm-split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; }
  .wm-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.wm-split__col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.wm-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 16px 0 0; }
.wm-dl dt { color: var(--ink-3); font-size: 15px; }
.wm-dl dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }

/* Champs */
.wm-field { display: flex; flex-direction: column; gap: 6px; }
.wm-label { font-size: 15px; font-weight: 700; color: var(--ink); }
.wm-input { min-height: 52px; padding: 0 16px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; max-width: 100%; }
textarea.wm-input { padding: 12px 16px; min-height: 96px; line-height: 1.5; }
select.wm-input { appearance: none; cursor: pointer; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.wm-input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.wm-input:disabled { background: var(--surface-2); color: var(--ink-2); cursor: not-allowed; }
.wm-input--tiny { width: 5.5rem; }
.wm-input--url { width: 100%; font-size: 15px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--sapin); width: 18px; height: 18px; }

/* Boutons */
.wm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink) !important; font: inherit; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.wm-btn:hover { background: var(--surface-2); }
.wm-btn--primary { background: var(--sapin); border-color: transparent; color: var(--on-sapin) !important; }
.wm-btn--primary:hover { background: var(--sapin-hover); }
.wm-btn--danger { color: var(--houx-ink) !important; border-color: var(--houx); }
.wm-btn--danger:hover { background: var(--houx-tint); }
.wm-btn--armed { background: var(--houx); color: var(--on-houx) !important; border-color: transparent; box-shadow: 0 0 0 4px var(--houx-tint); }
.wm-btn--armed:hover { background: var(--houx-hover); }
.wm-btn--ghost { background: transparent; border-color: transparent; color: var(--sapin-ink) !important; }
.wm-btn--ghost:hover { background: var(--sapin-tint); }
.wm-btn--small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.wm-btn--block { display: flex; width: 100%; }
.wm-btn:disabled { background: var(--surface-2); color: var(--ink-3) !important; border-color: transparent; cursor: not-allowed; box-shadow: none; }

/* Puces */
.wm-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 12px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: 14px; font-weight: 700; white-space: nowrap; }
.wm-tag--mine { background: var(--sapin-tint); color: var(--sapin-ink); }
.wm-tag--warn { background: var(--or-tint); color: var(--or-ink); box-shadow: inset 0 0 0 1px var(--or-line); }
.wm-tag--danger { background: var(--houx-tint); color: var(--houx-ink); }

/* Statuts (administration) */
.wm-status { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.wm-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.wm-status--ok { color: var(--sapin-ink); }
.wm-status--error { color: var(--houx-ink); }
.wm-status--pending { color: var(--ink-3); }

/* Messages */
.wm-alert { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--r-md); font-size: 15px; font-weight: 600; }
.wm-alert--error { background: var(--houx-tint); color: var(--houx-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--houx) 35%, transparent); }
.wm-alert--ok { background: var(--sapin-tint); color: var(--sapin-ink); }
.wm-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 15px; }
.wm-divider::before, .wm-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* États vides */
.wm-empty { text-align: center; padding: 32px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--ink-2); }
.wm-empty__icon { font-size: 2.25rem; display: block; margin-bottom: 8px; }

/* Souhaits (anciennes vues) */
.wm-wish { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.wm-wish__main { flex: 1; min-width: 14rem; display: flex; flex-direction: column; gap: 4px; }
.wm-wish--taken { background: repeating-linear-gradient(135deg, var(--surface) 0 14px, color-mix(in srgb, var(--baie) 7%, var(--surface)) 14px 19px); }
.wm-thumb { width: 112px; height: 112px; object-fit: cover; border-radius: var(--r-md); background: var(--surface-2); flex-shrink: 0; }
@media (max-width: 720px) { .wm-thumb { width: 80px; height: 80px; } }

.wm-linkrow { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); }
.wm-list-entry { display: flex; align-items: center; gap: 12px; padding: 14px 18px; min-height: 56px; border-radius: var(--r-md); background: var(--surface-2); color: inherit !important; text-decoration: none; }
.wm-list-entry:hover { background: var(--surface-3); }

/* Avatars (photo ou initiale) */
.wm-avatar { border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.wm-avatar--initial { display: inline-grid; place-items: center; font-weight: 700; text-transform: uppercase; line-height: 1; }
.wm-avatar--sm { width: 32px; height: 32px; font-size: 13px; }
.wm-avatar--md { width: 44px; height: 44px; font-size: 16px; }
.wm-avatar--lg { width: 80px; height: 80px; font-size: 28px; }

/* Menu de choix (langue du profil) : la pilule segmentée du design */
.wm-choice { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: var(--surface-2); flex-wrap: wrap; }
.wm-choice__option { min-height: 40px; padding: 0 18px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.wm-choice__option--active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* Tableaux (administration) */
.wm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.wm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wm-table th, .wm-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.wm-table th { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); white-space: nowrap; }
.wm-table tr:last-child td { border-bottom: none; }
.wm-table td.wm-table__num { text-align: right; font-variant-numeric: tabular-nums; }

/* Accueil d'un visiteur */
.wm-hero { text-align: center; padding: 48px 0 32px; }
.wm-hero__eyebrow { display: inline-flex; min-height: 30px; align-items: center; padding: 3px 14px; border-radius: var(--r-pill); background: var(--or-tint); color: var(--or-ink); box-shadow: inset 0 0 0 1px var(--or-line); font-size: 14px; font-weight: 700; margin-bottom: 24px; }
.wm-hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; max-width: 18ch; margin: 0 auto 16px; }
.wm-hero__lede { max-width: 46ch; margin: 0 auto 32px; color: var(--ink-2); font-size: 19px; }
.wm-hero__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.wm-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 24px; margin-top: 32px; }
.wm-feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 24px; text-align: left; }
.wm-feature__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--or-tint); box-shadow: inset 0 0 0 1px var(--or-line); font-size: 1.4rem; margin-bottom: 12px; }
.wm-feature h3 { margin-bottom: 4px; }
.wm-feature p { color: var(--ink-2); font-size: 15px; }

/* Tirage au sort */
.wm-quote { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-size: 15px; color: var(--ink-2); }
.wm-surface-alt-box { padding: 16px; background: var(--surface-2); border-radius: var(--r-md); }
.wm-target { border-color: transparent; }
.wm-thread { display: flex; flex-direction: column; gap: 8px; max-height: 22rem; overflow-y: auto; }
.wm-bubble { align-self: flex-start; max-width: 85%; padding: 10px 14px; background: var(--surface-2); border-radius: 16px; }
.wm-bubble--mine { align-self: flex-end; background: var(--sapin-tint); }
.draw-card { padding: 0; overflow: hidden; }
.draw-card__head { padding: 22px 24px; background: var(--sapin); color: var(--on-sapin); display: flex; gap: 12px; align-items: center; }
.draw-card__head h2 { color: var(--on-sapin); margin: 0; }
.draw-card__body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }

/* Suggestions par IA */
.wm-suggestion { flex: 1 1 0; min-width: 0; }
.wm-suggestion .wm-tag { margin-left: 8px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Puce cliquable (partage, choix rapides) : cible de 44px */
.wm-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink) !important; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.wm-chip:hover { background: var(--surface-2); }
.wm-text-lg { font-size: 19px; }
.wm-link-small { font-size: 15px; font-weight: 700; text-decoration: none; }
.menu .t-meta { color: var(--ink-3); }
.stack-4 { display: flex; flex-direction: column; gap: 4px; }
.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.gift-body > .stack-4 + * { margin-top: 16px; }
.form-head { padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.form-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.plain-fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plain-fieldset > legend { padding: 0; margin-bottom: 10px; }
.inline-add { display: flex; gap: 8px; padding: 12px 12px 12px 16px; border-top: 1px solid var(--line); align-items: center; }
.inline-add .input { min-height: 48px; }
.grouprow { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: inherit !important; text-decoration: none; }
.grouprow:hover { border-color: var(--line-strong); }
.back-link { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; align-self: flex-start; }
.stack-18 { display: flex; flex-direction: column; gap: 18px; }
.section-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.person-card { display: flex; flex-direction: column; }
.person-card .person { padding: 18px; }
.person__list { color: var(--ink-2) !important; text-decoration: none; display: block; }
a.person__list:hover { color: var(--sapin-ink) !important; text-decoration: underline; }
.person__choose { padding: 0 18px 16px; }
.person__actions { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px 10px; border-top: 1px solid var(--line); }
.person-card.is-me { background: var(--sapin-tint); border-color: transparent; box-shadow: none; }
.person-card.is-waiting { box-shadow: none; border-style: dashed; border-color: var(--line-strong); background: transparent; }
.avatar-wrap { position: relative; display: inline-flex; flex: none; }
.avatar-wrap.avatar-managed::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 16px; height: 16px; border-radius: 50%; background: var(--or); border: 2.5px solid var(--surface); }
.share-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.share-grid .btn { padding: 0 8px; }
.event-hero.archived { filter: grayscale(.35); }
.wish-photo { width: 100%; height: 100%; object-fit: cover; }
.stars .star-on .ic { fill: currentColor; }
.wish--owner { grid-template-columns: 44px 96px minmax(0, 1fr) auto; }
.wish-img--sm { width: 96px; height: 96px; }
.mover { display: flex; flex-direction: column; }
.mover .grip { min-height: 40px; cursor: pointer; }
.mover .grip:disabled { opacity: .3; cursor: default; }
.mover .grip:not(:disabled):hover { background: var(--surface-2); color: var(--ink); }
.import-box { border-radius: 18px; padding: 18px; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: start; background: var(--surface-2); }
.fields-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; align-items: end; }
.stars .star-on .ic, .stars [aria-pressed] .star-on .ic { fill: currentColor; }
@media (max-width: 720px) {
  .wish--owner { grid-template-columns: 44px 64px minmax(0, 1fr); }
  .wish--owner .wish-img--sm { width: 64px; height: 64px; }
  .wish--owner > :last-child { grid-column: 1 / -1; }
  .import-box { grid-template-columns: 1fr; }
  .import-box > .wish-img { display: none; }
}
.prio-star { color: var(--or) !important; }
.prio-star.is-off { color: var(--line-strong) !important; }
.prio-star:hover { background: var(--or-tint); }
.wish--resa { grid-template-columns: 44px minmax(0, 1fr) auto; }
@media (max-width: 720px) { .wish--resa { grid-template-columns: 44px minmax(0, 1fr); } .wish--resa > :last-child { grid-column: 1 / -1; justify-content: flex-start !important; } }
@media (max-width: 720px) {
  .t-display { font-size: 36px; }
  .t-h1 { font-size: 30px; }
  .card-pad { padding: 18px; }
  .form-head, .form-body { padding-left: 18px; padding-right: 18px; }
}
.wm-card:not(.wm-stack) > h2, .wm-card:not(.wm-stack) > h3, .wm-card:not(.wm-stack) > form > h2 { margin-bottom: 12px; }

/* Rubrique courante : la pilule du compte sur Mon profil, Personnes gérées, Administration */
.usermenu.is-current { border-color: var(--or); background: rgba(255, 255, 255, .14); box-shadow: inset 0 -2px 0 var(--or); }
.avatars > .avatar-wrap { margin-left: -10px; }
.avatars > .avatar-wrap:first-child { margin-left: 0; }
.avatars .wm-avatar { box-shadow: 0 0 0 2.5px var(--surface); }

/* ---------- Réservations, groupes, profil (T28) ---------- */
.stack-14 { display: flex; flex-direction: column; gap: 14px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }
.stack-36 { display: flex; flex-direction: column; gap: 36px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value { font-size: 44px; line-height: 1; }
.stat--nuit { background: var(--nuit); color: var(--on-nuit); border-color: transparent; border-bottom: 3px solid var(--or); }
.stat--nuit .stat-label { font-size: 14px; font-weight: 700; color: var(--on-nuit-2); }
.stat--nuit .stat-sub { font-size: 15px; color: var(--on-nuit-2); }
.draw-gauge { border-radius: 16px; padding: 14px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.progress--over > span { background: var(--houx); }
.wish-img--resa { width: 88px; height: 88px; }
.wish.is-removed .wish-title { text-decoration: line-through; color: var(--ink-3); }
.rowlink-title { color: inherit !important; text-decoration: none; }
.rowlink-title:hover { text-decoration: underline; text-decoration-color: var(--or); }
@media (max-width: 720px) { .wish-img--resa { width: 72px; height: 72px; } .stat-value { font-size: 36px; } }
.profile-page { max-width: 920px; padding-top: 48px; padding-bottom: 64px; }
.profile-photo { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.profile-photo__avatar { position: relative; width: 128px; height: 128px; flex: none; }
.wm-avatar--xl { width: 128px; height: 128px; font-size: 44px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--or); }
.profile-photo__edit { position: absolute; right: -6px; bottom: -6px; width: 48px; height: 48px; min-height: 48px; box-shadow: 0 0 0 3px var(--surface); }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; align-items: start; }
.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.plain-fieldset > legend.label { padding: 0; margin-bottom: 6px; }
.radio-line { display: flex; gap: 12px; align-items: center; min-height: 48px; cursor: pointer; }
.radio-line input, .lang-option input { width: 22px; height: 22px; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.lang-option { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; min-height: 64px; }
.lang-option.is-checked { border: 2px solid var(--sapin); background: var(--sapin-tint); }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.groups-page { padding-top: 48px; padding-bottom: 64px; }
.master-detail { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.master-detail__main { flex: 999 1 680px; min-width: 0; }
.group-nav { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.group-nav__item { display: flex; gap: 14px; align-items: center; padding: 16px 18px; color: inherit !important; text-decoration: none; }
.group-nav__item:hover { background: var(--surface-2); }
.group-nav__item.is-current { border: 2px solid var(--sapin); box-shadow: none; }
.group-summary { padding: 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.group-events { padding: 0 28px 28px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chip-link { text-decoration: none; min-height: 36px; }
.chip-link:hover { filter: brightness(.96); text-decoration: underline; }
.members-head { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.members-count { font-family: var(--font-sans); font-weight: 400; }
.members-search { max-width: 280px; min-height: 44px; }
.member-row { display: flex; gap: 14px; align-items: center; padding: 14px 24px; min-height: 68px; }
.btn-remove { color: var(--houx-ink) !important; }
.members-more { width: 100%; min-height: 56px; border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--sapin-ink); cursor: pointer; }
.members-more:hover { background: var(--surface-2); }
.managed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.managed-tile { border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
@media (max-width: 720px) {
  .group-summary { padding: 20px; }
  .group-events { padding: 0 20px 20px; }
  .member-row { padding: 12px 16px; flex-wrap: wrap; }
  .members-head { padding: 18px 16px; }
  .members-search { max-width: none; flex: 1 1 100%; }
  .hide-sm { display: none; }
}
.group-summary > .btn { max-width: 100%; white-space: normal; text-align: left; }
.managed-page { max-width: 1080px; padding-top: 48px; padding-bottom: 64px; }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }
.wm-avatar--hd { width: 56px; height: 56px; font-size: 20px; }
.managed-invite { display: flex; gap: 16px; align-items: center; padding: 18px 22px; flex-wrap: wrap; border: 1.5px solid var(--or-line); background: var(--or-tint); box-shadow: none; }
.managed-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.managed-head--closed { padding: 20px 28px; }
.managed-head--open { padding: 22px 28px; border-bottom: 1px solid var(--line); }
.chev-up { display: inline-flex; transform: rotate(180deg); }
.managed-body { padding: 28px; }
.managed-identity { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.managed-photo { display: flex; flex-direction: column; gap: 12px; align-items: center; flex: none; width: 160px; }
.managed-photo__avatar { width: 120px; height: 120px; }
.managed-photo__avatar .wm-avatar--xl { width: 120px; height: 120px; font-size: 40px; }
.managed-list { display: flex; gap: 14px; align-items: center; padding: 16px 20px; color: inherit !important; text-decoration: none; min-height: 64px; }
.managed-list:hover { background: var(--surface-2); }
.manager-chip { min-height: 44px; padding: 0 14px 0 6px; gap: 10px; }
.managed-add { padding: 24px 28px; border: 1.5px dashed var(--line-strong); background: transparent; }
.managed-add__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; align-items: end; }
@media (max-width: 720px) {
  .managed-head--closed, .managed-head--open { padding: 18px 20px; }
  .managed-body { padding: 20px; }
  .managed-photo { width: 100%; }
  .managed-add { padding: 20px; }
}

/* Profil : jetons d'API (accès MCP). */
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.token-value {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--paper-sunk, rgba(127, 127, 127, 0.12));
  font-size: 14px;
  overflow-x: auto;
  user-select: all;
}

/* Formulaire de souhait : vignettes de la recherche d'image. */
.image-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.image-result {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 1;
  cursor: pointer;
}
.image-result:hover,
.image-result:focus-visible { border-color: var(--houx-ink); }
.image-result img { width: 100%; height: 100%; object-fit: cover; display: block; font-size: 0; color: transparent; }
