/* Mitsiry Page Orbits v20
   Dedicated visual motion language per public topic page.
   It intentionally extends constellation-v3 without changing the homepage orbit. */

body.ms-orbital-theme .ms-constellation[data-scene]{
  --orbit-photo-ring:rgba(245,235,204,.72);
  --orbit-photo-inner:rgba(255,255,255,.13);
  --orbit-shadow:0 20px 38px rgba(0,24,17,.25);
}
body.ms-orbital-theme .ms-constellation[data-scene] .ms-constellation-core{
  width:44%;
}
body.ms-orbital-theme .ms-constellation[data-scene] .ms-core-float,
body.ms-orbital-theme .ms-constellation[data-scene] .ms-satellite-float{
  border-radius:50%;
}
body.ms-orbital-theme .ms-constellation[data-scene] .ms-constellation-core img,
body.ms-orbital-theme .ms-constellation[data-scene] .ms-satellite img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  border:1px solid var(--orbit-photo-ring);
  box-shadow:
    inset 0 0 0 5px var(--orbit-photo-inner),
    var(--orbit-shadow);
  filter:saturate(.94) contrast(1.035) brightness(1.01);
}
body.ms-orbital-theme .ms-constellation[data-scene] .ms-constellation-core img{
  transform:scale(1.01);
}
body.ms-orbital-theme .ms-constellation[data-scene] .ms-satellite{
  width:30.5%;
}
body.ms-orbital-theme .ms-constellation[data-scene] .ms-satellite-translation{
  display:flex!important;
  width:max-content;
  min-width:0;
  max-width:82%;
  min-height:34px;
  padding:7px 12px;
  border:1px solid rgba(255,240,198,.66);
  background:linear-gradient(135deg,rgba(251,249,240,.96),rgba(234,242,229,.94));
  color:#173d2e;
  font:800 clamp(9px,.82vw,12px)/1 Manrope,system-ui,sans-serif;
  letter-spacing:-.012em;
  box-shadow:0 9px 21px rgba(6,35,25,.16);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
body.ms-orbital-theme .ms-constellation[data-scene] .ms-constellation-caption{
  min-height:34px;
  display:flex;
  align-items:center;
  padding:8px 14px;
  color:#f8f5e8;
  border-color:rgba(var(--ms-gold),.34);
  background:rgba(6,39,29,.74);
  box-shadow:0 10px 26px rgba(3,27,19,.18);
}

/* CONTRIBUTION — chain of proof.
   Motion travels clockwise, like need -> allocation -> action -> evidence. */
.ms-constellation[data-scene="contribuer"]{
  --orbit-photo-ring:rgba(239,205,126,.86);
  --orbit-shadow:0 21px 40px rgba(49,37,10,.22);
}
.ms-constellation[data-scene="contribuer"]::after{
  content:"";
  position:absolute;
  inset:15% 13%;
  z-index:1;
  border:1px solid rgba(239,205,126,.28);
  border-radius:50%;
  transform:rotate(-13deg);
  pointer-events:none;
  animation:msContributionRing 13s ease-in-out infinite;
}
.ms-constellation[data-scene="contribuer"] .ms-link{
  stroke:rgba(244,203,126,.64);
  stroke-dasharray:1.4 5.2;
  animation-duration:10s;
}
.ms-constellation[data-scene="contribuer"] .ms-satellite--a .ms-satellite-float{animation:msContributionA 8.5s ease-in-out infinite}
.ms-constellation[data-scene="contribuer"] .ms-satellite--b .ms-satellite-float{animation:msContributionB 9.5s ease-in-out infinite}
.ms-constellation[data-scene="contribuer"] .ms-satellite--c .ms-satellite-float{animation:msContributionC 10.5s ease-in-out infinite}
.ms-constellation[data-scene="contribuer"] .ms-satellite--d .ms-satellite-float{animation:msContributionD 11.5s ease-in-out infinite}
@keyframes msContributionRing{0%,100%{opacity:.35;transform:rotate(-13deg) scale(.985)}50%{opacity:.78;transform:rotate(-9deg) scale(1.025)}}
@keyframes msContributionA{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(5px,-7px,0)}}
@keyframes msContributionB{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(-6px,-3px,0)}}
@keyframes msContributionC{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(4px,6px,0)}}
@keyframes msContributionD{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(-5px,6px,0)}}

/* PLANTS — biological time.
   Concentric growth rings breathe slowly; satellites feel like dated observations. */
