.as-public-page { margin:0; background:#faf9f6; color:#272a2c; font:1rem/1.6 "Avenir Next",Avenir,"Segoe UI",Helvetica,Arial,sans-serif; }
.as-public-page * { box-sizing:border-box; }
.as-public-page header, .as-public-page main { width:min(60rem,100%); margin:auto; padding:clamp(1rem,4vw,3rem); }
.as-public-page header { border-bottom:1px solid #ddd; }
.as-public-page a { color:#254f70; text-underline-offset:.2em; }
.as-public-page a:focus-visible { outline:3px solid #254f70; outline-offset:4px; }
.as-public-exposition { margin-bottom:2rem; overflow-wrap:anywhere; }
.as-public-exposition h1,.as-public-exposition h2 { font-family:Georgia,serif; line-height:1.25; }
.as-public-description img,.as-public-description video { max-width:100%; height:auto; }
.as-public-note { font-size:.9rem; color:#555; }
.as-public-palette { display:flex; flex-wrap:wrap; gap:1rem; }
.as-public-palette span { display:flex; align-items:center; gap:.5rem; }
.as-public-palette i { width:2rem; height:2rem; border:1px solid #555; border-radius:.25rem; }

/* Géométrie adaptée de docs/maquette-salle/reference.css ; référence jamais chargée. */
.as-public-page main.as-public-wide { width:min(1460px,100%); padding:1rem; }
.as-public-room { position:relative; width:100%; height:clamp(500px,65vw,770px); overflow:hidden; isolation:isolate; background:var(--as-couleur-murs); box-shadow:0 28px 80px rgba(23,25,26,.22); scroll-margin-top:1rem; }
    .as-public-room .ceiling {
      position: absolute;
      inset: 0 0 auto;
      height: 24%;
      background: linear-gradient(180deg, rgba(0,0,0,.17), transparent), var(--as-couleur-plafond);
      clip-path: polygon(0 0, 100% 0, 72% 100%, 28% 100%);
    }

    .as-public-room .ceiling-lights {
      position: absolute;
      z-index: 3;
      inset: 0;
      pointer-events: none;
    }

    .as-public-room .ceiling-spot {
      position: absolute;
      width: 1.8%;
      min-width: 13px;
      max-width: 24px;
      aspect-ratio: 1.7;
      border-radius: 50%;
      background: #303334;
      box-shadow: inset 0 -3px 0 #17191a, 0 2px 4px rgba(0,0,0,.25), 0 0 0 2px #5b5e5f;
    }

    .as-public-room .ceiling-spot::after {
      content: "";
      position: absolute;
      inset: 55% 24% -15%;
      border-radius: 50%;
      background: #f4e8ba;
      box-shadow: 0 0 8px rgba(255,242,185,.58);
    }

    .as-public-room .ceiling-spot.near-1 { top: 6%; left: 24%; transform: rotate(-8deg); }
    .as-public-room .ceiling-spot.near-2 { top: 7.5%; left: 41%; }
    .as-public-room .ceiling-spot.near-3 { top: 7.5%; right: 41%; }
    .as-public-room .ceiling-spot.near-4 { top: 6%; right: 24%; transform: rotate(8deg); }

    .as-public-room .ceiling-spot.far {
      width: 1.15%;
      min-width: 9px;
      max-width: 15px;
      box-shadow: inset 0 -2px 0 #17191a, 0 1px 3px rgba(0,0,0,.2), 0 0 0 1px #666968;
    }

    .as-public-room .ceiling-spot.far-1 { top: 17%; left: 38%; }
    .as-public-room .ceiling-spot.far-2 { top: 18%; left: 46%; }
    .as-public-room .ceiling-spot.far-3 { top: 18%; right: 46%; }
    .as-public-room .ceiling-spot.far-4 { top: 17%; right: 38%; }

    .as-public-room .floor {
      position: absolute;
      inset: auto 0 0;
      height: 36%;
      background:
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) center/8% 100%,
        linear-gradient(180deg, rgba(255,255,255,.11), transparent 70%, rgba(0,0,0,.23)), var(--as-couleur-sol);
      clip-path: polygon(28% 0, 72% 0, 100% 100%, 0 100%);
    }

    .as-public-room .back-wall {
      position: absolute;
      top: 24%;
      left: 28%;
      right: 28%;
      bottom: 36%;
      background: linear-gradient(90deg, rgba(255,255,255,.09), rgba(255,255,255,.18) 48%, rgba(255,255,255,.09)), var(--as-couleur-murs);
      border-bottom: 1px solid rgba(22, 24, 25, .18);
    }

    .as-public-room .side-wall {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 45%;
      overflow: hidden;
      background: linear-gradient(90deg, rgba(0,0,0,.08), transparent), var(--as-couleur-murs);
    }

    .as-public-room .side-wall.left {
      left: 0;
      clip-path: polygon(0 0, 62% 24%, 62% 64%, 0 100%);
    }

    .as-public-room .side-wall.right {
      right: 0;
      clip-path: polygon(38% 24%, 100% 0, 100% 100%, 38% 64%);
      background: linear-gradient(90deg, transparent, rgba(0,0,0,.08)), var(--as-couleur-murs);
    }

    .as-public-room .panel {
      position: absolute;
      z-index: 4;
      border: 0;
      padding: 0;
      height: auto !important;
      aspect-ratio: 3 / 4;
      color: #fff;
      overflow: visible;
      background: transparent;
      cursor: default;
      transition: filter .2s ease, transform .2s ease;
    }


    .as-public-room .panel::before {
      content: "";
      position: absolute;
      z-index: 3;
      left: 50%;
      bottom: calc(100% + 10px);
      width: 22px;
      height: 12px;
      border-radius: 4px 4px 1px 1px;
      background: #2e3031;
      box-shadow: 0 -5px 0 -2px #484b4c;
      transform: translateX(-50%);
      display: none;
    }

    .as-public-room .panel-frame {
      position: absolute;
      z-index: 2;
      inset: 0;
      display: block;
      overflow: hidden;
      background: #333637;
      box-shadow: 0 12px 24px rgba(19,21,22,.25), 0 0 0 3px rgba(255,255,255,.82);
    }

    .as-public-room .panel-frame > .panel-art {
      position: absolute;
      inset: 7%;
      width: auto;
      height: auto;
    }

    .as-public-room .panel-art, .as-public-room .work-art {
      width: 100%;
      height: 100%;
      display: block;
      background-color: #d8d4cc;
    }


    .as-public-room .panel-label {
      position: absolute;
      z-index: 4;
      left: 50%;
      top: calc(100% + 13px);
      width: max-content;
      max-width: 12ch;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 5px 8px;
      transform: translateX(-50%);
      color: #2b2d2e;
      background: rgba(247,246,242,.9);
      font-size: clamp(.62rem, .9vw, .78rem);
      font-weight: 650;
      letter-spacing: .03em;
    }

    .as-public-room .artist-name {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      column-gap: .28em;
      line-height: 1.08;
      text-align: center;
      overflow-wrap: anywhere;
    }

    .as-public-room .artist-first, .as-public-room .artist-last { white-space: nowrap; }

    .as-public-room .panel.panel.back-solo {
      left: 47.1%;
      width: 5.8%;
      height: 15.5%;
      top: 33.2%;
    }

    .as-public-room .panel.panel.left-solo {
      left: 7.2%;
      width: 8.8%;
      height: 21.5%;
      top: 37%;
    }

    .as-public-room .panel.panel.right-solo {
      right: 7.2%;
      width: 8.8%;
      height: 21.5%;
      top: 37%;
    }



    .as-public-room .panel.back { width: 5.2%; height: 14%; top: 33.5%; }
    .as-public-room .panel.back-1 { left: 31%; }
    .as-public-room .panel.back-2 { left: 42.2%; }
    .as-public-room .panel.back-3 { left: 52.6%; }
    .as-public-room .panel.back-4 { left: 63.8%; }

    .as-public-room .panel.side { width: 7.2%; height: 22%; top: 34%; }
    .as-public-room .panel.left-1 {
      left: 2.8%;
      width: 8.6%;
      height: 21.5%;
      top: 38%;
    }
    .as-public-room .panel.left-2 {
      left: 11.3%;
      width: 7.1%;
      height: 18%;
      top: 34.5%;
    }
    .as-public-room .panel.left-3 {
      left: 18.4%;
      width: 5.8%;
      height: 15.2%;
      top: 32.2%;
    }
    .as-public-room .panel.right-1 {
      right: 2.8%;
      width: 8.6%;
      height: 21.5%;
      top: 38%;
    }
    .as-public-room .panel.right-2 {
      right: 11.3%;
      width: 7.1%;
      height: 18%;
      top: 34.5%;
    }
    .as-public-room .panel.right-3 {
      right: 18.4%;
      width: 5.8%;
      height: 15.2%;
      top: 32.2%;
    }

    .as-public-room .panel.panel.left-seven-1 { left: 5.8%; width: 8.3%; height: 20.5%; top: 38%; }
    .as-public-room .panel.panel.left-seven-2 { left: 17%; width: 6.1%; height: 16%; top: 33%; }
    .as-public-room .panel.panel.right-seven-1 { right: 5.8%; width: 8.3%; height: 20.5%; top: 38%; }
    .as-public-room .panel.panel.right-seven-2 { right: 17%; width: 6.1%; height: 16%; top: 33%; }
    .as-public-room .panel.panel.back-seven { width: 5.4%; height: 14.5%; top: 33.2%; }
    .as-public-room .panel.back-seven-1 { left: 34%; }
    .as-public-room .panel.back-seven-2 { left: 47.3%; }
    .as-public-room .panel.back-seven-3 { left: 60.6%; }












    .as-public-room .panel.side::after {
      left: -28%;
      top: -38%;
      width: 156%;
      height: 165%;
      transform: none;
      clip-path: none;
      background: radial-gradient(ellipse at 50% 52%, rgba(255,250,224,.40), rgba(255,250,224,.17) 38%, transparent 72%);
      filter: blur(3px);
    }

    .as-public-room .panel.side .panel-label { top: calc(100% + 8px); }




.as-public-room .panel { margin:0; }
.as-public-room .panel-art { object-fit:contain; background:#e9e6df; }
.as-public-room .panel-frame > .panel-art { width:86%; height:86%; }
.as-public-room .panel-label { max-width:24ch; text-align:center; overflow-wrap:anywhere; line-height:1.15; letter-spacing:0; }
.as-public-room .as-name-mobile { display:none; }
.as-public-room .back-count-2.back-1 { left:40%; }
.as-public-room .back-count-2.back-2 { left:54.8%; }
.as-public-room .as-room-video { display:flex; align-items:center; justify-content:center; color:#fff; background:#334155; font-size:clamp(.5rem,1vw,1rem); font-weight:700; }
.as-public-page .as-start-visit, .as-public-page .as-room-navigation a { display:inline-flex; min-height:48px; align-items:center; justify-content:center; padding:.65rem 1.2rem; border:1px solid #254f70; border-radius:2rem; text-decoration:none; background:#faf9f6; }
.as-public-page .as-start-visit { color:#fff; background:#254f70; }
.as-public-page .as-room-navigation { display:flex; flex-wrap:wrap; justify-content:center; gap:.75rem; margin:2rem 0; }
@media(max-width:760px) {
 .as-public-page main.as-public-wide { padding:.75rem 0; }
 .as-public-wide h1, .as-public-wide h2, .as-public-wide .as-public-note, .as-public-wide .as-public-palette { margin-inline:1rem; }
 .as-public-room { height:max(620px,calc(100svh - 160px)); box-shadow:none; }
      .as-public-room .ceiling { height: 20%; }
      .as-public-room .ceiling { clip-path: polygon(0 0, 100% 0, 75% 100%, 25% 100%); }
      .as-public-room .floor { height: 39%; clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%); }
      .as-public-room .back-wall { top: 20%; left: 25%; right: 25%; bottom: 39%; }
      .as-public-room .side-wall { width: 41%; }
      .as-public-room .side-wall.left { clip-path: polygon(0 0, 61% 20%, 61% 61%, 0 100%); }
      .as-public-room .side-wall.right { clip-path: polygon(39% 20%, 100% 0, 100% 100%, 39% 61%); }
      .as-public-room .panel.back { width: 8.5%; height: 12.5%; top: 28%; }
      .as-public-room .panel.back-1 { left: 29%; }
      .as-public-room .panel.back-2 { left: 40.5%; }
      .as-public-room .panel.back-3 { left: 52.5%; }
      .as-public-room .panel.back-4 { left: 64%; }
      .as-public-room .panel.side { width: 8%; height: 17%; top: 30%; }
      .as-public-room .panel.left-1 { left: 2.8%; width: 9.8%; height: 17.5%; top: 33.5%; }
      .as-public-room .panel.left-2 { left: 11%; width: 7.5%; height: 15%; top: 29.5%; }
      .as-public-room .panel.left-3 { left: 18.2%; width: 5.7%; height: 13.5%; top: 27%; }
      .as-public-room .panel.right-1 { right: 2.8%; width: 9.8%; height: 17.5%; top: 33.5%; }
      .as-public-room .panel.right-2 { right: 11%; width: 7.5%; height: 15%; top: 29.5%; }
      .as-public-room .panel.right-3 { right: 18.2%; width: 5.7%; height: 13.5%; top: 27%; }
      .as-public-room .panel.panel.back-solo { left: 46.5%; width: 7%; height: 13.5%; top: 28%; }
      .as-public-room .panel.panel.left-solo { left: 5%; width: 10%; height: 18%; top: 34%; }
      .as-public-room .panel.panel.right-solo { right: 5%; width: 10%; height: 18%; top: 34%; }
      .as-public-room .panel.panel.left-seven-1 { left: 4.2%; width: 9.8%; height: 17%; top: 34%; }
      .as-public-room .panel.panel.left-seven-2 { left: 17.5%; width: 6%; height: 13.5%; top: 27.5%; }
      .as-public-room .panel.panel.right-seven-1 { right: 4.2%; width: 9.8%; height: 17%; top: 34%; }
      .as-public-room .panel.panel.right-seven-2 { right: 17.5%; width: 6%; height: 13.5%; top: 27.5%; }
      .as-public-room .panel.panel.back-seven { width: 8%; height: 12.5%; top: 28%; }
      .as-public-room .panel.back-seven-1 { left: 32%; }
      .as-public-room .panel.back-seven-2 { left: 46%; }
      .as-public-room .panel.back-seven-3 { left: 60%; }

 .as-public-room .back-count-2.back-1 { left:36%; }
 .as-public-room .back-count-2.back-2 { left:55.5%; }
 .as-public-room .panel-label, .as-public-room .panel.side .panel-label { top:calc(100% + 4px); padding:3px 2px; font-size:10px; max-width:11vw; line-height:1.15; }
 .as-public-room .as-name-desktop { display:none; }
 .as-public-room .as-name-mobile { display:block; }
 .as-public-page .as-room-navigation { padding:0 .75rem; }
}
@media(prefers-reduced-motion:reduce) { .as-public-room *, .as-public-room *::before, .as-public-room *::after { transition:none; } }
/* Le slot conserve sa taille ; le rectangle ajusté est centré avant projection.
 * padding-top, calculé en PHP, fonctionne aussi sans aspect-ratio. */
.as-public-room .panel { aspect-ratio:auto; }
.as-public-room .panel::before { content:""; display:block; position:static; width:100%; height:0; padding-top:133.333333%; border:0; border-radius:0; background:none; box-shadow:none; transform:none; }
.as-public-room .panel-surface { position:absolute; left:50%; top:50%; margin:0; transform:translate(-50%,-50%); }
.as-public-room .panel-frame { position:relative; inset:auto; width:100%; height:0; overflow:visible; background:transparent; box-shadow:none; }
.as-public-room .panel-frame > .panel-art { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:white; border:0; padding:0; box-shadow:0 0 0 2px white,0 0 0 4px #303334,0 8px 14px 4px rgba(19,21,22,.28); clip-path:none; }
.as-public-room .as-frame-fallback .panel-art { background:#17191a; }
/* +Y éloigne le bord droit à gauche ; -Y éloigne le bord gauche à droite.
 * La projection reste limitée au cadre ; le cartel est son frère non projeté. */
.as-public-room .panel.side[class*="left-"] .panel-frame { transform-origin:0 50%; transform:perspective(16vw) rotateY(48deg); }
.as-public-room .panel.side[class*="right-"] .panel-frame { transform-origin:100% 50%; transform:perspective(16vw) rotateY(-48deg); }
.as-public-room .panel-label { max-width:9vw; }
@media(max-width:760px) {
 .as-public-room .panel-frame > .panel-art { box-shadow:0 0 0 1px white,0 0 0 2px #303334,0 6px 10px 2px rgba(19,21,22,.28); }
 .as-public-room .panel-label { max-width:10vw; }
 .as-public-room .panel.side .panel-label { max-width:6vw; font-size:9px; }
}

/* Cartels dans le conteneur de positionnement, hors du plan projeté. */
.as-public-room .panel .panel-label,
.as-public-room .panel.side .panel-label {
 top:calc(100% + 12px); min-width:4.5rem; max-width:10rem;
 width:max-content; padding:4px 6px; font-size:13px; line-height:1.3;
 white-space:normal; overflow-wrap:normal; word-break:normal; hyphens:none;
 background:#faf9f6; color:#202426; transform:translateX(-50%);
}
@media(max-width:760px) {
 .as-public-room .panel .panel-label { font-size:12px; min-width:4rem; max-width:5rem; }
 /* Des niveaux distincts et un trait de liaison préservent l'association
    quand un nom lisible dépasse la largeur de l'œuvre miniature. */
 .as-public-room .panel .panel-label::before {
  content:""; position:absolute; left:50%; bottom:100%;
  width:1px; height:8px; background:#59615c;
 }
 .as-public-room .panel.back-2 .panel-label,
 .as-public-room .panel.back-4 .panel-label { top:calc(100% + 48px); }
 .as-public-room .panel.back-2 .panel-label::before,
 .as-public-room .panel.back-4 .panel-label::before { height:44px; }
 .as-public-room .panel.side .panel-label { top:calc(100% + 128px); font-size:12px; min-width:4rem; max-width:6rem; }
 .as-public-room .panel.side .panel-label::before { height:124px; }
 .as-public-room .panel.side[class*="left-"] .panel-label { left:0; transform:none; }
 .as-public-room .panel.side[class*="right-"] .panel-label { left:auto; right:0; transform:none; }
 .as-public-room .panel.side[class*="left-"] .panel-label::before { left:8px; }
 .as-public-room .panel.side[class*="right-"] .panel-label::before { left:auto; right:8px; }
 .as-public-room .panel.left-2 .panel-label,
 .as-public-room .panel.right-2 .panel-label { top:calc(100% + 150px); }
 .as-public-room .panel.left-2 .panel-label::before,
 .as-public-room .panel.right-2 .panel-label::before { height:146px; }
 .as-public-room .panel.left-1 .panel-label,
 .as-public-room .panel.right-1 .panel-label { top:calc(100% + 140px); }
 .as-public-room .panel.left-1 .panel-label::before,
 .as-public-room .panel.right-1 .panel-label::before { height:136px; }
}

/* Commandes hors perspective : superposition au sol sur ordinateur seulement. */
.as-public-visit { position:relative; }
.as-public-page .as-public-visit > .as-room-navigation {
 position:absolute; z-index:6; bottom:24px; left:16px; right:16px;
 margin:0; padding:12px; align-items:center; gap:12px;
 color:#fff; transform:none;
}
.as-public-page .as-room-navigation h2 {
 margin:0; padding:8px 12px; font:600 1rem/1.4 "Avenir Next",Avenir,"Segoe UI",sans-serif;
 color:#fff; background:#303436; border-radius:6px;
}
.as-public-page .as-room-navigation a { background:#faf9f6; color:#203f56; min-height:48px; }
.as-entry-summary { font-weight:600; }
.as-room-entry-actions { display:flex; justify-content:center; margin:1rem 0; }
/* Emplacement réservé à l'entrée : seul « Démarrer la visite » occupera le sol. */
.as-public-room > .as-room-entry-actions {
 position:absolute; z-index:6; left:16px; right:16px; bottom:24px;
 margin:0; transform:none;
}
@media(max-width:760px) {
 .as-public-page .as-public-visit > .as-room-navigation {
  position:static; margin:0; padding:12px 12px 0; gap:8px;
 }
 .as-public-page .as-room-navigation h2 { flex-basis:100%; text-align:center; }
 .as-public-page .as-room-navigation a { flex:1 1 140px; padding:10px 12px; text-align:center; }
}

/* Liens de salle : mêmes dimensions, mêmes transformations que les cadres. */
.as-public-room .panel-frame { cursor:pointer; }
.as-public-room .panel-label a { color:inherit; text-decoration:none; }
.as-public-room .panel-frame:focus-visible,
.as-public-room .panel-label a:focus-visible { outline:4px solid #eebc38; outline-offset:5px; }
.as-public-room .panel:target .panel-art { outline:3px solid #eebc38; outline-offset:5px; }
.as-public-room .panel { scroll-margin:5rem; }

.as-public-gallery { max-width:1100px; margin:0 auto; color:#202426; }
.as-public-page .as-gallery-introduction { width:100%; padding:1rem 0; border:0; }
.as-gallery-introduction h2 { margin:0 0 .75rem; }
.as-gallery-presentation { max-width:70ch; overflow-wrap:anywhere; }
.as-gallery-presentation img,.as-gallery-presentation video { max-width:100%; height:auto; }
.as-gallery-work { margin:1rem 0; padding:12px; background:#eeede9; border:1px solid #d6d5cf; }
.as-gallery-work > img,.as-gallery-work > video { display:block; width:100%; height:auto; max-height:70vh; object-fit:contain; margin:auto; background:#eeede9; }
.as-gallery-work figcaption { padding:.75rem 0 0; text-align:center; overflow-wrap:anywhere; }
.as-public-gallery nav { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px; margin:1rem 0; }
.as-public-gallery nav p { margin:0; padding:.5rem; }
.as-public-gallery nav a { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:.65rem 1rem; border:1px solid #254f70; border-radius:.5rem; color:#203f56; background:#fff; text-align:center; text-decoration:none; }
.as-gallery-works-navigation { padding:.75rem; background:#f0f1ef; border-radius:.5rem; }
.as-gallery-artists-navigation { padding:1rem 0; border-block:1px solid #ccc; }
.as-public-gallery .as-gallery-return a { border-color:#747a7c; }
@media(max-width:760px) {
 .as-public-gallery { padding:0 12px; }
 .as-public-gallery .as-gallery-introduction h2 { margin:0 0 .75rem; }
 .as-gallery-presentation { font-size:.95rem; }
 .as-gallery-work { padding:4px; }
 .as-gallery-work > img,.as-gallery-work > video { max-height:65vh; }
 .as-public-gallery nav { gap:8px; }
 .as-public-gallery nav a { flex:1 1 160px; }
 .as-gallery-works-navigation p { flex-basis:100%; text-align:center; }
}

/* Repère linéaire : trois murs, sans carte ni perspective. */
.as-gallery-marker { display:flex; align-items:center; gap:16px; min-width:0; margin:16px 0 0; min-height:48px; }
.as-gallery-marker-room { flex:none; white-space:nowrap; font-weight:700; font-size:1rem; color:#263b49; }
.as-gallery-marker-walls { display:flex; flex:1; min-width:0; gap:8px; overflow-x:auto; padding:40px 3px 4px; }
.as-gallery-marker-wall { position:relative; display:flex; flex:1 0 auto; min-width:44px; height:48px; align-items:center; justify-content:space-evenly; }
.as-gallery-marker-wall::before { content:""; position:absolute; left:0; right:0; top:22px; height:4px; background:#98a6af; }
.as-gallery-marker-back::before { background:#465b69; }
.as-gallery-marker-point { position:relative; box-sizing:border-box; flex:none; width:16px; height:16px; border:3px solid #526875; border-radius:50%; background:#fff; }
.as-gallery-marker-point.is-current { border-color:#0877c9; }
.as-gallery-marker-point.is-current::before,.as-gallery-marker-point.is-current::after { content:""; position:absolute; left:50%; top:50%; width:13px; height:3px; background:#0877c9; transform:translate(-50%,-50%) rotate(45deg); }
.as-gallery-marker-point.is-current::after { transform:translate(-50%,-50%) rotate(-45deg); }
.as-gallery-marker-description { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.as-public-gallery .as-gallery-marker + .as-gallery-artists-navigation { margin-top:6px; padding-top:0; border-top:0; }
@media(max-width:760px) {
 .as-gallery-marker { gap:10px; }
 .as-gallery-marker-room { font-size:.875rem; }
 .as-gallery-marker-walls { gap:6px; }
 .as-gallery-marker-point { width:14px; height:14px; border-width:2px; }
 .as-gallery-marker-point.is-current::before,.as-gallery-marker-point.is-current::after { width:12px; }
}

.as-work-contact { margin:12px 0; scroll-margin-top:16px; }
.as-work-contact-button,.as-work-contact button { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:12px 16px; background:#254f70; color:#fff; border:1px solid #254f70; border-radius:6px; text-decoration:none; font:inherit; cursor:pointer; text-align:center; }
.as-work-contact-form { display:grid; gap:8px; max-width:640px; }
.as-work-contact h3 { font-size:1.1rem; }
.as-work-contact-form > input,.as-work-contact-form textarea { box-sizing:border-box; width:100%; min-width:0; padding:10px; border:1px solid #747a7c; border-radius:4px; font:inherit; color:#202426; background:#fff; }
.as-work-contact-form textarea { resize:vertical; }
.as-work-contact-consent { display:flex; align-items:flex-start; gap:8px; margin:8px 0; }
.as-work-contact-consent input { flex:none; width:20px; height:20px; }
.as-work-contact-privacy { font-size:.875rem; margin:4px 0; }
.as-work-contact-error { color:#8a2020; }
.as-work-contact-trap { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.as-work-contact :focus-visible { outline:3px solid #0877c9; outline-offset:3px; }
@media(max-width:760px) { .as-work-contact-button,.as-work-contact button { box-sizing:border-box; width:100%; } }

/* Le lien d'information garde sa couleur, même après visite et au focus.
 * La précision du sélecteur évite que .as-public-page a gagne la cascade. */
.as-public-page .as-work-contact-button,
.as-public-page .as-work-contact-button:visited {
 display:flex; box-sizing:border-box; max-width:100%; min-height:50px;
 background:transparent; color:#203f56; border:1px solid #254f70;
 border-radius:.5rem; white-space:normal; overflow-wrap:normal;
 line-height:1.5; text-align:center; opacity:1;
}
.as-public-page .as-work-contact-button:hover,
.as-public-page .as-work-contact-button:focus,
.as-public-page .as-work-contact-button:active {
 background:transparent; color:#203f56; border-color:#203f56;
 text-decoration:underline; text-underline-offset:.2em;
}
.as-public-page .as-work-contact-button:focus-visible {
 outline:3px solid #254f70; outline-offset:4px;
}

/* Centrage du seul lien d'information ; formulaire et autres boutons inchangés. */
.as-public-page .as-work-contact-button {
 width:fit-content; margin-inline:auto;
}
@media(max-width:760px) {
 .as-public-page .as-work-contact-button { width:100%; }
}

/* Hiérarchie de la galerie : aucune contrainte ajoutée au conteneur des œuvres. */
.as-public-page .as-gallery-introduction { padding:0; margin:0; border:0; }
.as-gallery-introduction > .as-gallery-exhibition-title {
 margin:0 0 8px; font-family:"Avenir Next",Avenir,"Segoe UI",Helvetica,Arial,sans-serif;
 font-size:clamp(15px,1.5vw,21px); line-height:1.4; font-weight:400; text-align:center;
}
.as-public-gallery .as-gallery-introduction > h1 {
 margin:0 0 12px; font-size:clamp(26px,3vw,42px); line-height:1.2; text-align:center;
 text-wrap:balance; overflow-wrap:normal; word-break:normal;
}
.as-gallery-introduction > .as-gallery-presentation {
 max-width:760px; margin:0 auto; text-align:left;
}
.as-gallery-introduction > .as-gallery-presentation > :first-child { margin-top:0; }
.as-gallery-introduction > .as-gallery-presentation > :last-child { margin-bottom:0; }

/* Halo attaché au rectangle réel : il partage exactement la projection du cadre.
   Son dégradé s’éteint au bas de l’œuvre, avant le cartel (élément frère). */
.as-public-room .panel::after { content:none; }
.as-public-room > .panel .panel-frame::before {
 content:""; position:absolute; z-index:-1; inset:-50% -60% 0;
 border-radius:50%; pointer-events:none;
 background:radial-gradient(ellipse at 50% 56%,rgba(255,250,234,.12),rgba(255,250,234,.045) 30%,rgba(255,250,234,.012) 48%,transparent 68%);
}
/* Projection au sol du même emplacement, avec les mêmes dimensions et la même
   perspective ; seule l’altitude descend au plan du sol. Aucun artiste fictif. */
.as-room-floor-lights { position:absolute; inset:0; pointer-events:none; clip-path:polygon(28% 64%,72% 64%,100% 100%,0 100%); }
.as-public-room .as-room-floor-lights .panel { top:64%; }
.as-public-room .as-room-floor-lights .panel-frame::before {
 content:""; position:absolute; left:-70%; right:-70%; top:0; height:260%;
 border-radius:50%;
 background:radial-gradient(ellipse at center,rgba(255,250,234,.05),rgba(255,250,234,.018) 35%,transparent 70%);
}
@media(max-width:760px) {
 .as-room-floor-lights { clip-path:polygon(25% 61%,75% 61%,100% 100%,0 100%); }
 .as-public-room .as-room-floor-lights .panel { top:61%; }
 .as-public-page .as-single-room > .as-room-navigation { position:absolute; bottom:16px; padding:0; }
 .as-public-page .as-single-room > .as-room-navigation a { flex:0 1 auto; }
}

/* Annuaire HTML du parcours affiché, sans image ni présentation répétée. */
.as-exposition-seo { max-width:900px; margin:2rem auto; padding:0 1rem; }
.as-public-artist-groups { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:1rem 2rem; }
.as-exposition-seo .as-public-artist-group h3 { margin:0 0 .5rem; font-size:1.1rem; }
.as-exposition-seo ul { margin:0; padding-left:1.25rem; }
.as-public-artist-group li { break-inside:avoid; }
.as-public-artist-group a { display:inline-flex; align-items:center; min-height:44px; padding:4px 0; overflow-wrap:anywhere; }

/* Survol à la souris : le cartel accompagne le cadre sans être projeté.
 * Les transformations ne changent ni les dimensions ni la place du slot. */
@media (min-width:1025px) and (hover:hover) and (pointer:fine) {
 .as-public-room > .panel > .panel-surface,
 .as-public-room > .panel > .panel-surface > .panel-frame {
  transition:transform .3s ease-in-out;
 }
 .as-public-room > .panel:hover { z-index:5; }
 .as-public-room > .panel.side:hover > .panel-surface {
  transform:translate(-50%,-50%) scale(1.08);
 }
 .as-public-room > .panel.side[class*="left-"]:hover > .panel-surface > .panel-frame {
  transform:perspective(16vw) rotateY(8deg);
 }
 .as-public-room > .panel.side[class*="right-"]:hover > .panel-surface > .panel-frame {
  transform:perspective(16vw) rotateY(-8deg);
 }
 .as-public-room > .panel.back:hover > .panel-surface,
 .as-public-room > .panel.back-solo:hover > .panel-surface {
  transform:translate(-50%,-50%) scale(1.10);
 }
}
@media (prefers-reduced-motion:reduce) {
 .as-public-room > .panel > .panel-surface,
 .as-public-room > .panel > .panel-surface > .panel-frame {
  transition:none;
 }
}

/* Image agrandie dans un dialogue modal, sans déplacer la galerie. */
.as-gallery-enlarge { display:block; width:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
.as-gallery-enlarge img { display:block; width:100%; height:auto; max-height:70vh; object-fit:contain; }
.as-gallery-enlarge:focus-visible { outline:3px solid #0877c9; outline-offset:4px; }
.as-gallery-work-card { margin:1rem 0 2rem; background:#eeede9; border:1px solid #d6d5cf; }
.as-gallery-work-card > .as-gallery-work { margin:0; border:0; }
.as-gallery-work-text { box-sizing:border-box; width:100%; padding:1.25rem clamp(1rem, 3vw, 2rem); line-height:1.6; overflow-wrap:anywhere; }
.as-gallery-work-text > :first-child { margin-top:0; }
.as-gallery-work-text > :last-child { margin-bottom:0; }
.as-gallery-lightbox { box-sizing:border-box; width:100vw; max-width:none; height:100dvh; max-height:none; margin:0; padding:64px 24px 24px; border:0; background:rgba(15,18,22,.97); color:#fff; overflow:auto; }
.as-gallery-lightbox::backdrop { background:#0f1216; }
.as-lightbox-close { position:fixed; z-index:1; top:12px; right:12px; display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:2px solid #fff; border-radius:50%; background:#20262d; color:#fff; font-size:32px; line-height:1; cursor:pointer; }
.as-lightbox-close:focus-visible { outline:3px solid #7bcaff; outline-offset:3px; }
.as-lightbox-stage { min-height:100%; display:flex; align-items:center; justify-content:center; }
.as-lightbox-stage img { display:block; max-width:100%; width:auto; height:auto; max-height:calc(100dvh - 88px); }
.as-lightbox-stage.can-zoom img { cursor:zoom-in; }
.as-lightbox-stage.is-zoomed { display:block; }
.as-lightbox-stage.is-zoomed img { max-width:none; max-height:none; margin-inline:auto; cursor:zoom-out; }
.as-lightbox-stage img:focus-visible { outline:3px solid #7bcaff; outline-offset:3px; }
@media (max-width:760px) {
    .as-gallery-enlarge img { max-height:65vh; }
    .as-gallery-lightbox { padding:64px 8px 16px; }
    .as-lightbox-stage img { max-height:calc(100dvh - 80px); }
}

/* Galerie : niveaux de navigation et accès direct aux œuvres. */
.as-gallery-image-stage { position:relative; width:fit-content; max-width:100%; margin-inline:auto; touch-action:auto; }
.as-gallery-image-stage:has(> video) { width:100%; }
.as-gallery-image-stage .as-gallery-enlarge { width:auto; max-width:100%; }
.as-gallery-image-stage .as-gallery-enlarge img { width:auto; max-width:100%; }
.as-gallery-image-stage > video { display:block; width:100%; height:auto; max-height:70vh; object-fit:contain; }
.as-gallery-image-arrow { position:absolute; top:50%; transform:translateY(-50%); width:min(48px, 50%); height:48px; max-height:100%; display:flex; align-items:center; justify-content:center; color:#111; text-decoration:none; opacity:0; transition:opacity .15s; touch-action:auto; }
.as-gallery-image-arrow.is-previous { left:0; }
.as-gallery-image-arrow.is-next { right:0; }
.as-gallery-image-arrow span { display:flex; align-items:center; justify-content:center; width:40px; height:40px; max-width:100%; max-height:100%; border-radius:50%; background:rgba(255,255,255,.72); color:#111; font-size:30px; line-height:1; box-shadow:0 1px 4px rgba(0,0,0,.25); }
.as-gallery-image-stage:hover .as-gallery-image-arrow,.as-gallery-image-arrow:focus-visible { opacity:1; }
.as-gallery-image-arrow:focus-visible { outline:3px solid #0877c9; outline-offset:2px; }
.as-gallery-numbers { display:flex; flex-basis:100%; justify-content:center; flex-wrap:wrap; align-items:center; gap:6px; }
.as-public-gallery .as-gallery-numbers a { box-sizing:border-box; flex:0 0 auto; min-width:48px; min-height:48px; padding:8px; }
.as-public-gallery .as-gallery-numbers a[aria-current] { color:#fff; background:#254f70; font-weight:700; }
.as-gallery-gap { padding:0 2px; }
.as-gallery-numbers-mobile { display:none; }
.as-public-gallery .as-gallery-marker { margin-top:2.5rem; }
.as-public-gallery .as-gallery-return { justify-content:flex-start; margin:0 0 1.5rem; }
@media (hover:none), (pointer:coarse) {
    .as-gallery-image-arrow { opacity:1; }
}
@media (max-width:760px) {
    .as-gallery-numbers-desktop { display:none; }
    .as-gallery-numbers-mobile { display:flex; }
    .as-gallery-image-stage > video { max-height:65vh; }
}

/* Plan de salle : cibles distinctes, ronds et segments conservés. */
.as-gallery-marker-link { position:relative; display:flex; flex:1 0 44px; min-width:44px; height:48px; align-items:center; justify-content:center; text-decoration:none; touch-action:auto; }
.as-gallery-marker-link:focus-visible { outline:2px solid #0877c9; outline-offset:-2px; border-radius:6px; }
.as-gallery-marker-tooltip { display:none; position:absolute; z-index:2; bottom:100%; left:50%; transform:translateX(-50%); width:max-content; max-width:180px; padding:5px 8px; border-radius:4px; background:#263b49; color:#fff; font-size:.8rem; font-weight:400; line-height:1.3; pointer-events:none; visibility:hidden; overflow-wrap:anywhere; }
.as-gallery-marker-link:first-child .as-gallery-marker-tooltip { left:0; transform:none; }
.as-gallery-marker-link:last-child .as-gallery-marker-tooltip { left:auto; right:0; transform:none; }
.as-gallery-marker-link:hover .as-gallery-marker-tooltip,.as-gallery-marker-link:focus .as-gallery-marker-tooltip,.as-gallery-marker-link:active .as-gallery-marker-tooltip,
.as-gallery-chapter-link:hover .as-gallery-marker-tooltip,.as-gallery-chapter-link:focus .as-gallery-marker-tooltip,.as-gallery-chapter-link:active .as-gallery-marker-tooltip { display:block; visibility:visible; }
@media(max-width:760px) {
    .as-gallery-marker { flex-wrap:wrap; gap:0; }
    .as-gallery-marker-walls { flex-basis:100%; }
}

.as-gallery-marker-link .as-gallery-marker-tooltip.is-positioned,
.as-gallery-chapter-link .as-gallery-marker-tooltip.is-positioned {
    position:fixed; left:0; right:auto; top:0; bottom:auto; transform:none;
    box-sizing:border-box; max-width:min(260px, calc(100vw - 24px));
    white-space:normal; text-align:center;
}

/* Diapo chapitre : même couleur et même bordure que le cadre d'une œuvre. */
.as-gallery-chapter { width:min(100%, 70vh, 800px); margin:1.5rem auto; }
.as-gallery-chapter-title { margin:0 0 1rem; text-align:center; font-size:clamp(1.5rem, 3vw, 2.2rem); line-height:1.25; overflow-wrap:anywhere; }
.as-gallery-chapter-frame.as-gallery-image-stage { display:flex; align-items:center; justify-content:center; width:100%; aspect-ratio:1; padding:64px 72px; box-sizing:border-box; border:1px solid #d6d5cf; background:rgba(218,237,248,.55); }

.as-gallery-chapter-text { width:100%; max-width:52ch; overflow-wrap:anywhere; line-height:1.7; }
.as-gallery-chapter-text > :first-child { margin-top:0; }
.as-gallery-chapter-text > :last-child { margin-bottom:0; }
@media(max-width:760px) {
    .as-gallery-chapter { width:100%; }
    .as-gallery-chapter-title { font-size:1.5rem; }
}
.as-chapter-symbol { display:inline-block; width:18px; height:10px; border-block:2px solid currentColor; box-sizing:border-box; vertical-align:middle; }

.as-gallery-chapter-link { position:relative; }

/* Formats communs : aucune taille libre nécessaire dans les éditeurs. */
.as-gallery-presentation h2, .as-gallery-work-text h2, .as-gallery-chapter-text h2 { font-size:1.8em; line-height:1.25; margin:1.2em 0 .6em; }
.as-gallery-presentation h3, .as-gallery-work-text h3, .as-gallery-chapter-text h3 { font-size:1.4em; line-height:1.35; margin:1.1em 0 .55em; }
.as-gallery-presentation p, .as-gallery-work-text p, .as-gallery-chapter-text p { margin:0 0 1em; }
.as-gallery-chapter-frame:has([data-as-vertical="top"]) { align-items:flex-start; }
.as-gallery-chapter-frame:has([data-as-vertical="bottom"]) { align-items:flex-end; }
.as-gallery-chapter-frame.as-gallery-image-stage:has([data-as-vertical="top"]),
.as-gallery-chapter-frame.as-gallery-image-stage:has([data-as-vertical="bottom"]) { padding-block:clamp(20px, 2vw, 28px); }
.as-gallery-presentation:has(> [data-as-vertical]), .as-gallery-work-text:has(> [data-as-vertical]) { display:flex; flex-direction:column; }
.as-gallery-presentation > [data-as-vertical="center"], .as-gallery-work-text > [data-as-vertical="center"] { margin-block:auto; }
.as-gallery-presentation > [data-as-vertical="bottom"], .as-gallery-work-text > [data-as-vertical="bottom"] { margin-top:auto; }
@media(max-width:760px) {
    .as-gallery-chapter-frame.as-gallery-image-stage { padding:40px 54px; }
}

/* Repères de progression uniquement visuels ; les gestes traversent la surimpression. */
.as-gallery-progress { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:6px; width:max-content; max-width:calc(100% - 24px); pointer-events:none; }
.as-gallery-progress-dot { flex:0 0 6px; width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.55); box-shadow:0 0 2px rgba(0,0,0,.6); }
.as-gallery-progress-dot.is-chapter { border-radius:1px; }
.as-gallery-progress-dot.is-current { background:#fff; transform:scale(1.15); }
.as-gallery-work > .as-gallery-progress { position:static; transform:none; margin:10px auto; }
@media(max-width:760px) {
    .as-gallery-image-arrow span { width:34px; height:34px; font-size:26px; }
}
