/* N-500 â€¢ La maquette du 30 septembre, version des fÃªtes.
   Decors are clipped, unmodified pixels. Links, menus, names, counts, gallery
   and conversations are HTML; no screenshot acts as a page or an interface. */
body.fete-portail {
  --cosmos-source:url('/img/noel-2026/accueil-cosmos-source.png');
  --cosmos-bords:var(--cosmos-source);
  --cosmos-carte:url('/img/noel-2026/accueil-carte-9.webp');
  --cosmos-fuchsia:linear-gradient(#d70083,#aa005d);
  --cosmos-bleu:linear-gradient(#137bb3,#075390);
  --cosmos-violet:linear-gradient(#8052d5,#5323af);
  --cosmos-vert:linear-gradient(#44851d,#286810);
  --cosmos-or:linear-gradient(#ffe898,#ffc836);
  --cosmos-espace:radial-gradient(ellipse at 82% 25%,#9b61cd65,transparent 28%),radial-gradient(ellipse at 45% 97%,#5055bc,transparent 55%),linear-gradient(140deg,#071750 2%,#282276 48%,#164a94 84%,#9385d9);
  --cosmos-neige:radial-gradient(circle,#fffaf4 0 1px,transparent 1.8px);
}
/* The eight reference templates have the original illustrated *outer* strips
   in common. The mask is geometrical: the cropped column stops before the
   first pixel of any screenshot menu, dialogue, account, or content panel. */
body.fete-portail.reference-shop {--cosmos-bords:url('/img/reference/shop.webp')}
body.fete-portail.reference-account {--cosmos-bords:url('/img/reference/account.webp')}
body.fete-portail:has(.ref-community) {--cosmos-bords:url('/img/reference/community.webp')}
body.fete-portail:has(.ref-play) {--cosmos-bords:url('/img/reference/play.webp')}
body.fete-portail:has(.ref-help) {--cosmos-bords:url('/img/reference/help.webp')}
body.fete-portail:has(.activity-animation-hero){--cosmos-bords:url('/img/reference/animation.webp')}
body.fete-portail:has(.activity-games-layout){--cosmos-bords:url('/img/reference/games.webp')}
body.fete-portail.ref-theme {
  --ref-ink:#192957;--noel-encre:#172f61;--noel-texte:#213a65;
  color:#20385d;background:#dae8ff linear-gradient(#132e89,#728cdb 32rem,#deedff 58rem,#eff6ff);
}
body.fete-portail.ref-theme::before,body.fete-portail.ref-theme::after{
  width:min(5.45vw,100px);height:min(49.3vw,92vh);top:0;bottom:auto;opacity:1;
  pointer-events:none;background-color:transparent;background-image:var(--cosmos-neige),var(--cosmos-bords);
  background-size:57px 83px,100vw auto;background-repeat:repeat,no-repeat;
  mask-image:linear-gradient(#000 0 90%,transparent);
}
body.fete-portail.ref-theme::before{background-position:7px 21px,left -1.95vw}
body.fete-portail.ref-theme::after{background-position:18px 7px,right -1.95vw}
/* Left slice: x~0â€“650, y32â€“254 of a 1672Ã—941 drawing. Sablier starts well
   to the right. A separate smaller crop makes its original logo a real link. */
body.fete-portail.ref-theme .app-header__sky,
body.fete-portail.fete-autonome .fete-bandeau-autonome {
  box-sizing:border-box;position:relative;isolation:isolate;display:block;
  height:clamp(262px,21.5vw,366px);min-height:0;width:100%;overflow:hidden;
  background:var(--fete-guirlande) center top/auto 18px repeat-x,
    radial-gradient(circle at 25% 40%,#fff 0 1px,transparent 1.6px) 0 0/77px 105px,
    radial-gradient(circle at 70% 25%,#c1dfff 0 1.15px,transparent 2px) 0 0/117px 73px,var(--cosmos-espace);
  border:0;border-bottom:3px solid #ddd7fa;
}
body.fete-portail.ref-theme .app-header__sky .app-header__inner {position:relative;min-height:0;height:100%;width:100%;isolation:isolate}
body.fete-portail.ref-theme .app-header__sky::before,body.fete-portail.fete-autonome .fete-bandeau-autonome::before {
  content:"";display:block;position:absolute;z-index:-1;pointer-events:none;inset:0 auto 0 0;width:10.9%;
  background:var(--cosmos-source) left center/100% auto no-repeat; /* overridden with bounded pixel slice below */
  background-size:103vw auto;background-position:0 -1.995vw;
  /* At this fixed aspect no parts of the screenshot below the sky can show. */
  height:13.7vw;max-height:100%;mask-image:linear-gradient(90deg,#000 60%,transparent),linear-gradient(180deg,#000 85%,transparent);mask-composite:intersect;
}
body.fete-portail.ref-theme .app-header__sky::after {display:none}
body.fete-portail.ref-theme .app-header__sky .brand,
body.fete-portail.fete-autonome .fete-bandeau-autonome::after {
  content:"";display:block;position:absolute;z-index:1;inset:50% auto auto 4.5%;transform:translateY(-50%);
  box-sizing:border-box;width:28%;height:auto;aspect-ratio:480/218;border:0;filter:none;
  background:var(--cosmos-source) 12.25% 4.56%/348.333333% auto no-repeat;
  mask-image:linear-gradient(90deg,transparent,#000 6% 94%,transparent),linear-gradient(180deg,transparent,#000 7% 94%,transparent);mask-composite:intersect;
}
body.fete-portail.ref-theme .app-header__sky .brand:focus-visible {mask-image:none;outline:3px solid #fff297;outline-offset:1px}
body.fete-portail.fete-autonome .fete-bandeau-autonome {pointer-events:auto}
body.fete-portail.fete-autonome .fete-bandeau-autonome::after {pointer-events:none}
body.fete-portail .app-header__sky .noel-parade,body.fete-portail .fete-scene {display:none}
/* The town IS the verified NoÃ«l map bitmap. No gradients or galaxy art
   cover its sky, landmarks or buildings. Only a short snow fringe at the foot. */
.cosmos-scene {
  box-sizing:border-box;position:relative;isolation:isolate;min-width:0;min-height:260px;
  color:#fff;background-color:#314274;background-image:var(--cosmos-carte);
  background-position:50% 62%;background-repeat:no-repeat;background-size:cover;
  overflow:hidden;border:1px solid #cfd9f5;border-bottom:3px solid #fff5cb;
}
.app-header__inner>.cosmos-scene,.fete-bandeau-autonome>.cosmos-scene {
  position:absolute;inset:0 4.8% 0 35%;min-height:0;border-radius:0 0 18px 18px;
  box-shadow:0 2px 12px #060f4e9c;
}
.cosmos-scene .cosmos-titre {position:absolute;top:7px;left:10px;z-index:3;
  padding:4px 10px;margin:0;border-radius:4px;border:1px solid #d0d9f5;color:#ffefbc;background:#25324cef;
  font:700 clamp(.82rem,1.2vw,1.1rem)/1.2 system-ui,sans-serif;text-shadow:none;
}
.cosmos-groupe {
  box-sizing:border-box;position:absolute;isolation:isolate;inset:auto 2% 34px;display:grid;
  grid-template-columns:repeat(10,minmax(0,1fr));align-items:end;
  list-style:none;margin:0;padding:0;gap:0;
}
.cosmos-groupe li {position:relative;min-width:0;margin:0;padding:0;display:grid;align-items:end}
.cosmos-groupe li>a {box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:end;
  min-width:0;min-height:44px;position:relative;text-decoration:none;border-radius:5px;
}
.cosmos-groupe li>a img {order:2;display:block;width:100%;height:clamp(43px,4.4vw,81px);object-fit:contain;object-position:center bottom;filter:drop-shadow(0 2px 1px #1b255799)}
.cosmos-groupe .cosmos-pseudo {
  order:1;box-sizing:border-box;display:block;align-self:center;max-width:100%;padding:2px 4px;margin:0 0 1px;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-radius:4px;
  background:#172033dd;color:white;font:700 clamp(.74rem,.84vw,.86rem)/1.18 Arial,sans-serif;
  text-shadow:0 1px 1px black;text-align:center;
}
.cosmos-groupe .cosmos-bulle {
  box-sizing:border-box;position:absolute;z-index:3;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);
  width:max-content;max-width:min(16ch,14vw);min-height:1.5em;padding:5px 8px;border:1.5px solid #31405b;
  border-radius:11px;background:#fffdf5;color:#1f2c47;font:600 .875rem/1.17 Arial,sans-serif;
  text-align:center;box-shadow:0 2px 1px #171c3959;overflow-wrap:anywhere;
}
.cosmos-groupe .cosmos-bulle::after {content:"";position:absolute;bottom:-5px;left:48%;height:7px;width:7px;background:#fffdf5;border-right:1.5px solid #31405b;border-bottom:1.5px solid #31405b;transform:rotate(45deg)}
.cosmos-groupe li:first-child .cosmos-bulle {left:0;transform:none}
.cosmos-groupe li:last-child .cosmos-bulle {left:auto;right:0;transform:none}
.cosmos-groupe li:first-child .cosmos-bulle::after {left:22%}
.cosmos-groupe li:last-child .cosmos-bulle::after {left:75%}
.cosmos-groupe .cosmos-bulle[hidden] {display:none!important}
.cosmos-groupe a:focus-visible,.cosmos-suite:focus-visible {outline:3px solid #ffe676;outline-offset:-2px;box-shadow:0 0 0 2px #29184d}
.cosmos-legende {
  box-sizing:border-box;position:absolute;bottom:0;left:0;right:0;min-height:28px;
  display:flex;justify-content:center;align-items:center;gap:.55rem;padding:2px 6px;margin:0;
  background:#172443f2;color:#fff8e4;text-align:center;font:600 .79rem/1.2 system-ui,sans-serif;
}
.cosmos-legende .cosmos-suite {padding:3px 9px;border:1px solid #f4d884;border-radius:5px;background:#fff0bc;
  color:#462851;font:700 .79rem/1.25 system-ui,sans-serif;cursor:pointer}
.cosmos-legende .cosmos-suite:hover {background:#fff9df}
body.fete-portail.ref-theme .utility-strip {background:#edf2ff;color:#173466}
body.fete-portail.ref-theme .utility-strip :is(.utility-online,.utility-online b,.utility-welcome,.account-nav a,.utility-welcome>span) {color:#173766}
body.fete-portail.ref-theme .utility-strip .utility-play {background:var(--cosmos-fuchsia);color:white}
body.fete-portail.ref-theme .nav-strip {background:var(--cosmos-fuchsia);border-color:#ff9ada;box-shadow:0 3px 9px #38094f70,inset 0 1px 1px #ffb1e399}
body.fete-portail.ref-theme .nav-mail {background:#b2006f;border-color:#f98bd0}
body.fete-portail.ref-theme .nav-strip :is(.nav-home.is-active,.nav-group.is-active>summary,.nav-group[open]>summary,.nav-home:hover,.nav-group>summary:hover) {background:linear-gradient(#fff3b8,#ffe8a3);color:#7c3013}
body.fete-portail.ref-theme .nav-panel {background:#fff9fd;border-color:#c92a91}
body.fete-portail.ref-theme .nav-strip .nav-panel a {color:#842056}
body.fete-portail.ref-theme .nav-strip .nav-panel a:is(:hover,:focus-visible) {color:white;background:#962362}
body.fete-portail.ref-theme .nav-strip .nav-panel a.is-active:not(:hover):not(:focus-visible) {background:#f4d8e9;color:#67204a}
body.fete-portail.ref-theme :is(.page-card,.ref-panel) {background:linear-gradient(115deg,#fff,#f3f8ff);border-color:#b7d7f1;box-shadow:0 3px 7px #314d8a26}
body.fete-portail.ref-theme :is(.ref-head,.ref-blue>.ref-head,.ref-head.ref-blue) {background:var(--cosmos-bleu);color:#fff}
body.fete-portail.ref-theme :is(.ref-pink>.ref-head,.ref-head.ref-pink) {background:var(--cosmos-fuchsia);color:#fff}
body.fete-portail.ref-theme :is(.ref-violet>.ref-head,.ref-head.ref-violet) {background:var(--cosmos-violet);color:#fff}
body.fete-portail.ref-theme :is(.ref-green>.ref-head,.ref-head.ref-green) {background:var(--cosmos-vert);color:#fff}
body.fete-portail.ref-theme :is(.ref-gold>.ref-head,.ref-head.ref-gold,.ref-ribbon) {background:var(--cosmos-or);color:#572a0d}
body.fete-portail.ref-theme :is(.ref-button,.btn--primary) {background:var(--cosmos-fuchsia);color:white;border-color:#bd297e}
body.fete-portail.ref-theme :is(.ref-button--blue,.btn--violet) {background:var(--cosmos-bleu);color:white}
body.fete-portail.ref-theme .ref-home .ref-home-hero {
  background:linear-gradient(90deg,#141047f5 0%,#19194de8 40%,#211b4748 72%,#11224b08),var(--cosmos-carte) 50% 56%/cover #2a346c!important;
}
body.fete-portail.ref-theme .ref-home .ref-home-hero-shade {background:none}
body.fete-portail.ref-theme .ref-home .ref-home-hero-copy :is(h1,h2) {color:#fff7df;text-shadow:0 2px 4px #211335}
body.fete-portail.ref-theme .ref-home-hero-copy h2 {font:800 clamp(1.45rem,1.85vw,2rem)/1.12 Arial,sans-serif}
body.fete-portail.ref-theme .ref-home .ref-home-main {display:flex;flex-direction:column;gap:10px}
body.fete-portail.ref-theme .ref-home-main>.ref-home-lead{order:0}
body.fete-portail.ref-theme .ref-home-main>.ref-home-lower{order:1}
body.fete-portail.ref-theme .ref-home-main>[aria-labelledby="blablaland-welcome"] {order:2}
body.fete-portail.ref-theme .ref-home-main>#bestiaire-noel{order:3}
body.fete-portail.ref-theme .ref-home-aside {align-content:start;grid-template-rows:auto auto auto}
body.fete-portail.ref-theme .ref-home-birthday .ref-body {height:auto;min-height:140px;gap:.45rem}
body.fete-portail.ref-theme .ref-home .ref-home-all,body.fete-portail.ref-theme .noel-bestiaire-hint {color:#653351}
body.fete-portail.ref-theme .ref-footer {background:var(--fete-guirlande) center top/auto 16px repeat-x,linear-gradient(#f1f4ff,#e1e8ff);color:#263965;padding-top:23px}
@media(min-width:1050px) {
  body.fete-portail.ref-theme .ref-home {grid-template-columns:minmax(0,3.28fr) minmax(220px,1.02fr)}
  body.fete-portail.ref-theme .ref-home-lead {display:grid;grid-template-columns:minmax(0,2.5fr) minmax(185px,1fr);grid-template-rows:minmax(285px,auto)}
  body.fete-portail.ref-theme .ref-home .ref-home-news-list {display:block}
  body.fete-portail.ref-theme .ref-home .ref-home-news-list>a:last-child {display:grid}
}
@media(min-width:1600px){.app-header__inner>.cosmos-scene,.fete-bandeau-autonome>.cosmos-scene{inset-inline:37.5% 6%}}
@media(max-width:1100px) {
  .app-header__inner>.cosmos-scene,.fete-bandeau-autonome>.cosmos-scene {inset-inline:30% 2%}
  body.fete-portail.ref-theme .app-header__sky .brand,body.fete-portail.fete-autonome .fete-bandeau-autonome::after {left:1%;width:28%}
  .cosmos-groupe {grid-template-columns:repeat(5,minmax(0,1fr));row-gap:20px;inset-block-end:33px}
  .cosmos-groupe li>a img {height:42px}
  .cosmos-groupe li:nth-child(6) .cosmos-bulle {left:0;transform:none}
  .cosmos-groupe li:nth-child(5) .cosmos-bulle {right:0;left:auto;transform:none}
}
@media(max-width:760px) {
  body.fete-portail.ref-theme .app-header__sky,body.fete-portail.fete-autonome .fete-bandeau-autonome {height:auto;padding-top:68px}
  body.fete-portail.ref-theme .app-header__sky .app-header__inner {position:static;height:auto}
  body.fete-portail.ref-theme .app-header__sky::before,body.fete-portail.fete-autonome .fete-bandeau-autonome::before {width:24%;height:68px;mask-image:linear-gradient(90deg,#000 16%,transparent);background-size:230vw auto;background-position:0 -4.4vw}
  body.fete-portail.ref-theme .app-header__sky .brand,body.fete-portail.fete-autonome .fete-bandeau-autonome::after {
    inset:0 0 auto 0;transform:none;margin-inline:auto;width:150px;height:68px;aspect-ratio:auto;
  }
  .app-header__inner>.cosmos-scene,.fete-bandeau-autonome>.cosmos-scene,.cosmos-scene {
    position:relative;inset:auto;min-height:262px;width:100%;border:0;border-radius:0;background-position:50% 59%
  }
  .cosmos-scene .cosmos-titre {font-size:.75rem;left:4px;top:4px;padding:2px 6px}
  .cosmos-groupe {inset:auto 1% 32px;grid-template-columns:repeat(5,minmax(0,1fr));row-gap:35px}
  .cosmos-groupe li>a img {height:clamp(35px,9.4vw,49px)}
  .cosmos-groupe .cosmos-pseudo {font-size:.74rem;padding:1px 2px}
  .cosmos-groupe .cosmos-bulle {max-width:min(16ch,36vw);font-size:.76rem;padding:3px 5px}
  .cosmos-legende {gap:4px;font-size:.73rem;min-height:26px;padding:2px 3px}
  .cosmos-legende .cosmos-suite {font-size:.73rem;padding:3px 5px}
  body.fete-portail.ref-theme .ref-home-birthday .ref-body {min-height:0}
}
@media(prefers-contrast:more){.cosmos-groupe .cosmos-pseudo,.cosmos-legende,.cosmos-scene .cosmos-titre {background:#11172d}}
@media(forced-colors:active){.cosmos-groupe .cosmos-bulle,.cosmos-groupe .cosmos-pseudo,.cosmos-legende {color:CanvasText;background:Canvas;border:1px solid CanvasText}}
@media print {.cosmos-scene {display:none!important}}

/* Terrain anchors in the actual 824Ã—425 map 9. Keep original aspect ratio
   (including crystal, rainbow, roof and both snowy banks). The legend gets a
   separate opaque strip *below* the frame; it never covers a character. */
body.fete-portail .app-header__sky,body.fete-portail.fete-autonome .fete-bandeau-autonome {
  --scene-w:min(60vw,800px);--scene-h:calc(var(--scene-w) * 425 / 824);--dock:30px;
}
body.fete-portail.ref-theme .app-header__sky,body.fete-portail.fete-autonome .fete-bandeau-autonome {
  height:calc(var(--scene-h) + var(--dock) + 4px);
}
.app-header__inner>.cosmos-scene,.fete-bandeau-autonome>.cosmos-scene {
  inset:0 auto auto 35%;width:var(--scene-w);height:calc(var(--scene-h) + var(--dock));max-height:100%;
  border:0;border-radius:0 0 10px 10px;
}
.cosmos-scene {--dock:30px;background-position:center top;background-size:auto calc(100% - var(--dock))}
.cosmos-legende {min-height:var(--dock);height:var(--dock)}
.cosmos-scene .cosmos-groupe {display:block;position:absolute;inset:0 0 var(--dock) 0;margin:0;padding:0}
.cosmos-scene .cosmos-groupe li {
  display:block;position:absolute;left:var(--x);top:var(--y);width:9%;height:auto;transform:translate(-50%,-100%);
}
.cosmos-scene .cosmos-groupe li>a img {height:clamp(40px,4.3vw,65px)}
.cosmos-groupe .cosmos-bulle {pointer-events:none}
.cosmos-groupe li:nth-child(1){--x:5.5%;--y:83%}
.cosmos-groupe li:nth-child(2){--x:55%;--y:94%}
.cosmos-groupe li:nth-child(3){--x:15.4%;--y:83%}
.cosmos-groupe li:nth-child(4){--x:64.9%;--y:93%}
.cosmos-groupe li:nth-child(5){--x:25.3%;--y:86%}
.cosmos-groupe li:nth-child(6){--x:74.8%;--y:92%}
.cosmos-groupe li:nth-child(7){--x:35.2%;--y:91%}
.cosmos-groupe li:nth-child(8){--x:84.7%;--y:87%}
.cosmos-groupe li:nth-child(9){--x:45.1%;--y:93%}
.cosmos-groupe li:nth-child(10){--x:94.6%;--y:81%}
@media(min-width:761px) and (max-width:1100px){
  body.fete-portail .app-header__sky,body.fete-portail.fete-autonome .fete-bandeau-autonome{--scene-w:67vw}
  .app-header__inner>.cosmos-scene,.fete-bandeau-autonome>.cosmos-scene{left:31%}
}
@media(min-width:1600px){
  .app-header__inner>.cosmos-scene,.fete-bandeau-autonome>.cosmos-scene{left:calc(50% - 220px)}
}
@media(max-width:760px){
  body.fete-portail.ref-theme .app-header__sky,body.fete-portail.fete-autonome .fete-bandeau-autonome {height:auto}
  .app-header__inner>.cosmos-scene,.fete-bandeau-autonome>.cosmos-scene,.cosmos-scene {
    --dock:30px;position:relative;inset:auto;width:100%;height:clamp(290px,65vw,355px);min-height:0;
    border:0;border-radius:0;background-size:cover;background-size:auto max(calc(100% - var(--dock)),51.58vw);
    background-position:center top;
  }
  .cosmos-scene .cosmos-groupe li {width:17%}
  .cosmos-scene .cosmos-groupe li>a img {height:clamp(37px,10vw,50px)}
  /* Two paths: the five on the elevated railing and the five on the ground. */
  .cosmos-groupe li:nth-child(1){--x:10%;--y:65%}
  .cosmos-groupe li:nth-child(2){--x:71%;--y:67%}
  .cosmos-groupe li:nth-child(3){--x:30%;--y:68%}
  .cosmos-groupe li:nth-child(4){--x:90%;--y:70%}
  .cosmos-groupe li:nth-child(5){--x:50%;--y:65%}
  .cosmos-groupe li:nth-child(6){--x:10%;--y:91%}
  .cosmos-groupe li:nth-child(7){--x:71%;--y:94%}
  .cosmos-groupe li:nth-child(8){--x:30%;--y:93%}
  .cosmos-groupe li:nth-child(9){--x:90%;--y:92%}
  .cosmos-groupe li:nth-child(10){--x:50%;--y:95%}
  .cosmos-groupe li:nth-child(n) .cosmos-bulle {left:50%;right:auto;transform:translateX(-50%);max-width:min(15ch,34vw)}
  .cosmos-groupe li:is(:nth-child(1),:nth-child(6)) .cosmos-bulle {left:0;transform:none}
  .cosmos-groupe li:is(:nth-child(4),:nth-child(9)) .cosmos-bulle {left:auto;right:0;transform:none}
}

/* Build the two illustrated wings entirely from the two safe edges of
   the original: all its art is retained here except the hourglass, mascot,
   screenshots of menus and personal text. Crop the map vertically, not
   anamorphically. Coordinates stay in its actual 824Ã—425 frame. */
@media(min-width:761px){
  body.fete-portail.ref-theme .app-header__sky,body.fete-portail.fete-autonome .fete-bandeau-autonome{
    --scene-w:55.6vw; --dock:30px; --scene-window:clamp(200px,17.3vw,300px);
    height:calc(var(--scene-window) + var(--dock) + 4px);
  }
  body.fete-portail.ref-theme .app-header__sky::before,body.fete-portail.fete-autonome .fete-bandeau-autonome::before{
    inset:0 auto 0 0;width:34%;height:100%;max-height:none;display:block;z-index:-1;
    border:0;border-radius:0;box-shadow:none;filter:none;transform:none;mask-image:none;
    background:linear-gradient(180deg,#161e7908,#3618661a),var(--cosmos-source) 0 13.5%/1020% auto no-repeat;
  }
  body.fete-portail.ref-theme .app-header__sky .brand,body.fete-portail.fete-autonome .fete-bandeau-autonome::after{
    display:block;inset:50% auto auto 0;transform:translateY(-50%);width:33.85%;height:auto;aspect-ratio:625/224;
    background:var(--cosmos-source) 0 4.36%/267.52% auto no-repeat;border:0;border-radius:0;
    mask-image:linear-gradient(180deg,transparent,#000 11% 86%,transparent);
  }
  body.fete-portail.ref-theme .app-header__sky::after{
    position:absolute;display:block;content:"";inset:0 0 0 auto;width:10.6%;z-index:-1;pointer-events:none;
    border:0;border-radius:0;box-shadow:none;filter:none;transform:none;mask-image:none;
    background:var(--cosmos-source) 0 11%/1140% auto no-repeat;
  }
  body.fete-portail.ref-theme .app-header__sky .app-header__inner::after{
    position:absolute;display:block;content:"";right:0;top:50%;z-index:1;transform:translateY(-50%);pointer-events:none;
    width:10.6%;height:auto;aspect-ratio:168/224;
    /* x1504â€¦1671 contains the whole sign/crystals, no penguin, no fake link. */
    background:var(--cosmos-source) 100% 4.36%/995.2381% auto no-repeat;
    mask-image:linear-gradient(180deg,transparent,#000 10% 90%,transparent);
  }
  .app-header__inner>.cosmos-scene,.fete-bandeau-autonome>.cosmos-scene {
    inset:0 auto auto 33.85%;width:var(--scene-w);height:calc(var(--scene-window) + var(--dock));border-radius:0;
    border-inline:1px solid #9996db;background-size:100% auto;background-position:center bottom var(--dock);
    box-shadow:0 2px 12px #0e104f70;
  }
  .cosmos-scene .cosmos-groupe {inset:auto 0 var(--dock);height:auto;aspect-ratio:824/425}
}
.cosmos-scene .cosmos-groupe {container-type:size}
.cosmos-scene .cosmos-groupe li {top:calc(var(--sol) * 1%)}
.cosmos-groupe li:nth-child(1){--sol:83}.cosmos-groupe li:nth-child(2){--sol:94}
.cosmos-groupe li:nth-child(3){--sol:83}.cosmos-groupe li:nth-child(4){--sol:93}
.cosmos-groupe li:nth-child(5){--sol:86}.cosmos-groupe li:nth-child(6){--sol:92}
.cosmos-groupe li:nth-child(7){--sol:91}.cosmos-groupe li:nth-child(8){--sol:87}
.cosmos-groupe li:nth-child(9){--sol:93}.cosmos-groupe li:nth-child(10){--sol:81}
.cosmos-groupe .cosmos-pseudo{
  white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.05;
}
.cosmos-groupe li .cosmos-bulle{
  bottom:calc((var(--sol) - 50) * 1cqh);pointer-events:none;z-index:4;
}
@media(max-width:760px){
  .cosmos-groupe li:nth-child(1){--sol:65}.cosmos-groupe li:nth-child(2){--sol:67}
  .cosmos-groupe li:nth-child(3){--sol:68}.cosmos-groupe li:nth-child(4){--sol:70}
  .cosmos-groupe li:nth-child(5){--sol:65}.cosmos-groupe li:nth-child(6){--sol:91}
  .cosmos-groupe li:nth-child(7){--sol:94}.cosmos-groupe li:nth-child(8){--sol:93}
  .cosmos-groupe li:nth-child(9){--sol:92}.cosmos-groupe li:nth-child(10){--sol:95}
  .cosmos-groupe li .cosmos-bulle{bottom:calc((var(--sol) - 32) * 1cqh)}
}
/* Natural undistorted crop, one continuous wing and a single live logo link.
   Fill the few pixels outside the source strip with snow and evergreen, not
   with a second magnified copy of the illustration or the next row of UI. */
@media(min-width:761px){
  body.fete-portail.ref-theme .app-header__sky::before,body.fete-portail.fete-autonome .fete-bandeau-autonome::before,
  body.fete-portail.ref-theme .app-header__sky::after{
    background:radial-gradient(ellipse 92% 8% at 26% 105%,#fffaf0 64%,#b8d3ef 66%,transparent 71%),
      radial-gradient(ellipse 67% 7% at 88% 103%,#e1f4ff 55%,#7d91c7 58%,transparent 64%),
      var(--cosmos-neige) 0 0/47px 75px,linear-gradient(#11225f,#392b81 63%,#6689c1);
  }
  body.fete-portail.ref-theme .app-header__sky .brand,body.fete-portail.fete-autonome .fete-bandeau-autonome::after{
    width:33.85%;height:min(calc(100% - 12px),18.1vw);aspect-ratio:auto;
    background:var(--cosmos-source) 14% 4.36%/auto 420.09% no-repeat;
    mask-image:linear-gradient(180deg,transparent,#000 4% 96%,transparent);
  }
  body.fete-portail.ref-theme .app-header__sky .app-header__inner::before{
    content:"";position:absolute;display:block;inset:0 0 auto;height:15px;transform:none;border:0;border-radius:0;
    opacity:1;z-index:3;pointer-events:none;background:var(--fete-guirlande) center top/auto 15px repeat-x;
    mask-image:linear-gradient(90deg,#000 33.8%,transparent 33.85% 89.45%,#000 89.5%);
  }
  body.fete-portail.ref-theme .app-header__sky .app-header__inner::after{
    mask-image:linear-gradient(180deg,transparent,#000 6% 96%,transparent);
  }
  .cosmos-scene .cosmos-titre{
    top:auto;bottom:0;left:0;max-width:32%;min-height:var(--dock);
    box-sizing:border-box;display:grid;align-items:center;margin:0;padding:2px 6px;border:0;border-radius:0;
    font:700 clamp(.72rem,.89vw,.87rem)/1.12 Arial,sans-serif;color:#ffeaaf;background:#172443;pointer-events:none;
  }
  .cosmos-scene .cosmos-legende{padding-left:clamp(124px,10.2vw,160px)}
  .cosmos-groupe li .cosmos-bulle{bottom:calc((var(--sol) - 54) * 1cqh);max-width:min(21ch,19vw);text-wrap:balance}
}
/* Narrow tablets: keeping both ornamental wings would make the cast fit
   into only ~440px at 800px. Keep the real logo link and a full-width bank
   for all ten sprites. Only the masthead changes; navigation is untouched. */
@media(min-width:761px) and (max-width:1023px){
  body.fete-portail.ref-theme .app-header__sky,body.fete-portail.fete-autonome .fete-bandeau-autonome{
    --scene-w:76vw;--scene-window:clamp(208px,24.8vw,253px);
  }
  .app-header__inner>.cosmos-scene,.fete-bandeau-autonome>.cosmos-scene{inset-inline:24% auto}
  body.fete-portail.ref-theme .app-header__sky::before,body.fete-portail.fete-autonome .fete-bandeau-autonome::before,
  body.fete-portail.ref-theme .app-header__sky .brand,body.fete-portail.fete-autonome .fete-bandeau-autonome::after{
    width:24%;
  }
  body.fete-portail.ref-theme .app-header__sky .brand,body.fete-portail.fete-autonome .fete-bandeau-autonome::after{
    height:12.5vw;
  }
  body.fete-portail.ref-theme .app-header__sky::after,body.fete-portail.ref-theme .app-header__sky .app-header__inner::after{display:none}
  body.fete-portail.ref-theme .app-header__sky .app-header__inner::before{
    mask-image:linear-gradient(90deg,#000 23.9%,transparent 24%);
  }
}

/* NoÃ«l 2026 : mÃªme composition que le tÃ©lÃ©phone, sur toute la largeur.
   L'en-tÃªte reste un vrai lien, les menus gardent tous leurs liens existants,
   et la scÃ¨ne n'est jamais superposÃ©e aux contrÃ´les. */
@media (min-width:761px) {
  body.fete-portail.ref-theme .app-header__sky {
    --dock:30px;
    height:auto;
    padding-top:116px;
    overflow:hidden;
    background:var(--fete-guirlande) center top/auto 18px repeat-x,
      radial-gradient(circle at 25% 40%,#fff 0 1px,transparent 1.6px) 0 0/77px 105px,
      var(--cosmos-espace);
  }
  body.fete-portail.ref-theme .app-header__sky .app-header__inner {
    position:static;
    height:auto;
    width:100%;
  }
  body.fete-portail.ref-theme .app-header__sky::before {
    inset:0 auto auto 0;
    width:190px;
    height:116px;
    max-height:none;
    z-index:0;
    background:var(--cosmos-source) 0 -17px/1220px auto no-repeat;
    mask-image:linear-gradient(90deg,#000 5%,transparent 95%);
  }
  body.fete-portail.ref-theme .app-header__sky::after,
  body.fete-portail.ref-theme .app-header__sky .app-header__inner::after {
    display:none;
  }
  body.fete-portail.ref-theme .app-header__sky .app-header__inner::before {
    inset:0 0 auto;
    width:100%;
    height:17px;
    mask-image:none;
  }
  body.fete-portail.ref-theme .app-header__sky .brand {
    inset:9px 0 auto;
    width:240px;
    height:102px;
    margin-inline:auto;
    transform:none;
    background:var(--cosmos-source) 12.25% 4.56%/348.333333% auto no-repeat;
    mask-image:linear-gradient(90deg,transparent,#000 6% 94%,transparent),
      linear-gradient(180deg,transparent,#000 7% 94%,transparent);
    mask-composite:intersect;
  }
  body.fete-portail.ref-theme .app-header__sky .app-header__inner>.cosmos-scene {
    position:relative;
    inset:auto;
    width:100%;
    height:clamp(290px,35vw,470px);
    max-height:none;
    border:0;
    border-radius:0;
    background-size:cover;
    background-position:center bottom var(--dock);
  }
  body.fete-portail.ref-theme .cosmos-scene .cosmos-groupe {
    inset:0 0 var(--dock);
    width:100%;
    height:auto;
    aspect-ratio:auto;
  }
  body.fete-portail.ref-theme .cosmos-scene .cosmos-groupe li>a img {
    height:clamp(50px,5.4vw,82px);
  }
  body.fete-portail.ref-theme .cosmos-scene .cosmos-titre {
    max-width:28%;
  }
}
/* Bordures de fÃªte uniquement autour des commandes de navigation existantes. */
body.fete-portail.ref-theme .nav-strip {
  background:var(--fete-guirlande) center top/auto 13px repeat-x,
    linear-gradient(180deg,#b81045,#850b38);
  border:1px solid #ebcf88;
  box-shadow:0 3px 9px #38094f70,inset 0 1px 1px #ffe6b280;
  padding-top:14px;
}
body.fete-portail.ref-theme .nav-strip :is(.nav-home,.nav-group>summary,.nav-mail) {
  border-radius:8px;
  text-shadow:0 1px 1px #50152c;
}
body.fete-portail.ref-theme .nav-strip :is(.nav-home.is-active,.nav-group.is-active>summary,.nav-group[open]>summary,.nav-home:hover,.nav-group>summary:hover) {
  text-shadow:none;
}
