/* ════════════════════════════════════════════════════════════════════════
   SYNAXIS · CELESTIAL INTERFACE SYSTEM 2.0 — « L'orfèvrerie céleste » (27/10/2026, §61)
   ────────────────────────────────────────────────────────────────────────
   Couche visuelle chargée EN DERNIER (après plateau.celeste.css). Elle s'accroche aux classes
   et ids existants, sans en renommer aucun : aucune logique, aucune donnée, aucun attribut ARIA
   ne change ici.

   Une commande précieuse a jusqu'à quatre couches, posées en FONDS MULTIPLES (pas d'élément ajouté) :
     1. structure  — émail indigo, violet nocturne ou or champagne ;
     2. sertissage — filet métallique très fin, clair en haut, assombri en bas (fond « border-box ») ;
     3. émail      — reflet intérieur doux et guillochage horloger presque invisible ;
     4. lumière    — seulement au geste : reflet champagne sur le bord SUPÉRIEUR (lumière directionnelle),
                     passage de lumière, ligne d'énergie de la sélection.
   Micro-sertissages : deux minuscules repères dorés aux extrémités des capsules importantes.

   Familles : AURUM (or : action principale), NOCTIS (émail : action secondaire), AETHER (lien),
   ORBITAL (bascules et onglets), SIGILLUM (médaillons à icône). INFORMATIF = jamais l'air d'un bouton.

   Mouvement : seulement transform et opacity, déclenché par le geste (aucune boucle ajoutée).
   Survol 200 ms · pression 120 ms · sélection 260 ms · ouverture 400-700 ms · reflet 650 ms ;
   courbes cubic-bezier(.22, .8, .24, 1) et cubic-bezier(.16, 1, .3, 1).
   Tout s'arrête avec prefers-reduced-motion et html.pl-reduced (règle globale de plateau.page.css,
   avec !important) ; la section 8 retire aussi les petits déplacements au geste, et les reflets sous html.lx-lite.

   Poids : préfixe « html body.pl » (0,2,2) ; une liste de sélecteurs plutôt qu'un :is() quand un
   membre est plus lourd (cf. §49). Aucune règle sur button, a, summary ou details sans classe.
   Pour étendre ce système aux modules : déplacer les jetons et les familles dans polaristar-ui.css
   (sections 5 et 6), en ajoutant les classes génériques .ps-* à chaque famille.
   ════════════════════════════════════════════════════════════════════════ */

/* ── 0. Jetons : matières, lumière, rythme ───────────────────────────────── */
html body.pl {
  /* or : arête éclairée → corps → arête ombrée */
  --cis-gold-hi:   #FFF4D6;
  --cis-gold:      #E8C36A;
  --cis-gold-mid:  #C9A04E;
  --cis-gold-lo:   #7E5E26;
  --cis-ink:       #17112F;   /* encre des lettres gravées dans l'or */
  --cis-champagne: linear-gradient(180deg, #FCEFC8 0%, #F1D891 34%, #E2BA60 68%, #C99B47 100%);
  /* sertissage : filet métallique, clair en haut, assombri en bas */
  --cis-bezel:      linear-gradient(180deg, rgba(255, 241, 201, .78) 0%, rgba(232, 195, 106, .42) 42%, rgba(126, 94, 38, .58) 100%);
  --cis-bezel-soft: linear-gradient(180deg, rgba(255, 241, 201, .46) 0%, rgba(232, 195, 106, .2) 45%, rgba(126, 94, 38, .36) 100%);
  --cis-bezel-gold: linear-gradient(180deg, #FFF6DC 0%, #E9C474 46%, #9C7432 100%);
  --cis-bezel-ame:  linear-gradient(180deg, rgba(232, 214, 255, .82) 0%, rgba(170, 134, 237, .55) 45%, rgba(74, 46, 140, .7) 100%);
  /* émaux */
  --cis-enamel:        linear-gradient(180deg, #1B1F56 0%, #11143E 50%, #0A0C2B 100%);
  --cis-enamel-deep:   linear-gradient(180deg, #15194A 0%, #0C0F35 55%, #07081E 100%);
  --cis-enamel-violet: linear-gradient(180deg, #2B1D68 0%, #1A1249 52%, #0E0A2E 100%);
  --cis-enamel-glow:   radial-gradient(120% 95% at 50% -25%, rgba(170, 134, 237, .24), transparent 62%);
  /* guillochage : motifs d'horloger, presque invisibles, révélés par la lumière */
  --cis-guilloche-rings: repeating-radial-gradient(circle at 50% 50%, rgba(255, 246, 220, .06) 0 .6px, transparent .9px 2.7px);
  --cis-guilloche-sun:   repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 246, 220, .055) 0deg .8deg, transparent 1.1deg 3.75deg);
  --cis-guilloche-clous: repeating-linear-gradient(45deg, rgba(255, 246, 220, .045) 0 .7px, transparent .7px 4.2px),
                         repeating-linear-gradient(-45deg, rgba(255, 246, 220, .045) 0 .7px, transparent .7px 4.2px);
  --cis-satin:           repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
  /* lumière directionnelle : seul le haut capte l'éclat (pour un pseudo-élément qui apparaît au survol) */
  --cis-light-top: linear-gradient(90deg, transparent 10%, rgba(255, 241, 201, .95) 50%, transparent 90%) top center / 100% 1px no-repeat,
                   radial-gradient(75% 130% at 50% -35%, rgba(255, 236, 190, .17), transparent 72%);
  /* micro-sertissages : un index d'or posé sur le bord, à 3 h et à 9 h, comme les graduations de SYNAXIS */
  --cis-pin-l: linear-gradient(90deg, rgba(255, 241, 201, .95), rgba(201, 155, 71, .5) 65%, rgba(201, 155, 71, 0)) left 1px center / 6px 1px no-repeat;
  --cis-pin-r: linear-gradient(270deg, rgba(255, 241, 201, .95), rgba(201, 155, 71, .5) 65%, rgba(201, 155, 71, 0)) right 1px center / 6px 1px no-repeat;
  /* sur l'or, l'index est gravé en creux (bronze) */
  --cis-rivet-l: linear-gradient(90deg, rgba(110, 76, 22, .75), rgba(110, 76, 22, 0)) left 2px center / 7px 1px no-repeat;
  --cis-rivet-r: linear-gradient(270deg, rgba(110, 76, 22, .75), rgba(110, 76, 22, 0)) right 2px center / 7px 1px no-repeat;
  /* ombres fixes (jamais animées) */
  --cis-inner:   inset 0 1px 0 rgba(255, 246, 220, .14), inset 0 -1px 0 rgba(0, 0, 0, .34);
  --cis-drop:    0 6px 16px -10px rgba(0, 0, 0, .85);
  --cis-drop-lg: 0 16px 34px -20px rgba(0, 0, 0, .95);
  /* rythme */
  --cis-ease:     cubic-bezier(.22, .8, .24, 1);
  --cis-ease-out: cubic-bezier(.16, 1, .3, 1);
  --cis-t-hover:  .2s;
  --cis-t-press:  .12s;
  --cis-t-select: .26s;
  --cis-t-open:   .5s;
  --cis-t-glint:  .65s;
  --cis-focus:    #7FF3E6;
  /* matières composées des familles */
  --cis-aurum: var(--cis-rivet-l) padding-box, var(--cis-rivet-r) padding-box, var(--cis-champagne) padding-box, var(--cis-bezel-gold) border-box;
  --cis-noctis: var(--cis-enamel-glow) padding-box, var(--cis-enamel) padding-box, var(--cis-bezel-soft) border-box;
}

/* ── 1. Les cinq familles ────────────────────────────────────────────────── */

/* AURUM · l'or champagne serti, lettres gravées ; un seul passage de lumière au survol */
html body.pl .pl-cta {
  border: 1px solid transparent; background: var(--cis-aurum); color: var(--cis-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62), inset 0 -1px 0 rgba(120, 82, 24, .45), 0 8px 20px -12px rgba(232, 195, 106, .62);
  text-shadow: 0 1px 0 rgba(255, 246, 220, .42);
}
@media (hover: hover) { html body.pl .pl-cta:hover {
  border: 1px solid transparent; background: var(--cis-aurum); color: var(--cis-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62), inset 0 -1px 0 rgba(120, 82, 24, .45), 0 8px 20px -12px rgba(232, 195, 106, .62);
  text-shadow: 0 1px 0 rgba(255, 246, 220, .42);
} }
html body.pl .pl-cta { transition: transform var(--cis-t-hover) var(--cis-ease); }   /* l'éclat (filter) change d'état sans être animé */
@media (hover: hover) { html body.pl .pl-cta:hover { filter: brightness(1.03); } }
html body.pl .pl-cta:active { transform: translateY(0) scale(.985); filter: brightness(.97); transition-duration: var(--cis-t-press); }
/* le reflet : posé sous les lettres (pile isolée de la charte), il traverse l'or une fois, au geste
   (il remplace aussi le balayage perpétuel du bouton « Entrer ») */
html body.pl .pl-cta:not(.pl-door-btn):not([aria-busy="true"])::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .62) 47%, rgba(255, 249, 228, .22) 55%, transparent 66%);
  transform: translateX(-125%); animation: none;
}
@media (hover: hover) { html body.pl .pl-cta:not(.pl-door-btn):not([aria-busy="true"]):hover::after { transform: translateX(125%); transition: transform var(--cis-t-glint) var(--cis-ease-out); } }
html body.pl .pl-door-btn:not([aria-busy="true"])::after { content: none; }   /* la porte a déjà son geste : ses battants s'ouvrent */
/* la flèche gravée avance d'un souffle */
html body.pl .pl-cta > span[aria-hidden="true"]:last-child { display: inline-block; transition: transform var(--cis-t-hover) var(--cis-ease); }
@media (hover: hover) { html body.pl .pl-cta:hover > span[aria-hidden="true"]:last-child { transform: translateX(3px); } }

