/* ══════════════════════════════════════════════════════════════════════════
   synaxis-atlante.css — le « Cœur Atlante » sur l'astrolabe de SYNAXIS (27/10/2026)
   ──────────────────────────────────────────────────────────────────────────
   La toile 3D (canvas.pl-at-canvas, posée par synaxis-atlante.js) et les cinq boutons
   des pierres (synaxis-atlante-bridge.js). Les secteurs SVG ne s'effacent que sous
   .pl-astro.pl-atlante, c'est-à-dire une fois la première image des pierres dessinée :
   sans WebGL, sans modèle ou en cas d'erreur, rien ici ne s'applique et l'astrolabe
   classique reste tel quel. Aucune animation infinie, survol sous (hover: hover).
   ══════════════════════════════════════════════════════════════════════════ */

/* La toile : invisible tant que la scène n'a pas dessiné, puis fondu */
html body.pl .pl-astro .pl-at-canvas { opacity: 0; transition: opacity .8s ease; }
html body.pl .pl-astro.pl-atlante .pl-at-canvas.is-on { opacity: 1; }

/* Les secteurs des cinq outils s'effacent (visuels, noms, aperçus des raccourcis) ; anneaux, séparations,
   cœur, médaillons extérieurs et raccourcis déployés restent. Plus de toucher ni d'animation dessus. */
html body.pl .pl-astro.pl-atlante #pl-board .pl-sec,
html body.pl .pl-astro.pl-atlante #pl-board .pl-shorts { opacity: 0; pointer-events: none; transition: opacity .7s ease; }
html body.pl .pl-astro.pl-atlante #pl-board .pl-sec *,
html body.pl .pl-astro.pl-atlante #pl-board .pl-shorts * { pointer-events: none; animation: none; }

/* §65 (27/10) : le cœur cristallin et l'anneau de convergence (calque SVG fixe du pont, sous la toile).
   Une fois le Cristal Source dessiné au centre (.pl-at-heart3d), l'étoile, le soleil et les rayons du cœur
   classique s'effacent : c'est le cristal qui rayonne. Fondu unique, aucune animation infinie. */
html body.pl .pl-at-heart { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .9s ease; }
html body.pl .pl-at-heart > svg { display: block; width: 100%; height: 100%; overflow: visible; }
html body.pl .pl-astro.pl-atlante .pl-at-heart { opacity: 1; }
html body.pl .pl-astro .pl-ly--sun, html body.pl .pl-astro .pl-ly--rays, html body.pl .pl-astro .pl-ly--starbox,
html body.pl .pl-astro .pl-ly--cglint, html body.pl .pl-astro .pl-ly--cstar { transition: opacity .9s ease; }
html body.pl .pl-astro.pl-atlante.pl-at-heart3d .pl-ly--sun, html body.pl .pl-astro.pl-atlante.pl-at-heart3d .pl-ly--rays,
html body.pl .pl-astro.pl-atlante.pl-at-heart3d .pl-ly--starbox, html body.pl .pl-astro.pl-atlante.pl-at-heart3d .pl-ly--cglint,
html body.pl .pl-astro.pl-atlante.pl-at-heart3d .pl-ly--cstar { opacity: 0 !important; animation: none; }
html body.pl .pl-astro.pl-atlante.pl-at-heart3d .pl-ly--glyphs { opacity: 0 !important; animation: none; }   /* §66 : microglyphes portés par la couronne */
html body.pl .pl-astro .pl-ly--glyphs { transition: opacity .9s ease; }

