/* Desktop: header + hero + session fill one viewport. Mobile: header + hero. */
:root {
  --header-height: 82px;
}
.opening {
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  display: grid;
  grid-template-rows: minmax(0, 75fr) minmax(0, 25fr);
  grid-template-columns: minmax(0, 1fr);
}
.opening > .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(12px, 2.4vh, 28px) max(32px, calc((100% - 1216px) / 2));
  background: radial-gradient(ellipse at 78% 40%, #e449bc60, transparent 64%);
  overflow: visible;
  container-type: size;
}
.opening > .hero::before {
  content: none;
}
.hero-copy {
  min-width: 0;
}
.hero h1 {
  font-size: clamp(2.5rem, min(5.25vw, 15cqh), 4.7rem);
  margin: clamp(8px, 2cqh, 18px) 0;
  line-height: 1.06;
}
.hero h1 > span {
  display: block;
  width: max-content;
  font-size: 1.79em;
}
.hero-intro {
  font-size: clamp(1.125rem, 4.5cqh, 1.45rem);
  line-height: 1.4;
}
.hero-actions {
  margin-top: clamp(12px, 3cqh, 24px);
  gap: 18px;
}
.hero-meta {
  margin-top: clamp(8px, 2cqh, 14px);
  font-size: 1rem;
}
.hero-art {
  position: relative;
  height: 100%;
  max-height: 550px;
  min-height: 0;
  width: 100%;
  max-width: 510px;
  margin: 0;
  justify-self: end;
  align-self: center;
}
.photo-main {
  height: 82%;
  top: 5%;
  left: 20%;
  right: 7%;
}
.photo-second {
  height: 49%;
  width: 35%;
  bottom: 4%;
  left: 4%;
}
.photo-note {
  z-index: 4;
  top: 10%;
  right: auto;
  left: 3%;
  align-items: flex-start;
  font-size: clamp(1.3rem, 5.5cqh, 2rem);
}
.photo-note span:last-child {
  transform: translateX(18px) rotate(-5deg);
}
.art-star {
  bottom: 0;
  right: 3%;
  font-size: clamp(3rem, 15cqh, 6rem);
}
.opening > .session {
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  overflow: visible;
  container-type: size;
}
.session-inner {
  width: 100%;
  margin: auto;
  padding: clamp(12px, 8cqh, 30px) 32px;
  grid-template-columns: minmax(128px, 150px) 82px minmax(0, 1fr) 280px;
  gap: 48px;
}
.session h2 {
  font-size: clamp(1.7rem, 13cqh, 2.4rem);
}
.session-date > strong {
  font-size: clamp(3.3rem, 28cqh, 5rem);
}
.session-date {
  grid-row: auto;
  text-align: center;
}
.session-date > span {
  line-height: 1.05;
}
.session-date .session-weekday {
  margin-bottom: 2px;
}
.session-date .session-month {
  margin-top: 1px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 10cqh, 1.7rem);
  font-weight: 400;
  letter-spacing: 0;
}
.session-date .session-year {
  margin-top: 3px;
  font-size: 0.75rem;
}
.session-photo {
  width: min(100%, 145px);
  aspect-ratio: 1;
  border: 5px solid var(--pink);
  background: #4a0794;
  box-shadow: 8px 9px 0 var(--deep);
  overflow: hidden;
  transform: rotate(-2deg) translateZ(0);
  backface-visibility: hidden;
}
.session-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.04) translateZ(0);
}
.session-action {
  grid-column: auto;
  gap: 9px;
}
.session-info {
  flex-direction: row;
}
.session-info span + span:before {
  display: inline;
}
.session-practical-toggle {
  border: 0;
  padding: 6px 0;
  min-height: 36px;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.session-practical-toggle i {
  margin-left: 6px;
}
.fa-solid {
  vertical-align: -0.05em;
}
.button .fa-solid,
.text-link .fa-solid {
  font-size: 0.8em;
}
.word-band .fa-solid {
  font-size: 0.8em;
}
.dialog-close .fa-solid {
  font-size: 1.3rem;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .opening > .hero {
    gap: 20px;
    padding-inline: 24px;
  }
  .hero h1 {
    font-size: clamp(2.2rem, min(5vw, 14cqh), 3.5rem);
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  .session-inner {
    grid-template-columns: 112px 64px minmax(0, 1fr) 235px;
    gap: 36px;
    padding-inline: 24px;
  }
  .session h2 {
    font-size: 1.7rem;
  }
  .session-info {
    flex-direction: column;
  }
  .session-info span + span:before {
    display: none;
  }
}
@media (max-width: 760px) {
  :root {
    --header-height: 78px;
  }
  .nav-wrap {
    min-height: 78px;
    padding-block: 10px;
  }
  .opening {
    display: block;
    height: auto;
  }
  .opening > .hero {
    order: initial;
    height: auto;
    min-height: calc(100svh - var(--header-height));
    padding: 28px 22px;
    container-type: normal;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas: "eyebrow" "title" "intro" "actions" "art";
    align-content: center;
    align-items: center;
    gap: clamp(18px, 3svh, 28px) 14px;
    overflow: visible;
  }
  .hero-copy {
    display: contents;
  }
  .hero-copy > .eyebrow {
    grid-area: eyebrow;
    font-size: 0.875rem;
  }
  .hero h1 {
    grid-area: title;
    font-size: clamp(1.8rem, 7.8vw, 3rem);
    margin: 2px 0;
  }
  .hero h1 > span {
    font-size: 1.77em;
  }
  .hero-intro {
    grid-area: intro;
    font-size: 1.125rem;
    line-height: 1.4;
  }
  .hero-intro br {
    display: none;
  }
  .hero-intro .nowrap {
    white-space: normal;
  }
  .hero-actions {
    grid-area: actions;
    margin: 0;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .hero-actions > .button {
    display: inline-flex;
    min-height: 54px;
    padding: 15px 22px;
    font-size: 1.125rem;
  }
  .hero-actions .text-link {
    font-size: 1rem;
    padding: 5px 0;
    min-height: 40px;
  }
  .hero-meta {
    display: none;
  }
  .hero-art {
    grid-area: art;
    order: initial;
    height: clamp(290px, 76vw, 380px);
    min-height: 0;
    max-height: none;
    margin: 4px auto 0;
    justify-self: center;
  }
  .photo-main {
    height: 86%;
    top: 0;
    left: 14%;
    right: 6%;
    border-width: 3px;
    box-shadow: 5px 5px 0 #4a0794;
  }
  .photo-second {
    height: 62%;
    width: 50%;
    bottom: 0;
    left: -8%;
    border-width: 3px;
  }
  .photo-note {
    right: auto;
    left: 0;
    top: 9%;
    bottom: auto;
    font-size: 1rem;
    gap: 3px;
  }
  .photo-note span {
    padding: 4px 7px;
    box-shadow: 2px 2px 0 #250743;
  }
  .photo-note span:last-child {
    transform: translateX(10px) rotate(-5deg);
  }
  .art-star {
    display: none;
  }
  .opening > .session {
    order: initial;
    height: auto;
    container-type: normal;
  }
  .session-inner {
    padding: 32px 22px;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 24px 18px;
  }
  .session-date {
    grid-row: 1;
    padding-right: 10px;
    align-self: center;
  }
  .session-date > strong {
    font-size: 3.75rem;
  }
  .session-date > span {
    font-size: 0.875rem;
  }
  .session-date .session-month {
    font-size: 1.45rem;
  }
  .session-date .session-year {
    font-size: 0.75rem;
  }
  .session h2 {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
    margin: 3px 0 8px;
  }
  .session-copy .eyebrow {
    font-size: 0.875rem;
  }
  .session-info {
    flex-direction: column;
    font-size: 1rem;
  }
  .session-info span + span:before {
    display: none;
  }
  .session-copy > p.session-location {
    margin-top: 6px;
  }
  .session-action {
    grid-column: 1/-1;
    gap: 4px;
  }
  .session-action .button {
    min-height: 48px;
    padding: 12px 15px;
    font-size: 1.0625rem;
  }
  .session-practical-toggle {
    min-height: 32px;
    padding: 2px 0;
  }
  .session-photo {
    grid-column: 1/-1;
    width: min(100%, 270px);
    margin-top: 4px;
    border-width: 5px;
    box-shadow: 9px 10px 0 #4a0794;
  }
}
/* Short desktop windows and zoom use page scrolling, never nested scrolling. */
@media (min-width: 761px) {
  .opening {
    min-height: 660px;
  }
}
@media (min-width: 761px) and (max-width: 1100px) and (max-height: 700px) {
  .opening {
    min-height: 740px;
  }
}
@media (max-width: 760px) and (max-height: 700px) {
  .opening > .hero {
    padding-block: 18px;
    gap: 14px;
  }
  .hero-art {
    height: min(82vw, 330px);
  }
}

/* The header and logo share a comfortable desktop scale. */
@media (min-width: 761px) {
  :root {
    --header-height: 104px;
  }
  .nav-wrap {
    min-height: 104px;
    padding-block: 14px;
  }
  .header .brand {
    width: clamp(120px, 10.5vw, 148px);
  }
  .session-date > strong {
    font-size: clamp(4.25rem, 38cqh, 6rem);
    line-height: 0.95;
  }
  .session-date .session-weekday {
    font-size: 1rem;
  }
  .session-date .session-month {
    font-size: clamp(1.6rem, 12cqh, 2rem);
  }
  .session-date .session-year {
    font-size: 0.875rem;
  }
}

@media (max-width: 760px) {
  .hero h1 {
    width: 100%;
    font-size: min(15.8vw, 7.5rem);
    line-height: 1.04;
  }
  .hero h1 > span {
    font-size: 1.79em;
  }
  .hero-art {
    width: min(100%, 390px);
    height: clamp(315px, 86vw, 390px);
    margin-inline: auto;
  }
  .photo-main {
    top: 4%;
    left: 22%;
    right: 9%;
    height: 78%;
  }
  .photo-second {
    left: 7%;
    bottom: 8%;
    width: 38%;
    height: 49%;
  }
  .photo-note {
    top: 10%;
    left: 2%;
  }
  .session-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 19px;
    padding-block: 36px;
  }
  .session-date {
    grid-column: 1;
    padding: 0 0 19px;
    border-right: 0;
    border-bottom: 1px solid #27044745;
    justify-self: stretch;
    align-self: start;
    gap: 0;
  }
  .session-date .session-weekday {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.12em;
  }
  .session-date > strong {
    font-size: clamp(6.25rem, 27vw, 9rem);
    line-height: 0.95;
  }
  .session-date .session-month {
    font-size: 2.25rem;
    line-height: 1;
  }
  .session-date .session-year {
    font-size: 1rem;
  }
  .session-copy,
  .session-action {
    grid-column: 1;
  }
}

/* Session: a compact announcement above a balanced photo, date and details. */
.opening > .session {
  flex-direction: column;
}
.session-inner {
  flex: 1 1 auto;
  min-height: 0;
}
.session-date {
  position: relative;
  align-items: flex-start;
  gap: 0;
  padding-right: 0;
  border-right: 0;
  text-align: left;
}
.session-date::after {
  content: "";
  position: absolute;
  top: 9%;
  bottom: 9%;
  right: -16px;
  width: 1px;
  background: #27044755;
}
.session-date .session-weekday,
.session-date .session-year {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.06em;
}
.session-date-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(3rem, 7cqh, 4.5rem);
  line-height: 1;
}
.session-date-main strong,
.session-date-main .session-month {
  display: inline;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: 0;
}
.session-copy h2 {
  margin: 0 0 7px;
  font-size: clamp(2.05rem, 5.5cqh, 2.9rem);
  line-height: 1.15;
}
.session-info {
  margin-top: 0;
  font-size: 1.0625rem;
}
.session-copy > p.session-location {
  margin-top: 3px;
  font-size: 1rem;
}
@media (min-width: 1101px) {
  .session-inner {
    grid-template-columns: minmax(120px, 150px) minmax(160px, 170px) minmax(0, 1fr) 280px;
    gap: 30px;
    padding: 8px 32px 13px;
  }
  .session-photo {
    width: min(100%, 145px);
  }
  .session-date {
    align-items: flex-end;
    text-align: right;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .session-inner {
    grid-template-columns: clamp(80px, 9vw, 112px) clamp(146px, 17vw, 180px) minmax(0, 1fr) clamp(178px, 21vw, 230px);
    gap: clamp(12px, 1.6vw, 18px);
    padding: 8px 20px 13px;
  }
  .session-date::after {
    right: -9px;
  }
  .session-date-main {
    font-size: clamp(2.65rem, 6cqh, 3.8rem);
  }
  .session-photo {
    width: min(100%, 110px);
  }
  .session-copy h2 {
    font-size: clamp(1.75rem, 4.5cqh, 2.2rem);
  }
  .session-info,
  .session-copy > p.session-location {
    font-size: 0.9375rem;
  }
}
@media (max-width: 760px) {
  .session-inner {
    flex: none;
    padding-top: 26px;
    padding-bottom: 0;
  }
  .session-date {
    align-items: center;
    text-align: center;
  }
  .session-date::after {
    content: none;
  }
  .session-date .session-weekday,
  .session-date .session-year {
    font-size: 1.125rem;
  }
  .session-date-main {
    font-size: clamp(4rem, 19vw, 6.2rem);
  }
  .session-copy h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }
  .session-info {
    font-size: 1.0625rem;
  }
  .session-copy > p.session-location {
    font-size: 1rem;
  }
}

/* The transparent mascot stands on the lower edge of the session. */
.session-date .session-weekday,
.session-date .session-year {
  font-size: 1.1875rem;
}
.session-date-main {
  font-size: clamp(3.45rem, 8cqh, 4.9rem);
}
.session-copy h2 {
  font-size: clamp(2.3rem, 5.8cqh, 3.1rem);
}
.session-info {
  font-size: 1.125rem;
}
.session-copy > p.session-location {
  font-size: 1.0625rem;
}
.session-action .button {
  font-size: 1.125rem;
}
.session-photo {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform: none;
  backface-visibility: visible;
  pointer-events: none;
}
.session-photo img {
  position: absolute;
  bottom: -13px;
  left: -13px;
  width: clamp(205px, 17.5vw, 250px);
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .session-photo {
    width: 100%;
  }
  .session-photo img {
    width: clamp(150px, 18vw, 205px);
    left: -12px;
  }
  .session-copy h2 {
    font-size: clamp(1.9rem, 4.6cqh, 2.35rem);
  }
  .session-info,
  .session-copy > p.session-location {
    font-size: 1rem;
  }
}
@media (max-width: 760px) {
  .session-date > .session-weekday:first-child {
    display: block;
  }
  .session-date .session-weekday,
  .session-date .session-year {
    font-size: 1.1875rem;
  }
  .session-date-main {
    font-size: clamp(4.25rem, 20vw, 6.6rem);
  }
  .session-copy h2 {
    font-size: clamp(2.05rem, 7.8vw, 2.7rem);
  }
  .session-info {
    font-size: 1.125rem;
  }
  .session-copy > p.session-location {
    font-size: 1.0625rem;
  }
  .session-photo {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    /* Mascotte réduite de 25 % sur mobile uniquement. */
    width: min(75%, 232.5px);
    height: auto;
    aspect-ratio: 504 / 600;
    margin-top: 28px;
  }
  .session-photo img {
    width: 100%;
    left: 0;
    bottom: 0;
  }
}

/* Desktop: the mascot belongs to the session grid and stays inside its edges. */
@media (min-width: 761px) {
  .session-inner {
    padding-bottom: 0;
  }
  .session-photo {
    overflow: hidden;
  }
  .session-photo img {
    bottom: 0;
    left: 50%;
    width: auto;
    max-width: 100%;
    height: 100%;
    transform: translateX(-50%);
  }
  .session-date .session-weekday,
  .session-date .session-year,
  .session-practical-toggle {
    font-size: var(--type-label);
  }
  .session-info,
  .session-copy > p.session-location {
    font-size: var(--type-body);
  }
}
@media (min-width: 1101px) {
  .session-inner {
    grid-template-columns: minmax(135px, 160px) minmax(160px, 170px) minmax(0, 1fr) 280px;
    column-gap: 38px;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .session-inner {
    column-gap: clamp(18px, 2.3vw, 25px);
  }
}

/* Expand the announcement in the normal page flow. */
.session-extra {
  display: none;
  width: 100%;
  background: var(--rose);
  color: var(--deep);
}
.session-extra-inner {
  width: 100%;
}
.opening.is-session-expanded .session-extra {
  display: block;
}
.session-extra-content {
  max-width: 1216px;
  margin: 0 auto;
  padding: 30px 32px 42px;
  border-top: 1px solid #27044745;
  font-size: var(--type-body);
  line-height: 1.55;
}
.session-extra-content h3 {
  margin: 0 0 16px;
  font-family: var(--body);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.session-extra-content > p { max-width: 880px; margin-top: 16px; }
.session-registration-link {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.session-practical-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 15px;
  border: 2px solid var(--deep);
  border-radius: 6px;
  background: transparent;
  color: var(--deep);
  font-size: var(--type-label);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.session-practical-toggle i { margin: 0; transition: transform .3s ease; }
.session-practical-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .session-practical-toggle:hover { background: var(--deep); color: white; transform: translateY(-2px); }
  .session-registration-link:hover { color: var(--purple); }
}
@media (min-width: 761px) {
  .opening.is-session-expanded {
    height: auto;
    grid-template-rows:
      minmax(0, calc(max(660px, 100dvh - var(--header-height)) * .75))
      minmax(0, calc(max(660px, 100dvh - var(--header-height)) * .25))
      auto;
  }
}
@media (max-width: 760px) {
  .session-extra-content { padding: 22px 0 0; }
  .session-extra { grid-column: 1 / -1; min-width: 0; }
  .spirit p { text-align: left; }
}
@media (min-width: 761px) and (max-width: 1100px) and (max-height: 700px) {
  .opening.is-session-expanded {
    grid-template-rows: minmax(0, 555px) minmax(0, 185px) auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .session-practical-toggle, .session-practical-toggle i { transition: none; }
}

/* Three related session labels share a dedicated scale. */
.session { --session-meta-size: 1.2rem; }
.session .session-info,
.session .session-weekday,
.session .session-year { font-size: var(--session-meta-size); }