/* NOCTIS · émail indigo sous un filet de métal ; au survol, la lumière ne prend que le bord supérieur */
html body.pl .pl-ghost, html body.pl .pl-rc, html body.pl .pl-found-more, html body.pl .pl-found-try button {
  border: 1px solid transparent; background: var(--cis-noctis); box-shadow: var(--cis-inner), var(--cis-drop);
}
@media (hover: hover) { html body.pl .pl-ghost:hover, html body.pl .pl-rc:hover, html body.pl .pl-found-more:hover, html body.pl .pl-found-try button:hover {
  border: 1px solid transparent; background: var(--cis-noctis); box-shadow: var(--cis-inner), var(--cis-drop);
} }
html body.pl .pl-ghost, html body.pl .pl-rc, html body.pl .pl-found-more, html body.pl .pl-found-try button {
  position: relative; color: rgba(243, 238, 228, .9);
  transition: transform var(--cis-t-hover) var(--cis-ease), color var(--cis-t-hover) ease;
}
@media (hover: hover) { html body.pl .pl-ghost:hover, html body.pl .pl-rc:hover, html body.pl .pl-found-more:hover, html body.pl .pl-found-try button:hover { color: #FFF6DC; } }
html body.pl .pl-ghost::before, html body.pl .pl-rc::before, html body.pl .pl-found-more::before, html body.pl .pl-found-try button::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: var(--cis-light-top); opacity: 0; transition: opacity var(--cis-t-hover) ease;
}
@media (hover: hover) { html body.pl .pl-ghost:hover::before, html body.pl .pl-rc:hover::before, html body.pl .pl-found-more:hover::before, html body.pl .pl-found-try button:hover::before { opacity: 1; } }
html body.pl .pl-ghost:active, html body.pl .pl-rc:active, html body.pl .pl-found-more:active, html body.pl .pl-found-try button:active { transform: scale(.985); transition-duration: var(--cis-t-press); }
html body.pl .pl-ghost { min-height: 44px; }   /* même hauteur que l'action principale (42 px auparavant) */
/* « Revenir à SYNAXIS », « Recentrer » : secondaires, nettement moins intenses que l'or */
html body.pl .pl-ghost[data-act="core"], html body.pl .pl-ghost[data-act="clear"] { color: rgba(243, 238, 228, .86); }
/* état choisi (« ★ Favori ») : lumière intérieure stable et fine ligne d'or en bas, jamais une pastille pleine */
html body.pl .pl-ghost[aria-pressed="true"] {
  color: #F6DC98;
  background: linear-gradient(90deg, transparent 18%, rgba(245, 222, 156, .9) 50%, transparent 82%) bottom center / 100% 1px no-repeat padding-box,
              radial-gradient(90% 120% at 50% 120%, rgba(232, 195, 106, .2), transparent 62%) padding-box,
              var(--cis-enamel) padding-box, var(--cis-bezel) border-box;
}
@media (hover: hover) { html body.pl .pl-ghost[aria-pressed="true"]:hover {
  color: #F6DC98;
  background: linear-gradient(90deg, transparent 18%, rgba(245, 222, 156, .9) 50%, transparent 82%) bottom center / 100% 1px no-repeat padding-box,
              radial-gradient(90% 120% at 50% 120%, rgba(232, 195, 106, .2), transparent 62%) padding-box,
              var(--cis-enamel) padding-box, var(--cis-bezel) border-box;
} }

/* AETHER · lien gravé : soulignement fin toujours présent, il s'éclaire au geste */
html body.pl .pl-linkbtn, html body.pl .cx-link {
  color: #F1D891; text-decoration: none;
  background: linear-gradient(90deg, rgba(232, 195, 106, .42), rgba(232, 195, 106, .42)) left bottom / 100% 1px no-repeat;
  padding-bottom: 2px; transition: color var(--cis-t-hover) ease;
}
@media (hover: hover) { html body.pl .pl-linkbtn:hover, html body.pl .cx-link:hover {
  color: #FFF4D6;
  background: linear-gradient(90deg, rgba(232, 195, 106, .5), #FFF4D6 50%, rgba(232, 195, 106, .5)) left bottom / 100% 1px no-repeat;
} }
html body.pl .cx-link .cx-arrow { display: inline-block; margin-left: .3em; transition: transform var(--cis-t-hover) var(--cis-ease); }
@media (hover: hover) { html body.pl .cx-link:hover .cx-arrow { transform: translateX(3px); } }

/* ORBITAL · bascules : capsule d'émail, l'état actif est une pastille champagne qui glisse */
html body.pl .pl-modes {
  position: relative; border: 1px solid transparent;
  background: var(--cis-pin-l) padding-box, var(--cis-pin-r) padding-box, var(--cis-enamel-deep) padding-box, var(--cis-bezel-soft) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop);
}
html body.pl .pl-mode { position: relative; z-index: 1; min-width: 0; color: rgba(243, 238, 228, .74); transition: color var(--cis-t-select) ease; }
@media (hover: hover) { html body.pl .pl-mode:hover { color: #FFF6DC; background: none; } }
html body.pl .pl-mode[aria-pressed="true"] {
  color: var(--cis-ink); background: var(--cis-champagne); text-shadow: 0 1px 0 rgba(255, 246, 220, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(120, 82, 24, .4);
}
@supports selector(:has(*)) {
  /* la pastille d'or est dessinée par la capsule et glisse d'un bouton à l'autre (260 ms) */
  html body.pl .pl-modes { display: inline-grid; grid-template-columns: 1fr 1fr; }
  html body.pl .pl-modes::before {
    content: ""; position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 4px); border-radius: 999px; pointer-events: none;
    background: var(--cis-champagne); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(120, 82, 24, .4), 0 4px 12px -6px rgba(232, 195, 106, .7);
    transition: transform var(--cis-t-select) var(--cis-ease);
  }
  html body.pl .pl-modes:has(.pl-mode[data-mode="rapide"][aria-pressed="true"])::before { transform: translateX(calc(100% + 2px)); }
  html body.pl .pl-modes:not(:has(.pl-mode[aria-pressed="true"]))::before { opacity: 0; }
  html body.pl .pl-mode[aria-pressed="true"] { background: none; box-shadow: none; }
}
/* « Animations réduites » : un réglage ; un témoin gravé s'allume en turquoise quand il est actif */
html body.pl .pl-motion {
  border: 1px solid transparent; background: var(--cis-noctis); box-shadow: var(--cis-inner), var(--cis-drop);
}
@media (hover: hover) { html body.pl .pl-motion:hover {
  border: 1px solid transparent; background: var(--cis-noctis); box-shadow: var(--cis-inner), var(--cis-drop);
} }
html body.pl .pl-motion { display: inline-flex; align-items: center; gap: 9px; color: rgba(243, 238, 228, .8); transition: color var(--cis-t-select) ease; }
@media (hover: hover) { html body.pl .pl-motion:hover { color: #FFF6DC; } }
html body.pl .pl-motion::after {
  content: ""; order: -1; flex: none; width: 9px; height: 9px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(232, 195, 106, .6); background: radial-gradient(circle, rgba(232, 195, 106, .25) 0 1.2px, transparent 1.6px);
}
html body.pl .pl-motion[aria-pressed="true"] {
  color: #9CF7EC;
  background: radial-gradient(90% 130% at 50% 120%, rgba(63, 224, 208, .16), transparent 62%) padding-box, var(--cis-enamel) padding-box,
              linear-gradient(180deg, rgba(160, 250, 240, .8), rgba(63, 224, 208, .45) 50%, rgba(20, 110, 104, .6)) border-box;
}
@media (hover: hover) { html body.pl .pl-motion[aria-pressed="true"]:hover {
  color: #9CF7EC;
  background: radial-gradient(90% 130% at 50% 120%, rgba(63, 224, 208, .16), transparent 62%) padding-box, var(--cis-enamel) padding-box,
              linear-gradient(180deg, rgba(160, 250, 240, .8), rgba(63, 224, 208, .45) 50%, rgba(20, 110, 104, .6)) border-box;
} }
html body.pl .pl-motion[aria-pressed="true"]::after { box-shadow: inset 0 0 0 1px rgba(127, 243, 230, .9); background: radial-gradient(circle, #CFFBF6 0 1.6px, #3FE0D0 2.4px, rgba(63, 224, 208, .2) 4.5px); }

/* Focus clavier commun : turquoise, net, distinct de la sélection (complète la liste de la charte) */
html body.pl .pl-brand:focus-visible, html body.pl .pl-fd:focus-visible, html body.pl .pl-dice-btn:focus-visible, html body.pl .pl-dice-pick:focus-visible,
html body.pl .cx-link:focus-visible, html body.pl .pl-heart-q:focus-visible, html body.pl .cx-notes--below summary:focus-visible,
html body.pl .pl-hd-search .pl-search input:focus-visible {
  outline: 2px solid var(--cis-focus); outline-offset: 3px;
}

/* ── 2. Le header : instrument de bord ───────────────────────────────────── */

/* la ligne d'or ciselée devient une règle graduée, fixe (plus de balayage permanent) */
html body.pl .pl-status::after {
  height: 4px; animation: none;
  background: linear-gradient(90deg, transparent, rgba(232, 195, 106, .5) 18%, rgba(255, 244, 210, .92) 50%, rgba(232, 195, 106, .5) 82%, transparent) left bottom / 100% 1px no-repeat,
              repeating-linear-gradient(90deg, rgba(232, 195, 106, .34) 0 1px, transparent 1px 24px) left bottom / 100% 4px no-repeat;
  -webkit-mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

/* Identité : le logo dans une monture ronde (émail nocturne, soleil guilloché, filet d'or) */
html body.pl .pl-brand {
  position: relative; width: 48px; height: 48px; border: 1px solid transparent;
  background: radial-gradient(circle, rgba(255, 226, 150, .16), transparent 64%) padding-box, var(--cis-guilloche-sun) padding-box,
              radial-gradient(circle at 50% 32%, #1B1F58, #0A0C2A 74%) padding-box, var(--cis-bezel) border-box;
  box-shadow: 0 0 0 3px rgba(5, 6, 15, .5), 0 0 0 4px rgba(232, 195, 106, .16), var(--cis-drop);
  transition: transform var(--cis-t-hover) var(--cis-ease);
}
@media (hover: hover) { html body.pl .pl-brand:hover { box-shadow: 0 0 0 3px rgba(5, 6, 15, .5), 0 0 0 4px rgba(232, 195, 106, .3), var(--cis-drop); } }
html body.pl .pl-brand::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; pointer-events: none;
  background: var(--cis-light-top); opacity: 0; transition: opacity var(--cis-t-hover) ease;
}
@media (hover: hover) { html body.pl .pl-brand:hover::after { opacity: 1; } }
html body.pl .pl-brand:active { transform: scale(.97); transition-duration: var(--cis-t-press); }
html body.pl .pl-brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 6px rgba(242, 207, 115, .42)); }
html body.pl .pl-hd-id .pl-head-txt { gap: 4px; }
/* le nom : or poli, une arête claire au centre, gravé d'une ombre d'un pixel */
html body.pl .pl-hd-id .pl-wordmark {
  letter-spacing: .15em;
  background: linear-gradient(100deg, #A87A26 0%, #E8C36A 22%, #FFF6DC 46%, #F6DC98 55%, #E2B85C 76%, #9C7432 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5)) drop-shadow(0 0 9px rgba(232, 195, 106, .22));
}
/* la devise : plus lisible, espacée, l'or réservé au « Nord intérieur » */
html body.pl .pl-hd-id .pl-title { color: rgba(243, 238, 228, .9); letter-spacing: .1em; }

/* Recherche : l'oracle (capsule d'émail, filet d'or antique, reflet supérieur, deux repères d'or) */
html body.pl .pl-hd-search .pl-search input {
  border: 1px solid transparent;
  background: var(--cis-pin-l) padding-box, var(--cis-pin-r) padding-box,
              radial-gradient(70% 150% at 50% -55%, rgba(170, 134, 237, .17), transparent 62%) padding-box,
              var(--cis-enamel) padding-box, var(--cis-bezel) border-box;
  box-shadow: var(--cis-inner), inset 0 -10px 20px -14px rgba(123, 79, 214, .55), var(--cis-drop);
}
@media (hover: hover) { html body.pl .pl-hd-search .pl-search input:hover {
  border: 1px solid transparent;
  background: var(--cis-pin-l) padding-box, var(--cis-pin-r) padding-box,
              radial-gradient(70% 150% at 50% -55%, rgba(170, 134, 237, .17), transparent 62%) padding-box,
              var(--cis-enamel) padding-box, var(--cis-bezel) border-box;
  box-shadow: var(--cis-inner), inset 0 -10px 20px -14px rgba(123, 79, 214, .55), var(--cis-drop);
} }
html body.pl .pl-hd-search .pl-search input {
  font-size: 16px; letter-spacing: .01em; text-overflow: ellipsis;   /* 16 px : pas de zoom forcé sur iPhone */
  transition: none;
}
html body.pl .pl-hd-search .pl-search input::placeholder { color: rgba(243, 238, 228, .56); font-style: italic; }
html body.pl .pl-hd-search .pl-search input:focus {
  border-color: transparent;
  box-shadow: var(--cis-inner), inset 0 -10px 20px -14px rgba(123, 79, 214, .55), var(--cis-drop);
}
/* lumière directionnelle au survol, lumière intérieure à l'activation (calques d'opacité, rien d'autre ne bouge) */
html body.pl .pl-hd-search .pl-search::before, html body.pl .pl-hd-search .pl-search::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px; pointer-events: none; opacity: 0;
}
html body.pl .pl-hd-search .pl-search::before { background: var(--cis-light-top); transition: opacity var(--cis-t-hover) ease; }
html body.pl .pl-hd-search .pl-search::after {
  background: radial-gradient(60% 130% at 50% 125%, rgba(127, 243, 230, .1), transparent 70%), radial-gradient(80% 150% at 50% -45%, rgba(255, 236, 190, .15), transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(245, 222, 156, .6);
  transition: opacity var(--cis-t-open) var(--cis-ease-out);
}
@media (hover: hover) { html body.pl .pl-hd-search .pl-search:hover::before { opacity: 1; } }
html body.pl .pl-hd-search .pl-search:focus-within::before { opacity: 0; }
html body.pl .pl-hd-search .pl-search:focus-within::after { opacity: 1; }
html body.pl .pl-search-ico { z-index: 1; left: 16px; filter: drop-shadow(0 0 4px rgba(232, 195, 106, .45)); }
html body.pl .pl-search-ico svg { stroke-width: 1.45; }
html body.pl .pl-kbd {
  z-index: 1; right: 15px; min-width: 21px; padding: 3px 6px 2px; border: 1px solid transparent; border-radius: 6px;
  font: 600 11px/1 var(--pl-display); color: rgba(245, 222, 156, .78);
  background: var(--cis-enamel-deep) padding-box, var(--cis-bezel-soft) border-box;
  box-shadow: inset 0 -1px 0 rgba(232, 195, 106, .3), 0 1px 0 rgba(0, 0, 0, .5);
}

/* Les médaillons de ressource : émail, guillochage rayonnant depuis l'emblème, un repère d'or au bout */
html body.pl .pl-chip {
  border: 1px solid transparent;
  background: var(--cis-pin-r) padding-box,
              repeating-radial-gradient(circle at 20px 50%, rgba(255, 246, 220, .045) 0 .7px, transparent 1px 3.2px) padding-box,
              radial-gradient(120% 150% at 22% -30%, rgba(123, 79, 214, .3), transparent 62%) padding-box,
              var(--cis-enamel-deep) padding-box, var(--cis-bezel) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop);
}
@media (hover: hover) { html body.pl .pl-chip:hover {
  border: 1px solid transparent;
  background: var(--cis-pin-r) padding-box,
              repeating-radial-gradient(circle at 20px 50%, rgba(255, 246, 220, .045) 0 .7px, transparent 1px 3.2px) padding-box,
              radial-gradient(120% 150% at 22% -30%, rgba(123, 79, 214, .3), transparent 62%) padding-box,
              var(--cis-enamel-deep) padding-box, var(--cis-bezel) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop);
} }
html body.pl .pl-chip { gap: 9px; padding-right: 15px; transition: transform var(--cis-t-hover) var(--cis-ease); }
html body.pl .pl-chip:active { transform: translateY(0) scale(.985); transition-duration: var(--cis-t-press); }
/* au survol, la lumière vient d'en haut et révèle le guillochage sur la seule moitié supérieure */
html body.pl .pl-chip::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  background: var(--cis-light-top), repeating-radial-gradient(circle at 21px 50%, rgba(255, 246, 220, .09) 0 .7px, transparent 1px 3.2px);
  -webkit-mask: linear-gradient(180deg, #000 20%, transparent 72%); mask: linear-gradient(180deg, #000 20%, transparent 72%);
  transition: opacity var(--cis-t-hover) ease;
}
@media (hover: hover) { html body.pl .pl-chip:hover::before { opacity: 1; } }
html body.pl .pl-chip .pl-cval { gap: 1px; }
html body.pl .pl-chip small { font-size: 9.5px; letter-spacing: .2em; color: rgba(243, 238, 228, .66); }
html body.pl .pl-chip b { font-size: 16px; line-height: 1.05; letter-spacing: .02em; font-variant-numeric: tabular-nums lining-nums; }
/* PI : l'emblème officiel sur émail indigo, couronne d'or fine ; libellé et valeur séparés d'un filet */
html body.pl .pl-chip--pi .pl-ci {
  border: 1px solid transparent; filter: none;
  background: radial-gradient(circle at 50% 30%, rgba(123, 79, 214, .45), transparent 70%) padding-box, var(--cis-enamel) padding-box, var(--cis-bezel-gold) border-box;
  box-shadow: 0 0 0 2px rgba(5, 6, 15, .6);
}
html body.pl .pl-chip--pi b { color: #F6DC98; }
/* STARDUST : le cristal monétaire, un cran plus précieux (émail améthyste, filet d'or, facettes, cœur de lumière) */
html body.pl .pl-chip--sd {
  background: var(--cis-pin-r) padding-box,
              repeating-radial-gradient(circle at 20px 50%, rgba(240, 228, 255, .05) 0 .7px, transparent 1px 3.2px) padding-box,
              radial-gradient(120% 150% at 22% -30%, rgba(190, 160, 255, .34), transparent 62%) padding-box,
              var(--cis-enamel-violet) padding-box, var(--cis-bezel-ame) border-box;
  box-shadow: var(--cis-inner), inset 0 0 0 1px rgba(232, 195, 106, .14), var(--cis-drop);
}
@media (hover: hover) { html body.pl .pl-chip--sd:hover {
  background: var(--cis-pin-r) padding-box,
              repeating-radial-gradient(circle at 20px 50%, rgba(240, 228, 255, .05) 0 .7px, transparent 1px 3.2px) padding-box,
              radial-gradient(120% 150% at 22% -30%, rgba(190, 160, 255, .34), transparent 62%) padding-box,
              var(--cis-enamel-violet) padding-box, var(--cis-bezel-ame) border-box;
  box-shadow: var(--cis-inner), inset 0 0 0 1px rgba(232, 195, 106, .14), var(--cis-drop);
} }
html body.pl .pl-chip--sd .pl-ci { filter: none; box-shadow: 0 0 0 1px rgba(5, 6, 15, .75), 0 0 0 2px rgba(245, 222, 156, .62); }
html body.pl .pl-chip--sd .pl-ci::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .26) 0, rgba(255, 255, 255, 0) 32%),
              repeating-conic-gradient(from 22.5deg, rgba(255, 255, 255, .075) 0 22.5deg, transparent 22.5deg 45deg);
}
/* son reflet ne passe plus en boucle : une seule traversée, au survol */
html body.pl .pl-chip--sd .pl-ci::after { animation: none; transform: translateX(-120%); }
@media (hover: hover) { html body.pl .pl-chip--sd:hover .pl-ci::after { transform: translateX(120%); transition: transform var(--cis-t-glint) var(--cis-ease-out); } }
html body.pl .pl-chip--sd b { color: #ECE2FF; }
/* Niveau : instrument de progression (médaillon gradué, chiffre central, jauge réelle et sa tête de lumière) */
html body.pl .pl-chip--lvl {
  background: var(--cis-pin-r) padding-box,
              repeating-radial-gradient(circle at 20px 50%, rgba(255, 246, 220, .04) 0 .7px, transparent 1px 3.2px) padding-box,
              radial-gradient(120% 150% at 22% -30%, rgba(80, 92, 200, .26), transparent 62%) padding-box,
              linear-gradient(180deg, #111546 0%, #0A0C30 55%, #05061A 100%) padding-box, var(--cis-bezel) border-box;
}
@media (hover: hover) { html body.pl .pl-chip--lvl:hover {
  background: var(--cis-pin-r) padding-box,
              repeating-radial-gradient(circle at 20px 50%, rgba(255, 246, 220, .04) 0 .7px, transparent 1px 3.2px) padding-box,
              radial-gradient(120% 150% at 22% -30%, rgba(80, 92, 200, .26), transparent 62%) padding-box,
              linear-gradient(180deg, #111546 0%, #0A0C30 55%, #05061A 100%) padding-box, var(--cis-bezel) border-box;
} }
html body.pl .pl-chip--lvl .pl-ci {
  border: 1px solid transparent; color: #F6DC98;
  background: radial-gradient(circle at 50% 32%, #1D2262, #090B26 76%) padding-box, var(--cis-bezel-gold) border-box;
  box-shadow: 0 0 0 2px rgba(5, 6, 15, .6);
}
html body.pl .pl-chip--lvl .pl-ci::before {
  content: ""; position: absolute; inset: 1px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from -1.5deg, rgba(245, 222, 156, .62) 0 3deg, transparent 3deg 30deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 74%, #000 76%); mask: radial-gradient(circle closest-side, transparent 74%, #000 76%);
}
html body.pl .pl-chip--lvl .pl-ci svg { width: 15px; height: 15px; filter: drop-shadow(0 0 3px rgba(245, 222, 156, .5)); }
html body.pl .pl-chip--lvl b { font-family: var(--pl-display); font-size: 17px; font-weight: 600; color: #FFF4D6; }
html body.pl .pl-chip--lvl .pl-cval { padding-bottom: 6px; }
html body.pl .pl-chip--lvl .pl-bar {
  bottom: 5px; height: 3px; border-radius: 3px; overflow: visible;
  background: repeating-linear-gradient(90deg, rgba(243, 238, 228, .3) 0 1px, transparent 1px 10%) 0 0 / 100% 100%, rgba(243, 238, 228, .1);
}
html body.pl .pl-chip--lvl .pl-bar i { position: relative; border-radius: inherit; background: linear-gradient(90deg, rgba(123, 79, 214, .95), #E8C36A 72%, #FFF1C9); }
html body.pl .pl-chip--lvl .pl-bar i::after {
  content: ""; position: absolute; right: -3px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: radial-gradient(circle, #FFF8E6 0 1.4px, rgba(245, 222, 156, .7) 2.2px, rgba(245, 222, 156, 0) 3.5px);
}
/* les libellés PI, STARDUST, Niveau restent lisibles dès qu'il y a la place (sur téléphone : lus et en info-bulle) */
@media (min-width: 560px) {
  html body.pl .pl-chip small { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap; }
}

/* « Mes ressources » (téléphone) : un petit médaillon gravé */
html body.pl .pl-res-more { border: 1px solid transparent; background: var(--cis-noctis); box-shadow: var(--cis-inner), var(--cis-drop); }
@media (hover: hover) { html body.pl .pl-res-more:hover { border-color: transparent; background: var(--cis-noctis); box-shadow: var(--cis-inner), var(--cis-drop); color: #FFF6DC; } }

/* Mon compte : le sceau personnel (initiale gravée d'or sur émail nocturne, bordure champagne) */
html body.pl .pl-me.is-user, html body.pl .pl-me[aria-expanded="true"] {
  border: 1px solid transparent;
  background: radial-gradient(110% 140% at 30% -30%, rgba(123, 79, 214, .26), transparent 62%) padding-box, var(--cis-enamel-deep) padding-box, var(--cis-bezel) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop);
}
@media (hover: hover) { html body.pl .pl-me.is-user:hover {
  border: 1px solid transparent;
  background: radial-gradient(110% 140% at 30% -30%, rgba(123, 79, 214, .26), transparent 62%) padding-box, var(--cis-enamel-deep) padding-box, var(--cis-bezel) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop);
} }
html body.pl .pl-me.is-user { position: relative; gap: 8px; padding: 3px 11px 3px 3px; transition: transform var(--cis-t-hover) var(--cis-ease); }
html body.pl .pl-me.is-user:active { transform: scale(.985); transition-duration: var(--cis-t-press); }
html body.pl .pl-me.is-user .pl-av {
  width: 32px; height: 32px; border: 1px solid transparent;
  font: 600 15px/1 var(--pl-display); color: #F3D88F; text-shadow: 0 1px 0 rgba(0, 0, 0, .55);
  background: radial-gradient(circle at 50% 28%, rgba(170, 134, 237, .32), transparent 66%) padding-box, var(--cis-guilloche-rings) padding-box,
              radial-gradient(circle at 50% 35%, #1C2059, #090B27 76%) padding-box, var(--cis-bezel-gold) border-box;
  box-shadow: 0 0 0 2px rgba(5, 6, 15, .6);
}
html body.pl .pl-me.is-user .pl-me-name { font-size: 11.5px; letter-spacing: .16em; color: rgba(243, 238, 228, .88); }
/* le chevron dit qu'un menu s'ouvre (Mon Espace, NEXUS) ; il se retourne quand il est ouvert */
html body.pl .pl-me.is-user::after {
  content: ""; flex: none; width: 5px; height: 5px; margin: -3px 1px 0 0;
  border-right: 1.3px solid rgba(245, 222, 156, .78); border-bottom: 1.3px solid rgba(245, 222, 156, .78);
  transform: rotate(45deg); transition: transform var(--cis-t-select) var(--cis-ease);
}
html body.pl .pl-me.is-user[aria-expanded="true"]::after { transform: translateY(3px) rotate(-135deg); }
html body.pl .pl-me.is-user::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: var(--cis-light-top); opacity: 0; transition: opacity var(--cis-t-hover) ease;
}
html body.pl .pl-me.is-user[aria-expanded="true"]::before { opacity: 1; }
@media (hover: hover) { html body.pl .pl-me.is-user:hover::before { opacity: 1; } }
/* « Se connecter » : même sceau, en lettres gravées */
html body.pl .pl-me:not(.is-user) {
  position: relative; border: 1px solid transparent; background: var(--cis-noctis); box-shadow: var(--cis-inner), var(--cis-drop);
}
@media (hover: hover) { html body.pl .pl-me:not(.is-user):hover {
  position: relative; border: 1px solid transparent; background: var(--cis-noctis); box-shadow: var(--cis-inner), var(--cis-drop);
} }
html body.pl .pl-me:not(.is-user) {
  min-height: 40px; padding: 6px 15px; font-family: var(--pl-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #F1D891;
  transition: transform var(--cis-t-hover) var(--cis-ease), color var(--cis-t-hover) ease;
}
@media (hover: hover) { html body.pl .pl-me:not(.is-user):hover { color: #FFF4D6; } }
html body.pl .pl-me:not(.is-user)::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: var(--cis-light-top); opacity: 0; transition: opacity var(--cis-t-hover) ease;
}
@media (hover: hover) { html body.pl .pl-me:not(.is-user):hover::before { opacity: 1; } }
html body.pl .pl-me:not(.is-user):active { transform: scale(.985); transition-duration: var(--cis-t-press); }
/* le menu du compte : un écrin d'émail qui se déplie (400 ms) */
html body.pl .pl-me-menu {
  border: 1px solid transparent; transform-origin: 90% 0;
  background: var(--cis-enamel-glow) padding-box, linear-gradient(180deg, rgba(27, 31, 86, .98), rgba(9, 11, 36, .98)) padding-box, var(--cis-bezel) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop-lg);
  animation: cis-unfold .4s var(--cis-ease-out);
}
html body.pl .pl-me-menu a + a { margin-top: 2px; }
html body.pl .pl-me-menu a { position: relative; }
html body.pl .pl-me-menu a + a::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: -2px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(232, 195, 106, .3), transparent);
}
html body.pl .pl-me-menu a:focus-visible {
  background: radial-gradient(90% 140% at 50% -40%, rgba(255, 236, 190, .14), transparent 70%), rgba(232, 195, 106, .07); box-shadow: inset 0 0 0 1px rgba(232, 195, 106, .32);
}
@media (hover: hover) { html body.pl .pl-me-menu a:hover {
  background: radial-gradient(90% 140% at 50% -40%, rgba(255, 236, 190, .14), transparent 70%), rgba(232, 195, 106, .07); box-shadow: inset 0 0 0 1px rgba(232, 195, 106, .32);
} }
@keyframes cis-unfold { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* Résultats de recherche : même écrin que l'oracle ; chaque résultat garde la couleur de sa dimension */
html body.pl .pl-found {
  border: 1px solid transparent;
  background: radial-gradient(100% 60% at 50% 0%, rgba(123, 79, 214, .16), transparent 70%) padding-box,
              linear-gradient(180deg, rgba(22, 25, 70, .97), rgba(8, 10, 32, .97)) padding-box, var(--cis-bezel-soft) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop-lg);
}
html body.pl .pl-fd { position: relative; }
html body.pl .pl-fd::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: var(--cis-light-top); opacity: 0; transition: opacity var(--cis-t-hover) ease;
}
html body.pl .pl-fd:focus-visible::before { opacity: 1; }
@media (hover: hover) { html body.pl .pl-fd:hover::before { opacity: 1; } }

/* ── Téléphone : le header reste complet et compact ── */
@media (max-width: 559px) {
  html body.pl .pl-brand { width: 44px; height: 44px; }
  html body.pl .pl-brand img { width: 36px; height: 36px; }
  html body.pl .pl-chip { gap: 7px; padding-right: 13px; }
  html body.pl .pl-chip b { font-size: 15px; }
  html body.pl .pl-chip--lvl b { font-size: 16px; }
  html body.pl .pl-chip--lvl .pl-cval { min-width: 28px; }   /* la jauge garde une longueur lisible */
  html body.pl .pl-chip--lvl .pl-bar { left: 41px; right: 13px; }
  html body.pl .pl-me:not(.is-user) { min-height: 44px; padding: 6px 14px; font-size: 11.5px; letter-spacing: .12em; }
  html body.pl .pl-me.is-user { padding-right: 10px; gap: 7px; }
}
@media (max-width: 359px) {
  html body.pl .pl-chip { padding-right: 11px; gap: 5px; }
  html body.pl .pl-me.is-user { padding-right: 8px; gap: 5px; }
}

/* ── 3. Le Codex : tableau des constellations ────────────────────────────── */
html body.pl .cx-tab {
  border: 1px solid transparent;
  background: radial-gradient(100% 130% at 50% -45%, rgba(170, 134, 237, .16), transparent 62%) padding-box, var(--cis-enamel-deep) padding-box, var(--cis-bezel-soft) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop);
}
@media (hover: hover) { html body.pl .cx-tab:hover {
  border: 1px solid transparent;
  background: radial-gradient(100% 130% at 50% -45%, rgba(170, 134, 237, .16), transparent 62%) padding-box, var(--cis-enamel-deep) padding-box, var(--cis-bezel-soft) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop);
} }
html body.pl .cx-tab { color: rgba(243, 238, 228, .8); transition: color var(--cis-t-select) ease, transform var(--cis-t-hover) var(--cis-ease); }
html body.pl .cx-tab span { color: rgba(232, 195, 106, .84); filter: drop-shadow(0 0 3px rgba(232, 195, 106, .26)); transition: color var(--cis-t-select) ease; }
/* survol : le filet supérieur capte la lumière, l'emblème se dore, la capsule monte d'un pixel */
html body.pl .cx-tab::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: var(--cis-light-top); opacity: 0; transition: opacity var(--cis-t-hover) ease;
}
@media (hover: hover) { html body.pl .cx-tab:hover { color: #FFF6DC; transform: translateY(-1px); } }
@media (hover: hover) { html body.pl .cx-tab:hover::before { opacity: 1; } }
@media (hover: hover) { html body.pl .cx-tab:hover span { color: #F6DC98; } }
html body.pl .cx-tab:active { transform: translateY(0) scale(.985); transition-duration: var(--cis-t-press); }
/* ouvert : filet supérieur champagne, lumière intérieure qui monte du bas, ligne d'or persistante (jamais une pastille pleine) */
html body.pl .cx-tab[aria-selected="true"] {
  color: #F8E9C4;
  background: radial-gradient(90% 120% at 50% 135%, rgba(232, 195, 106, .24), transparent 62%) padding-box,
              radial-gradient(100% 130% at 50% -45%, rgba(170, 134, 237, .2), transparent 62%) padding-box, var(--cis-enamel) padding-box,
              linear-gradient(180deg, #FFF1C9 0%, rgba(232, 195, 106, .62) 38%, rgba(126, 94, 38, .7) 100%) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop);
}
@media (hover: hover) { html body.pl .cx-tab[aria-selected="true"]:hover {
  color: #F8E9C4;
  background: radial-gradient(90% 120% at 50% 135%, rgba(232, 195, 106, .24), transparent 62%) padding-box,
              radial-gradient(100% 130% at 50% -45%, rgba(170, 134, 237, .2), transparent 62%) padding-box, var(--cis-enamel) padding-box,
              linear-gradient(180deg, #FFF1C9 0%, rgba(232, 195, 106, .62) 38%, rgba(126, 94, 38, .7) 100%) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop);
} }
html body.pl .cx-tab[aria-selected="true"] span { color: #FFE7A8; filter: drop-shadow(0 0 4px rgba(255, 220, 140, .55)); }
html body.pl .cx-tab::after { bottom: 5px; height: 1px; }
html body.pl .cx-tab[aria-selected="true"]::after { box-shadow: 0 0 5px rgba(245, 222, 156, .55); }
@media (min-width: 760px) {
  html body.pl .cx-tabs { gap: 6px; padding-inline: 4px; }
  html body.pl .cx-tab { gap: 9px; padding: 8px 16px; font-size: 12.5px; letter-spacing: .11em; }
  html body.pl .cx-tab span { display: inline-grid; place-items: center; width: 16px; height: 16px; font-size: 13px; line-height: 1; }
}
/* une seule rangée dès qu'elle tient ; sinon des rangées équilibrées (5 + 4, puis 3 × 3), jamais un onglet seul */
@media (min-width: 760px) and (max-width: 1419px) {
  html body.pl .cx-tab { flex: 0 1 calc(20% - 6px); min-width: 0; justify-content: center; }
}
@media (min-width: 760px) and (max-width: 999px) {
  html body.pl .cx-tab { flex-basis: calc(33.333% - 6px); }
}
@media (max-width: 759px) {
  html body.pl .cx-tab span { display: grid; place-items: center; height: 20px; line-height: 1; }
}
/* le panneau change de rubrique sans glisser : une apparition en fondu (un panneau haut ne bouge pas) */
html body.pl .cx-body { animation-name: cis-fade; }
@keyframes cis-fade { from { opacity: 0; } to { opacity: 1; } }
/* textes secondaires plus lisibles */
html body.pl .cx-body .cx-fine { color: #A9ACD0 !important; font-size: 15px; }

/* ── 4. CONFIANCE : la galerie ───────────────────────────────────────────── */
/* en-tête scellé : un sceau sur un filet d'or, le titre, la promesse */
html body.pl .cx-trust-head {
  display: grid; justify-items: center; gap: 6px; margin: 2px 0 20px; text-align: center;
  background: linear-gradient(90deg, transparent 6%, rgba(232, 195, 106, .42) 30%, rgba(232, 195, 106, .1) 46%, transparent 47.5%, transparent 52.5%, rgba(232, 195, 106, .1) 54%, rgba(232, 195, 106, .42) 70%, transparent 94%) center 19px / 100% 1px no-repeat;
}
html body.pl .cx-trust-seal {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid transparent; color: #F1D891;
  background: radial-gradient(circle at 50% 30%, rgba(170, 134, 237, .3), transparent 66%) padding-box, var(--cis-enamel) padding-box, var(--cis-bezel-gold) border-box;
  box-shadow: 0 0 0 3px rgba(5, 6, 15, .55), var(--cis-drop);
}
html body.pl .cx-trust-seal svg { display: block; }
html body.pl .cx-body .cx-trust-title { margin: 6px 0 0; font-size: clamp(19px, 3.3vw, 27px); letter-spacing: .14em; text-transform: uppercase; color: #F3EEE4; }
html body.pl .cx-trust-title span { background: linear-gradient(100deg, #C99B47, #F6DC98 40%, #FFF6DC 52%, #E8C36A 70%, #B8892E); -webkit-background-clip: text; background-clip: text; color: transparent; }
html body.pl .cx-body .cx-trust-sub { margin: 0; font-style: italic; font-size: 17px; color: rgba(243, 238, 228, .8); }

/* les engagements : de petits sceaux gravés, simples informations (aucun survol, aucun air de bouton) */
html body.pl .cx-pledges { gap: 10px !important; margin: 0 0 26px !important; }
html body.pl .cx-pledges li {   /* corps plat, filet patiné uniforme, sans ombre ni relief : une information, pas une commande */
  gap: 10px !important; padding: 4px 17px 4px 4px; border: 1px solid rgba(201, 160, 78, .3); cursor: default;
  background: rgba(46, 32, 110, .28); font-size: 11.5px; letter-spacing: .14em; color: rgba(243, 238, 228, .86);
}
html body.pl .cx-pledges li > span {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid transparent; color: #F1D891;
  background: radial-gradient(circle at 50% 30%, rgba(170, 134, 237, .28), transparent 66%) padding-box, var(--cis-enamel-deep) padding-box, var(--cis-bezel) border-box;
}
html body.pl .cx-pledges li svg { display: block; width: 17px; height: 17px; }
@media (max-width: 559px) {
  /* téléphone : quatre sceaux en carré, l'emblème au-dessus du mot */
  html body.pl .cx-pledges { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 !important;
    background: linear-gradient(180deg, transparent, rgba(232, 195, 106, .3) 22%, rgba(232, 195, 106, .3) 78%, transparent) center / 1px 100% no-repeat,
                linear-gradient(90deg, transparent, rgba(232, 195, 106, .3) 22%, rgba(232, 195, 106, .3) 78%, transparent) center / 100% 1px no-repeat; }
  html body.pl .cx-pledges li { display: grid !important; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 7px !important;
    padding: 14px 8px; border: 0; border-radius: 0; background: none; font-size: 10.5px; letter-spacing: .1em; line-height: 1.35; text-align: center; }
}

/* les avis : parchemin cosmique (émail translucide, double filet d'or antique), la citation d'abord */
html body.pl .cx-voices--all { gap: 16px 30px; align-items: start; }
html body.pl .cx-voices--all .cx-reviews { gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
html body.pl .cx-voices--all .cx-review {
  position: relative; padding: 22px 24px 18px; border-radius: 18px; border: 1px solid transparent;
  background: radial-gradient(110% 80% at 0% 0%, rgba(123, 79, 214, .2), transparent 60%) padding-box,
              radial-gradient(90% 70% at 100% 100%, rgba(232, 195, 106, .07), transparent 60%) padding-box,
              linear-gradient(180deg, rgba(28, 25, 80, .78), rgba(12, 12, 42, .84)) padding-box, var(--cis-bezel-soft) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop-lg);
}
html body.pl .cx-voices--all .cx-review::before {   /* second filet du double cadre */
  content: ""; position: absolute; inset: 5px; border-radius: 14px; border: 1px solid rgba(232, 195, 106, .13); pointer-events: none;
}
html body.pl .cx-voices--all .cx-review blockquote {
  margin: 12px 0 16px; padding-left: 15px; font-size: 18.5px; line-height: 1.55; color: #F1ECF8;
  border-left: 1px solid transparent; border-image: linear-gradient(180deg, rgba(232, 195, 106, .62), rgba(232, 195, 106, .05)) 1;
}
html body.pl .cx-voices--all .cx-stars { font-size: 15px; letter-spacing: 3px; color: #F1D27E !important; }
html body.pl .cx-review figcaption {
  gap: 10px; padding-top: 12px; font-size: 14.5px; color: rgba(218, 218, 240, .88);
  background: linear-gradient(90deg, rgba(232, 195, 106, .34), transparent 72%) left top / 100% 1px no-repeat;
}
html body.pl .cx-av {
  width: 32px; height: 32px; border: 1px solid transparent; color: #F3D88F; font-size: 14px; text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
  background: radial-gradient(circle at 50% 28%, rgba(170, 134, 237, .3), transparent 66%) padding-box,
              radial-gradient(circle at 50% 35%, #1C2059, #090B27 76%) padding-box, var(--cis-bezel-gold) border-box;
}
html body.pl .cx-ver { letter-spacing: .02em; white-space: nowrap; }
html body.pl .cx-reviews > .cx-fine { margin: 0 !important; padding: 18px 20px; border-radius: 16px; border: 1px dashed rgba(232, 195, 106, .26); font-style: italic; }
html body.pl .cx-loading { display: flex; align-items: center; gap: 10px; }
html body.pl .cx-loading::before { content: "✦"; content: "✦" / ""; color: var(--pl-gold); animation: cis-breath 1.6s ease-in-out infinite; }
@keyframes cis-breath { 50% { opacity: .3; } }
/* l'invitation : à côté des avis (un seul avis n'est jamais étiré, il garde sa largeur de lecture) */
html body.pl .cx-invite {
  display: grid; gap: 10px; align-content: center; padding: 18px 0 4px;
  background: linear-gradient(90deg, rgba(232, 195, 106, .4), transparent 72%) left top / 100% 1px no-repeat;
}
html body.pl .cx-body .cx-invite-k { margin: 0; font: 400 11px/1.3 var(--pl-display); letter-spacing: .22em; text-transform: uppercase; color: var(--pl-gold); }
html body.pl .cx-body .cx-invite-t { margin: 0; font-size: 16.5px; line-height: 1.6; color: rgba(236, 233, 247, .86); max-width: 44ch; }
html body.pl .cx-invite .pl-p-ctas { margin-top: 6px; }
@media (min-width: 900px) {
  html body.pl .cx-voices--all { grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); }
  html body.pl .cx-voices--all > .cx-voices-head { grid-column: 1 / -1; }
  html body.pl .cx-voices--all:has(> .cx-reviews > .cx-review:only-child) { grid-template-columns: minmax(0, 580px) minmax(250px, 1fr); }
  html body.pl .cx-invite { align-self: center; padding: 20px 0 20px 30px;
    background: linear-gradient(180deg, transparent, rgba(232, 195, 106, .42) 22%, rgba(232, 195, 106, .42) 78%, transparent) left center / 1px 100% no-repeat; }
}
/* « Partager mon expérience » : AURUM secondaire (émail profond, champagne, étoile gravée, un reflet au survol) */
html body.pl .pl-ghost.cx-share {
  border: 1px solid transparent;
  background: var(--cis-pin-l) padding-box, var(--cis-pin-r) padding-box,
              radial-gradient(110% 140% at 50% -40%, rgba(255, 228, 160, .2), transparent 62%) padding-box,
              linear-gradient(180deg, #2A2154 0%, #181240 55%, #0E0A2C 100%) padding-box, var(--cis-bezel-gold) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop);
}
@media (hover: hover) { html body.pl .pl-ghost.cx-share:hover {
  border: 1px solid transparent;
  background: var(--cis-pin-l) padding-box, var(--cis-pin-r) padding-box,
              radial-gradient(110% 140% at 50% -40%, rgba(255, 228, 160, .2), transparent 62%) padding-box,
              linear-gradient(180deg, #2A2154 0%, #181240 55%, #0E0A2C 100%) padding-box, var(--cis-bezel-gold) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop);
} }
html body.pl .pl-ghost.cx-share {
  gap: 10px; min-height: 46px; padding: 10px 24px; overflow: hidden; isolation: isolate;
  font-family: var(--pl-display); font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase; color: #F6DC98;
}
html body.pl .pl-ghost.cx-share > span { font-size: 11px; color: #FFE7A8; }
@media (hover: hover) { html body.pl .pl-ghost.cx-share:hover { color: #FFF4D6; } }
html body.pl .pl-ghost.cx-share:not([aria-busy="true"])::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 190, .24) 48%, transparent 62%); transform: translateX(-125%);
}
@media (hover: hover) { html body.pl .pl-ghost.cx-share:not([aria-busy="true"]):hover::after { transform: translateX(125%); transition: transform var(--cis-t-glint) var(--cis-ease-out); } }

/* les engagements : lignes d'un manuscrit céleste */
html body.pl .cx-voices-head .pl-p-eyebrow, html body.pl .cx-notes--below > .pl-p-eyebrow { display: flex; align-items: center; gap: 10px; }
html body.pl .cx-voices-head .pl-p-eyebrow::before, html body.pl .cx-notes--below > .pl-p-eyebrow::before {
  content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--pl-gold));
}
html body.pl .cx-notes--below {
  margin-top: 28px; padding-top: 20px; border-top: 0;
  background: linear-gradient(90deg, transparent, rgba(232, 195, 106, .38) 18%, rgba(232, 195, 106, .38) 82%, transparent) center top / 100% 1px no-repeat;
}
html body.pl .cx-notes--below details {
  position: relative; border-bottom: 0; padding: 0;
  background: linear-gradient(90deg, rgba(232, 195, 106, .3), rgba(232, 195, 106, .1) 65%, transparent) left bottom / 100% 1px no-repeat;
}
html body.pl .cx-notes--below summary {
  position: relative; gap: 14px; min-height: 54px; padding: 12px 2px 12px 0; list-style: none;
  font-size: 15.5px; letter-spacing: .09em; color: #E9D6A4; transition: color var(--cis-t-hover) ease;
}
html body.pl .cx-notes--below summary::-webkit-details-marker { display: none; }
html body.pl .cx-notes--below summary::before {   /* au survol, la lumière court le long de la ligne */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 241, 201, .95), rgba(232, 195, 106, .45) 55%, transparent);
  transform: scaleX(0); transform-origin: left center; transition: transform var(--cis-t-open) var(--cis-ease-out);
}
@media (hover: hover) { html body.pl .cx-notes--below summary:hover { color: #FFF4D6; } }
html body.pl .cx-notes--below details[open] > summary::before { transform: scaleX(1); }
@media (hover: hover) { html body.pl .cx-notes--below summary:hover::before { transform: scaleX(1); } }
/* l'indicateur : une croix gravée dans un petit médaillon ; ouverte, elle tourne et devient « fermer » */
html body.pl .cx-notes--below summary::after {
  content: ""; flex: none; width: 26px; height: 26px; margin-left: auto; padding: 0; border-radius: 50%;
  background: linear-gradient(#E8C36A, #E8C36A) center / 10px 1.2px no-repeat, linear-gradient(#E8C36A, #E8C36A) center / 1.2px 10px no-repeat,
              radial-gradient(circle at 50% 30%, rgba(170, 134, 237, .22), transparent 70%), rgba(9, 11, 36, .6);
  box-shadow: inset 0 0 0 1px rgba(232, 195, 106, .38);
  transition: transform var(--cis-t-select) var(--cis-ease);
}
html body.pl .cx-notes--below details[open] > summary { color: #FFF1C9; }
html body.pl .cx-notes--below details[open] > summary::after { content: ""; transform: rotate(45deg); box-shadow: inset 0 0 0 1px rgba(245, 222, 156, .7); }
html body.pl .cx-notes--below details > p {
  margin: 0 0 16px !important; padding: 2px 0 2px 16px; font-size: 16px; line-height: 1.6; color: #DCDDF2;
  border-left: 1px solid transparent; border-image: linear-gradient(180deg, rgba(232, 195, 106, .6), rgba(232, 195, 106, .04)) 1;
}
html body.pl .cx-notes--below details[open] > p { animation: cis-reveal var(--cis-t-open) var(--cis-ease-out) both; }
@keyframes cis-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* le lien vers la politique de confidentialité : AETHER (même adresse, même ouverture en portail) */
html body.pl .cx-body .cx-legal { margin: 18px 0 0; }
html body.pl .cx-link { font-size: 15.5px; }

/* ── 5. Le Dé de la Destinée : un artefact serti ─────────────────────────── */
html body.pl .pl-dice-btn {
  border: 1px solid transparent;
  background: var(--cis-pin-l) padding-box, var(--cis-pin-r) padding-box,
              repeating-radial-gradient(circle at 44px 50%, rgba(255, 246, 220, .04) 0 .7px, transparent 1px 3.4px) padding-box,
              radial-gradient(120% 140% at 12% 50%, rgba(123, 79, 214, .42), transparent 60%) padding-box,
              linear-gradient(180deg, rgba(36, 28, 90, .97), rgba(10, 12, 40, .97)) padding-box, var(--cis-bezel) border-box;
  box-shadow: var(--cis-inner), 0 0 0 4px rgba(5, 6, 15, .5), 0 0 0 5px rgba(232, 195, 106, .2), var(--cis-drop-lg);
}
@media (hover: hover) { html body.pl .pl-dice-btn:hover {
  border: 1px solid transparent;
  background: var(--cis-pin-l) padding-box, var(--cis-pin-r) padding-box,
              repeating-radial-gradient(circle at 44px 50%, rgba(255, 246, 220, .04) 0 .7px, transparent 1px 3.4px) padding-box,
              radial-gradient(120% 140% at 12% 50%, rgba(123, 79, 214, .42), transparent 60%) padding-box,
              linear-gradient(180deg, rgba(36, 28, 90, .97), rgba(10, 12, 40, .97)) padding-box, var(--cis-bezel) border-box;
  box-shadow: var(--cis-inner), 0 0 0 4px rgba(5, 6, 15, .5), 0 0 0 5px rgba(232, 195, 106, .2), var(--cis-drop-lg);
} }
html body.pl .pl-dice-btn { transition: transform var(--cis-t-hover) var(--cis-ease); }
html body.pl .pl-dice-btn:active { transform: scale(.97); transition-duration: var(--cis-t-press); }
html body.pl .pl-dice-btn::before {   /* lumière directionnelle */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: var(--cis-light-top); opacity: 0; transition: opacity var(--cis-t-hover) ease;
}
@media (hover: hover) { html body.pl .pl-dice-btn:hover::before { opacity: 1; } }
/* le titre : or gravé, fixe (plus de dorure qui défile) ; la description en retrait */
html body.pl .pl-dice-txt b {
  animation: none; background: linear-gradient(100deg, #C99B47 0%, #F6DC98 34%, #FFF6DC 50%, #F6DC98 66%, #C99B47 100%); background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text; letter-spacing: .09em; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .45));
}
html body.pl .pl-dice-txt small { margin-top: 2px; color: rgba(214, 212, 238, .84); }

/* ── 6. Le panneau : Grimoires, propositions, portes ─────────────────────── */
/* Informatif ≠ interactif : les commandes ont un sertissage et répondent au geste ; les informations
   (sections, activités, étiquettes, porte scellée) restent plates, sans relief ni réaction. */

/* Instruments (.pl-gr-tile) : émail serti, teinté par la dimension (--dh) ; la lumière ne prend que le haut */
html body.pl .pl-gr-tile {
  border: 1px solid transparent;
  background: radial-gradient(110% 75% at 50% -18%, color-mix(in srgb, var(--dh, #7B4FD6) 18%, transparent), transparent 64%) padding-box,
              var(--cis-enamel-deep) padding-box,
              linear-gradient(180deg, color-mix(in srgb, var(--dh, #E8C36A) 55%, rgba(255, 241, 201, .45)) 0%, color-mix(in srgb, var(--dh, #E8C36A) 20%, transparent) 46%, rgba(126, 94, 38, .4) 100%) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop);
}
@media (hover: hover) { html body.pl .pl-gr-tile:hover {
  border: 1px solid transparent;
  background: radial-gradient(110% 75% at 50% -18%, color-mix(in srgb, var(--dh, #7B4FD6) 18%, transparent), transparent 64%) padding-box,
              var(--cis-enamel-deep) padding-box,
              linear-gradient(180deg, color-mix(in srgb, var(--dh, #E8C36A) 55%, rgba(255, 241, 201, .45)) 0%, color-mix(in srgb, var(--dh, #E8C36A) 20%, transparent) 46%, rgba(126, 94, 38, .4) 100%) border-box;
  box-shadow: var(--cis-inner), var(--cis-drop);
} }
html body.pl .pl-gr-tile { transition: transform var(--cis-t-hover) var(--cis-ease); }
@media (hover: hover) { html body.pl .pl-gr-tile:hover { transform: translateY(-2px); } }
html body.pl .pl-gr-tile:active { transform: scale(.98); transition-duration: var(--cis-t-press); }
html body.pl .pl-gr-tile::before, html body.pl .pl-gr-back::before, html body.pl .pl-heart-q::before, html body.pl .pl-wq-node::before,
html body.pl .pl-dice-pick::before, html body.pl .pl-pop-bar .pl-pop-btn::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: var(--cis-light-top); opacity: 0; transition: opacity var(--cis-t-hover) ease;
}
@media (hover: hover) { html body.pl .pl-gr-tile:hover::before, html body.pl .pl-gr-back:hover::before, html body.pl .pl-heart-q:hover::before, html body.pl .pl-wq-node:hover::before, html body.pl .pl-dice-pick:hover::before, html body.pl .pl-pop-bar .pl-pop-btn:hover:not(:disabled)::before { opacity: 1; } }
html body.pl .pl-gr-tg {
  border: 1px solid transparent; text-shadow: 0 0 6px color-mix(in srgb, currentColor 60%, transparent);
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--dh, #E8C36A) 24%, transparent), transparent 70%) padding-box,
              var(--cis-enamel) padding-box,
              linear-gradient(180deg, color-mix(in srgb, var(--dh, #E8C36A) 70%, #FFF4D6), color-mix(in srgb, var(--dh, #E8C36A) 28%, transparent) 60%, rgba(126, 94, 38, .5)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 246, 220, .12), 0 0 0 3px rgba(5, 6, 15, .4);
}
/* scellé ou réservé : reste une commande (la fiche dit comment l'ouvrir), sertie en pointillés */
html body.pl .pl-gr-tile.is-lock, html body.pl .pl-gr-tile.is-sealed {
  border: 1px dashed color-mix(in srgb, var(--dh, #E8C36A) 42%, rgba(232, 195, 106, .3));
  background: radial-gradient(110% 75% at 50% -18%, color-mix(in srgb, var(--dh, #7B4FD6) 10%, transparent), transparent 64%) padding-box, var(--cis-enamel-deep) padding-box;
}
@media (hover: hover) { html body.pl .pl-gr-tile.is-lock:hover, html body.pl .pl-gr-tile.is-sealed:hover {
  border: 1px dashed color-mix(in srgb, var(--dh, #E8C36A) 42%, rgba(232, 195, 106, .3));
  background: radial-gradient(110% 75% at 50% -18%, color-mix(in srgb, var(--dh, #7B4FD6) 10%, transparent), transparent 64%) padding-box, var(--cis-enamel-deep) padding-box;
} }

/* Retour à la liste des instruments : NOCTIS, cible de 44 px, la flèche recule d'un souffle */
html body.pl .pl-gr-back {
  border: 1px solid transparent; background: var(--cis-noctis); box-shadow: var(--cis-inner), var(--cis-drop);
}
@media (hover: hover) { html body.pl .pl-gr-back:hover {
  border: 1px solid transparent; background: var(--cis-noctis); box-shadow: var(--cis-inner), var(--cis-drop);
} }
html body.pl .pl-gr-back { position: relative; min-height: 44px; padding: 6px 16px 6px 13px; color: #F1D891; transition: color var(--cis-t-hover) ease; }
@media (hover: hover) { html body.pl .pl-gr-back:hover { color: #FFF4D6; } }
html body.pl .pl-gr-back > span[aria-hidden="true"] { display: inline-block; transition: transform var(--cis-t-hover) var(--cis-ease); }
@media (hover: hover) { html body.pl .pl-gr-back:hover > span[aria-hidden="true"] { transform: translateX(-3px); } }

/* Guidance et quêtes du Cœur (.pl-heart-q) : ce sont des commandes, donc serties dès le repos */
html body.pl .pl-heart-q {
  border: 1px solid transparent; box-shadow: var(--cis-inner);
  background: var(--cis-enamel-glow) padding-box, var(--cis-enamel-deep) padding-box, var(--cis-bezel-soft) border-box;
}
@media (hover: hover) { html body.pl .pl-heart-q:hover {
  border: 1px solid transparent; box-shadow: var(--cis-inner);
  background: var(--cis-enamel-glow) padding-box, var(--cis-enamel-deep) padding-box, var(--cis-bezel-soft) border-box;
} }
html body.pl .pl-heart-q { position: relative; transition: transform var(--cis-t-hover) var(--cis-ease); }
html body.pl .pl-heart-q:active { transform: scale(.99); transition-duration: var(--cis-t-press); }
html body.pl .pl-heart-q > b[aria-hidden="true"] { transition: transform var(--cis-t-hover) var(--cis-ease); }
@media (hover: hover) { html body.pl .pl-heart-q:hover > b[aria-hidden="true"] { transform: translateX(3px); } }

/* Interconnexion rapide (.pl-wq-node) : nœuds sertis à la couleur de leur dimension, focus turquoise */
html body.pl .pl-wq-node, html body.pl .pl-wq-node:focus-visible {
  position: relative; border: 1px solid transparent; box-shadow: var(--cis-inner);
  background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--dh, #7B4FD6) 14%, transparent), transparent 62%) padding-box,
              var(--cis-enamel-deep) padding-box,
              linear-gradient(180deg, color-mix(in srgb, var(--dh, #E8C36A) 55%, rgba(255, 241, 201, .4)), color-mix(in srgb, var(--dh, #E8C36A) 22%, transparent) 50%, rgba(126, 94, 38, .4)) border-box;
}
@media (hover: hover) { html body.pl .pl-wq-node:hover {
  position: relative; border: 1px solid transparent; box-shadow: var(--cis-inner);
  background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--dh, #7B4FD6) 14%, transparent), transparent 62%) padding-box,
              var(--cis-enamel-deep) padding-box,
              linear-gradient(180deg, color-mix(in srgb, var(--dh, #E8C36A) 55%, rgba(255, 241, 201, .4)), color-mix(in srgb, var(--dh, #E8C36A) 22%, transparent) 50%, rgba(126, 94, 38, .4)) border-box;
} }
html body.pl .pl-wq-node.is-hot, html body.pl .pl-wq-node.is-hot:focus-visible {
  border-color: transparent; box-shadow: var(--cis-inner), 0 0 14px -4px rgba(63, 224, 208, .35);
  background: radial-gradient(120% 140% at 0% 50%, rgba(63, 224, 208, .12), transparent 62%) padding-box, var(--cis-enamel-deep) padding-box,
              linear-gradient(180deg, rgba(160, 250, 240, .75), rgba(63, 224, 208, .4) 50%, rgba(20, 110, 104, .55)) border-box;
}
@media (hover: hover) { html body.pl .pl-wq-node.is-hot:hover {
  border-color: transparent; box-shadow: var(--cis-inner), 0 0 14px -4px rgba(63, 224, 208, .35);
  background: radial-gradient(120% 140% at 0% 50%, rgba(63, 224, 208, .12), transparent 62%) padding-box, var(--cis-enamel-deep) padding-box,
              linear-gradient(180deg, rgba(160, 250, 240, .75), rgba(63, 224, 208, .4) 50%, rgba(20, 110, 104, .55)) border-box;
} }
html body.pl .pl-wq-node { transition: transform var(--cis-t-hover) var(--cis-ease); }
html body.pl .pl-wq-node:active { transform: scale(.99); transition-duration: var(--cis-t-press); }
html body.pl .pl-wq-node:focus-visible, html body.pl .pl-v4-in:focus-visible { outline: 2px solid var(--cis-focus); outline-offset: 2px; }

/* Propositions du Dé : cartes serties ; la flèche avance au survol (la carte elle-même garde son entrée) */
html body.pl .pl-dice-pick {
  border: 1px solid transparent; box-shadow: var(--cis-inner), var(--cis-drop);
  background: radial-gradient(120% 140% at 0% 50%, rgba(123, 79, 214, .22), transparent 60%) padding-box, var(--cis-enamel-deep) padding-box, var(--cis-bezel-soft) border-box;
}
@media (hover: hover) { html body.pl .pl-dice-pick:hover {
  border: 1px solid transparent; box-shadow: var(--cis-inner), var(--cis-drop);
  background: radial-gradient(120% 140% at 0% 50%, rgba(123, 79, 214, .22), transparent 60%) padding-box, var(--cis-enamel-deep) padding-box, var(--cis-bezel-soft) border-box;
} }
html body.pl .pl-dice-pick { position: relative; }
html body.pl .pl-dice-pick > i { transition: transform var(--cis-t-hover) var(--cis-ease); }
@media (hover: hover) { html body.pl .pl-dice-pick:hover > i { transform: translateX(3px); } }

/* La porte « Entrer dans … » : or champagne serti de la couleur de la dimension ; au survol ou au focus,
   les battants s'écartent sur une lumière dorée (rétablie : la charte l'avait remplacée par son reflet) */
html body.pl .pl-enter.pl-door-btn {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(120, 82, 24, .45), 0 0 0 3px rgba(5, 6, 15, .55),
              0 0 0 4px color-mix(in srgb, var(--dh, #E8C36A) 55%, transparent), 0 14px 28px -16px rgba(232, 195, 106, .7);
}
@media (hover: hover) { html body.pl .pl-enter.pl-door-btn:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(120, 82, 24, .45), 0 0 0 3px rgba(5, 6, 15, .55),
              0 0 0 4px color-mix(in srgb, var(--dh, #E8C36A) 55%, transparent), 0 14px 28px -16px rgba(232, 195, 106, .7);
} }
html body.pl .pl-door-btn::before {
  inset: 0; z-index: -2; border-radius: inherit;
  background: radial-gradient(60% 130% at 50% 50%, #FFFBEF 0%, #F6DC98 38%, #D3A955 72%, #9C7432 100%);
}
html body.pl .pl-door-leaf { background: var(--cis-satin), var(--cis-champagne); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(120, 82, 24, .4); }
html body.pl .pl-door-leaf.l { background: var(--cis-rivet-l), var(--cis-satin), var(--cis-champagne); }
html body.pl .pl-door-leaf.r { background: var(--cis-rivet-r), var(--cis-satin), var(--cis-champagne); }
/* la porte scellée est une information (role="img") : une plaque hachurée, les battants réduits à leur joint */
html body.pl .pl-door-btn--sealed {
  filter: none; box-shadow: none; color: rgba(232, 195, 106, .66); border: 1px dashed rgba(232, 195, 106, .3);
  background: repeating-linear-gradient(135deg, rgba(232, 195, 106, .06) 0 1px, transparent 1px 8px), rgba(5, 6, 15, .42);
}
html body.pl .pl-door-btn--sealed .pl-door-leaf { opacity: 1; background: none; box-shadow: none; }
html body.pl .pl-door-btn--sealed .pl-door-leaf.l { border-right-color: rgba(232, 195, 106, .26); }
html body.pl .pl-door-btn--sealed .pl-door-leaf.r { border-left-color: rgba(232, 195, 106, .26); }

/* Activités : des lignes de registre, pas des cartes (elles ne s'actionnent pas) */
html body.pl .pl-gr-acts { gap: 0; }
html body.pl .pl-gr-acts li {
  border: 0; border-radius: 0; padding: 10px 2px;
  background: linear-gradient(90deg, rgba(232, 195, 106, .3), rgba(232, 195, 106, .08) 70%, transparent) left bottom / 100% 1px no-repeat;
}
html body.pl .pl-gr-acts li:last-child { background: none; }

/* Étiquettes d'accès (.pl-tag) : un poinçon gravé, sans cadre ; elles informent, elles ne s'actionnent pas */
html body.pl .pl-tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 2px 0 2px 3px; border: 0; border-radius: 0; background: none; letter-spacing: .12em; line-height: 1.3;
}
html body.pl .pl-tag::before {
  content: ""; flex: none; width: 5px; height: 5px; transform: rotate(45deg); background: currentColor;
  box-shadow: 0 0 0 2px rgba(5, 6, 15, .7), 0 0 0 3px color-mix(in srgb, currentColor 45%, transparent);
}

/* Mode Rapide : la carte choisie ne reste plus soulevée, la carte scellée ne réagit plus au survol,
   SYNAXIS retrouve son sertissage d'or */
@media (hover: hover) { html body.pl .pl-gc.is-sel:not(:hover) { transform: none; } }
@media (hover: hover) { html body.pl .pl-gc.is-sealed:hover { transform: none; box-shadow: none; border-color: color-mix(in srgb, var(--dh, #E8C36A) 35%, transparent); } }
html body.pl .pl-gc.is-sealed::before { content: none; }
html body.pl .pl-gc.is-core { border-color: rgba(232, 195, 106, .72); }
@media (hover: hover) { html body.pl .pl-gc.is-core:hover { border-color: rgba(232, 195, 106, .72); } }

/* Affichage : les deux réglages ont la hauteur de la capsule (44 px ; 48 au téléphone ; 52 au doigt) */
html body.pl .pl-tools .pl-motion { min-height: 44px; }
@media (max-width: 559px) { html body.pl .pl-tools .pl-motion { min-height: 48px; } }

/* Cibles au doigt : 44 px au moins */
@media (pointer: coarse) {
  html body.pl .pl-tools .pl-mode { min-height: 44px; }
  html body.pl .pl-tools .pl-motion { min-height: 52px; }
  html body.pl .pl-found-try button, html body.pl .pl-found-more { min-height: 44px; }
  html body.pl .pl-res-more { min-width: 44px; min-height: 44px; }
  html body.pl .pl-chip, html body.pl .pl-lvl .pl-chip, html body.pl .pl-me.is-user, html body.pl .pl-me:not(.is-user) { min-height: 44px; }   /* capsules du header (40 à 42 px auparavant) */
}

/* ── 7. Portail, éléments flottants, pied de page ───────────────────────── */
/* Barre du portail : filet d'or gradué, médaillons d'émail sertis (← ✕ ⤢), glyphes en police de symboles */
html body.pl .pl-pop-bar {
  border-bottom-color: transparent;
  background: linear-gradient(90deg, transparent, rgba(232, 195, 106, .5) 18%, rgba(255, 241, 201, .75) 50%, rgba(232, 195, 106, .5) 82%, transparent) left bottom / 100% 1px no-repeat,
              linear-gradient(180deg, #11164A, #0B1030);
}
html body.pl .pl-pop-glyph, html body.pl .pl-pop-bar .pl-pop-btn, html body.pl .pl-pop-xfull {
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", "Noto Sans Symbols", "DejaVu Sans", var(--pl-body), serif; font-variant-emoji: text;
}
html body.pl .pl-pop-bar .pl-pop-btn { position: relative; width: 44px; height: 44px; padding: 0; transition: transform var(--cis-t-hover) var(--cis-ease), color var(--cis-t-hover) ease; }
html body.pl .pl-pop-bar .pl-pop-btn {
  border: 1px solid transparent; box-shadow: var(--cis-inner), 0 0 0 3px rgba(5, 6, 15, .38);
  background: var(--cis-guilloche-sun) padding-box, var(--cis-enamel-glow) padding-box, var(--cis-enamel) padding-box, var(--cis-bezel) border-box;
}
@media (hover: hover) { html body.pl .pl-pop-bar .pl-pop-btn:hover:not(:disabled) {
  border: 1px solid transparent; box-shadow: var(--cis-inner), 0 0 0 3px rgba(5, 6, 15, .38);
  background: var(--cis-guilloche-sun) padding-box, var(--cis-enamel-glow) padding-box, var(--cis-enamel) padding-box, var(--cis-bezel) border-box;
} }
@media (hover: hover) { html body.pl .pl-pop-bar .pl-pop-btn:hover:not(:disabled) { color: #FFF6DC; } }
html body.pl .pl-pop-bar .pl-pop-btn:active { transform: scale(.96); transition-duration: var(--cis-t-press); }
/* « ✕ » ferme vraiment la page : au survol, son glyphe prend une teinte de cuivre (le retour reste or) */
@media (hover: hover) { html body.pl .pl-pop-bar .pl-pop-shut:hover:not(:disabled) { color: #FFD2C2; } }
/* « ◎ SYNAXIS » (la page reste ouverte) : l'or du portail ; le texte reste gravé au survol
   (la charte le passait en ivoire sur l'or, presque invisible) */
html body.pl .pl-pop-bar .pl-pop-btn.pl-pop-close { width: auto; min-width: 44px; padding: 0 16px 0 14px; }
html body.pl .pl-pop-bar .pl-pop-btn.pl-pop-close {
  color: var(--cis-ink); background: var(--cis-aurum); text-shadow: 0 1px 0 rgba(255, 246, 220, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(120, 82, 24, .45), 0 0 0 3px rgba(5, 6, 15, .38), 0 6px 16px -10px rgba(232, 195, 106, .7);
}
@media (hover: hover) { html body.pl .pl-pop-bar .pl-pop-btn.pl-pop-close:hover:not(:disabled) {
  color: var(--cis-ink); background: var(--cis-aurum); text-shadow: 0 1px 0 rgba(255, 246, 220, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(120, 82, 24, .45), 0 0 0 3px rgba(5, 6, 15, .38), 0 6px 16px -10px rgba(232, 195, 106, .7);
} }
@media (hover: hover) { html body.pl .pl-pop-bar .pl-pop-btn.pl-pop-close:hover:not(:disabled) { filter: brightness(1.04); } }
/* téléphone étroit : le libellé SYNAXIS s'efface (règle existante), le sceau devient une pièce ronde centrée ;
   la barre resserre ses écarts pour laisser plus de place au titre */
@media (max-width: 400px) {
  html body.pl .pl-pop-bar { gap: 6px; padding-left: 8px; padding-right: 8px; }
  html body.pl .pl-pop-glyph { width: 22px; }
  html body.pl .pl-pop-bar .pl-pop-btn.pl-pop-close { width: 44px; padding: 0; justify-content: center; }
  html body.pl .pl-pop-bar .pl-pop-btn.pl-pop-close {
    background: var(--cis-champagne) padding-box, var(--cis-bezel-gold) border-box;
  }
@media (hover: hover) { html body.pl .pl-pop-bar .pl-pop-btn.pl-pop-close:hover:not(:disabled) {
    background: var(--cis-champagne) padding-box, var(--cis-bezel-gold) border-box;
  } }
}
/* écran d'erreur : les deux retours secondaires à 44 px */
html body.pl .pl-pop-err .pl-ghost { min-height: 44px; }
/* plein écran : la croix de sortie en or serti, anneau de focus turquoise */
html body.pl .pl-pop-xfull span {
  border: 1px solid transparent; color: var(--cis-ink); background: var(--cis-champagne) padding-box, var(--cis-bezel-gold) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(120, 82, 24, .4), 0 4px 18px rgba(0, 0, 0, .5);
}
html body.pl .pl-pop-xfull:focus-visible span { box-shadow: 0 0 0 2px #05060F, 0 0 0 4px var(--cis-focus), 0 4px 18px rgba(0, 0, 0, .5); }

/* POLARIS (orbe et capsule) : l'anneau de focus commun, turquoise, au lieu de l'or crème */
html body.pl .pg-orb:focus-visible, html body.pl .pg-capsule:focus-visible { outline: 2px solid var(--cis-focus); outline-offset: 4px; }
/* Sceau des Harmonies : la croix du lecteur garde son dessin (34 px), sa zone de toucher atteint 44 px */
html body.pl .ps-mus__x { position: relative; }
html body.pl .ps-mus__x::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; }

/* Pied de page : filet d'or, marque lisible, liens AETHER (un filet s'éclaire au geste), focus turquoise */
html body.pl .pl-foot {
  border-top-color: transparent;
  background: linear-gradient(90deg, transparent, rgba(232, 195, 106, .32) 25%, rgba(255, 241, 201, .45) 50%, rgba(232, 195, 106, .32) 75%, transparent) top / 100% 1px no-repeat;
}
html body.pl .pl-foot-brand { font-size: 11.5px; color: rgba(243, 238, 228, .66); }
html body.pl .pl-foot-links a { position: relative; min-height: 40px; padding: 4px 12px; font-size: 13.5px; color: rgba(243, 238, 228, .82); }
html body.pl .pl-foot-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(245, 222, 156, .85), transparent); opacity: 0; transition: opacity var(--cis-t-hover) ease;
}
@media (hover: hover) { html body.pl .pl-foot-links a:hover { color: #F6DC98; background: none; } }
@media (hover: hover) { html body.pl .pl-foot-links a:hover::after { opacity: 1; } }
html body.pl .pl-foot-links a:focus-visible { outline: 2px solid var(--cis-focus); outline-offset: 2px; }
@media (pointer: coarse) { html body.pl .pl-foot-links a { min-height: 44px; } }

/* Lien d'évitement : or serti, posé sous l'encoche */
html body.pl .pl-skip {
  border: 1px solid transparent; border-radius: 10px; color: var(--cis-ink); box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .8);
  background: var(--cis-champagne) padding-box, var(--cis-bezel-gold) border-box;
}
html body.pl .pl-skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Focus clavier de l'astrolabe (SVG) : turquoise et plus épais que la sélection, qui garde la teinte de la dimension
   ou l'ivoire ; le survol du cœur et des fonctions de SYNAXIS devient une lumière champagne (il était turquoise,
   comme le focus). Aucun remplissage, aucun filtre, aucune transformation : les médaillons gardent leur échelle mobile.
   Le trait est compté en pixels d'écran (non-scaling-stroke) : il garde son épaisseur quand l'astrolabe rapetisse au téléphone.
   Le liseré turquoise des secteurs (.pl-sec-rim) reste aux états « ouvert » et « Dé » : le focus ne l'emprunte pas. */
html body.pl #pl-board .pl-sec:focus-visible .pl-sec-bg { stroke: var(--cis-focus); stroke-width: 3; vector-effect: non-scaling-stroke; }
@media (hover: hover) { html body.pl #pl-board:not(.sel-core) .pl-core:hover .pl-core-disc { stroke: var(--cis-gold-hi); stroke-width: 2.2; } }
html body.pl #pl-board .pl-core:focus-visible .pl-core-disc, html body.pl #pl-board:not(.sel-core) .pl-core:focus-visible .pl-core-disc { stroke: var(--cis-focus); stroke-width: 3; vector-effect: non-scaling-stroke; }
html body.pl .pl-medal:focus-visible .pl-med-disc { stroke: var(--cis-focus); stroke-width: 2.8; vector-effect: non-scaling-stroke; }
@media (hover: hover) { html body.pl .pl-sxf:hover .pl-sxf-disc { stroke: var(--cis-gold-hi); stroke-width: 2; } }
html body.pl .pl-sxf:focus-visible .pl-sxf-disc { stroke: var(--cis-focus); stroke-width: 2.6; vector-effect: non-scaling-stroke; }
/* Codex : filtres et outils des Convergences, « Comment ce nombre est calculé », avis détaillé, date de naissance,
   et le panneau lui-même (atteint au clavier, tabindex 0) */
html body.pl .cx-wv-f:focus-visible, html body.pl .cx-wv-tool:focus-visible, html body.pl .cx-calc summary:focus-visible,
html body.pl .cx-more summary:focus-visible, html body.pl .cx-frag input:focus-visible { outline: 2px solid var(--cis-focus); outline-offset: 2px; }
html body.pl .cx-body:focus-visible, html body.pl .cx-seul:focus-visible { outline: 2px solid var(--cis-focus); outline-offset: 4px; }
/* Dé qui roule (aria-busy, posé et retiré par plateau.page.js) : le curseur le dit, le libellé s'estompe ; le dé tourne déjà */
html body.pl .pl-dice-btn[aria-busy="true"] { cursor: progress; }
html body.pl .pl-dice-btn[aria-busy="true"] .pl-dice-txt { opacity: .72; }

/* ── 8. Sobriété : mouvement réduit, appareils modestes ──────────────────── */
/* Animations et transitions sont déjà coupées par plateau.page.css (!important) ; ici disparaissent aussi les
   petits déplacements au geste. Les ÉTATS restent : pastille d'Affichage, chevron du compte, croix des engagements. */
html.pl-reduced body.pl .pl-cta:active,
html.pl-reduced body.pl .pl-ghost:active, html.pl-reduced body.pl .pl-rc:active, html.pl-reduced body.pl .pl-found-more:active, html.pl-reduced body.pl .pl-found-try button:active, html.pl-reduced body.pl .pl-brand:active, html.pl-reduced body.pl .pl-chip:active,
html.pl-reduced body.pl .pl-me.is-user:active, html.pl-reduced body.pl .pl-me:not(.is-user):active, html.pl-reduced body.pl .cx-tab:active, html.pl-reduced body.pl .pl-dice-btn:active, html.pl-reduced body.pl .pl-gr-tile:active,
html.pl-reduced body.pl .pl-heart-q:active, html.pl-reduced body.pl .pl-wq-node:active, html.pl-reduced body.pl .pl-pop-bar .pl-pop-btn:active { transform: none; }
@media (hover: hover) { html.pl-reduced body.pl .pl-cta:hover > span[aria-hidden="true"]:last-child, html.pl-reduced body.pl .cx-link:hover .cx-arrow, html.pl-reduced body.pl .cx-tab:hover, html.pl-reduced body.pl .pl-gr-tile:hover, html.pl-reduced body.pl .pl-gr-back:hover > span[aria-hidden="true"], html.pl-reduced body.pl .pl-heart-q:hover > b[aria-hidden="true"], html.pl-reduced body.pl .pl-dice-pick:hover > i { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html body.pl .pl-cta:active,
  html body.pl .pl-ghost:active, html body.pl .pl-rc:active, html body.pl .pl-found-more:active, html body.pl .pl-found-try button:active, html body.pl .pl-brand:active, html body.pl .pl-chip:active,
  html body.pl .pl-me.is-user:active, html body.pl .pl-me:not(.is-user):active, html body.pl .cx-tab:active, html body.pl .pl-dice-btn:active, html body.pl .pl-gr-tile:active,
  html body.pl .pl-heart-q:active, html body.pl .pl-wq-node:active, html body.pl .pl-pop-bar .pl-pop-btn:active { transform: none; }
@media (hover: hover) { html body.pl .pl-cta:hover > span[aria-hidden="true"]:last-child, html body.pl .cx-link:hover .cx-arrow, html body.pl .cx-tab:hover, html body.pl .pl-gr-tile:hover, html body.pl .pl-gr-back:hover > span[aria-hidden="true"], html body.pl .pl-heart-q:hover > b[aria-hidden="true"], html body.pl .pl-dice-pick:hover > i { transform: none; } }
}
/* appareil modeste (html.lx-lite, posé par polaristar-lumiere.js : absent du plateau aujourd'hui, prêt s'il y vient) :
   plus de reflets traversants, rien d'autre ne change */
html.lx-lite body.pl .pl-cta:not([aria-busy="true"])::after, html.lx-lite body.pl .pl-ghost.cx-share:not([aria-busy="true"])::after,
html.lx-lite body.pl .pl-chip--sd .pl-ci::after { content: none; }
