/* =============================================================================
   Dediboom — tokens maquettes
   -----------------------------------------------------------------------------
   Pont entre les maquettes de ce projet et packages/web-ui/src/styles du repo.

   Trois couches, de la plus concrète à la plus parlante :

     1. PRIMITIVES   --db-*        la palette, consolidée
     2. RÔLES        --surface-*, --text-*, --line-*, --brand-*, --btn-*
     3. SÉMANTIQUES  --background, --primary…   les noms du repo, en alias

   On écrit du RÔLE dans les composants, jamais de la primitive. Changer
   d'univers ne redéfinit que la couche 2 : tout suit.

   Les 582 nuances relevées dans les maquettes sont ramenées à 46 primitives.

   Fusions au-delà de 4 niveaux (les seules visibles à l'œil averti) :
     #7a7a7a → --db-gray-600   Δ10 puis relevé à #868686 pour passer AA
     #333333 → --db-ink-350    Δ7   (ligne forte, pas survol)
     #3a3a3a → --db-ink-200    Δ4
     #f5f5f5 → --db-white      Δ10  (texte déjà quasi blanc)
   Les fusions portent sur des écarts de 1 à 7 niveaux sur fond sombre,
   imperceptibles, sauf là où l'écart portait une information (bordure vs
   survol vs actif) : ces trois-là restent distincts.
   ============================================================================= */

/* ── Enregistrement animable (miroir de tokens/properties.css) ─────────────── */

