/* ═══ SYNAXIS 4.0 · le Sanctuaire des Dimensions (30/10) ═══════════════════════════════════════════════════
   « L'orfèvrerie cosmique au service de l'exploration intérieure. »
   1. Les jetons communs (--sx-*) : palette, matières, rayons, espacements, mouvements, quatre niveaux d'effet.
      Les feuilles suivantes (pupitre, mobile, panthéon) et les prochaines retouches s'y réfèrent.
   2. L'en-tête : une seule famille de capsules (ressources, niveau, compte), groupes distincts, libellés lisibles.
   3. Le Registre des Opportunités (fiche de droite).
   4. Lisibilité : la galerie du Codex n'est plus voilée au repos sur écran tactile ; cibles de 44 px.
   5-6. Le portail (astrolabe de chargement), le sceau de recherche au téléphone.
   7. La recherche : sceau de la loupe, registre serti d'or, titres en cartouche, mot trouvé souligné d'or.
   8. Le pied de page : signature centrée, un seul filet d'or, liens lisibles, accès téléphone à part.
   Aucune animation, aucune image : dégradés et transitions courtes au geste seulement. Chargée après
   plateau.pupitre.css, avant plateau.mobile.css (qui garde la main sous max-width). */

/* ── 1. Jetons ──────────────────────────────────────────────────────────────────────────────────────────── */
:root {
  /* palette */
  --sx-night: #050318;  --sx-indigo: #0A0722;  --sx-amethyst: #9470D8;
  --sx-gold: #E8C46A;   --sx-gold-old: #B8954F; --sx-ivory: #F0E6CC;  --sx-copper: #C48657;
  --sx-gold-rgb: 232, 196, 106;
  /* teintes d'âme des cinq dimensions fondatrices (les autres gardent leur couleur d'identité) */
  --sx-constella: #8EC9FF; --sx-astrae: #B98CFF; --sx-akasha: #F0C27B; --sx-corpus: #86D7A8; --sx-sapientia: #6FE3FF;
  /* texte */
  --sx-text: #F3EEE4; --sx-text-soft: #CBC7E2; --sx-text-mute: #ABA7CC;
  /* matières : pierre atlante, métal céleste, verre cosmique (le cristal reste réservé au cœur et aux pierres) */
  --sx-stone: linear-gradient(180deg, #19173f 0%, #121132 46%, #0c0b28 100%);
  --sx-stone-flat: linear-gradient(180deg, #121133, #0d0c29);
  --sx-metal: linear-gradient(180deg, rgba(255, 241, 201, .7), rgba(var(--sx-gold-rgb), .34) 40%, rgba(126, 94, 38, .55));
  --sx-metal-hi: linear-gradient(180deg, #FFF4D6, rgba(var(--sx-gold-rgb), .62) 45%, rgba(126, 94, 38, .62));
  --sx-glass: linear-gradient(180deg, rgba(30, 28, 82, .72), rgba(12, 11, 40, .78));
  /* géométrie */
  --sx-r-xs: 6px; --sx-r-sm: 10px; --sx-r-md: 12px; --sx-r-lg: 18px; --sx-r-pill: 999px;
  --sx-s1: 4px; --sx-s2: 8px; --sx-s3: 12px; --sx-s4: 16px; --sx-s5: 20px; --sx-s6: 28px;
  --sx-hit: 44px;
  /* mouvement : court, jamais en boucle */
  --sx-ease: cubic-bezier(.22, .8, .24, 1); --sx-t-hover: .2s; --sx-t-press: .12s; --sx-t-open: .32s;
  --sx-focus: #7FF3E6;
  /* niveaux d'effet : 1 décor (aucune lueur), 2 interaction, 3 action principale, 4 événement (ponctuel) */
  --sx-lv1: inset 0 1px 0 rgba(255, 246, 220, .06);
  --sx-lv2: inset 0 1px 0 rgba(255, 246, 220, .12), inset 0 -1px 0 rgba(0, 0, 0, .4), 0 10px 18px -14px rgba(0, 0, 0, .95);
  --sx-lv3: 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, .7), 0 16px 30px -18px rgba(var(--sx-gold-rgb), .8);
  --sx-lv4: 0 0 0 1px rgba(var(--sx-gold-rgb), .6), 0 0 36px rgba(var(--sx-gold-rgb), .45);
}

/* ── 2. L'en-tête, tableau de navigation céleste (ordinateur ; le téléphone garde plateau.mobile.css) ───── */
@media (min-width: 980px) {
  /* trois groupes : identité · recherche · (ressources | niveau ‖ compte) ; même pas entre capsules */
  html body.pl .pl-hd-right { gap: var(--sx-s2); }
  html body.pl .pl-hd-right .pl-res { gap: var(--sx-s2); overflow: visible; }
  html body.pl .pl-hd-right .pl-hd-prog { margin: 0; }
  html body.pl .pl-hd-right .pl-me-wrap { position: relative; margin-left: var(--sx-s1); padding-left: var(--sx-s3); }
  html body.pl .pl-hd-prog:not([hidden]) ~ .pl-me-wrap::before {
    content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(var(--sx-gold-rgb), .45), transparent);
  }
  /* une seule silhouette pour PI, STARDUST et Niveau : même hauteur, même rayon, libellé lisible */
  html body.pl .pl-hd-right .pl-chip { min-height: 46px; padding-top: 5px; padding-bottom: 5px; border-radius: var(--sx-r-pill); }
  html body.pl .pl-hd-right .pl-chip small { font-size: 10.5px; letter-spacing: .16em; color: rgba(243, 238, 228, .82); }
  html body.pl .pl-hd-right .pl-chip b { font-size: 16.5px; }
  html body.pl .pl-hd-right .pl-chip--lvl b { font-size: 17px; }
  /* le compte : même hauteur que les capsules */
  html body.pl .pl-hd-right .pl-me { min-height: 46px; }
  /* la recherche : la pièce centrale de l'en-tête, à la même hauteur */
  html body.pl .pl-hd-search .pl-search input { min-height: 46px; }
}
/* focus visible, identique pour toutes les commandes de l'en-tête */
html body.pl .pl-status :is(a, button, input):focus-visible { outline: 2px solid var(--sx-focus); outline-offset: 3px; }
html body.pl .pl-status .pl-search:focus-within { box-shadow: 0 0 0 2px rgba(127, 243, 230, .55); border-radius: var(--sx-r-pill); }
html body.pl .pl-status .pl-search input:focus-visible { outline: none; }

/* ── 3. Le Registre des Opportunités ────────────────────────────────────────────────────────────────────── */
html body.pl .pl-panel .pl-op li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
}
html body.pl .pl-panel .pl-op-g {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-style: normal; font-size: 14px; line-height: 1;
  color: var(--sx-gold); border: 1px solid rgba(var(--sx-gold-rgb), .5); background: radial-gradient(circle at 50% 35%, #201d58, #0c0b2b 75%);
  box-shadow: 0 0 0 2px rgba(5, 6, 15, .6);
}
html body.pl .pl-panel .pl-op-pending .pl-op-g, html body.pl .pl-panel .pl-op-submitted .pl-op-g { color: var(--sx-focus); border-color: rgba(127, 243, 230, .45); }
html body.pl .pl-panel .pl-op-rejected .pl-op-g { color: #F0B98E; border-color: rgba(196, 134, 87, .6); }
html body.pl .pl-panel .pl-op-pending small, html body.pl .pl-panel .pl-op-submitted small { color: #A9EFE6; }
html body.pl .pl-panel .pl-op-rejected small { color: #F0B98E; }
html body.pl .pl-panel .pl-op-more {
  justify-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: var(--sx-hit); padding: 0 6px;
  font-size: 15px; color: #F1D891;
}
html body.pl .pl-panel .pl-op-sec .pl-gr-empty + .pl-op-more { margin-top: -4px; }

/* ── 4. Lisibilité et cibles tactiles ───────────────────────────────────────────────────────────────────── */
/* Au repos (§76), la galerie du Codex était voilée à 50 % : illisible sur écran tactile (aucun survol pour la
   rallumer) et sous les contrastes AA. Elle reste pleine au toucher ; à la souris, un voile léger seulement. */
html body.pl.pl-calm .pl-codex { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  html body.pl.pl-calm .pl-codex { opacity: .86; }
  html body.pl.pl-calm .pl-codex:is(:hover, :focus-within) { opacity: 1; }
}
/* les liens-boutons de la fiche (« Voir les formules ») ont une vraie cible */
html body.pl .pl-panel .pl-linkbtn { display: inline-flex; align-items: center; min-height: var(--sx-hit); }
/* la croix « refermer » de la fiche : 44 px */
html body.pl .pl-panel > .pl-p-rest { min-width: var(--sx-hit); min-height: var(--sx-hit); }

/* ── 5. Le portail : le chargement devient un petit astrolabe ───────────────────────────────────────────── */
/* L'anneau garde sa rotation d'origine (pl-spin, plateau.page.css, coupée au mouvement réduit) : seule sa matière
   change, une couronne de graduations d'or autour d'un sceau d'encre serti, comme le cercle de SYNAXIS. */
html body.pl .pl-pop-load {
  gap: var(--sx-s4); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(240, 230, 204, .82);
  background: radial-gradient(circle at 50% 45%, rgba(148, 112, 216, .22), transparent 46%), var(--sx-night);
}
html body.pl .pl-pop-spin {
  position: relative; width: 72px; height: 72px; border: 0;
  background: repeating-conic-gradient(from 0deg, rgba(var(--sx-gold-rgb), .85) 0 2deg, transparent 2deg 15deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 80%, #000 82% 98%, transparent 100%);
  mask: radial-gradient(circle closest-side, transparent 0 80%, #000 82% 98%, transparent 100%);
}
html body.pl .pl-pop-load::before {
  content: "✦"; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -39px 0 0 -23px; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px; letter-spacing: 0; color: var(--sx-gold);
  background: radial-gradient(circle at 42% 34%, #2a2468, #0d0c2b 72%);
  box-shadow: 0 0 0 1px rgba(var(--sx-gold-rgb), .7), 0 0 0 4px rgba(5, 3, 24, .8), 0 0 22px rgba(148, 112, 216, .45);
}

/* ── 6. Au téléphone : le sceau de recherche (visible seulement quand l'en-tête a défilé) ───────────────── */
html body.pl .pl-qfab { display: none; }
@media (max-width: 979px) {
  html body.pl .pl-qfab:not([hidden]) {
    position: fixed; z-index: 60; top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px));
    display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; cursor: pointer; color: var(--sx-gold);
    border: 1px solid transparent;
    background: radial-gradient(circle at 42% 34%, #2a2468, #0d0c2b 72%) padding-box, var(--sx-metal) border-box;
    box-shadow: var(--sx-lv2), 0 0 0 3px rgba(5, 3, 24, .55);
  }
  html body.pl .pl-qfab:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: 3px; }
  html body.pl .pl-qfab:active { transform: scale(.95); }
  html.pl-pop-on body.pl .pl-qfab { display: none; }   /* jamais par-dessus le portail */
}

/* ── 7. La recherche : l'oracle serti et son registre (30/10, même moteur SEARCH, seule la matière change) ── */
/* la barre : la loupe devient un sceau serti, le champ garde son émail ; au focus, l'or s'éclaire et l'anneau turquoise */
html body.pl .pl-status .pl-hd-search .pl-search input { padding-left: 52px; }
html body.pl .pl-hd-search .pl-search-ico {
  left: 7px; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--sx-gold); filter: none;
  border: 1px solid transparent;
  background: radial-gradient(circle at 42% 34%, #2a2468, #0d0c2b 72%) padding-box, var(--sx-metal) border-box;
  box-shadow: 0 0 0 2px rgba(5, 3, 24, .55), inset 0 1px 0 rgba(255, 246, 220, .12);
}
html body.pl .pl-hd-search .pl-search-ico svg { width: 16px; height: 16px; stroke-width: 1.7; }
html body.pl .pl-hd-search .pl-search:focus-within .pl-search-ico {
  color: #FFF6DC; background: radial-gradient(circle at 42% 34%, #3a2f86, #14123c 72%) padding-box, var(--sx-metal-hi) border-box;
}
html body.pl .pl-status .pl-hd-search .pl-search input:focus {
  background: radial-gradient(70% 150% at 50% -55%, rgba(170, 134, 237, .24), transparent 62%) padding-box,
              linear-gradient(180deg, #1b1850, #0c0b2a) padding-box, var(--sx-metal-hi) border-box;
}
html body.pl .pl-hd-search .pl-search input::placeholder { color: rgba(243, 238, 228, .62); }
html body.pl .pl-hd-search .pl-kbd { right: 14px; min-width: 24px; padding: 4px 7px 3px; color: var(--sx-gold); }

/* le panneau : un registre serti d'or, sur pierre opaque (rien ne transparaît de l'astrolabe) */
html body.pl #pl-found {
  border: 1px solid transparent; border-radius: var(--sx-r-lg);
  background: radial-gradient(90% 40% at 50% 0%, rgba(148, 112, 216, .16), transparent 70%) padding-box,
              linear-gradient(180deg, #17154a, #0b0a26) padding-box, var(--sx-metal) border-box;
  box-shadow: var(--sx-lv1), 0 0 0 4px rgba(5, 3, 24, .55), 0 26px 60px -22px rgba(0, 0, 0, .95);
}
html body.pl #pl-found .pl-sx-head { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid rgba(var(--sx-gold-rgb), .16); }
html body.pl #pl-found .pl-found-k { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--sx-gold); }
html body.pl #pl-found .pl-found-k::before { content: "✦"; color: var(--sx-gold); font-size: 13px; letter-spacing: 0; }
html body.pl #pl-found .pl-found-k > span {
  margin: 0; padding: 2px 10px; border-radius: var(--sx-r-pill); border: 1px solid rgba(var(--sx-gold-rgb), .3);
  color: var(--sx-text-soft); font-family: var(--pl-body, inherit); font-size: 12.5px; letter-spacing: .03em; text-transform: none;
}
/* titres de section : comme les cartouches du pupitre, un losange puis un filet qui s'efface */
html body.pl #pl-found .pl-sx-gk { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; font-size: 11.5px; color: var(--sx-gold); }
html body.pl #pl-found .pl-sx-gk::before { content: "◆"; font-size: 7px; color: rgba(var(--sx-gold-rgb), .85); }
html body.pl #pl-found .pl-sx-gk::after { content: ""; flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, rgba(var(--sx-gold-rgb), .4), transparent); }
/* le tiroir des filtres : une capsule discrète, refermée par défaut (les résultats d'abord) */
html body.pl #pl-found .pl-sx-facets > summary {
  min-height: 36px; padding: 2px 14px 2px 12px; border-radius: var(--sx-r-pill); border: 1px solid rgba(var(--sx-gold-rgb), .3);
  background: rgba(5, 3, 24, .45); color: var(--sx-text-soft);
}
@media (hover: hover) { html body.pl #pl-found .pl-sx-facets > summary:hover { border-color: rgba(var(--sx-gold-rgb), .6); color: var(--sx-text); } }
html body.pl #pl-found .pl-sx-facets[open] > summary { margin-bottom: 8px; border-color: rgba(var(--sx-gold-rgb), .55); color: var(--sx-text); }
html body.pl #pl-found .pl-sx-facets[open] { padding-bottom: 4px; border-bottom: 1px solid rgba(var(--sx-gold-rgb), .12); }
html body.pl #pl-found .pl-sx-filters button[aria-pressed="true"] { color: #FFF6DC; }

/* les résultats : pierre plate, médaillon serti à la teinte de leur dimension */
html body.pl #pl-found .pl-sx-it {
  border-color: rgba(var(--sx-gold-rgb), .16); background: var(--sx-stone-flat); box-shadow: var(--sx-lv1);
}
@media (hover: hover) { html body.pl #pl-found .pl-sx-it:hover {
  border-color: color-mix(in srgb, var(--dh) 70%, transparent);
  background: radial-gradient(120% 140% at 0 0, color-mix(in srgb, var(--dh) 12%, transparent), transparent 60%), var(--sx-stone-flat);
} }
html body.pl #pl-found .pl-sx-it .pl-fd-g {
  border: 1px solid transparent; color: var(--dh);
  background: radial-gradient(circle at 42% 34%, color-mix(in srgb, var(--dh) 26%, #1d1a52), #0c0b2a 74%) padding-box,
              linear-gradient(180deg, color-mix(in srgb, var(--dh) 80%, #fff), color-mix(in srgb, var(--dh) 40%, #3a2a10)) border-box;
  box-shadow: 0 0 0 2px rgba(5, 3, 24, .6);
}
html body.pl #pl-found .pl-fd-t > b { color: var(--sx-text); }
html body.pl #pl-found .pl-fd-t small { color: var(--sx-text-mute); }
html body.pl #pl-found .pl-sx-ex { color: var(--sx-text-soft); }
/* le mot trouvé : souligné d'or, sans boîte (lisible, pas criard) */
html body.pl #pl-found .pl-fd-t mark {
  padding: 0 1px; border-radius: 2px; color: #FFF1C7; background: rgba(var(--sx-gold-rgb), .12);
  box-shadow: inset 0 -1.5px 0 rgba(var(--sx-gold-rgb), .85);
}
/* la sélection au clavier reste turquoise : elle prime sur le survol */
html body.pl #pl-found .pl-sx-it.is-act {
  border-color: var(--sx-focus);
  background: radial-gradient(120% 140% at 0 0, rgba(127, 243, 230, .1), transparent 60%), var(--sx-stone-flat);
  box-shadow: inset 0 0 0 1px var(--sx-focus), 0 0 18px -8px rgba(127, 243, 230, .65);
}
/* le résultat principal : la pièce maîtresse, cerclée de métal */
html body.pl #pl-found .pl-sx-hero {
  border: 1px solid transparent;
  background: radial-gradient(120% 140% at 0 0, color-mix(in srgb, var(--dh) 20%, transparent), transparent 62%) padding-box,
              linear-gradient(180deg, #1d1a55, #0e0d2e) padding-box, var(--sx-metal) border-box;
  box-shadow: var(--sx-lv2);
}
html body.pl #pl-found .pl-sx-hero.is-act { box-shadow: 0 0 0 2px var(--sx-focus), var(--sx-lv2); }
html body.pl #pl-found .pl-sx-hero .pl-fd-t > b { font-size: 19px; }
html body.pl #pl-found .pl-sx-cta { min-height: var(--sx-hit); padding: 4px 18px; font-size: 14px; }
/* accès directs : capsules sur pierre */
html body.pl #pl-found .pl-sx-dir { background: radial-gradient(120% 160% at 0 50%, color-mix(in srgb, var(--dh) 16%, transparent), transparent 62%), var(--sx-stone-flat); }
html body.pl #pl-found .pl-sx-dir-g { background: radial-gradient(circle at 42% 34%, color-mix(in srgb, var(--dh) 24%, #1d1a52), #0c0b2a 74%); }
html body.pl #pl-found .pl-sx-step { background: var(--sx-stone-flat); }
/* la fermeture : un sceau rond */
html body.pl #pl-found .pl-sx-x {
  border: 1px solid transparent; color: var(--sx-gold);
  background: radial-gradient(circle at 42% 34%, #2a2468, #0d0c2b 72%) padding-box, var(--sx-metal) border-box;
}
@media (hover: hover) { html body.pl #pl-found .pl-sx-x:hover { color: #FFF6DC; background: radial-gradient(circle at 42% 34%, #3a2f86, #14123c 72%) padding-box, var(--sx-metal-hi) border-box; } }
/* téléphone (plein écran sous la capsule) : même registre, le bandeau du haut sur la même pierre */
@media (max-width: 559px) {
  html body.pl.pl-sx-m #pl-found {
    background: radial-gradient(100% 30% at 50% 0%, rgba(148, 112, 216, .16), transparent 70%) padding-box,
                linear-gradient(180deg, #17154a, #0b0a26) padding-box, var(--sx-metal) border-box;
  }
  html body.pl.pl-sx-m #pl-found .pl-sx-head { margin-bottom: 8px; padding-bottom: 8px; background: #17154a; }
  html body.pl #pl-found .pl-sx-hero .pl-fd-t > b { font-size: 17px; }
}

/* ── 8. Le pied de page, signature institutionnelle (Footer 3.0) ────────────────────────────────────────── */
/* Aucune carte : le pied se fond dans le ciel. Un seul filet d'or, une étoile gravée, la marque en Cinzel, puis les
   liens légaux, l'accès téléphone (or doux, pictogramme) et la mention juridique. Mêmes liens, mêmes destinations. */
html body.pl .pl-foot {
  max-width: 980px; margin: 56px auto 0; padding: 40px 16px calc(56px + env(safe-area-inset-bottom, 0px)); gap: 0;
  border-top: 0; background: linear-gradient(90deg, transparent, rgba(var(--sx-gold-rgb), .42) 30%, rgba(255, 241, 201, .6) 50%, rgba(var(--sx-gold-rgb), .42) 70%, transparent) top / 100% 1px no-repeat;
}
html body.pl .pl-foot-sig { display: grid; justify-items: center; gap: 6px; margin-bottom: 26px; }
html body.pl .pl-foot-star { display: block; width: 30px; height: 30px; margin-bottom: 4px; color: var(--sx-gold); }
html body.pl .pl-foot-name {
  margin: 0; font-family: 'Cinzel', var(--pl-display); font-size: 19px; font-weight: 600; letter-spacing: .3em; padding-left: .3em;
  color: var(--sx-gold); text-shadow: 0 0 18px rgba(148, 112, 216, .35);
}
html body.pl .pl-foot-motto { margin: 0; font-family: var(--pl-display); font-size: 11.5px; letter-spacing: .22em; padding-left: .22em; text-transform: uppercase; color: var(--sx-text-mute); }
/* les liens : un rythme régulier, séparés par un point d'or ; ivoire lisible, or doux au geste, filet discret */
html body.pl .pl-foot-links {
  gap: 2px 4px; max-width: 640px;
}
html body.pl .pl-foot-links a { min-height: var(--sx-hit); padding: 4px 12px; font-size: 14.5px; color: rgba(243, 238, 228, .86); border-radius: var(--sx-r-sm); transition: color var(--sx-t-hover) ease; }
html body.pl .pl-foot-links a + a::before { content: "·"; position: absolute; left: -5px; color: rgba(var(--sx-gold-rgb), .55); pointer-events: none; }
html body.pl .pl-foot-links a::after { bottom: 10px; }
html body.pl .pl-foot-links a:focus-visible, html body.pl .pl-foot-app a:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: 2px; }
/* l'accès téléphone : une capsule fine, à part */
html body.pl .pl-foot-app { margin: 14px 0 0; }
html body.pl .pl-foot-app a {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--sx-hit); padding: 4px 18px; border-radius: var(--sx-r-pill);
  border: 1px solid rgba(var(--sx-gold-rgb), .32); color: #F1D891; font-size: 14.5px; text-decoration: none;
  transition: color var(--sx-t-hover) ease, border-color var(--sx-t-hover) ease, background-color var(--sx-t-hover) ease;
}
html body.pl .pl-foot-app svg { flex: none; }
@media (hover: hover) { html body.pl .pl-foot-app a:hover { color: #FFF1C7; border-color: rgba(var(--sx-gold-rgb), .7); background-color: rgba(var(--sx-gold-rgb), .07); } }
/* la mention juridique : discrète, lisible */
html body.pl .pl-foot-brand { margin-top: 22px; font-size: 12px; letter-spacing: .1em; color: rgba(243, 238, 228, .62); }
@media (max-width: 559px) {
  html body.pl .pl-foot { margin-top: 40px; padding-top: 32px; padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  html body.pl .pl-foot-name { font-size: 17px; letter-spacing: .24em; padding-left: .24em; }
  html body.pl .pl-foot-links a { padding-inline: 10px; font-size: 15px; }
  html body.pl .pl-foot-links { gap: 2px 8px; }
  html body.pl .pl-foot-links a + a::before { content: none; }   /* au retour à la ligne, un point d'or ouvrirait la ligne */
  html body.pl .pl-foot-brand { line-height: 1.6; letter-spacing: .06em; }
}
html.pl-reduced body.pl :is(.pl-foot-links a, .pl-foot-app a) { transition: none; }
@media (prefers-reduced-motion: reduce) { html body.pl :is(.pl-foot-links a, .pl-foot-app a) { transition: none; } }

/* ── 10. SEARCH 5.0 HORIZON : le Codex (30/10) ───────────────────────────────────────────────────────────── */
/* Le panneau devient un pupitre de consultation : plus d'air, une pièce maîtresse qui domine, des cartes en deux
   colonnes qui se lisent titre → type et lieu → description → geste, un parcours dessiné comme un chemin.
   Aucune animation permanente, aucun flou : seules transform et opacity bougent au survol. */
html body.pl:not(.pl-sx-m) #pl-found { padding: 20px 22px 22px; }   /* téléphone plein écran : le bandeau collant garde ses marges (§82) */
html body.pl #pl-found .pl-sx-head { margin-bottom: 6px; }
html body.pl #pl-found .pl-sx-sum { margin: 0 0 6px; color: var(--sx-text-mute); font-size: 14px; letter-spacing: .02em; }
html body.pl #pl-found .pl-sx-gk { margin: 22px 0 10px; font-size: 12px; letter-spacing: .22em; }
html body.pl #pl-found .pl-sx-list > .pl-sx-sec:first-child .pl-sx-gk { margin-top: 12px; }

/* métadonnées : le type en capsule à la teinte de la dimension, puis le lieu, en casse normale (lisible) */
html body.pl #pl-found .pl-fd-t small.pl-sx-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0 2px;
  color: var(--sx-text-mute); font-size: 13px; letter-spacing: .01em; text-transform: none; line-height: 1.35;
}
html body.pl #pl-found .pl-sx-kind {
  padding: 1px 9px; border-radius: var(--sx-r-pill); border: 1px solid color-mix(in srgb, var(--dh) 50%, transparent);
  color: color-mix(in srgb, var(--dh) 62%, #FFF6DC); font-family: var(--pl-display); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.7;
}
html body.pl #pl-found .pl-sx-where { min-width: 0; overflow-wrap: anywhere; }
html body.pl #pl-found .pl-sx-approx { padding: 1px 8px; border-radius: var(--sx-r-pill); border: 1px solid rgba(127, 243, 230, .45); font-size: 12px; }

/* la pièce maîtresse : grand sceau, titre en Cinzel, description confortable, geste serti d'or */
html body.pl #pl-found .pl-sx-hero { align-items: flex-start; gap: 20px; padding: 20px 22px; border-radius: 18px; }
html body.pl #pl-found .pl-sx-hero .pl-fd-g { width: 76px; height: 76px; font-size: 32px; }
html body.pl #pl-found .pl-sx-hero .pl-fd-t > b { font-family: var(--pl-display); font-size: 25px; font-weight: 600; line-height: 1.2; letter-spacing: .01em; }
html body.pl #pl-found .pl-sx-hero .pl-sx-ex { -webkit-line-clamp: 3; margin-top: 6px; color: var(--sx-text-soft); font-size: 17px; line-height: 1.5; }
html body.pl #pl-found .pl-sx-hero .pl-sx-cta {
  margin-top: 14px; min-height: 46px; padding: 6px 24px; border: 1px solid transparent; border-radius: var(--sx-r-pill);
  background: linear-gradient(180deg, #2c2674, #15124a) padding-box, var(--sx-metal) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 246, 220, .14), 0 10px 22px -14px rgba(148, 112, 216, .9);
  color: #FFF6DC; font-family: var(--pl-display); font-size: 13.5px; letter-spacing: .1em;
  transition: transform var(--sx-t-press) ease;
}
@media (hover: hover) { html body.pl #pl-found .pl-sx-hero:hover .pl-sx-cta { background: linear-gradient(180deg, #3a3196, #1c1861) padding-box, var(--sx-metal-hi) border-box; } }
html body.pl #pl-found .pl-sx-hero:active .pl-sx-cta { transform: scale(.98); }
html body.pl #pl-found .pl-sx-hero.is-act .pl-sx-cta { background: linear-gradient(180deg, #2c2674, #15124a) padding-box, linear-gradient(var(--sx-focus), var(--sx-focus)) border-box; }

/* connaissances : deux colonnes dès que la largeur le permet, cartes plus amples, titre au premier plan */
html body.pl #pl-found .pl-sx-list .pl-found-list:not(.pl-sx-one) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
html body.pl #pl-found .pl-sx-it:not(.pl-sx-hero) { align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 14px; transition: transform var(--sx-t-hover) var(--sx-ease); }
html body.pl #pl-found .pl-sx-it:not(.pl-sx-hero) .pl-fd-g { width: 46px; height: 46px; }
html body.pl #pl-found .pl-sx-it .pl-fd-t > b { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
html body.pl #pl-found .pl-sx-it .pl-sx-ex { margin-top: 4px; font-size: 15px; line-height: 1.45; }
html body.pl #pl-found .pl-sx-badges { margin-top: 8px; }
html body.pl #pl-found .pl-sx-badge { font-size: 12px; }
@media (hover: hover) { html body.pl #pl-found .pl-sx-it:not(.pl-sx-hero):hover { transform: translateY(-1px); } }
html body.pl #pl-found .pl-sx-why { margin-top: 4px; font-size: 13.5px; }

/* accès directs : portes dimensionnelles, sceau à la teinte, fonction en dessous, flèche d'ouverture */
html body.pl #pl-found .pl-sx-dir { min-height: 58px; padding: 8px 18px 8px 9px; gap: 12px; }
html body.pl #pl-found .pl-sx-dir-g { width: 40px; height: 40px; font-size: 18px; }
html body.pl #pl-found .pl-sx-dir-t b { font-size: 15px; }
html body.pl #pl-found .pl-sx-dir-t small { color: var(--sx-text-mute); font-size: 13px; }
html body.pl #pl-found .pl-sx-dir::after { content: "→"; margin-left: 6px; color: var(--dh); opacity: .7; transition: transform var(--sx-t-hover) ease; }
@media (hover: hover) { html body.pl #pl-found .pl-sx-dir:hover::after { opacity: 1; transform: translateX(2px); } }

/* « Pour aller plus loin » : un chemin. Médaillons numérotés reliés par un filet céleste, la vraie ressource dessous */
html body.pl #pl-found .pl-sx-path { position: relative; gap: 6px; }
html body.pl #pl-found .pl-sx-path::before {
  content: ""; position: absolute; z-index: 0; top: 30px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--sx-gold-rgb), .55) 12%, rgba(var(--sx-gold-rgb), .55) 88%, transparent);
}
html body.pl #pl-found .pl-sx-path > li + li::before { content: none; }
html body.pl #pl-found .pl-sx-step {
  position: relative; z-index: 1; align-items: center; gap: 3px; padding: 10px 10px 14px; text-align: center;
  border: 1px solid transparent; border-radius: 14px; background: none;
}
html body.pl #pl-found .pl-sx-num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; border: 1px solid transparent;
  background: radial-gradient(circle at 42% 34%, color-mix(in srgb, var(--dh) 28%, #1d1a52), #0c0b2a 74%) padding-box, var(--sx-metal) border-box;
  box-shadow: 0 0 0 4px #110f36; color: #FFF1C7; font-family: var(--pl-display); font-size: 15px;
}
html body.pl #pl-found .pl-sx-stage { font-size: 11px; letter-spacing: .2em; }
html body.pl #pl-found .pl-sx-stage::before { content: none; }
html body.pl #pl-found .pl-sx-step b { font-size: 15.5px; }
html body.pl #pl-found .pl-sx-step small { color: var(--sx-text-mute); font-size: 12.5px; }
html body.pl #pl-found .pl-sx-step.is-here .pl-sx-num { background: radial-gradient(circle at 42% 34%, #3a2f86, #14123c 72%) padding-box, var(--sx-metal-hi) border-box; }
@media (hover: hover) { html body.pl #pl-found .pl-sx-step:hover { border-color: rgba(var(--sx-gold-rgb), .35); background: var(--sx-stone-flat); } }
html body.pl #pl-found .pl-sx-step.is-act { border-color: var(--sx-focus); box-shadow: inset 0 0 0 1px var(--sx-focus); }

/* Constellation des Savoirs : le geste d'exploration, distinct des boutons ordinaires (améthyste, astres reliés) */
html body.pl #pl-found .pl-sx-relbar { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(var(--sx-gold-rgb), .14); }
html body.pl #pl-found .pl-sx-rel {
  display: inline-grid; grid-template-columns: auto auto; column-gap: 14px; row-gap: 1px; align-items: center; justify-items: start;
  padding: 10px 28px 10px 18px; text-align: left;
  background: radial-gradient(80% 140% at 0 50%, rgba(148, 112, 216, .32), transparent 70%) padding-box,
              linear-gradient(180deg, #2a2172, #120f3d) padding-box, linear-gradient(180deg, #CDB6FF, rgba(148, 112, 216, .45)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 246, 220, .12), 0 12px 28px -16px rgba(148, 112, 216, .95);
}
html body.pl #pl-found .pl-sx-relg { grid-row: span 2; width: 34px; height: 26px; color: #D9C7FF; }
html body.pl #pl-found .pl-sx-rel-t { color: #FFF6DC; }
html body.pl #pl-found .pl-sx-rel small { color: var(--sx-text-soft); font-size: 13px; }

/* filtres : un filtre actif se voit (fond éclairé, contour d'or, coche), et s'efface d'un geste */
html body.pl #pl-found .pl-sx-filters button { font-size: 14px; }
html body.pl #pl-found .pl-sx-filters button[aria-pressed="true"] {
  border-color: var(--sx-gold); background: rgba(var(--sx-gold-rgb), .16); color: #FFF6DC; font-weight: 600;
}
html body.pl #pl-found .pl-sx-filters button[aria-pressed="true"]::before { content: "✓"; margin-right: 5px; color: var(--sx-gold); }
html body.pl #pl-found .pl-sx-fk { color: var(--sx-text-mute); font-size: 11.5px; }
html body.pl #pl-found .pl-sx-fclear { margin: 2px 0 6px; }
html body.pl #pl-found .pl-sx-fclear button {
  min-height: 44px; padding: 2px 4px; border: 0; background: none; color: var(--sx-gold); font: inherit; font-size: 14px; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(var(--sx-gold-rgb), .45); text-underline-offset: 3px;
}
html body.pl #pl-found .pl-sx-fclear button:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: 2px; border-radius: 6px; }

/* aucun résultat : un sceau discret, un message clair, puis des pistes qui existent */
html body.pl #pl-found .pl-sx-empty { padding: 16px 8px 8px; text-align: center; }
html body.pl #pl-found .pl-sx-empty-g { display: block; margin-bottom: 6px; color: rgba(var(--sx-gold-rgb), .75); font-size: 30px; line-height: 1; }
html body.pl #pl-found .pl-sx-empty .pl-found-none { color: var(--sx-text); font-family: var(--pl-display); font-size: 16px; letter-spacing: .04em; }
html body.pl #pl-found .pl-sx-empty ~ .pl-found-try, html body.pl #pl-found .pl-sx-empty ~ .pl-sx-sug { justify-content: center; margin-top: 10px; text-align: center; }
/* chargement de l'index : une ligne calme, sans faux résultats */
html body.pl #pl-found .pl-sx-wait { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: var(--sx-r-pill); border: 1px solid rgba(var(--sx-gold-rgb), .22); color: var(--sx-text-soft); }

/* Constellation des Savoirs : même lecture que le Codex (titre plus présent, métadonnées en casse normale, description confortable) */
html body.pl #pl-found .pl-sv-mt small { margin: 2px 0 1px; color: var(--sx-text-mute); font-size: 13px; letter-spacing: .01em; text-transform: none; }
html body.pl #pl-found .pl-sv-mt b { font-size: 16.5px; line-height: 1.3; }
html body.pl #pl-found .pl-sv-main .pl-sv-mt b { font-family: var(--pl-display); font-size: 21px; }
html body.pl #pl-found .pl-sv-mt .pl-sx-ex { font-size: 15px; line-height: 1.45; }

/* grand écran : un pupitre centré, pas une bande démesurée */
@media (min-width: 1600px) { html body.pl #pl-found { max-width: 1060px; margin-inline: auto; } }

/* parcours vertical (téléphone et colonnes étroites) : le filet descend le long des médaillons */
@media (max-width: 899px) {
  html body.pl #pl-found .pl-sx-path { grid-template-columns: 1fr; gap: 2px; }
  html body.pl #pl-found .pl-sx-path::before { top: 22px; bottom: 22px; left: 30px; right: auto; width: 1px; height: auto;
    background: linear-gradient(180deg, transparent, rgba(var(--sx-gold-rgb), .5) 10%, rgba(var(--sx-gold-rgb), .5) 90%, transparent); }
  html body.pl #pl-found .pl-sx-step { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 1px; align-items: center; justify-items: start; padding: 8px 10px; text-align: left; }
  html body.pl #pl-found .pl-sx-num { grid-row: span 3; margin: 0; }
  html body.pl #pl-found .pl-sx-step small { flex-basis: auto; }
}
@media (max-width: 559px) {
  html body.pl:not(.pl-sx-m) #pl-found { padding: 14px 14px 16px; }
  html body.pl #pl-found .pl-sx-hero { gap: 14px; padding: 16px; }
  html body.pl #pl-found .pl-sx-hero .pl-fd-g { width: 56px; height: 56px; font-size: 24px; }
  html body.pl #pl-found .pl-sx-hero .pl-fd-t > b { font-size: 20px; }
  html body.pl #pl-found .pl-sx-hero .pl-sx-ex { font-size: 16px; }
  html body.pl #pl-found .pl-sx-hero .pl-sx-cta { align-self: stretch; width: 100%; justify-content: center; padding-inline: 12px; font-family: var(--pl-body); font-size: 16px; font-weight: 600; letter-spacing: .02em; }
  html body.pl #pl-found .pl-sx-it:not(.pl-sx-hero) { padding: 12px 14px; gap: 12px; }
  html body.pl #pl-found .pl-sx-it:not(.pl-sx-hero) .pl-fd-g { width: 40px; height: 40px; }
  html body.pl #pl-found .pl-sx-rel { width: 100%; padding-inline: 14px; }
}
/* très petits écrans (320-380 px) : le sceau se fait plus discret, le texte garde sa largeur */
@media (max-width: 380px) {
  html body.pl #pl-found .pl-sx-hero { gap: 12px; padding: 14px 12px; }
  html body.pl #pl-found .pl-sx-hero .pl-fd-g { width: 44px; height: 44px; font-size: 19px; }
  html body.pl #pl-found .pl-sx-hero .pl-fd-t > b { font-size: 18.5px; }
  html body.pl #pl-found .pl-sx-it:not(.pl-sx-hero) { padding: 12px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html body.pl #pl-found :is(.pl-sx-it, .pl-sx-cta, .pl-sx-dir) { transition: none; }
  html body.pl #pl-found .pl-sx-it:hover { transform: none; }
}
html.pl-reduced body.pl #pl-found :is(.pl-sx-it, .pl-sx-cta, .pl-sx-dir) { transition: none; }

/* ── 9. Mouvement réduit ────────────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) { html body.pl.pl-calm .pl-codex { transition: none; } }
