

:root {
  
  --lueur-froide: #1a222b;   

  
  --allume-depart: #97999b;  
  --allume-fin: #f4f5f1;     

  
  --lueur-signal: #e86b45;   
  
}

.lueur { color: var(--lueur-signal); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    
    html.scene body { background: transparent; }

    html.scene :is(.e1, .e2, .e3, .eg, .ei, .e5)::before {
      content: ""; display: block; position: sticky; top: 0; height: 100lvh; margin-bottom: -100lvh;
      z-index: -1; pointer-events: none;
      
      width: calc(100% + 6vw); margin-left: -3vw;
      background: radial-gradient(var(--fond-rx) var(--fond-ry) at var(--fond-x) var(--fond-y),
        var(--lueur-froide) 0%,
        color-mix(in oklab, var(--lueur-froide) 86%, var(--encre)) 18%,
        color-mix(in oklab, var(--lueur-froide) 62%, var(--encre)) 38%,
        color-mix(in oklab, var(--lueur-froide) 34%, var(--encre)) 60%,
        color-mix(in oklab, var(--lueur-froide) 12%, var(--encre)) 80%,
        var(--encre) 100%);
      animation: fond linear both;
      
      -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgb(0 0 0 / .5) 6%, #000 13%, #000 70%, rgb(0 0 0 / .5) 84%, transparent 100%);
              mask-image: linear-gradient(to bottom, transparent 0, rgb(0 0 0 / .5) 6%, #000 13%, #000 70%, rgb(0 0 0 / .5) 84%, transparent 100%);
    }
    @keyframes fond {
      entry 0%   { opacity: 0; translate: calc(var(--fond-derive) * -1) 0; }
      entry 100% { opacity: 1; }
      exit 0%    { opacity: 1; }
      exit 15%   { opacity: 0; translate: var(--fond-derive) 0; }
      exit 100%  { opacity: 0; translate: var(--fond-derive) 0; }  
    }
    
    html.scene :is(.e1, .e2, .e3, .eg, .ei, .e5) { overflow-x: clip; }

    
    
    html.scene .e1::before { --fond-x: 18%; --fond-y: 52%; --fond-rx: 62%; --fond-ry: 38%; --fond-derive: 3vw; animation-timeline: --e1; }
    
    html.scene .e2::before { --fond-x: 44%; --fond-y: 50%; --fond-rx: 58%; --fond-ry: 36%; --fond-derive: 2vw; animation-timeline: --e2; }
    
    html.scene .e3::before { --fond-x: 76%; --fond-y: 58%; --fond-rx: 60%; --fond-ry: 40%; --fond-derive: -3vw; animation-timeline: --e3; }
    
    html.scene .eg::before { --fond-x: 50%; --fond-y: 52%; --fond-rx: 72%; --fond-ry: 38%; --fond-derive: 2vw; animation-timeline: --eg; }
    
    html.scene .ei::before { --fond-x: 24%; --fond-y: 50%; --fond-rx: 60%; --fond-ry: 36%; --fond-derive: 3vw; animation-timeline: --ei; }
    
    html.scene .e5::before { --fond-x: 50%; --fond-y: 50%; --fond-rx: 64%; --fond-ry: 36%; --fond-derive: -2vw; animation-timeline: --e5; }

    
    html.scene .e6::before {
      content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
      background: radial-gradient(60% 26% at 50% 40%,
        var(--lueur-froide) 0%,
        color-mix(in oklab, var(--lueur-froide) 86%, var(--encre)) 18%,
        color-mix(in oklab, var(--lueur-froide) 62%, var(--encre)) 38%,
        color-mix(in oklab, var(--lueur-froide) 34%, var(--encre)) 60%,
        color-mix(in oklab, var(--lueur-froide) 12%, var(--encre)) 80%,
        var(--encre) 100%);
      animation: fond-fin linear both; animation-timeline: view(); animation-range: entry 0% entry 100%;
    }
    @keyframes fond-fin { from { opacity: 0; } to { opacity: 1; } }

  }
}