/* §66 : le Cœur Source. Calque avant (jauge circulaire, cartouche) au-dessus de la toile, sous le texte du cœur */
html body.pl .pl-at-front { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .9s ease; }
html body.pl .pl-at-front > svg { display: block; width: 100%; height: 100%; overflow: visible; }
html body.pl .pl-astro.pl-atlante.pl-at-heart3d .pl-at-front { opacity: 1; }
html body.pl .pl-at-gauge { opacity: 0; transition: opacity .5s ease; }
html body.pl .pl-astro.pl-at-awake .pl-at-gauge, html body.pl .pl-astro.pl-at-charged .pl-at-gauge { opacity: 1; }
html body.pl .pl-at-gauge circle + circle { transition: stroke-dasharray .25s linear; }
/* le nom SYNAXIS et le jour lunaire descendent sur le cartouche gravé, au pied du cristal (jamais recouverts) */
html body.pl .pl-astro .pl-core-t1, html body.pl .pl-astro .pl-core-t2 { transition: transform .9s ease, font-size .9s ease; }
/* 28/10 : le nom est seul sur le cartouche (y CY+52 → CY+86, milieu CY+69) : ligne de base à CY+74,5, capitales centrées */
html body.pl .pl-astro.pl-atlante.pl-at-heart3d .pl-core-t1 { transform: translateY(48.5px); font-size: 15.5px; letter-spacing: .22em; }
html body.pl .pl-astro.pl-atlante.pl-at-heart3d .pl-core-t2 { transform: translateY(29px); font-size: 9.5px; }
html body.pl .pl-astro.pl-atlante.pl-at-heart3d :is(.pl-core-sep, .pl-core-sep-gem) { opacity: 0; }