.ms-constellation[data-scene="plantes"]{
  --orbit-photo-ring:rgba(184,231,171,.82);
  --orbit-shadow:0 20px 38px rgba(18,72,42,.22);
}
.ms-constellation[data-scene="plantes"]::after{
  content:"";
  position:absolute;
  left:50%;top:48%;
  width:62%;aspect-ratio:1;
  transform:translate(-50%,-50%);
  border-radius:50%;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(circle,transparent 0 42%,rgba(166,224,164,.18) 42.5% 43%,transparent 43.5% 55%,rgba(215,226,144,.13) 55.5% 56%,transparent 56.5%);
  animation:msPlantRings 9.5s ease-in-out infinite;
}
.ms-constellation[data-scene="plantes"] .ms-core-float{animation:msPlantCore 9s ease-in-out infinite}
.ms-constellation[data-scene="plantes"] .ms-satellite-float{animation-duration:12.5s}
.ms-constellation[data-scene="plantes"] .ms-satellite--a .ms-satellite-float{animation-name:msPlantVisitA}
.ms-constellation[data-scene="plantes"] .ms-satellite--b .ms-satellite-float{animation-name:msPlantVisitB}
.ms-constellation[data-scene="plantes"] .ms-satellite--c .ms-satellite-float{animation-name:msPlantVisitC}
.ms-constellation[data-scene="plantes"] .ms-satellite--d .ms-satellite-float{animation-name:msPlantVisitD}
@keyframes msPlantRings{0%,100%{opacity:.42;transform:translate(-50%,-50%) scale(.95)}50%{opacity:.9;transform:translate(-50%,-50%) scale(1.055)}}
@keyframes msPlantCore{0%,100%{transform:scale(.99) translateY(2px)}50%{transform:scale(1.025) translateY(-6px)}}
@keyframes msPlantVisitA{0%,100%{transform:translate(0,2px)}50%{transform:translate(2px,-7px)}}
@keyframes msPlantVisitB{0%,100%{transform:translate(0,-1px)}50%{transform:translate(-3px,-6px)}}
@keyframes msPlantVisitC{0%,100%{transform:translate(1px,1px)}50%{transform:translate(4px,-5px)}}
@keyframes msPlantVisitD{0%,100%{transform:translate(0,2px)}50%{transform:translate(-4px,-4px)}}

/* AGRONOMY — diagnosis and response.
   A restrained scanning pulse converges toward the expert decision at center. */