@property --background { syntax: "<color>"; inherits: true; initial-value: #171717; }
@property --muted-background { syntax: "<color>"; inherits: true; initial-value: #212121; }
@property --tainted-background { syntax: "<color>"; inherits: true; initial-value: #0c0c0c; }
@property --foreground { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --card { syntax: "<color>"; inherits: true; initial-value: #1b1b1b; }
@property --card-foreground { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --popover { syntax: "<color>"; inherits: true; initial-value: #212121; }
@property --popover-foreground { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --primary { syntax: "<color>"; inherits: true; initial-value: #9330f8; }
@property --primary-foreground { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --color-primary-hover { syntax: "<color>"; inherits: true; initial-value: #a24dff; }
@property --primary-gradient-1 { syntax: "<color>"; inherits: true; initial-value: #571c92; }
@property --primary-gradient-2 { syntax: "<color>"; inherits: true; initial-value: #b57bff; }
@property --secondary { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --secondary-foreground { syntax: "<color>"; inherits: true; initial-value: #111111; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #1b1b1b; }
@property --muted-foreground { syntax: "<color>"; inherits: true; initial-value: #8e8e8e; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #262626; }
@property --accent-foreground { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --destructive { syntax: "<color>"; inherits: true; initial-value: #e8574d; }
@property --destructive-light { syntax: "<color>"; inherits: true; initial-value: #f27b87; }
@property --destructive-foreground { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --border { syntax: "<color>"; inherits: true; initial-value: #262626; }
@property --ring { syntax: "<color>"; inherits: true; initial-value: #9330f8; }
@property --sidebar { syntax: "<color>"; inherits: true; initial-value: #212121; }
@property --sidebar-foreground { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --sidebar-accent { syntax: "<color>"; inherits: true; initial-value: #262626; }
@property --sidebar-border { syntax: "<color>"; inherits: true; initial-value: #262626; }

/* ── 1 · PRIMITIVES ───────────────────────────────────────────────────────── */

:root,
[data-theme="defaultTheme"] {
  --db-black: #000000;
  --db-ink-900: #0c0c0c;
  --db-ink-850: #101010;   /* fusionne 0e0e13 0f0f0f 0f1011 101010 */   /* fusionne 0b0b0b 0c0c0c 0e0e0e 101010 */
  --db-ink-800: #121212;   /* fusionne 121212 141414 151515 161616 */
  --db-ink-700: #171717;   /* fusionne 171717 181818 */
  --db-ink-600: #1b1b1b;   /* fusionne 1a1a1a 1b1b1b 1c1c1c 1d1d1d 1e1e1e */
  --db-ink-500: #212121;   /* fusionne 1f1f1f 202020 222222 232323 */
  --db-ink-400: #262626;   /* fusionne 242424 252525 262626 272727 — rôle bordure, préservé */
  --db-ink-350: #2c2c2c;   /* fusionne 2a2a2a 2b2b2b 2c2c2c 2e2e2e 2f2f2f 333333 (Δ7) */
  --db-ink-300: #303030;   /* rôle survol, préservé — employé via --btn-secondary-hover */
  --db-ink-200: #363636;   /* fusionne 343434 3a3a3a 3d3d3d 3f3f3f — rôle actif, préservé */

  --db-white: #ffffff;     /* fusionne ffffff f5f5f5 f2f2f2 f0f0f0 */
  --db-gray-100: #e5e5e5;  /* fusionne e2e2e2 e4e4e4 e5e5e5 ebebeb ededed */
  --db-gray-200: #d2d2d2;  /* fusionne cfcfcf d4d4d4 */
  --db-gray-300: #bdbdbd;
  --db-gray-400: #a0a0a0;  /* fusionne 9a9a9a 9d9d9d a3a3a3 */
  --db-gray-500: #989898;  /* fusionne 8a8a8a 929292 — relevé : 5,24:1 sur --line */
  --db-gray-600: #8e8e8e;  /* fusionne 6a6a6a 6b6b6b 6f6f6f 7a7a7a — relevé : 4,62:1 sur --line, le fond de texte le plus clair du système */
  --db-gray-700: #8b8b8b;  /* relevé (rôle --text-ghost, employé comme texte) : 4,5:1 sur --surface-raised */
  --db-gray-900: #111111;

  --db-violet-900: #2a1d3d;
  --db-violet-800: #571c92;
  --db-violet-700: #6a26ad;  /* fusionne 6a1fc4 6a26ad */
  --db-violet-600: #9330f8;
  --db-violet-500: #a24dff;  /* fusionne a24dff a44dff */
  --db-violet-400: #b57bff;
  --db-violet-300: #c99bff;
  --db-violet-200: #d6b4ff;

  --db-green-700: #2f9e5b;
  --db-green-600: #4caf50;  /* fusionne 4caf50 4fa87c */
  --db-green-400: #8fdc93;  /* fusionne 7fd3a8 8fdc93 */
  --db-green-300: #7fd383;
  --db-green-200: #9be3be;
  --db-gold-900: #1a1205;
  --db-gold-600: #b8752e;
  --db-gold-500: #d99a33;
  --db-gold-400: #f3c169;  /* fusionne d7b46a f3c169 */
  --db-gold-200: #ffe2a3;
  --db-amber-400: #ffb04d;
  --db-coral-900: #3d1d17;
  --db-coral-400: #f27b87;
  --db-coral-300: #f59aa3;  /* fusionne f27b87 ff8a6b ff8a70 ff8a96 */
  --db-blue-600: #2b6cb0;
  --db-blue-400: #7fc8ff;   /* fusionne 7fc8ff 8fb7ff */
}

/* ── 2 · RÔLES ────────────────────────────────────────────────────────────────
   C'est cette couche qu'on écrit dans les composants.
   ========================================================================== */

:root,
[data-theme="defaultTheme"],
[data-theme="loudTheme"] {
  /* Rayons — l'univers Dediboom est rond ; Loud les écrase (voir plus bas).
     Un composant n'écrit jamais un px d'arrondi, seulement un rôle. */
  --radius-pill: 999px;
  /* Les visages et les pastilles de présence restent ronds dans TOUS les univers :
     une photo de profil carrée ne se lit plus comme une personne. Volontairement
     absent du bloc loudTheme. */
  --radius-avatar: 50%;
  --radius-dot: 999px;
  /* Les bulles de conversation suivent la même règle que les visages : une
     bulle carrée ne se lit plus comme une parole. Leur galbe est celui d'une
     messagerie — pleinement arrondi, resserré entre deux messages d'affilée,
     prolongé d'une attache sur le dernier du groupe. Volontairement absent du
     bloc [data-circle-shape] : tout univers, présent ou futur, en hérite sans
     avoir à le redéclarer. */
  --radius-bubble: 18px;
  --radius-bubble-tight: 5px;
  /* L'attache se dessine en deux temps : un carré de la couleur de la bulle
     dont un seul coin est arrondi en ellipse (d'où la pointe, et non un
     moignon), puis un second carré de la couleur du fil qui recreuse
     l'extérieur. --bubble-thread doit donc toujours valoir le fond réel du
     fil, sinon l'entaille se voit. */
  --bubble-tail-w: 20px;
  --bubble-tail-h: 20px;
  --bubble-tail-r: 16px 14px;
  --bubble-cut-w: 26px;
  --bubble-cut-h: 21px;
  --bubble-cut-r: 10px;
  --bubble-thread: var(--surface-sunken);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 11px;
  --radius-sm: 8px;
  --radius-xs: 4px;

  /* Typographie */
  --font-display: Manrope, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-ui: var(--font-body);

  /* Surfaces, du plus profond au plus proche */
  --surface-black: var(--db-black);
  --surface-sunken: var(--db-ink-900);
  --surface-deep: var(--db-ink-850);   /* châssis d'application, puits média */
  --surface-well: var(--db-ink-800);     /* média vide, encoches profondes */
  --surface-app: var(--db-ink-700);      /* toile principale */
  --surface-base: var(--db-ink-600);     /* cartes, panneaux */
  --surface-raised: var(--db-ink-500);   /* popovers, champs, puces */
  --surface-hover: var(--db-ink-300);
  --surface-active: var(--db-ink-200);

  /* Lignes */
  --line-subtle: var(--db-ink-500);
  --line: var(--db-ink-400);
  --line-strong: var(--db-ink-350);

  /* Texte, du plus fort au plus sourd */
  --text-primary: var(--db-white);
  --text-bright: var(--db-gray-100);
  --text-secondary: var(--db-gray-200);
  --text-tertiary: var(--db-gray-300);
  --text-muted: var(--db-gray-400);
  --text-subtle: var(--db-gray-500);
  --text-faint: var(--db-gray-600);
  --text-ghost: var(--db-gray-700);
  --text-inverse: var(--db-gray-900);

  /* Marque */
  --brand-shadow: var(--db-violet-900);
  --brand-deep: var(--db-violet-800);
  --brand-dark: var(--db-violet-700);
  --brand: var(--db-violet-600);
  --brand-hover: var(--db-violet-500);
  --brand-light: var(--db-violet-400);
  --brand-soft: var(--db-violet-300);
  --brand-pale: var(--db-violet-200);

  /* Statuts */
  --ok: var(--db-green-400);
  --ok-light: var(--db-green-300);
  --ok-soft: var(--db-green-200);
  --ok-strong: var(--db-green-600);
  --ok-deep: var(--db-green-700);
  --warn: var(--db-amber-400);
  --danger: var(--db-coral-400);
  --danger-soft: var(--db-coral-300);
  --danger-shadow: var(--db-coral-900);
  --info: var(--db-blue-400);
  --info-deep: var(--db-blue-600);
  --premium: var(--db-gold-400);
  --premium-pale: var(--db-gold-200);
  --premium-deep: var(--db-gold-500);
  --premium-dark: var(--db-gold-600);
  --premium-shadow: var(--db-gold-900);

  /* Premiers plans sur fond de statut — chaque pastille porte sa propre encre.
     Les statuts sont des couleurs claires : du blanc dessus tombe à 1,6–2,8:1.
     L'encre sombre donne 7 à 11,5:1. Le violet de marque est le seul fond
     assez sombre pour porter du blanc (5,23:1). */
  --on-warn: var(--text-inverse);
  --on-danger: var(--text-inverse);
  --on-ok: var(--text-inverse);
  --on-premium: var(--text-inverse);
  --on-info: var(--text-inverse);
  --on-brand: var(--db-white);

  /* ── RÈGLE D'ÉTAT : l'encre s'apparie TOUJOURS à son fond ──────────────────
     Un état de survol ne doit jamais redéfinir la couleur du texte seule. Si
     le survol touche à l'encre, il doit fournir le fond qui va avec — sinon un
     élément SÉLECTIONNÉ, dont le fond est déjà clair, reçoit une encre claire
     et son libellé disparaît.

     CONTRAINTE TECHNIQUE : style-hover compile en UNE règle CSS de classe,
     partagée par toutes les instances. Elle ne peut donc pas contenir de trous
     {{ }} — ils sont écartés et la règle sort VIDE, c'est-à-dire sans état de
     survol du tout. Un survol s'écrit toujours en littéraux.

     Le motif fautif n° 1, l'encre seule :
         color:{{ t.fg }}; background:{{ t.bg }}
         style-hover="color:var(--text-primary)"
     Sur un élément sélectionné à fond clair, le libellé disparaît.

     Le motif fautif n° 2, le survol à trous :
         style-hover="color:{{ t.fgHover }}; background:{{ t.bgHover }}"
     Compile en rien. L'état de survol est silencieusement perdu.

     Le motif juste : une variante par état, chacune avec son survol littéral.
         <sc-if value="{{ t.on }}">
           <button style="color:var(--btn-primary-fg);background:var(--btn-primary-bg)"
                   style-hover="background:var(--btn-primary-hover)">     ← l'encre ne bouge pas
         <sc-if value="{{ t.off }}">
           <button style="color:var(--text-subtle);background:transparent"
                   style-hover="color:var(--text-primary);background:var(--surface-hover)">

     Règle de fond : si le survol touche à l'encre, il fournit le fond qui va
     avec. Sur un état sélectionné, le plus sûr est de ne pas toucher à l'encre
     du tout et de ne faire varier que le fond. */

  /* Contrôles — quatre variantes, c'est tout ce qu'une page devrait employer */
  --btn-primary-bg: var(--text-primary);
  --btn-primary-fg: var(--surface-app);
  --btn-primary-hover: var(--text-bright);

  --btn-brand-bg: var(--brand);
  --btn-brand-fg: var(--db-white);
  --btn-brand-hover: var(--brand-hover);

  --btn-secondary-bg: var(--line);
  --btn-secondary-fg: var(--text-primary);
  --btn-secondary-hover: var(--surface-hover);

  --btn-accent-bg: var(--brand-wash);
  --btn-accent-fg: var(--brand-pale);
  --btn-accent-hover: var(--brand-veil);

  --btn-quiet-bg: var(--surface-raised);
  --btn-quiet-fg: var(--text-tertiary);
  --btn-quiet-hover: var(--line);

  /* Teintes translucides — dérivées des rôles, donc elles suivent l'univers */
  --brand-wash: color-mix(in srgb, var(--brand) 14%, transparent);
  --brand-tint: color-mix(in srgb, var(--brand) 16%, transparent);
  --brand-veil: color-mix(in srgb, var(--brand) 22%, transparent);
  --brand-glow: color-mix(in srgb, var(--brand) 30%, transparent);
  --brand-ring: color-mix(in srgb, var(--brand) 40%, transparent);
  --brand-scrim: color-mix(in srgb, var(--brand) 45%, transparent);
  --brand-light-ring-soft: color-mix(in srgb, var(--brand-light) 32%, transparent);
  --brand-light-ring: color-mix(in srgb, var(--brand-light) 40%, transparent);
  --brand-light-edge: color-mix(in srgb, var(--brand-light) 50%, transparent);
  --brand-light-glow: color-mix(in srgb, var(--brand-light) 30%, transparent);
  --ok-wash: color-mix(in srgb, var(--ok) 14%, transparent);
  --warn-wash: color-mix(in srgb, var(--warn) 14%, transparent);
  --premium-wash: color-mix(in srgb, var(--premium) 14%, transparent);
  --danger-wash: color-mix(in srgb, var(--danger) 16%, transparent);

  --brand-film: color-mix(in srgb, var(--brand) 4%, transparent);
  --brand-mist: color-mix(in srgb, var(--brand) 8%, transparent);
  --brand-haze: color-mix(in srgb, var(--brand) 20%, transparent);
  --premium-mist: color-mix(in srgb, var(--premium) 6%, transparent);
  --premium-haze: color-mix(in srgb, var(--premium) 7%, transparent);
  --premium-veil: color-mix(in srgb, var(--premium) 18%, transparent);
  --ok-glow: color-mix(in srgb, var(--ok) 80%, transparent);
  --ok-mist: color-mix(in srgb, var(--ok) 10%, transparent);
  --ok-tint: color-mix(in srgb, var(--ok) 14%, transparent);
  --ok-veil: color-mix(in srgb, var(--ok) 34%, transparent);

  /* Échelle de tailles — plancher relevé pour la lisibilité (registre Discord)
     Les demi-pixels de l'ancienne échelle sont supprimés. */
  --text-3xs: 10px;
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 16px;
  --text-xl: 17px;
  --text-2xl: 19px;
  --text-3xl: 21px;
  --text-4xl: 23px;
  --text-5xl: 26px;
  --text-6xl: 30px;
  --text-7xl: 34px;

  --tracking-display: -0.022em;
  --tracking-body: 0em;

  /* Contour de focus : l'accent de texte de la marque, qui tient 3:1 (et plus) sur les surfaces dans les deux lumières
     et les deux univers — le plein de marque tombait à 2,7:1 sur les surfaces LOUD sombres. */
  --focus-ring: var(--brand-light);
  --selection: var(--brand-ring);
  /* Limite d'un champ de saisie (WCAG 1.4.11) : 3:1 sur les surfaces, là où --line reste un filet discret. */
  --field-rim: color-mix(in srgb, var(--text-primary) 44%, var(--surface-raised));
}

/* ── Univers (identité d'une marque, pas du thème actif) ──────────────────────
   Ces valeurs servent à représenter un univers AUTRE que celui affiché — la
   pastille « Loud » vue depuis Dediboom, par exemple. Elles ne suivent donc
   volontairement pas data-theme.
   ========================================================================== */

:root {
  --univ-loud-flame: rgb(255 77 46 / 45%);
  --univ-loud-ember: rgb(255 90 60 / 34%);
  --univ-loud-ember-soft: rgb(255 90 60 / 32%);
  --univ-loud-ash: rgb(255 236 214 / 22%);
  --univ-loud-ash-soft: rgb(255 236 214 / 20%);
}

/* ── 3 · SÉMANTIQUES DU REPO ──────────────────────────────────────────────── */

:root,
[data-theme="defaultTheme"],
[data-theme="loudTheme"] {
  --background: var(--surface-app);
  --muted-background: var(--surface-raised);
  --tainted-background: var(--surface-sunken);
  --foreground: var(--text-primary);
  --card: var(--surface-base);
  --card-foreground: var(--text-primary);
  --popover: var(--surface-raised);
  --popover-foreground: var(--text-primary);
  --primary: var(--brand);
  --primary-foreground: var(--db-white);
  --color-primary-hover: var(--brand-hover);
  --primary-gradient-1: var(--brand-deep);
  --primary-gradient-2: var(--brand-light);
  --secondary: var(--text-primary);
  --secondary-foreground: var(--text-inverse);
  --muted: var(--surface-base);
  --muted-foreground: var(--text-subtle);
  --accent: var(--line);
  --accent-foreground: var(--text-primary);
  --destructive: var(--danger);
  --destructive-light: var(--danger);
  --destructive-foreground: var(--db-white);
  --border: var(--line);
  --border-width: 1px;
  --input: rgb(255 255 255 / 15%);
  --ring: var(--focus-ring);
  --radius: 0.625rem;
  --sidebar: var(--surface-raised);
  --sidebar-foreground: var(--text-primary);
  --sidebar-accent: var(--line);
  --sidebar-accent-foreground: var(--text-primary);
  --sidebar-border: var(--line);
}

/* ── Univers Loud ─────────────────────────────────────────────────────────────
   Ne redéfinit que les PRIMITIVES : les rôles, les contrôles et les noms du
   repo suivent sans une ligne de plus. Valeurs prises de
   packages/web-ui/src/styles/tokens/themes/loud-theme.css.
   ========================================================================== */

[data-theme="loudTheme"] {
  /* Métal, rock, punk : arêtes vives. Tout l'arrondi tombe, pilules comprises.
     Le repo pose --radius: 0.125rem ; on étend la même intention à l'échelle. */
  --radius-pill: 2px;
  --radius-xl: 0px;
  --radius-lg: 0px;
  --radius-md: 2px;
  --radius-sm: 2px;
  --radius-xs: 0px;

  --font-display: "Metal Mania", serif;
  --font-body: Oswald, sans-serif;

  --db-ink-900: oklch(9% 0 0deg);
  --db-ink-800: oklch(11% 0 0deg);
  --db-ink-700: oklch(13.1% 0 0deg);
  --db-ink-600: oklch(15.1% 0 0deg);
  --db-ink-500: oklch(18.9% 0 0deg);
  --db-ink-400: oklch(22.8% 0 0deg);
  --db-ink-350: oklch(25.5% 0 0deg);
  --db-ink-300: oklch(28% 0 0deg);
  --db-ink-200: oklch(32% 0 0deg);

  --db-white: oklch(92.6% 0 0deg);
  --db-gray-100: oklch(86% 0 0deg);
  --db-gray-200: oklch(78% 0 0deg);
  --db-gray-300: oklch(70% 0 0deg);
  /* Encres secondaires relevées : les surfaces LOUD sont plus sombres que celles de Dediboom ;
     muted, subtle, faint et ghost tiennent 4,5:1 sur ses surfaces de texte (jusqu'à --db-ink-400). */
  --db-gray-400: oklch(67% 0 0deg);
  --db-gray-500: oklch(64% 0 0deg);
  --db-gray-600: oklch(62% 0 0deg);
  --db-gray-700: oklch(60.5% 0 0deg);
  --db-gray-900: oklch(13.1% 0 0deg);

  --db-violet-900: oklch(20% 0.04 30deg);
  --db-violet-800: oklch(30% 0.13 29deg);
  --db-violet-700: oklch(34% 0.145 29deg);
  --db-violet-600: oklch(39.99% 0.1641 29.23deg);
  --db-violet-500: oklch(49.1% 0.182 25.77deg);
  --db-violet-400: oklch(54% 0.18 25deg);
  --db-violet-300: oklch(62% 0.16 25deg);
  --db-violet-200: oklch(70% 0.13 25deg);

  --radius: 0.125rem;
}

/* ── 5 · VERRE ────────────────────────────────────────────────────────────────
   Le matériau « verre » est une identité de l'univers Dediboom : léger, givré,
   saturé, avec un liseré spéculaire en haut. Loud ne le porte pas — ses
   surfaces restent pleines et mates. Un composant n'écrit jamais rgba() + blur
   pour faire du verre : il lit l'une des six recettes ci-dessous, et l'univers
   décide s'il y a du verre ou non.

     bar     barres flottantes (onglets mobiles)
     header  en-têtes collants sous lesquels le contenu défile
     panel   menus, popovers, feuilles, dialogues
     chip    pastilles et boutons posés sur une photo ou une vidéo
     scrim   voile derrière une modale (filtre seulement, la teinte reste locale)
     surface cartes et blocs pleins (reflet seul, sans flou : le contenu reste net)

   Usage, toujours par paire fond + filtre :
     background: var(--glass-panel-fill);
     backdrop-filter: var(--glass-panel-filter);
     -webkit-backdrop-filter: var(--glass-panel-filter);

   --glass-sheen est un calque d'image (dégradé ou none) à empiler devant un
   fond plein : background: var(--glass-sheen), var(--surface-base).
   ========================================================================== */

:root,
[data-theme="defaultTheme"] {
  --glass-sheen: linear-gradient(180deg, rgb(255 255 255 / 4.5%) 0%, rgb(255 255 255 / 0%) 46%);
  --glass-rim: inset 0 1px 0 rgb(255 255 255 / 9%), inset 0 0 0 1px rgb(255 255 255 / 4%);

  --glass-bar-fill: color-mix(in srgb, var(--surface-raised) 56%, transparent);
  --glass-bar-filter: blur(26px) saturate(190%) brightness(1.06);
  --glass-bar-rim: inset 0 1px 0 rgb(255 255 255 / 15%), inset 0 0 0 1px rgb(255 255 255 / 7%), inset 0 -1px 0 rgb(0 0 0 / 22%);
  --glass-bar-shadow: 0 16px 38px -12px rgb(0 0 0 / 70%), 0 3px 10px rgb(0 0 0 / 28%);

  --glass-lens-fill: linear-gradient(180deg, rgb(255 255 255 / 13%), rgb(255 255 255 / 6%));
  --glass-lens-rim: inset 0 1px 0 rgb(255 255 255 / 20%), inset 0 0 0 1px rgb(255 255 255 / 6%);

  --glass-header-fill: color-mix(in srgb, var(--surface-app) 72%, transparent);
  --glass-header-filter: blur(24px) saturate(180%);
  --glass-header-rim: inset 0 -1px 0 rgb(255 255 255 / 6%);

  --glass-panel-fill: color-mix(in srgb, var(--surface-raised) 80%, transparent);
  --glass-panel-filter: blur(30px) saturate(175%);

  --glass-chip-fill: rgb(16 16 18 / 72%);
  --glass-chip-light-fill: rgb(255 255 255 / 13%);
  --glass-chip-filter: blur(16px) saturate(170%);

  --glass-scrim-filter: blur(16px) saturate(140%);

  /* Cartes et blocs pleins : un reflet givré très léger en tête, sur le fond
     de surface. S'écrit background: var(--glass-surface-fill). */
  --glass-surface-fill: var(--glass-sheen), var(--surface-base);

  /* Liseré spéculaire à empiler en tête d'un box-shadow existant :
     box-shadow: var(--glass-edge), 0 24px 60px … */
  --glass-edge: inset 0 1px 0 rgb(255 255 255 / 8%);
}

/* Loud : un verre LÉGER — plus dense, plus sombre, moins de flou et de
   saturation que Dediboom, sur ses propres surfaces mates. Rien d'autre ne
   change : arêtes vives, palette, typo et mouvement restent ceux de Loud. */
[data-theme="loudTheme"] {
  --glass-sheen: linear-gradient(180deg, rgb(255 255 255 / 2.5%) 0%, rgb(255 255 255 / 0%) 38%);
  --glass-rim: inset 0 1px 0 rgb(255 255 255 / 5%), inset 0 0 0 1px var(--line);

  --glass-bar-fill: color-mix(in srgb, var(--surface-well) 78%, transparent);
  --glass-bar-filter: blur(14px) saturate(130%);
  --glass-bar-rim: inset 0 1px 0 rgb(255 255 255 / 7%), inset 0 0 0 1px var(--line);
  --glass-bar-shadow: 0 14px 30px -14px rgb(0 0 0 / 75%);

  --glass-lens-fill: linear-gradient(180deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 2%));
  --glass-lens-rim: inset 0 1px 0 rgb(255 255 255 / 8%), inset 0 0 0 1px var(--line-strong);

  --glass-header-fill: color-mix(in srgb, var(--surface-app) 84%, transparent);
  --glass-header-filter: blur(14px) saturate(130%);
  --glass-header-rim: inset 0 -1px 0 var(--line);

  --glass-panel-fill: color-mix(in srgb, var(--surface-raised) 88%, transparent);
  --glass-panel-filter: blur(16px) saturate(130%);

  --glass-chip-fill: color-mix(in srgb, var(--db-ink-900) 78%, transparent);   /* pastille posée sur une photo : sombre dans les deux lumières, assez dense pour tenir 4,5:1 sur une couverture claire */
  --glass-chip-light-fill: color-mix(in srgb, var(--surface-raised) 72%, transparent);
  --glass-chip-filter: blur(10px) saturate(125%);

  --glass-scrim-filter: blur(8px) saturate(120%);

  --glass-surface-fill: var(--glass-sheen), var(--surface-base);

  --glass-edge: inset 0 1px 0 rgb(255 255 255 / 5%);
}

/* ── 5b · MOUVEMENT ───────────────────────────────────────────────────────────
   Courbes et durées partagées. Un composant n'écrit pas de cubic-bezier :
   il lit l'intention. Dediboom est physique et souple, Loud sec et direct.

     --ease-out      sortie douce, sans rebond (apparitions, révélations)
     --ease-spring   léger dépassement (sélection, confirmation)
     --ease-standard transitions d'état ordinaires
   ========================================================================== */

:root,
[data-theme="defaultTheme"] {
  --ease-out: cubic-bezier(.32, .72, 0, 1);
  --ease-spring: cubic-bezier(.34, 1.36, .5, 1);
  --ease-standard: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 620ms;
}

[data-theme="loudTheme"] {
  --ease-out: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.4, 0, .2, 1);
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;
}

/* ── 5c · DISTINCTIONS (db-badges.js) ────────────────────────────────────────
   La géométrie du badge est fixe ; sa matière vient de l'univers du Cercle où
   il a été obtenu. Un nouvel univers n'a qu'à définir ces tokens. Les statuts
   (Membre → Pionnier) ne sont pas concernés.
   ========================================================================== */

:root,
[data-theme="defaultTheme"] {
  --badge-face: color-mix(in srgb, var(--brand) 18%, var(--surface-sunken));
  --badge-face-muted: var(--surface-base);
  --badge-rim: var(--brand-light);
  --badge-rim-2: var(--brand-pale);
  --badge-icon: var(--text-primary);
  --badge-muted: var(--text-faint);
  --badge-dormant: var(--line-strong);
  --badge-glow: var(--brand-scrim);
  --badge-join: round;
  --badge-ease: var(--ease-spring);
  --badge-reveal-dur: 900ms;
  /* Cinq rôles de teinte, pris dans la palette de l'univers : les distinctions
     d'un même univers se distinguent sans sortir de son identité. */
  --badge-tone-1: var(--brand-light);
  --badge-tone-2: var(--premium);
  --badge-tone-3: var(--ok);
  --badge-tone-4: var(--info);
  --badge-tone-5: var(--danger-soft);
  --badge-face-mix: 16%;
}

[data-theme="loudTheme"] {
  --badge-face: var(--surface-well);
  --badge-face-muted: var(--surface-base);
  --badge-rim: var(--brand);
  --badge-rim-2: var(--brand-light);
  --badge-icon: var(--text-bright);
  --badge-muted: var(--text-faint);
  --badge-dormant: var(--line-strong);
  --badge-glow: color-mix(in srgb, var(--brand) 35%, transparent);
  --badge-join: miter;
  --badge-ease: var(--ease-out);
  --badge-reveal-dur: 520ms;
  --badge-tone-1: var(--brand);
  --badge-tone-2: var(--premium);
  --badge-tone-3: var(--text-bright);
  --badge-tone-4: var(--brand-pale);
  --badge-tone-5: var(--danger);
  --badge-face-mix: 10%;
}

/* ── 5b-bis · LISIBILITÉ SUR IMAGE ─────────────────────────────────────────────
   Tout texte posé sur une photo (bannière, cover, hero) vit dans un bloc
   [data-media] : l'encre reste celle du monde sombre, quel que soit le mode.
   Le voile garantit le contraste quelle que soit l'image — y compris une
   bannière blanche : db-media-tone.js mesure la luminance de l'image
   (img[data-tone]) et pose data-media-tone="bright" sur le bloc, ce qui
   renforce le voile via --media-scrim-k. Aucune page n'écrit son propre voile.
     <section data-media> <img data-tone style="filter:var(--media-img-filter)">
       <div style="background:var(--media-scrim-hero)"></div>
       <div style="text-shadow:var(--media-text-shadow)">…</div>
   ========================================================================== */
:root, [data-theme] {
  --media-scrim-k: 1;
  --media-img-filter: saturate(.85) brightness(.7);
  --media-scrim-hero:
    linear-gradient(180deg, rgb(0 0 0 / calc(.32 * var(--media-scrim-k))) 0%, rgb(0 0 0 / calc(.38 * var(--media-scrim-k))) 26%, rgb(0 0 0 / calc(.68 * var(--media-scrim-k))) 58%, rgb(0 0 0 / calc(.88 * var(--media-scrim-k))) 100%),
    linear-gradient(90deg, rgb(0 0 0 / calc(.6 * var(--media-scrim-k))) 0%, rgb(0 0 0 / 0%) 72%);
  --media-text-shadow: 0 1px 2px rgb(0 0 0 / 60%), 0 0 18px rgb(0 0 0 / 50%);
}
[data-media-tone="bright"] {
  --media-scrim-k: 1.32;
  --media-img-filter: saturate(.8) brightness(.58);
}

/* ── 5c · BOUTON D'ICÔNE D'EN-TÊTE ─────────────────────────────────────────────
   Les icônes seules d'un en-tête (recherche, membres, menu) sont posées sur une
   pastille de matière, jamais flottantes. Elles héritent du verre de l'univers :
   verre givré sous Dediboom, plein et mat sous Loud (recettes §5).
     background: var(--chrome-icon-fill); backdrop-filter: var(--chrome-icon-filter);
     box-shadow: var(--chrome-icon-rim);
   ========================================================================== */
:root, [data-theme] {
  --chrome-icon-size: 30px;
  --chrome-icon-fill: var(--glass-surface-fill);
  --chrome-icon-filter: none;
  --chrome-icon-rim: inset 0 0 0 1px var(--line);
  --chrome-icon-fg: var(--text-primary);
}

/* ── 6 · BARRE D'ONGLETS MOBILE ───────────────────────────────────────────────
   Un seul composant (BottomNav) pour le talent et le fan, dans les deux
   univers. Le COMPORTEMENT est le même partout ; seule la MATIÈRE change :
   verre sous Dediboom, plein et mat sous Loud.

   db-tabbar.js pose <html data-tabbar-state="full|compact"> :

     full     barre flottante, icônes + libellés, lentille sous l'onglet actif
     compact  on descend dans le contenu : la barre se replie sur l'onglet
              actif seul (une pastille), l'action de droite rétrécit avec elle.
              Remonter, ou toucher la pastille, la redéploie.

   Le composant ne lit que les valeurs courantes (--tabbar-h, --tabbar-pill-w,
   --tab-grow…). Les valeurs d'état se règlent ici, par univers.
   ========================================================================== */

:root,
[data-theme="defaultTheme"] {
  --tabbar-h-full: 62px;
  --tabbar-h-compact: 50px;
  --tabbar-pill-compact-w: 66px;
  --tabbar-inset-x: 14px;
  --tabbar-gap: 10px;
  --tabbar-float-gap: calc(10px + env(safe-area-inset-bottom));
  --tabbar-pad: 5px;
  --tabbar-radius: 999px;
  --tabbar-lens-radius: 999px;

  --tabbar-fill: var(--glass-bar-fill);
  --tabbar-filter: var(--glass-bar-filter);
  --tabbar-shadow: var(--glass-bar-rim), var(--glass-bar-shadow);
  --tabbar-lens-fill: var(--glass-lens-fill);
  --tabbar-lens-shadow: var(--glass-lens-rim);
  --tabbar-tick-op: 0;

  --tabbar-fg: var(--text-subtle);
  --tabbar-fg-on: var(--text-primary);
  --tabbar-label-size: var(--text-2xs);
  --tabbar-label-tracking: 0.01em;
  --tabbar-label-transform: none;
  --tabbar-badge-ring: var(--surface-deep);
  --tabbar-scrim: linear-gradient(to top, color-mix(in srgb, var(--surface-sunken) 70%, transparent) 0%, color-mix(in srgb, var(--surface-sunken) 0%, transparent) 100%);

  --tabbar-fab-fill: linear-gradient(180deg, rgb(255 255 255 / 24%) 0%, rgb(255 255 255 / 0%) 52%), linear-gradient(135deg, var(--primary-gradient-1), var(--primary-gradient-2));
  --tabbar-fab-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), inset 0 0 0 1px rgb(255 255 255 / 10%), 0 10px 26px -8px var(--brand-scrim), 0 3px 10px rgb(0 0 0 / 30%);

  /* Ressort court, sans rebond, sur la barre ; léger dépassement sur la
     lentille — c'est elle qui porte le côté « liquide ». */
  --tabbar-ease: cubic-bezier(.32, .72, 0, 1);
  --tabbar-dur: 520ms;
  --tabbar-lens-ease: cubic-bezier(.34, 1.36, .5, 1);
  --tabbar-lens-dur: 560ms;
}

[data-theme="loudTheme"] {
  --tabbar-h-full: 60px;
  --tabbar-h-compact: 48px;
  --tabbar-pill-compact-w: 60px;
  --tabbar-inset-x: 12px;
  --tabbar-gap: 8px;
  --tabbar-float-gap: calc(10px + env(safe-area-inset-bottom));
  --tabbar-pad: 4px;
  --tabbar-radius: var(--radius-sm);
  --tabbar-lens-radius: 0px;

  --tabbar-fill: var(--glass-bar-fill);
  --tabbar-filter: var(--glass-bar-filter);
  --tabbar-shadow: var(--glass-bar-rim), var(--glass-bar-shadow);
  --tabbar-lens-fill: var(--surface-raised);
  --tabbar-lens-shadow: inset 0 0 0 1px var(--line);
  --tabbar-tick-op: 1;

  --tabbar-label-tracking: 0.08em;
  --tabbar-label-transform: uppercase;
  --tabbar-badge-ring: var(--surface-well);
  --tabbar-scrim: none;

  --tabbar-fab-fill: linear-gradient(90deg, var(--primary-gradient-1), var(--primary-gradient-2));
  --tabbar-fab-shadow: 0 0 0 1px var(--brand-light-ring), 0 14px 30px rgb(0 0 0 / 60%);

  --tabbar-ease: cubic-bezier(.4, 0, .2, 1);
  --tabbar-dur: 340ms;
  --tabbar-lens-ease: cubic-bezier(.4, 0, .2, 1);
  --tabbar-lens-dur: 300ms;
}

[data-tabbar] {
  --tabbar-h: var(--tabbar-h-full);
  --tabbar-action-w: 0px;
  --tabbar-action-gap: 0px;
  --tabbar-pill-w: calc(100% - var(--tabbar-action-w) - var(--tabbar-action-gap));
  --tabbar-label-h: 13px;
  --tabbar-label-op: 1;
  --tabbar-label-y: 0px;
  --tabbar-label-gap: 3px;
  --tabbar-icon-scale: 1;
  --tabbar-lens-op: 1;
}

[data-tabbar][data-action="1"] {
  --tabbar-action-w: var(--tabbar-h-full);
  --tabbar-action-gap: var(--tabbar-gap);
}

@media (max-width: 1023px) {
  html[data-tabbar-modal-open] :is([data-tabbar], [data-shell-tabbar], [data-app-nav-holder="tabbar"]) {
    visibility: hidden !important;
  }
}

html[data-tabbar-state="compact"] [data-tabbar] {
  --tabbar-h: var(--tabbar-h-compact);
  --tabbar-pill-w: var(--tabbar-pill-compact-w);
  --tabbar-label-h: 0px;
  --tabbar-label-op: 0;
  --tabbar-label-y: 4px;
  --tabbar-label-gap: 0px;
  --tabbar-icon-scale: 1.08;
  --tabbar-lens-op: 0;
}

/* Les onglets : tous visibles en full ; en compact, seul l'actif garde sa
   place, les autres se replient (largeur, opacité, cible tactile). */
[data-tabbar] [data-tab] {
  --tab-grow: 1;
  --tab-op: 1;
  --tab-pe: auto;
}

html[data-tabbar-state="compact"] [data-tabbar] [data-tab][data-on="0"] {
  --tab-grow: 0;
  --tab-op: 0;
  --tab-pe: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-tabbar] { --tabbar-dur: 1ms; --tabbar-lens-dur: 1ms; }
}

/* En-têtes qui s'effacent (mobile) — même signal que la barre d'onglets :
   on descend dans le contenu → l'en-tête sort par le haut ; on remonte → il
   revient aussitôt. Tout en-tête opte avec data-autohide :
     data-autohide             en-tête fixe ou collant (glisse simplement)
     data-autohide="collapse"  en-tête dans le flux : il rend aussi sa hauteur
                               (--ah-h) au contenu. */
[data-autohide] {
  transition: translate var(--tabbar-dur) var(--tabbar-ease), opacity var(--dur-base) var(--ease-standard), margin-bottom var(--tabbar-dur) var(--tabbar-ease), background-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard) !important;
}
@media (max-width: 759px) {
  html[data-tabbar-state="compact"] [data-autohide] { translate: 0 calc(-100% - 12px); opacity: 0; pointer-events: none; }
  html[data-tabbar-state="compact"] [data-autohide="collapse"] { margin-bottom: calc(var(--ah-h, 56px) * -1); }
}
/* Barres collantes sous un en-tête qui s'efface (mobile) : quand l'en-tête sort, elles remontent à sa place
   au lieu de laisser un vide. Le comportement au défilement ne change pas.
     data-ah-follow  barre collante (top) : remonte au bord haut de l'écran
     data-ah-under   zone de contenu placée sous un en-tête fixe : récupère la hauteur de l'en-tête */
[data-ah-follow], [data-ah-under] { transition: top var(--tabbar-dur) var(--tabbar-ease), margin-top var(--tabbar-dur) var(--tabbar-ease), height var(--tabbar-dur) var(--tabbar-ease); }
@media (max-width: 759px) {
  html[data-tabbar-state="compact"] [data-ah-follow] { top: env(safe-area-inset-top, 0px) !important; }
  html[data-tabbar-state="compact"] [data-ah-under] { margin-top: env(safe-area-inset-top, 0px) !important; height: calc(100dvh - env(safe-area-inset-top, 0px)) !important; }
}

/* ── Transition de thème (miroir de theme-transitions.css) ────────────────── */

html.theme-ease-transition {
  transition:
    --background 300ms ease, --muted-background 300ms ease,
    --tainted-background 300ms ease, --foreground 300ms ease,
    --card 300ms ease, --card-foreground 300ms ease,
    --popover 300ms ease, --popover-foreground 300ms ease,
    --primary 300ms ease, --primary-foreground 300ms ease,
    --color-primary-hover 300ms ease, --primary-gradient-1 300ms ease,
    --primary-gradient-2 300ms ease, --secondary 300ms ease,
    --secondary-foreground 300ms ease, --muted 300ms ease,
    --muted-foreground 300ms ease, --accent 300ms ease,
    --accent-foreground 300ms ease, --destructive 300ms ease,
    --destructive-light 300ms ease, --border 300ms ease,
    --ring 300ms ease, --sidebar 300ms ease,
    --sidebar-foreground 300ms ease, --sidebar-accent 300ms ease,
    --sidebar-border 300ms ease;
}

/* ── Type de base ─────────────────────────────────────────────────────────────
   Miroir du comportement typographique du repo (loud-theme.css applique son
   font-display aux titres). Les styles en ligne d'un composant l'emportent.
   ========================================================================== */

body {
  font-family: var(--font-body);
  letter-spacing: var(--tracking-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-display);
}

[data-theme="loudTheme"] h1,
[data-theme="loudTheme"] h2,
[data-theme="loudTheme"] h3,
[data-theme="loudTheme"] h4,
[data-theme="loudTheme"] h5,
[data-theme="loudTheme"] h6 {
  letter-spacing: 0.04em;
}


/* Les ratios annotés par palette se mesurent entre l'ENCRE et le MILIEU du
   dégradé --primary-gradient-1 → --primary-gradient-2, qui est ce que peint
   réellement un bouton principal. Toute palette ajoutée doit tenir 4,5:1 sur
   cette mesure, et non contre --brand, qui sert d'autres rôles.
   Vérifié sur les 45 palettes : minimum 4,51:1. */

/* ── 4 · PERSONNALISATION DU CERCLE ───────────────────────────────────────────
   La troisième couche, et la dernière :

     DESIGN SYSTEM DEDIBOOM  →  IDENTITÉ DE L'UNIVERS  →  PERSONNALISATION

   Un Cercle personnalisé ne porte que des ATTRIBUTS. Aucune couleur n'est
   écrite par l'application, ni côté talent, ni côté fan, ni sur les pages
   publiques — le design system fait toute la dérivation :

     <html data-theme="loudTheme"
           data-circle-palette="cuivre"
           data-circle-shape="lame"
           data-circle-buttons="net">

   C'est tout ce qu'il y a à stocker sur un Cercle : trois chaînes. Les rôles
   (--brand*, --on-brand, --radius-*) et par ricochet les noms du repo
   (--primary, --ring, --sidebar-primary…) suivent sans une ligne de plus.

   Les blocs ne s'appliquent QUE si l'attribut est présent : un Cercle non
   personnalisé reste strictement identique à aujourd'hui.

   Chaque palette appartient à un univers. L'univers fournit le langage, le
   talent choisit son expression — une palette Loud ne peut pas apparaître sous
   Dediboom, c'est le studio qui n'en propose que les siennes.
   ========================================================================== */

/* ── Les trois surfaces ───────────────────────────────────────────────────────
   Ce fichier est la source de vérité pour TOUTE l'application. Les quatre
   attributs sont les mêmes partout ; seule leur PROVENANCE change.

     Dashboard talent   le talent règle son propre Cercle. L'état vit dans
                        db-universe.js, qui ne peint rien au chargement : une
                        page talent appelle DBUniverse.restore() explicitement.
                        Charger le fichier n'a aucun effet visuel.

     Vue fan            le fan consulte le Cercle d'un AUTRE. Les attributs
                        viennent du serveur, à partir du Cercle consulté —
                        jamais du stockage local du visiteur, qui décrirait son
                        propre Cercle. Une page fan n'appelle pas restore().

     Site public        pages marketing et visiteur non connecté. Mêmes
                        attributs, rendus côté serveur. Aucun JavaScript n'est
                        requis : la dérivation ci-dessous est entièrement CSS.

   Conséquence pratique : un composant partagé entre talent et fan (le Cercle,
   les cartes d'expérience) ne doit jamais charger db-universe.js dans son
   helmet. Son helmet entre dans la page hôte, et la vue fan prendrait alors
   l'apparence enregistrée du talent qui consulte.
   ========================================================================== */

@property --circle-accent-1 { syntax: "<color>"; inherits: true; initial-value: #571c92; }
@property --circle-accent-2 { syntax: "<color>"; inherits: true; initial-value: #b57bff; }
@property --circle-ink { syntax: "<color>"; inherits: true; initial-value: #ffffff; }

/* ── Dérivation : deux teintes suffisent ──────────────────────────────────────
   Les sept degrés de marque sont interpolés en oklab (perceptuel), donc un
   même pas garde le même poids visuel quelle que soit la palette. Les teintes
   translucides (--brand-wash, --brand-ring…) sont déjà des color-mix de
   --brand : elles suivent toutes seules.
   ========================================================================== */

[data-circle-palette] {
  --brand-shadow: color-mix(in oklab, var(--circle-accent-1) 60%, black);
  --brand-deep: var(--circle-accent-1);
  --brand-dark: color-mix(in oklab, var(--circle-accent-1) 78%, var(--circle-accent-2));
  --brand: color-mix(in oklab, var(--circle-accent-1) 55%, var(--circle-accent-2));
  --brand-hover: color-mix(in oklab, var(--circle-accent-1) 38%, var(--circle-accent-2));
  --brand-light: var(--circle-accent-2);
  --brand-soft: color-mix(in srgb, var(--circle-accent-2) 80%, white);
  --brand-pale: color-mix(in srgb, var(--circle-accent-2) 62%, white);

  /* L'encre des boutons n'est jamais choisie par le talent : elle est fournie
     avec la palette, calculée pour tenir au moins 4,5:1 sur --brand — la
     couleur réelle des boutons pleins, et non un milieu théorique du dégradé. Les états (survol, pressé, focus, inactif) dérivent des degrés
     ci-dessus et restent donc cohérents par construction. */
  --on-brand: var(--circle-ink);
  --focus-ring: var(--brand-light);
}

/* ── Palettes de l'univers Dediboom ───────────────────────────────────────── */

[data-circle-palette="amethyste"] { --circle-accent-1: #571c92; --circle-accent-2: #b57bff; --circle-ink: #ffffff; }  /* Améthyste — 5.8:1 */
[data-circle-palette="orchidee"] { --circle-accent-1: #7a1f6e; --circle-accent-2: #e884d6; --circle-ink: #ffffff; }  /* Orchidée — 4.95:1 */
[data-circle-palette="indigo"] { --circle-accent-1: #2a2593; --circle-accent-2: #8f9cff; --circle-ink: #ffffff; }  /* Nuit indigo — 5.7:1 */
[data-circle-palette="lagune"] { --circle-accent-1: #164f72; --circle-accent-2: #6fd8e8; --circle-ink: #111111; }  /* Lagune — 4.84:1 */
[data-circle-palette="braise"] { --circle-accent-1: #7d2a5e; --circle-accent-2: #ffa98a; --circle-ink: #111111; --brand: color-mix(in oklab, var(--circle-accent-1) 42%, var(--circle-accent-2)); }
[data-circle-palette="aurore"] { --circle-accent-1: #6a2aa0; --circle-accent-2: #ffd8a8; --circle-ink: #111111; }  /* Aurore — 5.57:1 */
[data-circle-palette="prune"] { --circle-accent-1: #3d1452; --circle-accent-2: #a25fd6; --circle-ink: #ffffff; }  /* Prune — 8.56:1 */
[data-circle-palette="fuchsia"] { --circle-accent-1: #8c1456; --circle-accent-2: #ff7ab8; --circle-ink: #ffffff; }  /* Fuchsia — 4.82:1 */
[data-circle-palette="cobalt"] { --circle-accent-1: #17307e; --circle-accent-2: #6fa8ff; --circle-ink: #ffffff; }  /* Cobalt — 5.7:1 */
[data-circle-palette="menthe"] { --circle-accent-1: #2b5a5a; --circle-accent-2: #9ff0d2; --circle-ink: #111111; }  /* Menthe violette — 5.83:1 */
[data-circle-palette="grenade"] { --circle-accent-1: #6e1030; --circle-accent-2: #ff8a9c; --circle-ink: #ffffff; }  /* Grenade — 5.43:1 */
[data-circle-palette="safran"] { --circle-accent-1: #7a3a07; --circle-accent-2: #ffc46b; --circle-ink: #111111; }  /* Safran — 5.04:1 */
[data-circle-palette="cyclamen"] { --circle-accent-1: #641a7a; --circle-accent-2: #e081f0; --circle-ink: #ffffff; }  /* Cyclamen — 4.92:1 */
[data-circle-palette="ocean"] { --circle-accent-1: #10325c; --circle-accent-2: #5fc8e0; --circle-ink: #ffffff; }  /* Océan profond — 5.29:1 */
[data-circle-palette="lilas"] { --circle-accent-1: #4a3a86; --circle-accent-2: #cdbcff; --circle-ink: #111111; }  /* Lilas givré — 4.59:1 */
[data-circle-palette="corail"] { --circle-accent-1: #8a2f3f; --circle-accent-2: #ffab93; --circle-ink: #111111; }  /* Corail doux — 4.74:1 */
[data-circle-palette="jade"] { --circle-accent-1: #124a3a; --circle-accent-2: #79e0b0; --circle-ink: #111111; }  /* Jade nocturne — 4.55:1 */
[data-circle-palette="myrtille"] { --circle-accent-1: #262a6b; --circle-accent-2: #9d8cff; --circle-ink: #ffffff; }  /* Myrtille — 6.42:1 */
[data-circle-palette="vin"] { --circle-accent-1: #4e1030; --circle-accent-2: #d56fa0; --circle-ink: #ffffff; }  /* Vin velours — 7.5:1 */
[data-circle-palette="ambre"] { --circle-accent-1: #6a3180; --circle-accent-2: #ffd0a0; --circle-ink: #111111; }  /* Ambre violet — 5.26:1 */

/* ── Palettes de l'univers Loud ───────────────────────────────────────────── */

[data-circle-palette="sang"] { --circle-accent-1: #5a1410; --circle-accent-2: #c7402e; --circle-ink: #ffffff; }  /* Sang — 8.85:1 */
[data-circle-palette="rouille"] { --circle-accent-1: #4a2208; --circle-accent-2: #d1762a; --circle-ink: #ffffff; }  /* Rouille — 7.32:1 */
[data-circle-palette="acier"] { --circle-accent-1: #20303b; --circle-accent-2: #89a6b8; --circle-ink: #ffffff; }  /* Acier — 6.39:1 */
[data-circle-palette="soufre"] { --circle-accent-1: #4a3c06; --circle-accent-2: #d9c23a; --circle-ink: #111111; }  /* Soufre — 4.75:1 */
/* Soufre : au milieu théorique, l'encre sombre descendait à 4,1:1 sur le plein de marque ; le plein penche vers la teinte claire. */
[data-circle-palette="soufre"] { --brand: color-mix(in oklab, var(--circle-accent-1) 44%, var(--circle-accent-2)); }
[data-circle-palette="cendre"] { --circle-accent-1: #2b2b2b; --circle-accent-2: #a6a6a6; --circle-ink: #ffffff; }  /* Cendre — 6.39:1 */
[data-circle-palette="venin"] { --circle-accent-1: #143a1d; --circle-accent-2: #5fbf4a; --circle-ink: #ffffff; }  /* Venin — 5.77:1 */
[data-circle-palette="forge"] { --circle-accent-1: #51200a; --circle-accent-2: #e2863f; --circle-ink: #ffffff; }  /* Forge — 6.57:1 */
[data-circle-palette="fonte"] { --circle-accent-1: #1c2328; --circle-accent-2: #6f8290; --circle-ink: #ffffff; }  /* Fonte — 8.95:1 */
[data-circle-palette="brasier"] { --circle-accent-1: #601405; --circle-accent-2: #e85a22; --circle-ink: #ffffff; }  /* Brasier — 7.35:1 */
[data-circle-palette="plomb"] { --circle-accent-1: #262a2e; --circle-accent-2: #8b949c; --circle-ink: #ffffff; }  /* Plomb — 7.31:1 */
[data-circle-palette="bitume"] { --circle-accent-1: #1d1a16; --circle-accent-2: #8a7a62; --circle-ink: #ffffff; }  /* Bitume — 9.85:1 */
[data-circle-palette="nitro"] { --circle-accent-1: #0f2d33; --circle-accent-2: #3fb0c4; --circle-ink: #ffffff; }  /* Nitro — 6.71:1 */
[data-circle-palette="charbon"] { --circle-accent-1: #33110c; --circle-accent-2: #b4452c; --circle-ink: #ffffff; }  /* Charbon ardent — 10.95:1 */
[data-circle-palette="laiton"] { --circle-accent-1: #4a3613; --circle-accent-2: #c9a24a; --circle-ink: #ffffff; }  /* Laiton — 5.56:1 */
[data-circle-palette="pourpre"] { --circle-accent-1: #3a0f2a; --circle-accent-2: #9b3a6e; --circle-ink: #ffffff; }  /* Pourpre noir — 11.35:1 */
[data-circle-palette="absinthe"] { --circle-accent-1: #233a0e; --circle-accent-2: #92c23c; --circle-ink: #ffffff; }  /* Absinthe — 5.41:1 */
[data-circle-palette="oxyde"] { --circle-accent-1: #4e2a1e; --circle-accent-2: #b06a4a; --circle-ink: #ffffff; }  /* Oxyde — 7.72:1 */
[data-circle-palette="anthracite"] { --circle-accent-1: #1a1d20; --circle-accent-2: #5f6a72; --circle-ink: #ffffff; }  /* Anthracite — 10.87:1 */
[data-circle-palette="ferrouge"] { --circle-accent-1: #5c1a16; --circle-accent-2: #d05a3c; --circle-ink: #ffffff; }  /* Fer rouge — 7.76:1 */
[data-circle-palette="cyan"] { --circle-accent-1: #0d2c38; --circle-accent-2: #39c6d8; --circle-ink: #ffffff; }  /* Cyan toxique — 5.94:1 */
[data-circle-palette="rougeprofond"] { --circle-accent-1: #3a0a06; --circle-accent-2: #8f2318; --circle-ink: #ffffff; }  /* Rouge profond — 13.12:1 */
[data-circle-palette="caillot"] { --circle-accent-1: #4a0d08; --circle-accent-2: #a02a1c; --circle-ink: #ffffff; }  /* Caillot — 11.46:1 */
[data-circle-palette="bronze"] { --circle-accent-1: #3d2409; --circle-accent-2: #a8732c; --circle-ink: #ffffff; }  /* Bronze brûlé — 8.35:1 */
[data-circle-palette="rouillesombre"] { --circle-accent-1: #43200c; --circle-accent-2: #9c5424; --circle-ink: #ffffff; }  /* Rouille sombre — 9.81:1 */
[data-circle-palette="cuivre"] { --circle-accent-1: #4a2a12; --circle-accent-2: #c97b3c; --circle-ink: #ffffff; }  /* Cuivre — 6.99:1 */

/* Palettes à encre sombre (--circle-ink #111), lumière sombre : les degrés profonds (--brand-dark, --brand-deep,
   départ des dégradés de marque) tombaient à 2–3,8:1 sous l'encre des boutons. Ils restent dans la teinte de la
   palette mais au-dessus du plein de marque, pour que l'encre tienne 4,5:1 sur tout le bouton.
   La lumière claire garde ses propres degrés (encre blanche). */
:is([data-circle-palette="lagune"], [data-circle-palette="braise"], [data-circle-palette="aurore"], [data-circle-palette="menthe"],
    [data-circle-palette="safran"], [data-circle-palette="lilas"], [data-circle-palette="corail"], [data-circle-palette="jade"],
    [data-circle-palette="ambre"], [data-circle-palette="soufre"]):not([data-mode="light"], [data-mode="light"] *) {
  --brand-dark: color-mix(in oklab, var(--circle-accent-1) 46%, var(--circle-accent-2));
  --brand-deep: color-mix(in oklab, var(--circle-accent-1) 50%, var(--circle-accent-2));
}

/* LOUD · Sombre : les teintes lumineuses de neuf palettes (Sang, Charbon, Pourpre, Anthracite, Rouge profond…)
   restent sous 4,5:1 sur les surfaces presque noires de l'univers. --brand-light sert d'accent de TEXTE
   (sur-titres, liens, compteurs) : sa clarté est relevée juste ce qu'il faut, la teinte et la saturation de la
   palette sont conservées. La lumière claire (§ 8) redéfinit ces accents après cette règle. */
[data-theme="loudTheme"][data-circle-palette],
[data-theme="loudTheme"] [data-circle-palette] {
  --brand-light: color-mix(in oklab, var(--circle-accent-2) 70%, white);
}
@supports (color: oklch(from red l c h)) {
  [data-theme="loudTheme"][data-circle-palette],
  [data-theme="loudTheme"] [data-circle-palette] {
    --brand-light: oklch(from var(--circle-accent-2) max(l, 0.7) c h);
  }
}

/* ── Formes ───────────────────────────────────────────────────────────────────
   Le talent règle deux choses, et rien d'autre : l'arrondi des surfaces et
   celui des boutons. Les jeux proposés restent dans la grammaire de l'univers
   — la pilule n'existe pas sous Loud, l'arête vive n'existe pas sous Dediboom.
   --radius-avatar, --radius-dot et la famille --radius-bubble / --bubble-tail
   ne sont jamais touchés : un visage carré ne se lit plus comme une personne,
   une bulle carrée ne se lit plus comme une parole.
   Corollaire : tout ce qui entoure ou recouvre un visage — anneau, plaque,
   halo de focus, voile de survol, bouton posé sur la photo — prend lui aussi
   --radius-avatar. Un --radius-pill à cet endroit redevient carré sous Loud
   et laisse une photo ronde sur une plaque à angles vifs.

   Le partage entre les deux réglages :
     --radius-pill  les commandes — tout ce qu'on actionne : boutons pleins,
                    CTA, puces d'action, envois. C'est « Boutons ».
     --radius-*     les surfaces — cartes, panneaux, médias, lignes de liste,
                    entrées de navigation. C'est « Cartes ».
   Un bouton d'action qui lirait --radius-md suivrait le réglage des cartes :
   c'est ce qui donnait un « Publier » insensible au réglage des boutons.
   ========================================================================== */

[data-circle-shape] {
  --radius-xl: var(--circle-radius-xl);
  --radius-lg: var(--circle-radius-lg);
  --radius-md: var(--circle-radius-md);
  --radius-sm: var(--circle-radius-sm);
  --radius-xs: var(--circle-radius-xs);
  /* Le nom shadcn du repo suit la même forme, sinon un écran qui le lit
     ignorerait le choix du talent. */
  --radius: var(--circle-radius-md);
}

[data-circle-buttons] { --radius-pill: var(--circle-radius-pill); }

/* Dediboom — du galet au net */
[data-circle-shape="galet"] { --circle-radius-xl: 26px; --circle-radius-lg: 20px; --circle-radius-md: 16px; --circle-radius-sm: 12px; --circle-radius-xs: 6px; }
[data-circle-shape="doux"]  { --circle-radius-xl: 20px; --circle-radius-lg: 14px; --circle-radius-md: 11px; --circle-radius-sm: 8px;  --circle-radius-xs: 4px; }
[data-circle-shape="net"]   { --circle-radius-xl: 12px; --circle-radius-lg: 9px;  --circle-radius-md: 7px;  --circle-radius-sm: 6px;  --circle-radius-xs: 3px; }

/* Loud — de la lame au brut */
[data-circle-shape="lame"]  { --circle-radius-xl: 0px; --circle-radius-lg: 0px; --circle-radius-md: 2px; --circle-radius-sm: 2px; --circle-radius-xs: 0px; }
[data-circle-shape="brut"]  { --circle-radius-xl: 0px; --circle-radius-lg: 0px; --circle-radius-md: 0px; --circle-radius-sm: 0px; --circle-radius-xs: 0px; }
[data-circle-shape="acier"] { --circle-radius-xl: 4px; --circle-radius-lg: 4px; --circle-radius-md: 3px; --circle-radius-sm: 2px; --circle-radius-xs: 2px; }

/* Boutons */
[data-circle-buttons="pilule"]  { --circle-radius-pill: 999px; }
[data-circle-buttons="arrondi"] { --circle-radius-pill: 14px; }
[data-circle-buttons="net"]     { --circle-radius-pill: 8px; }
[data-circle-buttons="loud-net"]    { --circle-radius-pill: 2px; }
[data-circle-buttons="loud-droit"]  { --circle-radius-pill: 0px; }
[data-circle-buttons="loud-biseau"] { --circle-radius-pill: 6px; }

/* ── Transition de personnalisation ───────────────────────────────────────────
   Les deux teintes sont enregistrées via @property : le navigateur interpole
   d'une palette à l'autre, et tout ce qui lit --brand* suit image par image.

   À poser UNIQUEMENT le temps du changement (db-universe.js s'en charge, et la
   retire après). Gardée en permanence sur la racine, cette règle maintient une
   transition vive sur trois propriétés héritées par tout le document : chaque
   recalcul de style de <html> réinvalide alors l'arbre entier, ce qui ralentit
   nettement les pages denses — messagerie, listes, fils de publications.
   ========================================================================== */

.circle-morph,
[data-circle-morph] {
  transition:
    --circle-accent-1 500ms cubic-bezier(.4, 0, .2, 1),
    --circle-accent-2 500ms cubic-bezier(.4, 0, .2, 1),
    --circle-ink 500ms cubic-bezier(.4, 0, .2, 1);
}

/* ── Saisie tactile ───────────────────────────────────────────────────────────
   iOS zoome dès qu'un champ reçoit le focus avec une police sous 16px, et la
   page reste ensuite décalée : elle dérive latéralement au défilement. Le seuil
   est une règle de la plateforme, pas une préférence — on le respecte au lieu
   de bloquer le zoom au doigt, qui casserait l'accessibilité.

   Les tokens sont redéfinis SUR le champ lui-même. Un `font-size: var(--text-md)`
   écrit en ligne s'y résout donc à 16px, sans !important et sans toucher au
   reste de la page. Les champs déjà à 16px ou plus (--text-lg, --text-xl)
   gardent leur taille : aucune n'est réduite.
   ========================================================================== */

@media (pointer: coarse) {
  input,
  textarea,
  select {
    /* Champs qui ne déclarent aucune taille : ils héritaient du corps de texte. */
    font-size: 16px;
    /* Champs qui déclarent un token sous le seuil. */
    --text-3xs: 16px;
    --text-2xs: 16px;
    --text-xs: 16px;
    --text-sm: 16px;
    --text-base: 16px;
    --text-md: 16px;
  }
}

/* iOS gonfle le texte au changement d'orientation et autorise un défilement
   latéral résiduel après un zoom. On fige les deux. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overscroll-behavior-x: none;
}


/* ── 8 · CONDITION LUMINEUSE (Sombre / Clair) ────────────────────────────────
   MODE ≠ UNIVERS. <html data-mode="dark|light"> (db-mode.js, préférence de la
   personne). Sombre = la référence : aucune valeur ci-dessus ne change.
   Clair redéfinit les RÔLES (jamais les primitives : --db-white reste blanc
   pour les encres sur marque et sur média). Les sélecteurs couvrent aussi les
   éléments qui portent leur propre data-theme (cartes d'un autre Cercle,
   overlays montés ailleurs) : chacun garde son Univers, sous la même lumière.

   Ordre de résolution : Mode → Univers → palette du Cercle → contexte → rôle.
   ========================================================================== */

/* Déclarés sur chaque élément qui porte une identité : les var() s'y
   résolvent avec SA marque (une carte LOUD Cuivre garde son dégradé cuivre). */
:root, [data-theme], [data-circle-palette], [data-mode] {
  /* Voile de relief : « un peu plus clair que la surface » en Sombre, « un peu
     plus foncé » en Clair. S'écrit rgb(var(--lift-ink) / calc(.08 * var(--lift-k))). */
  --lift-ink: 255 255 255;
  --lift-k: 1;
  /* Fenêtres (partage, publication, invitation…). */
  --surface-dialog: linear-gradient(160deg, rgb(40 36 52 / 96%), rgb(22 22 26 / 97%) 55%);
  /* Creux : un bloc enfoncé dans sa surface (aperçu de commentaire, encart). */
  --recess: rgb(0 0 0 / 24%);
  /* Pastille de marque (« Coup de cœur de… », mises en avant) : teintée en Sombre, pleine en Clair. */
  --chip-brand-bg: linear-gradient(90deg, var(--brand-ring), var(--brand-wash));
  --chip-brand-rim: inset 0 0 0 1px color-mix(in srgb, var(--brand-light) 45%, transparent);
  --chip-brand-fg: var(--brand-pale);
  /* Encre de tête des titres en dégradé (texte découpé) : blanc en Sombre, encre en Clair. */
  --display-ink: var(--db-white);
  /* Capsule de recherche (db-search.js). */
  --search-fill: rgba(30,30,30,.74);
  --search-fill-hover: rgba(42,42,42,.74);
  --skeleton-sheen: linear-gradient(90deg, rgb(var(--lift-ink) / 0) 25%, rgb(var(--lift-ink) / calc(.06 * var(--lift-k))) 37%, rgb(var(--lift-ink) / 0) 63%);
  --mode-preview-dark: #121214; --mode-preview-dark-card: #2a2a30;
  --mode-preview-light: #f4f3f7; --mode-preview-light-card: #ffffff;
  /* Élévation, scrims et squelettes : rôles communs aux deux lumières. */
  --shadow-contact: 0 1px 2px rgb(0 0 0 / 30%);
  --shadow-raised: 0 10px 24px -12px rgb(0 0 0 / 60%);
  --shadow-floating: 0 18px 40px -14px rgb(0 0 0 / 70%);
  --shadow-overlay: 0 40px 100px -30px rgb(0 0 0 / 90%);
  --shadow-brand: 0 14px 34px -14px var(--brand-scrim);
  --overlay-scrim: color-mix(in srgb, var(--surface-sunken) 40%, transparent);
  --overlay-scrim-strong: color-mix(in srgb, var(--surface-sunken) 88%, transparent);
  --media-scrim: linear-gradient(180deg, rgb(0 0 0 / 0%) 40%, rgb(0 0 0 / 72%) 100%);
  --media-control-bg: rgb(16 16 18 / 46%);
  --media-control-text: var(--db-white);
  --skeleton-base: var(--surface-base);
  --skeleton-highlight: var(--surface-raised);
  --gradient-brand: linear-gradient(90deg, var(--primary-gradient-1), var(--primary-gradient-2));
  --ambient-page: radial-gradient(60% 50% at 50% 0%, var(--brand-mist), transparent 70%);
}

/* Dediboom · Clair — lumière de studio, surfaces perlées, verre clair. */
[data-mode="light"],
[data-mode="light"] [data-theme],
[data-mode="light"] [data-circle-palette] {
  color-scheme: light;
  color: var(--text-primary);
  --lift-ink: 30 24 56;
  --lift-k: .6;
  --surface-dialog: linear-gradient(160deg, #ffffff, #f7f6fa 55%);
  --recess: rgb(30 24 56 / 5%);
  --chip-brand-bg: linear-gradient(90deg, var(--primary-gradient-1), var(--primary-gradient-2));
  --chip-brand-rim: inset 0 1px 0 rgb(255 255 255 / 18%);
  --chip-brand-fg: var(--on-brand);
  --display-ink: var(--text-primary);
  --search-fill: color-mix(in srgb, var(--surface-raised) 82%, transparent);
  --search-fill-hover: var(--surface-raised);
  --surface-sunken: #e9e8ef;
  --surface-deep: #edecf2;
  --surface-well: #f0eff5;
  --surface-app: #f5f4f8;
  --surface-base: #fcfbfe;
  --surface-raised: #ffffff;
  --surface-hover: #eeedf3;
  --surface-active: #e4e3ea;
  --line-subtle: #ebeaf0;
  --line: #e1dfe8;
  --line-strong: #d3d1dc;

  --text-primary: #15131b;
  --text-bright: #252230;
  --text-secondary: #383545;
  --text-tertiary: #4a4757;
  --text-muted: #5b5868;
  --text-subtle: #575466;
  --text-faint: #5a5767;
  --text-ghost: #66636f;
  --text-inverse: #f5f4f8;

  /* Accents lisibles sur fond clair : la marque descend d'un cran. */
  --brand-light: var(--db-violet-700);
  --brand-soft: color-mix(in oklab, var(--db-violet-700) 80%, var(--db-violet-600));
  --brand-pale: var(--db-violet-800);
  /* États : assombris pour tenir 4,5:1 sur les surfaces claires. */
  /* … y compris sur leur propre pastille teintée (fond d'état à 12–18 %). */
  --ok: oklch(43% 0.12 150);
  --ok-light: oklch(44% 0.12 150);
  --ok-soft: oklch(43% 0.12 150);
  --ok-strong: oklch(46% 0.13 150);   /* présence « en ligne » : aussi employée comme texte */
  --warn: oklch(43% 0.11 62);
  --danger: oklch(48% 0.19 18);
  --danger-soft: oklch(46% 0.17 18);
  --info: oklch(44% 0.13 250);
  --premium: oklch(40% 0.1 70);
  --premium-pale: oklch(42% 0.1 70);
  --btn-primary-bg: var(--text-primary);
  --btn-primary-fg: var(--surface-raised);
  --input: rgb(20 16 40 / 14%);
  --selection: color-mix(in srgb, var(--brand) 22%, transparent);
  --field-rim: color-mix(in srgb, var(--text-primary) 56%, var(--surface-raised));

  --shadow-contact: 0 1px 2px rgb(30 22 60 / 8%);
  --shadow-raised: 0 10px 24px -14px rgb(30 22 60 / 22%);
  --shadow-floating: 0 18px 40px -18px rgb(30 22 60 / 28%);
  --shadow-overlay: 0 40px 100px -30px rgb(30 22 60 / 35%);
  --overlay-scrim: color-mix(in srgb, #1a1626 22%, transparent);
  --overlay-scrim-strong: color-mix(in srgb, #1a1626 55%, transparent);

  --glass-sheen: linear-gradient(180deg, rgb(255 255 255 / 80%) 0%, rgb(255 255 255 / 0%) 46%);
  --glass-rim: inset 0 1px 0 rgb(255 255 255 / 90%), inset 0 0 0 1px rgb(30 22 60 / 7%);
  --glass-bar-fill: color-mix(in srgb, #ffffff 66%, transparent);
  --glass-bar-filter: blur(26px) saturate(180%);
  --glass-bar-rim: inset 0 1px 0 rgb(255 255 255 / 90%), inset 0 0 0 1px rgb(30 22 60 / 8%);
  --glass-bar-shadow: 0 16px 38px -16px rgb(30 22 60 / 26%), 0 2px 8px rgb(30 22 60 / 8%);
  --glass-lens-fill: linear-gradient(180deg, rgb(255 255 255 / 95%), rgb(255 255 255 / 70%));
  --glass-lens-rim: inset 0 0 0 1px rgb(30 22 60 / 8%), 0 2px 6px rgb(30 22 60 / 10%);
  --glass-header-fill: color-mix(in srgb, var(--surface-app) 76%, transparent);
  --glass-header-rim: inset 0 -1px 0 rgb(30 22 60 / 7%);
  --glass-panel-fill: color-mix(in srgb, #ffffff 82%, transparent);
  --glass-chip-light-fill: color-mix(in srgb, #ffffff 74%, transparent);
  --glass-edge: inset 0 1px 0 rgb(255 255 255 / 85%);
  --badge-face-mix: 20%;
}

/* LOUD · Clair — papier, ivoire brut, béton : mat, dense, arêtes vives.
   Le verre léger de Loud suit ses surfaces ; ombres sèches. */
[data-mode="light"][data-theme="loudTheme"],
[data-mode="light"] [data-theme="loudTheme"] {
  --surface-sunken: #e6e1d6;
  --surface-deep: #eae5da;
  --surface-well: #ede8dd;
  --surface-app: #f2eee5;
  --surface-base: #f8f5ee;
  --surface-raised: #fdfbf6;
  --surface-hover: #e9e4d8;
  --surface-active: #ded7c9;
  --line-subtle: #e4ddcf;
  --line: #d6cebe;
  --line-strong: #c4baa7;

  --text-primary: #14120f;
  --text-bright: #221f1a;
  --text-secondary: #34302a;
  --text-tertiary: #46413a;
  --text-muted: #57524a;
  --text-subtle: #5c564d;
  --text-faint: #625c52;
  --text-ghost: #655f55;
  --text-inverse: #f2eee5;

  --shadow-contact: 0 1px 0 rgb(20 16 10 / 12%);
  --shadow-raised: 0 6px 0 -3px rgb(20 16 10 / 10%);
  --shadow-floating: 0 14px 28px -16px rgb(20 16 10 / 30%);
  --shadow-overlay: 0 30px 60px -24px rgb(20 16 10 / 40%);
  --overlay-scrim: color-mix(in srgb, #14120f 26%, transparent);
  --overlay-scrim-strong: color-mix(in srgb, #14120f 60%, transparent);

  --glass-sheen: linear-gradient(180deg, rgb(255 255 255 / 45%) 0%, rgb(255 255 255 / 0%) 38%);
  --glass-rim: inset 0 0 0 1px var(--line);
  --glass-bar-rim: inset 0 0 0 1px var(--line-strong);
  --glass-bar-shadow: 0 12px 24px -16px rgb(20 16 10 / 35%);
  --glass-lens-fill: var(--surface-raised);
  --glass-lens-rim: inset 0 0 0 1px var(--line-strong);
  --glass-header-rim: inset 0 -1px 0 var(--line);
  --glass-chip-light-fill: color-mix(in srgb, var(--surface-raised) 80%, transparent);
  --glass-edge: inset 0 1px 0 rgb(255 255 255 / 60%);
  --badge-face-mix: 14%;
  --lift-ink: 28 22 14;
  --surface-dialog: linear-gradient(160deg, var(--surface-raised), var(--surface-base) 55%);
}

/* Palettes du Cercle sous lumière claire : la teinte lumineuse (accent-2)
   devient trop pâle pour du texte ; les accents se recalent vers accent-1.
   Le Talent ne choisit toujours qu'une palette. */
[data-mode="light"][data-circle-palette],
[data-mode="light"] [data-circle-palette] {
  /* Sous lumière claire, le plein de marque s'approfondit pour porter un texte blanc (≥ 4,5:1). */
  --brand: color-mix(in oklab, var(--circle-accent-1) 74%, var(--circle-accent-2));
  --brand-hover: color-mix(in oklab, var(--circle-accent-1) 64%, var(--circle-accent-2));
  --brand-dark: color-mix(in oklab, var(--circle-accent-1) 88%, var(--circle-accent-2));
  --on-brand: var(--db-white);
  /* Accents de texte : 4,5:1 aussi sur les pastilles teintées de la marque. */
  --brand-light: color-mix(in oklab, var(--circle-accent-1) 88%, var(--circle-accent-2));
  --brand-soft: color-mix(in oklab, var(--circle-accent-1) 86%, var(--circle-accent-2));
  --brand-pale: color-mix(in oklab, var(--circle-accent-1) 85%, black);
}

/* Médias : leurs commandes répondent à l'image, pas à la lumière de la page. */
[data-mode="light"] [data-media],
[data-mode="light"] [data-media] [data-theme],
[data-mode="light"] [data-media] [data-circle-palette],
[data-mode="light"] db-video,
[data-mode="light"] db-locked {
  color-scheme: dark; --lift-ink: 255 255 255; --lift-k: 1;
  /* La couleur héritée doit être recalculée ici, sinon l'encre claire du parent descend. */
  color: var(--text-primary);
  /* Zones posées sur une image : l'encre du monde sombre, quelle que soit la lumière de la page. */
  --text-primary: var(--db-white); --text-bright: var(--db-gray-100); --text-secondary: var(--db-gray-100);
  --text-tertiary: var(--db-gray-200); --text-muted: var(--db-gray-200); --text-subtle: var(--db-gray-300); --text-faint: var(--db-gray-300);
  --line: rgb(255 255 255 / 14%); --line-strong: rgb(255 255 255 / 20%); --line-subtle: rgb(255 255 255 / 10%);
  --brand-light: var(--db-violet-400); --brand-pale: var(--db-violet-200); --brand-soft: var(--db-violet-300);
  /* Ses surfaces aussi : les fondus d'une bannière restent dans l'image, sans virer au blanc. */
  --surface-sunken: var(--db-ink-900); --surface-deep: var(--db-ink-850); --surface-well: var(--db-ink-800);
  --surface-app: var(--db-ink-700); --surface-base: var(--db-ink-600); --surface-raised: var(--db-ink-500);
  --surface-hover: var(--db-ink-300); --surface-active: var(--db-ink-200);
  --glass-chip-light-fill: rgb(255 255 255 / 14%); --glass-surface-fill: rgb(255 255 255 / 6%);
  --btn-primary-bg: var(--db-white); --btn-primary-fg: var(--db-ink-700);
  /* États : leurs teintes du monde sombre, lisibles sur l'image. */
  --premium: var(--db-gold-400); --ok: var(--db-green-400); --warn: var(--db-amber-400); --danger: var(--db-coral-400); --info: var(--db-blue-400);
  --ok-light: var(--db-green-300); --ok-soft: var(--db-green-400); --danger-soft: var(--db-coral-300); --premium-pale: var(--db-gold-200);
  --ok-wash: color-mix(in srgb, var(--ok) 14%, transparent); --warn-wash: color-mix(in srgb, var(--warn) 14%, transparent);
  --danger-wash: color-mix(in srgb, var(--danger) 16%, transparent); --premium-wash: color-mix(in srgb, var(--premium) 14%, transparent);
}
/* Encre automatique (db-ink-guard.js) : un bloc au fond sombre en lumière claire.
   Seule l'encre change — textes, lignes, accents de texte, états — le fond du
   bloc et ses surfaces restent ceux du composant. Aussi utilisable à la main :
   data-ink="light" sur un conteneur sombre. */
[data-mode="light"] [data-ink="light"] {
  color-scheme: dark; --lift-ink: 255 255 255; --lift-k: 1;
  color: var(--text-primary);
  --text-primary: var(--db-white); --text-bright: var(--db-gray-100); --text-secondary: var(--db-gray-100);
  --text-tertiary: var(--db-gray-200); --text-muted: var(--db-gray-200); --text-subtle: var(--db-gray-300); --text-faint: var(--db-gray-300);
  --line: rgb(255 255 255 / 14%); --line-strong: rgb(255 255 255 / 20%); --line-subtle: rgb(255 255 255 / 10%);
  --glass-chip-light-fill: rgb(255 255 255 / 14%);
  --brand-light: var(--brand-soft);
  /* Accent de texte (sur-titres « Action recommandée »…) : teinte claire de la marque,
     valable pour toutes les palettes — l'accent sombre du mode clair y disparaissait. */
  --brand-pale: color-mix(in srgb, var(--brand) 30%, white);
  --premium: var(--db-gold-400); --ok: var(--db-green-400); --warn: var(--db-amber-400); --danger: var(--db-coral-400); --info: var(--db-blue-400);
  --ok-light: var(--db-green-300); --ok-soft: var(--db-green-400); --danger-soft: var(--db-coral-300); --premium-pale: var(--db-gold-200);
  --ok-wash: color-mix(in srgb, var(--ok) 14%, transparent); --warn-wash: color-mix(in srgb, var(--warn) 14%, transparent);
  --danger-wash: color-mix(in srgb, var(--danger) 16%, transparent); --premium-wash: color-mix(in srgb, var(--premium) 14%, transparent);
}
/* Palette du Cercle dans une zone média : accents du monde sombre (lisibles sur l'image). */
[data-mode="light"] [data-media][data-circle-palette], [data-mode="light"] [data-circle-palette] [data-media] {
  --brand-light: var(--circle-accent-2);
  --brand-soft: color-mix(in srgb, var(--circle-accent-2) 80%, white);
  --brand-pale: color-mix(in srgb, var(--circle-accent-2) 62%, white);
}

/* Lisibilité renforcée en lumière claire (y compris pour les malvoyants) :
   - les emblèmes de statut et la marque, dessinés clairs pour le monde sombre,
     reçoivent un contour d'encre — ils restent les mêmes objets ;
   - « Contraste élevé » du système : textes et lignes plus marqués. */
:root, [data-theme] { --mark-filter: none; --status-filter: none; }
[data-mode="light"], [data-mode="light"] [data-theme] {
  --mark-filter: brightness(0) saturate(0) opacity(.9);
  --status-filter: drop-shadow(0 0 .6px rgb(20 16 40 / 90%)) drop-shadow(0 0 .6px rgb(20 16 40 / 70%)) drop-shadow(0 1px 2px rgb(20 16 40 / 28%));
}
[data-mode="light"] [data-media] { --mark-filter: none; --status-filter: drop-shadow(0 1px 2px rgb(0 0 0 / 45%)); }
img[src*="logo-mark"], img[src*="logo-dediboom"], img[src*="logo-loud"], img[src*="wordmark"], img[src$="assets/logo.png"] { filter: var(--mark-filter); }
img[data-mark-keep] { filter: none; }   /* marque posée sur une tuile de marque : elle garde sa couleur */
db-badge, img[src*="badge-fan"], img[src*="badge-superfan"], img[src*="badge-pionnier"] { filter: var(--status-filter); }
@media (prefers-contrast: more) {
  [data-mode="light"], [data-mode="light"] [data-theme] {
    --text-secondary: #24212e; --text-tertiary: #2e2b38; --text-muted: #3a3745; --text-subtle: #45424f; --text-faint: #4f4c59;
    --line: #c9c6d3; --line-strong: #b4b0c0;
  }
  :root, [data-theme] { --text-subtle: var(--db-gray-300); --text-faint: var(--db-gray-400); --line: var(--db-ink-200); }
}

/* Contrôles natifs et remplissage automatique. */
[data-mode="light"] input:-webkit-autofill,
[data-mode="light"] textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text-primary);
  box-shadow: 0 0 0 100px var(--surface-base) inset;
  caret-color: var(--text-primary);
}
html[data-mode="light"], html[data-mode="light"] body { color-scheme: light !important; }
/* Textes d'exemple des champs : jamais le gris pâle du navigateur (≥ 4,5:1 dans les deux lumières). */
input::placeholder, textarea::placeholder { color: var(--text-subtle); opacity: 1; }

/* Sans backdrop-filter (navigateur ancien) : voile plus dense pour garder la lisibilité. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --overlay-scrim: color-mix(in srgb, var(--surface-sunken) 82%, transparent); }
}

/* Transparence réduite : le verre devient une surface pleine, dans les deux lumières. */
@media (prefers-reduced-transparency: reduce) {
  :root, [data-theme] {
    --glass-bar-fill: var(--surface-raised); --glass-bar-filter: none;
    --glass-header-fill: var(--surface-app); --glass-header-filter: none;
    --glass-panel-fill: var(--surface-raised); --glass-panel-filter: none;
    --glass-chip-filter: none; --glass-scrim-filter: none;
    --overlay-scrim: color-mix(in srgb, var(--surface-sunken) 82%, transparent);
  }
}

/* Changement de lumière : fondu croisé natif (View Transitions), court. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-slow); animation-timing-function: var(--ease-out); }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 1ms; } }


/* ── 8 bis · VOILES, REFLETS ET QR ──────────────────────────────────────────
   Trois familles qui ne suivent volontairement NI l'univers NI la lumière :
     --veil-NN    voile noir à NN % : protection d'un texte posé sur une image ou une vidéo,
                  fondu d'une couverture, fond d'une fenêtre plein écran (visionneuse, lecteur) ;
     --glint-NN   reflet blanc à NN % : encre, pastille ou liseré posés sur une image (verre clair) ;
     --qr-*       papier et encre d'un QR : contraste maximal pour les lecteurs, dans les deux lumières ;
     --media-chip-* pastille ivoire posée sur une photo (lisible quelle que soit l'image).
   Un composant n'écrit plus de rgba() pour ces usages : il choisit le degré ici.
   ========================================================================== */
:root, [data-theme] {
  --veil-4: rgb(0 0 0 / 4%);
  --veil-10: rgb(0 0 0 / 10%);
  --veil-16: rgb(0 0 0 / 16%);
  --veil-25: rgb(0 0 0 / 25%);
  --veil-30: rgb(0 0 0 / 30%);
  --veil-38: rgb(0 0 0 / 38%);
  --veil-45: rgb(0 0 0 / 45%);
  --veil-50: rgb(0 0 0 / 50%);
  --veil-55: rgb(0 0 0 / 55%);
  --veil-62: rgb(0 0 0 / 62%);
  --veil-66: rgb(0 0 0 / 66%);
  --veil-72: rgb(0 0 0 / 72%);
  --veil-76: rgb(0 0 0 / 76%);
  --veil-80: rgb(0 0 0 / 80%);
  --veil-86: rgb(0 0 0 / 86%);
  --veil-96: rgb(0 0 0 / 96%);
  --glint-7: rgb(255 255 255 / 7%);
  --glint-9: rgb(255 255 255 / 9%);
  --glint-12: rgb(255 255 255 / 12%);
  --glint-16: rgb(255 255 255 / 16%);
  --glint-18: rgb(255 255 255 / 18%);
  --glint-22: rgb(255 255 255 / 22%);
  --glint-25: rgb(255 255 255 / 25%);
  --glint-30: rgb(255 255 255 / 30%);
  --glint-45: rgb(255 255 255 / 45%);
  --glint-55: rgb(255 255 255 / 55%);
  --glint-62: rgb(255 255 255 / 62%);
  --glint-70: rgb(255 255 255 / 70%);
  --glint-82: rgb(255 255 255 / 82%);
  --glint-88: rgb(255 255 255 / 88%);
  --glint-92: rgb(255 255 255 / 92%);
  --qr-paper: #ffffff;
  --qr-ink: #0b0b0f;
  --qr-caption: #444444;   /* légende posée sur le papier du QR */
  --print-paper: #ffffff;  /* fond d'impression (Impact, Deal) */
  --media-chip-paper: rgb(250 248 246 / 94%);
  --media-chip-ink: #17150f;
}


/* ── 9 · RÈGLE ABSOLUE : UNE PAGE NE BOUGE JAMAIS DE GAUCHE À DROITE ─────────
   Aucun contenu ne peut élargir la page (débordement horizontal). Les
   carrousels défilent dans LEUR conteneur (overflow-x:auto), jamais la page.
   overflow-x:clip (pas hidden) : ne casse ni position:sticky ni le défilement. */
html, body { max-width: 100%; overflow-x: clip; overscroll-behavior-x: none; }
img, video, canvas, svg, iframe { max-width: 100%; }
/* Un conteneur en overflow-y:auto devient aussi défilable en X : les halos et
   décors positionnés qui dépassent le faisaient glisser latéralement sur mobile.
   Les carrousels déclarent overflow-x:auto en ligne et gardent la priorité. */
[style*="overflow-y:auto"], [style*="overflow-y: auto"],
[style*="overflow-y:scroll"], [style*="overflow-y: scroll"] {
  overflow-x: hidden; overscroll-behavior-x: none;
}
@media (max-width: 760px) {
  html, body { touch-action: pan-y pinch-zoom; }
  [style*="overflow-x:auto"], [style*="overflow-x: auto"] { touch-action: pan-x pan-y pinch-zoom; }
}

/* Texte posé sur une image : même sur une couverture très claire, un voile
   d'ombre court garantit la lecture (Sombre et Clair). */
/* Contour de focus : sa COULEUR vient toujours du design system (--focus-ring, 3:1 dans les deux lumières et les deux
   univers) ; sa forme (épaisseur, décalage) reste celle du composant. */
:focus-visible { outline-color: var(--focus-ring) !important; }

/* Champ dans une capsule (.db-field) : le champ est transparent, la capsule porte la limite (--field-rim) et le focus. */
.db-field:has(:focus-visible) { box-shadow: inset 0 0 0 2px var(--focus-ring) !important; }
.db-field :is(input, textarea):focus-visible { outline: none; }
:is(input, textarea, select).db-field:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus-ring) !important; }

/* Encres secondaires sur image, dans les deux lumières : un cran plus claires que sur une surface pleine. */
[data-media] { --text-secondary: var(--db-gray-100); --text-tertiary: var(--db-gray-200); --text-muted: var(--db-gray-200); --text-subtle: var(--db-gray-300); --text-faint: var(--db-gray-300); }
/* Halo un peu plus dense (mesuré par la recette sur les pixels réels : 4,5:1 sur 90 % du texte). */
[data-media] { text-shadow: 0 1px 2px var(--veil-55), 0 0 12px var(--veil-45); }
[data-media] input, [data-media] textarea { text-shadow: none; }

/* Fond de marque plein ⇒ encre --on-brand, même quand le fond vient d'une valeur calculée. */
[data-on-brand] { color: var(--on-brand) !important; }


/* ═══════════════════════════════════════════════════════════════════════════
   RECHERCHE · tokens (db-search.js lit UNIQUEMENT ces variables)
   Un seul composant, deux expressions : Dediboom (verre doux, pilule, casse
   normale) et LOUD (acier, angles nets, capitales espacées). Clair/Sombre :
   tout dérive des rôles sémantiques, aucune couleur littérale.
   ═══════════════════════════════════════════════════════════════════════════ */
:root, [data-theme="defaultTheme"] {
  --search-radius: var(--radius-pill);
  --search-panel-radius: var(--radius-xl);
  --search-row-radius: var(--radius-lg);
  --search-thumb-radius: var(--radius-md);
  --search-trigger-h: 44px;
  --search-trigger-fill: color-mix(in srgb, var(--surface-raised) 62%, transparent);
  --search-trigger-fill-hover: color-mix(in srgb, var(--surface-raised) 88%, transparent);
  --search-trigger-ring: inset 0 0 0 1px rgb(var(--lift-ink) / calc(.08 * var(--lift-k)));
  --search-trigger-ring-hover: inset 0 0 0 1px color-mix(in srgb, var(--brand-light) 38%, transparent), 0 10px 30px -14px color-mix(in srgb, var(--brand) 55%, transparent);
  --search-trigger-fg: var(--text-secondary);
  --search-trigger-blur: blur(18px) saturate(160%);
  --search-case: none;
  --search-tracking: -.012em;
  --search-weight: 450;
  --search-input-size: var(--text-2xl);
  --search-input-tracking: -.025em;
  --search-label-tracking: .16em;
  --search-accent: var(--brand-light);
  --search-accent-wash: color-mix(in srgb, var(--brand) 16%, transparent);
  --search-mark: color-mix(in srgb, var(--brand) 30%, transparent);
  --search-panel-fill: color-mix(in srgb, var(--surface-base) 92%, transparent);
  --search-panel-blur: blur(28px) saturate(150%);
  --search-panel-edge: inset 0 1px 0 rgb(255 255 255 / 6%), 0 0 0 1px rgb(var(--lift-ink) / calc(.08 * var(--lift-k)));
  --search-row-hover: rgb(var(--lift-ink) / calc(.06 * var(--lift-k)));
  --search-row-cur: rgb(var(--lift-ink) / calc(.09 * var(--lift-k)));
  --search-row-cur-ring: inset 0 0 0 1px color-mix(in srgb, var(--brand-light) 34%, transparent);
  --search-glow: radial-gradient(60% 120% at 50% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%);
  --search-kbd-font: ui-monospace, SFMono-Regular, Menlo, monospace;
  --search-ease: cubic-bezier(.16, 1, .3, 1);
}
[data-theme="loudTheme"] {
  --search-radius: 0px;
  --search-panel-radius: 0px;
  --search-row-radius: 0px;
  --search-thumb-radius: 0px;
  --search-trigger-h: 42px;
  --search-trigger-fill: color-mix(in srgb, var(--surface-app) 70%, transparent);
  --search-trigger-fill-hover: color-mix(in srgb, var(--surface-base) 92%, transparent);
  --search-trigger-ring: inset 0 0 0 1px var(--line-strong);
  --search-trigger-ring-hover: inset 0 0 0 1px var(--brand), 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent);
  --search-trigger-blur: blur(12px);
  --search-case: uppercase;
  --search-tracking: .08em;
  --search-weight: 500;
  --search-input-size: var(--text-xl);
  --search-input-tracking: .04em;
  --search-label-tracking: .24em;
  --search-accent: var(--brand);
  --search-accent-wash: color-mix(in srgb, var(--brand) 14%, transparent);
  --search-mark: color-mix(in srgb, var(--brand) 34%, transparent);
  --search-panel-fill: var(--surface-base);
  --search-panel-blur: none;
  --search-panel-edge: inset 0 0 0 1px var(--line-strong), inset 0 2px 0 var(--brand);
  --search-row-cur-ring: inset 3px 0 0 var(--brand);
  --search-avatar-radius: 0px;
  --search-glow: linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%);
}

/* ── 12 · FICHE D'EXPÉRIENCE ───────────────────────────────────────────────────
   Rôles de la fiche d'annonce (Experience Detail). Le composant ne sait pas dans
   quel Univers il vit : Dediboom raconte en lumière et en rondeur, LOUD en
   éditorial mat, capitales, filets francs et médias plus secs.
   ========================================================================== */
:root, [data-theme] {
  --xp-kicker-case: none;
  --xp-kicker-tracking: .01em;
  --xp-kicker-weight: 600;
  --xp-title-case: none;
  --xp-title-tracking: -0.03em;
  --xp-title-weight: 700;
  --xp-title-leading: 1.02;
  --xp-numeral-font: var(--font-display);
  --xp-numeral-weight: 700;
  --xp-numeral-tracking: -0.04em;
  --xp-media-filter: none;
  --xp-section-rule: none;
  --xp-hero-glow: radial-gradient(70% 80% at 12% 100%, var(--brand-glow), transparent 70%);
  --xp-cta-fill: var(--gradient-brand);
  --xp-cta-shadow: var(--shadow-brand);
  --xp-card-fill: var(--glass-surface-fill);
  --xp-card-rim: var(--glass-rim);
  --xp-step-radius: var(--radius-dot);
  --xp-action-fill: var(--glass-bar-fill);
  --xp-action-filter: var(--glass-bar-filter);
  --xp-action-rim: var(--glass-bar-rim);
  --xp-viewer-fill: var(--surface-black);
}
[data-theme="loudTheme"] {
  --xp-kicker-case: uppercase;
  --xp-kicker-tracking: .22em;
  --xp-kicker-weight: 500;
  --xp-title-case: uppercase;
  --xp-title-tracking: .01em;
  --xp-title-weight: 400;
  --xp-title-leading: .98;
  --xp-numeral-font: var(--font-body);
  --xp-numeral-weight: 600;
  --xp-numeral-tracking: -0.01em;
  --xp-media-filter: grayscale(.22) contrast(1.08) saturate(.9);
  --xp-section-rule: inset 0 2px 0 var(--line-strong);
  --xp-hero-glow: linear-gradient(0deg, color-mix(in srgb, var(--brand) 26%, transparent), transparent 46%);
  --xp-cta-fill: var(--brand);
  --xp-cta-shadow: none;
  --xp-card-fill: var(--surface-base);
  --xp-card-rim: inset 0 0 0 1px var(--line-strong);
  --xp-step-radius: 0px;
}
