/* Les arches et les trois hauteurs reprennent la présentation de l’immersive. */
.room25 {
  --room-paper: #fff3e1;
  --room-muted: #e6d3bc;
  --room-apricot: #ebbd92;
  background: #463229;
  color: var(--room-paper);
  position: relative;
}
.room25-stage { display: grid; align-items: center; }
.room25-inner { width: min(1200px,88%); margin: 0 auto; padding: clamp(2.1rem,5.2svh,4.7rem) 0; }
.room25-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(1.7rem,3.8svh,3rem); }
.room25-heading h2 { font-size: clamp(2.5rem,4.8vw,4.9rem); line-height: 1.04; letter-spacing: -.055em; text-wrap: balance; }
.room25-heading h2 em { color: var(--room-apricot); }
.room25-heading p { max-width: 32ch; margin: 0; color: var(--room-muted); font-size: clamp(.94rem,1.15vw,1.08rem); line-height: 1.45; }
.room25-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.4rem,3vw,3rem); align-items: start; }
.room25-card:nth-child(2) { margin-top: clamp(.7rem,2.1svh,1.9rem); }
.room25-card:nth-child(3) { margin-top: clamp(1.4rem,4.2svh,3.8rem); }
.room25-open { position: relative; display: block; width: 100%; aspect-ratio: 1.2; max-height: 34svh; border: 0; padding: 0; border-radius: 120px 120px 2px 2px; overflow: hidden; background: #614d3e; cursor: zoom-in; }
.room25-open img { display: block; width: 100%; height: 100%; object-fit: cover; }
.room25-zoom { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; position: absolute; bottom: .7rem; right: .7rem; border-radius: 50%; background: #fff7ebed; color: #463229; }
.room25-zoom svg { width: 1.2rem; height: 1.2rem; }
.room25-detail { padding: .8rem .35rem 0; }
.room25-tag { font-size: .73rem; font-weight: 650; letter-spacing: .12em; line-height: 1.3; color: var(--room-apricot); text-transform: uppercase; margin: 0 0 .28rem; }
.room25-detail h3, .room25-album-head h3 { margin: 0; font: 400 clamp(1.65rem,2.4vw,2.4rem)/1.07 var(--serif); letter-spacing: -.04em; }
.room25-detail > p:last-child { margin: .45rem 0 0; color: var(--room-muted); font-size: clamp(.9rem,1.05vw,1rem); line-height: 1.45; }
.room25-linen { margin-top: clamp(1.3rem,3.1svh,2.4rem); border-top: 1px solid #9a7e67; padding-top: clamp(.74rem,1.7svh,1.15rem); display: grid; grid-template-columns: .88fr 2fr; gap: 1rem 2rem; color: var(--room-muted); }
.room25-linen p { margin: 0; font: italic 1.13rem/1.35 var(--serif); color: var(--room-paper); max-width: 28ch; }
.room25-linen dl { display: grid; grid-template-columns: .85fr 1.15fr; margin: 0; gap: .75rem 1.6rem; }
.room25-linen dt { color: var(--room-paper); font-weight: 650; line-height: 1.35; font-size: .91rem; }
.room25-linen dd { margin: .2rem 0 0; font-size: .9rem; line-height: 1.42; }
.room25-choices { display: none; }
.room25.is-pinned { min-height: calc(100svh + clamp(450px,94svh,880px)); }
.room25.is-pinned .room25-stage { position: sticky; top: 0; height: 100svh; }
.room25-card { --room-lift: 0px; --room-zoom: 1; --room-rim: transparent; }
.room25.is-pinned .room25-card.is-current { --room-lift: -9px; --room-zoom: 1.065; --room-rim: var(--room-apricot); }
.room25-card .room25-open { outline: 2px solid var(--room-rim); outline-offset: 3px; }
.room25-card .room25-open:focus-visible { outline: 3px solid #fff3e1; outline-offset: 4px; }
@media (hover:hover) {
  .room25-grid:has(.is-hovered) .room25-card:not(.is-hovered) { --room-lift: 0px; --room-zoom: 1; --room-rim: transparent; }
  .room25 .room25-card.is-hovered { --room-lift: -10px; --room-zoom: 1.075; --room-rim: var(--room-apricot); }
}
@media (prefers-reduced-motion:no-preference) {
  .room25-card { transform: translateY(var(--room-lift)); transition: transform .48s ease; }
  .room25-open img { transform: scale(var(--room-zoom)); transition: transform .65s cubic-bezier(.2,.6,.3,1); }
}
.room25-dialog { width: min(54rem,95vw); max-width: none; max-height: 96dvh; padding: clamp(.9rem,2vw,1.5rem); margin: auto; overflow: auto; color: #302f27; background: #fcf8ee; border: none; border-radius: 4px; }
.room25-dialog::backdrop { background: rgb(30 22 17 / 87%); }
html:has(.room25-dialog[open]) { overflow: hidden; }
.room25-album-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.room25-close { border: 1px solid #c0b3a5; border-radius: 99px; background: #fcf8ee; color: #433529; padding: .4rem .9rem; min-height: 40px; }
.room25-close:hover { background: #efe7d9; }
.room25-album-description { font-size: .97rem; line-height: 1.48; margin: .65rem 0 .95rem; max-width: 75ch; }
.room25 [hidden] { display: none !important; }
@media (max-width: 740px) {
  .room25-inner { width: min(88%,34rem); padding-block: 2.5rem; }
  .room25-heading { display: block; margin-bottom: 1.25rem; }
  .room25-heading h2 { font-size: clamp(2.3rem,8vw,3.2rem); }
  .room25-heading p { margin-top: .65rem; max-width: 45ch; }
  .room25-grid { grid-template-columns: minmax(0,1fr); gap: 1.8rem; }
  .room25-card:nth-child(n) { margin-top: 0; }
  .room25-open { aspect-ratio: 1.48; max-height: none; }
  .room25-linen { grid-template-columns: 1fr; gap: .65rem; }
  .room25-linen p { max-width: 45ch; font-size: 1.06rem; }
  .room25-linen dl { grid-template-columns: 1fr; gap: .4rem; }
  .room25-linen dt, .room25-linen dd { display: inline; font-size: .86rem; }
  .room25-linen dd { margin-left: .35rem; }
  .room25.is-pinned .room25-inner { padding-block: 1.1rem; }
  /* La plus haute des trois cartes détermine le cadrage du panneau. */
  .room25.is-pinned .room25-card { grid-area: 1 / 1; }
  .room25.is-pinned .room25-card:not(.is-current) { visibility: hidden; }
  .room25.is-pinned .room25-open { max-height: 30svh; }
  .room25.is-pinned .room25-card { --room-lift: 0px; --room-rim: transparent; }
  .room25.is-pinned .room25-choices { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: -.35rem .85rem; }
  .room25-choices button { border: 1px solid #a68b73; border-radius: 2rem; padding: .35rem .75rem; min-height: 36px; background: transparent; color: var(--room-paper); font-size: .85rem; }
  .room25-choices button[aria-pressed="true"] { background: var(--room-paper); color: #463229; }
  .room25.is-pinned .room25-linen { margin-top: 1rem; padding-top: .6rem; }
}
@media (min-width:741px) and (max-height:680px) {
  .room25-inner { padding-block: 1.3rem; }
  .room25-heading { margin-bottom: 1.1rem; }
  .room25-heading h2 { font-size: clamp(2.35rem,4.2vw,3.5rem); }
  .room25-open { max-height: 30svh; }
}

.room27-slide { width: min(100%,86.67dvh); margin: 0 auto; }
.room27-image { position: relative; aspect-ratio: 4 / 3; background: #433529; }
.room27-image img { display: block; width: 100%; height: auto; }
.room27-half { position: absolute; inset-block: 0; display: flex; align-items: center; width: 50%; padding: 0 clamp(.55rem,2vw,1.25rem); border: 0; background: transparent; color: white; }
.room27-half[data-step="-1"] { left: 0; justify-content: flex-start; }
.room27-half[data-step="1"] { right: 0; justify-content: flex-end; }
.room27-half svg { opacity: 0; width: clamp(2rem,4vw,2.8rem); padding: .36rem; height: auto; border-radius: 50%; background: #30261dd9; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.room27-image.arrows-visible .room27-half svg, .room27-half:focus-visible svg { opacity: 1; }
.room27-half:focus-visible { outline: 2px solid #fff3e1; outline-offset: -3px; }
.room27-caption { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; margin-top: .55rem; }
.room27-caption-label { font: italic 1.05rem/1.35 var(--serif); }
.room27-position { white-space: nowrap; font-size: .9rem; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion:no-preference) { .room27-half svg { transition: opacity .16s ease; } }