.ecran { overflow-x: clip; }

.edm { isolation: isolate; }

.astre { position: absolute; z-index: -1; display: block; pointer-events: none; max-width: none; height: auto;
         left: var(--ax); top: var(--ay); width: var(--aw); opacity: var(--ao); }

.astre-saturne-grande { --aw: 440px; --ax: calc(100% - 250px); --ay: 72%; --ao: .5; }

.astre-lune-soir      { --aw: 96px;  --ax: 28px;              --ay: 14%; --ao: .4; }

.astre-lune-loin      { --aw: 44px;  --ax: calc(100% - 72px); --ay: 18%; --ao: .6; }

.astre-horizon        { --aw: 130vw; --ax: -15vw;             --ay: 83%; --ao: .45; }   

.astre-lune-bas       { --aw: 150px; --ax: calc(100% - 120px); --ay: 72%; --ao: .3; }   

.astre-lune-gauche    { --aw: 140px; --ax: -70px;             --ay: 70px; --ao: .5; }

.astre-saturne-loin   { --aw: 100px; --ax: calc(100% - 120px); --ay: 40px; --ao: .5; }

.astre-phoebe         { --aw: 300px; --ax: calc(100% - 150px); --ay: 64.5%; --ao: .7; }

.astre-saturne-fin    { --aw: 130px; --ax: 30px;              --ay: 71%; --ao: .45; }

@media (min-width: 900px) {
  .astre-saturne-grande { --aw: 720px; --ax: calc(100% - 450px); --ay: 62%; }
  .astre-lune-soir      { --aw: 150px; --ax: 8%;                 --ay: 10%; }
  .astre-lune-loin      { --aw: 72px;  --ax: calc(100% - 220px); --ay: 16%; }
  .astre-horizon        { --aw: 125vw; --ax: -12.5vw;            --ay: 88%; }
  .astre-lune-bas       { --aw: 220px; --ax: calc(100% - 290px); --ay: 58%; }
  .astre-lune-gauche    { --aw: 300px; --ax: -150px;             --ay: 40%; }
  .astre-saturne-loin   { --aw: 180px; --ax: calc(100% - 300px); --ay: 40px; }
  
  .astre-phoebe         { --aw: 700px; --ax: calc(100% - 230px); --ay: 18%; }
  .astre-saturne-fin    { --aw: 220px; --ax: 12%;                --ay: 70%; }
}

:root { --orbite: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-520 -290 1040 580'%3E%3Cellipse rx='500' ry='167' transform='rotate(-27)' fill='none' stroke='%232a323b' stroke-opacity='.6' stroke-width='3' stroke-linecap='round' stroke-dasharray='.1 9' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
.e3::after, .eag::after, .e5::after, .e6-haut::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: 50%;
  width: calc(var(--rx) * 2 * 1.04); aspect-ratio: 1040 / 580; translate: -50% -50%;
  background: var(--orbite) center / 100% 100% no-repeat;
}

.e3 { overflow: clip; }
.e3::after { --k: 1.3; width: calc(1040px * var(--k)); translate: none;
             left: calc(28px + 48px - (520px + 75.8px) * var(--k)); top: calc(14% + 48px - (290px + 148.8px) * var(--k)); }
@media (min-width: 900px) {
  .e3::after { --k: 1.6; left: calc(8% + 75px - (520px + 75.8px) * var(--k)); top: calc(10% + 75px - (290px + 148.8px) * var(--k)); }
}

.e6-haut::before { top: calc(var(--mot) / 4); width: calc(var(--rx) * 1.04); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html.scene .astre { animation: astre-derive linear both; animation-timeline: view(); }
    html.scene .astre-horizon { --ad: 40px; }   
    html.scene .astre-phoebe  { --ad: 32px; }
    @keyframes astre-derive { from { translate: 0 var(--ad, 20px); } to { translate: 0 calc(var(--ad, 20px) * -1); } }
  }
}
