/* Le ciel de la page · le soleil fait sa course (aube, jour, heure dorée, coucher, crépuscule), puis la lune et les étoiles,
   selon l'heure dans la ville où Axi se trouve aujourd'hui. Tout est piloté par carte.js (majCiel) :
   classe ciel-jour / ciel-aube / ciel-nuit sur <html>, variables --ciel-haut, --ciel-milieu, --ciel-bas (couleurs du ciel),
   --ciel-lumiere (0 = nuit, 1 = plein jour), et les calques #ciel posés tout au fond de la page, derrière la neige et le contenu.
   En pleine nuit le dégradé s'efface : c'est l'ambiance d'origine (index.html + noel.css). Chargé APRÈS noel.css. */
#ciel{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
#ciel i,#ciel div{position:absolute;display:block}
#ciel .ciel-fond{inset:0;opacity:var(--ciel-fond,0);background:linear-gradient(180deg,var(--ciel-haut,#1A1D2E) 0%,var(--ciel-milieu,#1A1D2E) 58%,var(--ciel-bas,#12141F) 100%)}
/* quelques étoiles fixes, la nuit seulement */
#ciel .ciel-etoiles{inset:0 0 30% 0;opacity:calc(var(--ciel-etoiles,1)*.8);background:
  radial-gradient(1.2px 1.2px at 12% 18%,#fff 50%,transparent 51%),radial-gradient(1px 1px at 31% 42%,#DCE4FF 50%,transparent 51%),
  radial-gradient(1.4px 1.4px at 47% 9%,#fff 50%,transparent 51%),radial-gradient(1px 1px at 63% 33%,#fff 50%,transparent 51%),
  radial-gradient(1.2px 1.2px at 78% 14%,#DCE4FF 50%,transparent 51%),radial-gradient(1px 1px at 91% 47%,#fff 50%,transparent 51%),
  radial-gradient(1px 1px at 22% 68%,#fff 50%,transparent 51%),radial-gradient(1.3px 1.3px at 55% 61%,#DCE4FF 50%,transparent 51%),
  radial-gradient(1px 1px at 84% 72%,#fff 50%,transparent 51%),radial-gradient(1px 1px at 5% 51%,#fff 50%,transparent 51%);
  background-size:520px 420px}
/* la zone où passent le soleil et la lune : elle s'arrête à l'horizon, caché par les collines de neige */
#ciel .ciel-air{inset:0 0 34px 0;overflow:hidden}
#ciel .ciel-soleil,#ciel .ciel-lune{width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;left:50%;top:150%;opacity:0;will-change:left,top}
#ciel .ciel-soleil{--astre:#FFF6D2;background:radial-gradient(circle,#fff 0%,var(--astre) 62%);
  box-shadow:0 0 30px 8px color-mix(in srgb,var(--astre) 55%,transparent),0 0 110px 44px color-mix(in srgb,var(--astre) 22%,transparent)}
#ciel .ciel-lune{width:40px;height:40px;margin:-20px 0 0 -20px;overflow:hidden;background:radial-gradient(circle at 38% 34%,#fff 0%,#E9EDFF 55%,#C9D1F5 100%);box-shadow:0 0 26px 6px rgba(201,209,245,.28)}
#ciel .ciel-lune b{position:absolute;inset:-1px;border-radius:50%;background:#171B3A}
/* les collines de neige prennent la lumière du jour et la couleur de l'horizon (celles de noel.css restent dessous, pour la nuit) */
#ciel .ciel-collines{left:0;right:0;bottom:0;height:150px;opacity:calc(var(--ciel-lumiere,0)*.92);
  background:linear-gradient(180deg,color-mix(in srgb,#fff 62%,var(--ciel-bas,#fff)),#fff 85%);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'%3E%3Cpath d='M0 150V86c150-46 300-50 470-18s330 22 470-12 200-22 260-6v100z' fill-opacity='.6'/%3E%3Cpath d='M0 150v-34c200-40 380-30 560-8s420 10 640-28v70z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'%3E%3Cpath d='M0 150V86c150-46 300-50 470-18s330 22 470-12 200-22 260-6v100z' fill-opacity='.6'/%3E%3Cpath d='M0 150v-34c200-40 380-30 560-8s420 10 640-28v70z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat}
html.ciel-jour,html.ciel-aube{background-color:var(--ciel-haut)}
@media(max-width:560px){
  #ciel .ciel-air{bottom:20px} #ciel .ciel-collines{height:90px}
  #ciel .ciel-soleil{width:36px;height:36px;margin:-18px 0 0 -18px;box-shadow:0 0 22px 6px color-mix(in srgb,var(--astre) 55%,transparent),0 0 80px 34px color-mix(in srgb,var(--astre) 22%,transparent)}
  #ciel .ciel-lune{width:28px;height:28px;margin:-14px 0 0 -14px}
}

/* ---- lisibilité de jour : ce qui est posé directement sur le ciel ---- */
html.ciel-jour header h1,html.ciel-aube header h1{text-shadow:0 2px 14px rgba(16,28,110,.5)}
html.ciel-jour header h1 small{color:#fff}
/* les cases bleues à jouer se détachent du ciel bleu par un fin liseré clair */
html.ciel-jour .cal .c.paquet{outline:2px solid rgba(255,255,255,.4);outline-offset:-2px}
html.ciel-jour footer,html.ciel-aube footer{color:color-mix(in srgb,#1D2A6B calc(var(--ciel-lumiere,0)*100%),#C9D1F5)}
/* le crédit de la carte peut se trouver sur n'importe quelle teinte du ciel : il prend sa propre pastille */
html.ciel-jour .vy-credit,html.ciel-aube .vy-credit{display:table;margin-left:auto;margin-right:auto;background:rgba(18,22,60,.6);color:#E3E8FB;padding:4px 12px;border-radius:999px}