/* le cristal est un bouton : cercle posé sur la sphère (centre du plateau, ≈ 118 unités sur 760) */
html body.pl .pl-at-heartbtn {
  position: absolute; left: 50%; top: 50%; width: 15.5%; height: 15.5%; min-width: 48px; min-height: 48px;
  transform: translate(-50%, -50%); margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; box-shadow: none; color: inherit; cursor: pointer; pointer-events: auto;
  touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  transition: box-shadow .4s ease;
}
html body.pl .pl-at-heartbtn:focus { outline: none; }
html body.pl .pl-at-heartbtn:focus-visible { box-shadow: 0 0 0 2px #7FF3E6, 0 0 0 7px rgba(127, 243, 230, .16); }
@media (hover: hover) {
  html body.pl .pl-at-heartbtn:hover { box-shadow: 0 0 0 1px rgba(246, 220, 152, .55), 0 0 26px rgba(201, 166, 255, .45); }
}
html body.pl .pl-astro.pl-at-awake .pl-at-heartbtn { cursor: grab; box-shadow: 0 0 0 1px rgba(246, 220, 152, .4), 0 0 30px rgba(246, 220, 152, .3); }
html body.pl .pl-at-heartbtn.is-rubbing { cursor: grabbing; }
html body.pl .pl-at-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* pendant l'éveil, les pierres restent présentes mais en retrait */
html body.pl .pl-astro.pl-at-awake .pl-at-lab { opacity: .7; }

/* l'invitation sous l'astrolabe : plus discrète que le cristal, qui est désormais la commande
   (§78 : elle vit dans la barre d'actions .pl-actbar, d'où le sélecteur de descendant) */
html body.pl.pl-at-coeur .pl-board-box .pl-cristal-btn { box-shadow: 0 0 0 1px rgba(232, 195, 106, .14) inset, 0 6px 22px rgba(5, 6, 15, .45); border-color: rgba(232, 195, 106, .42); background: rgba(16, 13, 38, .6); }
html body.pl.pl-at-coeur .pl-board-box .pl-cristal-btn .pl-cristal-txt b { font-size: .92em; }

/* Les boutons des pierres : transparents, posés sur chaque pierre (transform seulement, écrit à chaque image) */
.pl-at-ui { position: absolute; inset: 0; pointer-events: none; }
html body.pl .pl-at-stone {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  margin: 0; padding: 0; border: 0; border-radius: 46% / 34%; background: transparent; box-shadow: none;
  color: inherit; font: inherit; cursor: pointer; pointer-events: auto; will-change: transform;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
html body.pl .pl-at-stone:focus { outline: none; }
html body.pl .pl-at-stone:focus-visible { outline: 2px solid #7FF3E6; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(127, 243, 230, .14); }

/* Le nom et le numéro : un cartouche posé au pied de sa pierre (placé par le pont, 27/10) */
html body.pl .pl-at-lab {
  position: absolute; left: 50%; top: 50%; display: flex; align-items: baseline; gap: .45em; pointer-events: none; white-space: nowrap;
  padding: .28em .7em .3em; border-radius: 999px; border: 1px solid rgba(232, 195, 106, .5);
  background: linear-gradient(180deg, rgba(22, 18, 52, .9), rgba(9, 8, 28, .9)); box-shadow: 0 1px 8px rgba(4, 4, 18, .7), inset 0 1px 0 rgba(255, 236, 190, .08);
  font-family: var(--pl-display, 'Cinzel', Georgia, serif); line-height: 1; will-change: transform;
  text-shadow: 0 1px 2px rgba(6, 8, 30, .9);
  transition: opacity .3s ease, border-color .3s ease;
}
html body.pl .pl-at-lab b { font-weight: 400; font-size: clamp(8.5px, 2.35vw, 12px); letter-spacing: .12em; color: #fff6e2; transition: color .3s ease, text-shadow .3s ease; }
html body.pl .pl-at-lab small { font-size: clamp(7.5px, 1.9vw, 10px); letter-spacing: .1em; color: #e3c27a; }
html body.pl .pl-at-stone.is-sel .pl-at-lab { border-color: var(--dh, #E8C36A); }
/* Téléphone : la pierre ne fait que 30 à 40 px de large ; le nom seul, serré, sans cartouche, pour ne pas
   la recouvrir ni toucher l'anneau gravé (le numéro reste dans l'aria-label) */
@media (max-width: 560px) {
  html body.pl .pl-at-lab { padding: 0; border: 0; background: none; box-shadow: none; text-shadow: 0 0 4px rgba(6, 8, 30, 1), 0 0 8px rgba(6, 8, 30, .95), 0 1px 2px rgba(6, 8, 30, .9); }
  html body.pl .pl-at-lab b { font-size: 8px; letter-spacing: .07em; }
  html body.pl .pl-at-lab small { display: none; }
}
html body.pl .pl-at-stone.is-sel .pl-at-lab b { color: #fff; text-shadow: 0 0 6px rgba(6, 8, 30, .95), 0 0 12px var(--dh, #E8C36A); }
html body.pl .pl-at-stone.is-sel .pl-at-lab small { color: var(--dh, #E8C36A); }
html body.pl .pl-astro.has-sel .pl-at-stone:not(.is-sel) .pl-at-lab { opacity: .78; }
html body.pl .pl-at-stone:focus-visible .pl-at-lab b { color: #fff; }
@media (hover: hover) {
  html body.pl .pl-at-stone:hover .pl-at-lab { opacity: 1; }
  html body.pl .pl-at-stone:hover .pl-at-lab b { color: #fff; text-shadow: 0 0 6px rgba(6, 8, 30, .95), 0 0 10px var(--dh, #E8C36A); }
}

/* L'interrupteur « Cœur Atlante » reprend le réglage « Animations réduites » (.pl-motion) ;
   caché tant que le pont n'a pas vérifié WebGL */
html body.pl #pl-atlante[hidden] { display: none; }
/* chaque réglage tient sur une ligne plutôt que de s'écraser sur deux (§78 : les trois vivent désormais une rangée
   chacun dans le panneau « Réglages de l'astrolabe », plateau.anneau.css ; plus de colonne à replier ici) */
html body.pl .pl-tools:has(#pl-atlante:not([hidden])) :is(.pl-mode, .pl-motion) { white-space: nowrap; }

/* Mouvement réduit : pas de fondu */
html.pl-reduced body.pl .pl-astro .pl-at-canvas, html.pl-reduced body.pl .pl-at-heart, html.pl-reduced body.pl .pl-at-front, html.pl-reduced body.pl .pl-at-gauge, html.pl-reduced body.pl .pl-at-gauge circle, html.pl-reduced body.pl .pl-astro .pl-core-t1, html.pl-reduced body.pl .pl-astro .pl-core-t2, html.pl-reduced body.pl .pl-astro .pl-ly--starbox,
html.pl-reduced body.pl .pl-astro.pl-atlante #pl-board .pl-sec,
html.pl-reduced body.pl .pl-astro.pl-atlante #pl-board .pl-shorts,
html.pl-reduced body.pl .pl-at-lab, html.pl-reduced body.pl .pl-at-lab b { transition: none; }
@media (prefers-reduced-motion: reduce) {
  html body.pl .pl-astro .pl-at-canvas, html body.pl .pl-at-heart, html body.pl .pl-at-front, html body.pl .pl-at-gauge, html body.pl .pl-at-gauge circle, html body.pl .pl-astro .pl-core-t1, html body.pl .pl-astro .pl-core-t2,
  html body.pl .pl-astro.pl-atlante #pl-board .pl-sec,
  html body.pl .pl-astro.pl-atlante #pl-board .pl-shorts,
  html body.pl .pl-at-lab, html body.pl .pl-at-lab b { transition: none; }
}