.ms-constellation[data-scene="agronomie"]{
  --orbit-photo-ring:rgba(207,217,156,.80);
  --orbit-shadow:0 20px 38px rgba(44,66,34,.22);
}
.ms-constellation[data-scene="agronomie"]::after{
  content:"";
  position:absolute;
  left:50%;top:48%;
  width:55%;aspect-ratio:1;
  transform:translate(-50%,-50%);
  z-index:1;
  border-radius:50%;
  pointer-events:none;
  background:conic-gradient(from 0deg,transparent 0 70%,rgba(221,208,132,.16) 79%,rgba(174,222,176,.28) 86%,transparent 94%);
  animation:msAgroScan 12s linear infinite;
}
.ms-constellation[data-scene="agronomie"] .ms-link{
  stroke-dasharray:3 6;
  animation-duration:14s;
}
.ms-constellation[data-scene="agronomie"] .ms-constellation-core img{
  border-color:rgba(230,213,145,.84);
}
.ms-constellation[data-scene="agronomie"] .ms-satellite-float{animation:msAgroSignal 7.8s ease-in-out infinite}
.ms-constellation[data-scene="agronomie"] .ms-satellite--b .ms-satellite-float{animation-delay:-1.8s}
.ms-constellation[data-scene="agronomie"] .ms-satellite--c .ms-satellite-float{animation-delay:-3.6s}
.ms-constellation[data-scene="agronomie"] .ms-satellite--d .ms-satellite-float{animation-delay:-5.4s}
@keyframes msAgroScan{to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes msAgroSignal{0%,100%{transform:scale(.985) translateY(2px)}45%{transform:scale(1.018) translateY(-4px)}65%{transform:scale(1.005) translateY(-2px)}}

/* RESEARCH — comparison and discovery.
   Multiple axes move at different rhythms; the visual should feel analytical, not mechanical. */
.ms-constellation[data-scene="recherche"]{
  --orbit-photo-ring:rgba(155,213,222,.86);
  --orbit-shadow:0 20px 40px rgba(18,58,74,.24);
}
.ms-constellation[data-scene="recherche"]::after{
  content:"";
  position:absolute;
  inset:10% 7%;
  z-index:1;
  pointer-events:none;
  border-radius:50%;
  background:
    linear-gradient(26deg,transparent 49.7%,rgba(143,207,219,.16) 50%,transparent 50.3%),
    linear-gradient(154deg,transparent 49.7%,rgba(231,212,157,.12) 50%,transparent 50.3%);
  animation:msResearchAxes 18s ease-in-out infinite;
}
.ms-constellation[data-scene="recherche"] .ms-link{stroke:rgba(142,205,220,.56);animation-duration:22s}
.ms-constellation[data-scene="recherche"] .ms-contour{stroke-dasharray:7 11;animation-duration:7.5s}
.ms-constellation[data-scene="recherche"] .ms-core-float{animation:msResearchCore 11s ease-in-out infinite}
.ms-constellation[data-scene="recherche"] .ms-satellite--a .ms-satellite-float{animation:msResearchNodeA 10s ease-in-out infinite}
.ms-constellation[data-scene="recherche"] .ms-satellite--b .ms-satellite-float{animation:msResearchNodeB 13s ease-in-out infinite}
.ms-constellation[data-scene="recherche"] .ms-satellite--c .ms-satellite-float{animation:msResearchNodeC 12s ease-in-out infinite}
.ms-constellation[data-scene="recherche"] .ms-satellite--d .ms-satellite-float{animation:msResearchNodeD 14s ease-in-out infinite}
@keyframes msResearchAxes{0%,100%{opacity:.38;transform:rotate(-3deg) scale(.99)}50%{opacity:.82;transform:rotate(3deg) scale(1.015)}}
@keyframes msResearchCore{0%,100%{transform:translateY(1px) rotate(-.2deg)}50%{transform:translateY(-7px) rotate(.25deg)}}
@keyframes msResearchNodeA{0%,100%{transform:translate(0,0)}50%{transform:translate(6px,-4px)}}
@keyframes msResearchNodeB{0%,100%{transform:translate(0,0)}50%{transform:translate(-6px,3px)}}
@keyframes msResearchNodeC{0%,100%{transform:translate(0,0)}50%{transform:translate(5px,5px)}}
@keyframes msResearchNodeD{0%,100%{transform:translate(0,0)}50%{transform:translate(-4px,-6px)}}

/* TECHNOLOGY — radio, edge and synchronization.
   Concentric RF waves pulse from the central system; links move faster than on other pages. */
.ms-constellation[data-scene="technologie"]{
  --orbit-photo-ring:rgba(137,226,214,.88);
  --orbit-shadow:0 20px 40px rgba(10,70,67,.24);
}
.ms-constellation[data-scene="technologie"]::after{
  content:"";
  position:absolute;
  left:50%;top:48%;
  width:72%;aspect-ratio:1;
  transform:translate(-50%,-50%);
  z-index:1;
  pointer-events:none;
  border-radius:50%;
  background:
    radial-gradient(circle,transparent 0 38%,rgba(126,221,214,.20) 38.4% 38.9%,transparent 39.3% 50%,rgba(126,221,214,.13) 50.4% 50.9%,transparent 51.3% 62%,rgba(225,216,151,.10) 62.4% 62.9%,transparent 63.3%);
  animation:msTechWave 6.8s ease-out infinite;
}
.ms-constellation[data-scene="technologie"] .ms-link{stroke:rgba(129,228,217,.66);stroke-dasharray:1 4;animation-duration:7.2s}
.ms-constellation[data-scene="technologie"] .ms-contour{stroke:rgba(133,224,215,.22);animation-duration:5.8s}
.ms-constellation[data-scene="technologie"] .ms-core-float{animation:msTechCore 8.5s ease-in-out infinite}
.ms-constellation[data-scene="technologie"] .ms-satellite-float{animation:msTechNode 9s ease-in-out infinite}
.ms-constellation[data-scene="technologie"] .ms-satellite--b .ms-satellite-float{animation-delay:-2.1s}
.ms-constellation[data-scene="technologie"] .ms-satellite--c .ms-satellite-float{animation-delay:-4.2s}
.ms-constellation[data-scene="technologie"] .ms-satellite--d .ms-satellite-float{animation-delay:-6.3s}
@keyframes msTechWave{0%{opacity:.12;transform:translate(-50%,-50%) scale(.83)}52%{opacity:.74}100%{opacity:0;transform:translate(-50%,-50%) scale(1.08)}}
@keyframes msTechCore{0%,100%{transform:translateY(2px) scale(.995)}50%{transform:translateY(-5px) scale(1.018)}}
@keyframes msTechNode{0%,100%{transform:translate3d(0,1px,0)}50%{transform:translate3d(0,-6px,0)}}

/* Mobile: keep labels readable without hiding the visual. */
@media(max-width:840px){
  body.ms-orbital-theme .ms-constellation[data-scene] .ms-satellite{width:31.5%}
  body.ms-orbital-theme .ms-constellation[data-scene] .ms-satellite-translation{
    min-height:30px;
    padding:6px 9px;
    font-size:9px;
  }
}
@media(max-width:560px){
  body.ms-orbital-theme .ms-constellation[data-scene] .ms-satellite{width:34.5%}
  body.ms-orbital-theme .ms-constellation[data-scene] .ms-constellation-core{width:41%}
  body.ms-orbital-theme .ms-constellation[data-scene] .ms-satellite-translation{
    max-width:88%;
    min-height:27px;
    padding:5px 8px;
    font-size:7.6px;
  }
  body.ms-orbital-theme .ms-constellation[data-scene] .ms-constellation-caption{
    font-size:8.3px;
    padding:6px 10px;
  }
}
@media(prefers-reduced-motion:reduce){
  .ms-constellation[data-scene]::after{animation:none!important}
}
