/* Keep essential content available even when the navigation expands on a short screen. */
.mast .shows-menu>summary{display:flex;align-items:center;gap:.45em}
.mast .shows-menu>summary::after{content:none}
.submenu-glyph{width:17px;height:17px;fill:currentColor;opacity:.7;transition:transform .2s}
.shows-menu[open] .submenu-glyph{transform:rotate(45deg)}
.mast .shows-menu>.submenu{
  width:min(440px,80vw);
  top:calc(100% + 8px);
  left:50%;
  transform:translateX(-55%);
  padding:8px;
}
.mast .shows-menu[open]>.submenu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.mast .shows-menu>.submenu a{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  padding:8px;
  border:1px solid #fff2;
  border-radius:10px;
  font-size:1rem;
  line-height:1.2;
}
.shows-menu .submenu a img{width:66px;height:auto;flex:none;border-radius:4px}
.shows-menu .submenu a:hover,.shows-menu .submenu a[aria-current]{background:#fff1}
.mast .lang-switch summary{
  border:1px solid #fff5;
  border-radius:50px;
  padding:.15rem .52rem;
  min-height:34px;
  font:600 .78rem/1.2 Karma,Georgia,serif;
  letter-spacing:.07em;
  gap:.28rem;
}
.mast .lang-switch summary::after{content:none}
.mast .lang-switch[open] summary,.mast .lang-switch summary:hover{background:#fff2}
.language-globe{width:17px;height:17px;stroke:currentColor;stroke-width:1.4;fill:none}

#spectacles .catalog h3{font-size:clamp(19px,1.55vw,29px);line-height:1.13}
.closing.block{isolation:isolate}
.closing.block::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:url('/assets/duo-photo.webp') 82% 43%/cover no-repeat;
  opacity:.14;
  mask-image:linear-gradient(90deg,transparent 20%,#000 74%);
}

.musicians{background:#f7e1eb}
.musician-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(22px,5vw,70px);margin-top:clamp(24px,4vw,56px)}
.musician-card{padding:clamp(20px,3.4vw,47px);border:1px solid #75254c23;border-radius:24px;background:#fff9}
.musician-card img{width:clamp(85px,10vw,134px);height:auto;border-radius:50%;object-fit:cover;margin-bottom:1rem}
.musician-card h3{font-size:clamp(26px,3vw,45px);margin-bottom:.65rem}
.musician-card p{max-width:55ch}
.milestones{background:#fceaf1}
.milestone-list{padding:0;margin:clamp(30px,5vw,70px) 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none}
.milestone-list li{position:relative;border-top:1px solid #ac5d7b7a;padding:1.45rem 1rem 0 0}
.milestone-list li::before{content:'';position:absolute;left:0;top:-6px;width:11px;height:11px;border-radius:50%;background:#ab315e}
.milestone-list time,.milestone-list strong,.milestone-list small{display:block}
.milestone-list time{font-weight:700;color:#9b2553;margin-bottom:.6rem}
.milestone-list strong{font:700 clamp(1.1rem,2vw,1.7rem)/1.14 var(--display);margin-bottom:.35rem}

@media(min-width:651px){
  .cover:has(.poster-duo) .lead,.about-cover .lead,.cover:has(.crystal-art) .lead{transform:translateY(-5svh)}
  .cover:has(.poster-duo) h1{font-size:clamp(3rem,5.5vw,7.2rem);letter-spacing:-.06em;white-space:nowrap}
  .cover:has(.poster-duo) .art:after{background:linear-gradient(90deg,var(--ground),transparent 9%)}
  .cover:has(.poster-stage:not(.poster-duo)) .animated-art{place-items:end}
  .cover .poster-stage:not(.poster-duo){width:clamp(100%,143cqh,139%);margin-left:auto}
}
@media(max-width:820px){
  .mast .shows-menu>.submenu{width:100%;transform:none;box-shadow:none}
  .mast nav.open{max-height:calc(100dvh - 85px);overflow:auto}
  .mast .shows-menu>.submenu a{font-size:.89rem}
}
@media(max-width:650px){
  .cover:has(.poster-duo) h1{font-size:clamp(2.75rem,9vw,4.25rem);white-space:normal}
  .cover:has(.poster-duo) h1 br{display:initial}
  .cover:has(.poster-duo) h1 span::before{content:none}
  .cover:has(.poster-duo) .art:after{background:linear-gradient(0deg,var(--ground),transparent 5%)}
  .cover:has(.poster-stage:not(.poster-duo)) .animated-art{place-items:end}
  .musician-grid{grid-template-columns:1fr}
  .milestone-list{grid-template-columns:1fr;margin-left:5px}
  .milestone-list li{padding:0 0 1.65rem 1.35rem;border-top:0;border-left:1px solid #ac5d7b7a}
  .milestone-list li::before{top:.42rem;left:-6px}
  .shows-menu .submenu a img{width:48px}
}
@media(max-width:360px){
  .mast .shows-menu[open]>.submenu{grid-template-columns:1fr}
  .mast .lang-switch summary{padding-inline:.35rem}
  .language-globe{width:14px;height:14px}
}
.mast details.lang-switch>summary::after{content:none}
.cover:has(.poster-stage:not(.poster-duo)) .poster-stage{
  position:absolute;
  right:0;
  bottom:0;
  transform-origin:right bottom;
}
@media(min-width:651px){.about-frame{position:absolute;right:0;bottom:0}}

.mast .submenu-glyph{width:15px;height:15px}
.shows-menu[open] .submenu-glyph{transform:rotate(180deg)}
.language-flag{display:block;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px #fff4;flex:none}
.mast details.lang-switch>summary{justify-content:center;width:42px;height:42px;border:0;padding:0;background:transparent}
.mast details.lang-switch[open]>summary,.mast details.lang-switch>summary:hover{background:#fff2}
.mast .lang-choices a{justify-content:flex-start;gap:10px}
.mast .lang-choices a[aria-current=true]::after{margin-left:auto}
.closing.block::before{
  inset:0 13% 0 37%;
  background:url('/assets/programmation-portrait.webp') center 43%/cover no-repeat;
  opacity:.18;
  mask-image:linear-gradient(90deg,transparent,#000 24% 77%,transparent);
}

/* The wider artwork is anchored to the floor of the hero. Let its own
   aspect ratio determine the top edge and keep the typeset poster intact. */
.cover .poster-stage.wide-poster{
  aspect-ratio:var(--poster-ratio);
  width:100%;
  max-width:100%;
}
.cover:has(.wide-poster) .animated-art::after{
  background:linear-gradient(90deg,var(--ground),transparent 24%);
}
.cover .wide-poster img{mask-image:linear-gradient(180deg,transparent,#000 8%)}
@media(min-width:651px){
  .cover:has(.wide-poster) .animated-art{width:81%}
  .cover .poster-stage.wide-poster{width:min(100%,calc(90cqh * (var(--poster-ratio))))}
  .cover:has(.crystal-art){justify-content:flex-end}
  .cover .crystal-art{left:0;right:auto;width:76%}
  .cover .crystal-art img{object-position:56% center}
  .cover .crystal-art::after{background:linear-gradient(270deg,var(--ground),transparent 25%)}
  .cover:has(.crystal-art) .lead{width:37%;padding:120px var(--gutter) 78px 0}
}
@media(max-width:650px){
  .cover:has(.wide-poster) .animated-art{aspect-ratio:var(--poster-mobile-ratio,1.5)}
  .cover:has(.wide-poster) .animated-art::after{background:linear-gradient(0deg,var(--ground),transparent 9%)}
  .closing.block::before{inset:0 0 0 32%;background-position:center 25%}
}

/* Keep every composition anchored at the bottom. The individual widths vary
   with the art, and the aspect ratio always matches the original. */
.poster-rammstein{--poster-zoom:1.22;--poster-height:103cqh;--poster-offset:-16%}
.poster-sorcellerie{--poster-zoom:1.14;--poster-height:98cqh;--poster-offset:-5%}
.poster-carnaval{--poster-zoom:1.19;--poster-height:101cqh;--poster-offset:-13%}
.poster-petit-prince{--poster-zoom:1.055;--poster-height:94cqh;--poster-offset:-2%}
@media(min-width:651px){
  .cover .wide-poster.poster-stage{
    width:min(calc(100% * var(--poster-zoom)),calc(var(--poster-height) * (var(--poster-ratio))));
    max-width:none;
    right:var(--poster-offset);
    transform-origin:bottom center;
  }
}
@media(max-width:650px){
  .cover:has(.poster-rammstein,.poster-carnaval){--poster-mobile-ratio:1.38}
  .cover:has(.poster-sorcellerie){--poster-mobile-ratio:1.41}
  .cover:has(.poster-petit-prince){--poster-mobile-ratio:1.48}
  .cover .wide-poster:is(.poster-rammstein,.poster-carnaval){width:106%;max-width:none;right:-2.5%}
  .cover .wide-poster.poster-sorcellerie{width:104%;max-width:none;right:-1.5%}
}

#film{
  width:min(920px,calc(100vw - 28px));
  max-height:90dvh;
  padding:clamp(15px,3vw,30px);
  color:#25231e;
  background:#faf4e9;
  border:1px solid #fffb;
  border-radius:clamp(18px,4vw,32px);
  overflow:auto;
  box-shadow:0 25px 85px #12161075;
}
#film::backdrop{background:#1a201b8c;backdrop-filter:blur(7px)}
#film .close{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  padding:0 0 2px;
  border:1px solid #655d4d55;
  border-radius:50%;
  font:1.6rem/1 Arial,sans-serif;
}
#film .close:hover{background:#ebded0}
#film h2{font-size:clamp(1.3rem,3vw,2.5rem);margin:2px 54px 16px 0}
#film .player{border-radius:clamp(10px,2vw,18px);overflow:hidden;background:#151610}
#film iframe{display:block}
#film .under{display:inline-block;margin-top:13px}
.jt-screen{border-radius:clamp(12px,2.5vw,24px);overflow:hidden}
.jt-screen a:focus-visible{outline-offset:-5px}

/* Dedicated mobile compositions. Desktop posters stay in place. */
.mobile-poster{display:none}
.cover .wide-poster picture{display:contents}
@media(max-width:650px){
  .cover:has(.poster-duo) .animated-art{aspect-ratio:1024/722}
  .cover:has(.poster-rammstein) .animated-art{aspect-ratio:1024/780}
  .cover:has(.poster-petit-prince) .animated-art{aspect-ratio:1024/770}
  .cover:has(.poster-sorcellerie) .animated-art{aspect-ratio:1024/804}
  .cover:has(.poster-carnaval) .animated-art{aspect-ratio:1024/712}
  .about-cover .about-art{aspect-ratio:1024/854}
  .cover:has(.crystal-art) .crystal-art{aspect-ratio:1024/695;width:100%}
  .cover .wide-poster.poster-stage:has(picture),
  .poster-duo:has(.mobile-poster),
  .about-frame:has(.mobile-poster){
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    max-width:none;
    right:0;
    aspect-ratio:auto;
  }
  .cover .wide-poster picture img,
  .mobile-poster{
    display:block;
    object-fit:cover;
    mask-image:none;
    z-index:1;
  }
  .poster-duo:has(.mobile-poster) > :not(.mobile-poster),
  .about-frame:has(.mobile-poster) > :not(.mobile-poster),
  .crystal-art > img:not(.mobile-poster){display:none}
}

/* iPhone 12 mini: 375px wide, short Safari viewport. Keep the poster whole and the title on the first screen. */
@media(max-width:400px){
  .cover{
    height:100svh;
    min-height:100svh;
    max-height:100svh;
    padding:64px 0 48px;
    justify-content:flex-start;
    overflow:hidden;
  }
  .cover .lead{flex:none;width:100%;padding:8px var(--gutter) 0}
  .cover .art,
  .cover .animated-art,
  .about-cover .about-art,
  .cover .crystal-art{
    flex:1 1 auto;
    min-height:0;
    width:100%;
    height:auto;
    max-height:none;
    aspect-ratio:auto;
  }
  .cover .art .mobile-poster,
  .cover .wide-poster picture img,
  .cover .crystal-art .mobile-poster{
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center bottom;
  }
  .cover h1,
  .cover:has(.poster-duo) h1{
    font-size:clamp(2rem,8.4vw,2.45rem);
    line-height:.96;
  }
  .cover .lead p{font-size:1rem;line-height:1.32;margin-top:.4rem}
  .cover .actions{margin-top:12px}
  .cover .base{bottom:10px}
}


/* Home hero on phones: the poster spans the full page width. */
@media (max-width: 650px) {
  .cover:has(.poster-duo) {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  .cover:has(.poster-duo) .art,
  .cover:has(.poster-duo) .animated-art {
    width: 100%;
    max-width: 100%;
    flex: none;
    height: auto;
    aspect-ratio: 1024 / 722;
    max-height: none;
  }
  .cover:has(.poster-duo) .mobile-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}
