.boby-photo-annotee {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 3vw, 30px);
  margin-block: 1.5rem;
}

.boby-photo-annotee:not(:has(.boby-notes)) { grid-template-columns: minmax(0, 1fr); }

.boby-photo-reperes {
  position: relative;
  min-width: 0;
  border-radius: 12px;
}

.boby-photo-reperes img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.boby-repere {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  width: clamp(28px, 4vw, 38px);
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #101830;
  color: #fff;
  font: 700 1rem / 1 system-ui, sans-serif;
  cursor: pointer;
  touch-action: none;
}

.boby-repere[hidden],
.boby-note[hidden] { display: none; }

.boby-repere:is(:hover, [aria-expanded="true"], [aria-pressed="true"]) {
  background: #ffbc35;
  border-color: #181225;
  color: #181225;
}

.boby-repere:focus-visible { outline: 3px solid #ffbc35; outline-offset: 3px; }

.boby-note {
  position: relative;
  margin-block-end: 12px;
  padding: clamp(14px, 3vw, 26px);
  overflow-wrap: anywhere;
  border: 1px solid #d19a3b;
  border-radius: 14px;
  background: #101830;
  color: #faf6ef;
}

.boby-note::before {
  content: "";
  position: absolute;
  inset: calc(var(--boby-note-pointer, 33px) - 6px) auto auto -7px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border-inline-start: 1px solid #d19a3b;
  border-block-end: 1px solid #d19a3b;
  background: #101830;
}

.boby-note h3 {
  margin: 0;
  color: #ffbc35;
  font: 400 clamp(1.25rem, 3vw, 1.85rem) / 1.1 Bangers, sans-serif;
}

.boby-note p { margin: .65em 0 0; }

.boby-atelier {
  padding: clamp(18px, 4vw, 42px);
  border-radius: 14px;
  margin-block: 2rem;
}

.boby-atelier-editor {
  padding: 16px;
  border: 1px dashed #64748b;
  border-radius: 12px;
}

.boby-reperes-commandes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.boby-ajout-repere { cursor: crosshair; }
.boby-edition-note { padding-block-start: 12px; }

@media (min-width: 661px) {
  .boby-note { transform: translateY(var(--boby-note-offset, 0px)); }
}

@media (max-width: 660px) {
  .boby-photo-annotee { grid-template-columns: minmax(0, 1fr); }
  .boby-note::before { display: none; }
}

.fiche-diorama .boby-titre-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .28em;
  margin-block: 1.5em .6em;
  color: var(--texte);
  font: 700 clamp(1.85rem, 4.2vw, 3rem) / 1 "Annie Use Your Telescope", "Segoe Print", cursive;
}

.boby-titre-section::before {
  content: "";
  display: block;
  flex: 0 0 1.25em;
  height: 1.1em;
  margin-inline-end: .12em;
  transform: rotate(-7deg);
  background: var(--boby-bulle);
}

.boby-titre-section::after {
  content: "";
  flex: 1 1 20px;
  height: 1px;
  margin-inline-start: .35em;
  background: #ffbc357c;
}

.boby-titre-section span { color: var(--dore); }

.fiche-diorama .boby-atelier > .boby-titre-atelier {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .36em;
  margin-block: .1em .7em;
  color: #ffc247;
  text-align: center;
  font: 400 clamp(2rem, 5.3vw, 3.7rem) / 1.03 Bangers, sans-serif;
  text-shadow: 2px 3px #07091c, 0 0 24px #ffbc3555;
}

.boby-titre-atelier::before,
.boby-titre-atelier::after {
  content: "";
  flex: 0 0 .52em;
  height: .75em;
  background:
    linear-gradient(25deg, transparent 41%, #ffc247 43% 55%, transparent 58%) top right / 80% 34% no-repeat,
    linear-gradient(#ffc247, #ffc247) center / 100% 2px no-repeat,
    linear-gradient(-25deg, transparent 41%, #ffc247 43% 55%, transparent 58%) bottom right / 80% 34% no-repeat;
}

.boby-titre-atelier::after { transform: scaleX(-1); }

.boby-photo-zoom {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  transition: box-shadow .2s;
}

.boby-photo-zoom:is(:hover, :focus-visible) {
  z-index: 1;
  outline: 2px solid #63dded;
  outline-offset: -2px;
  box-shadow: 0 0 18px #63dded7a, inset 0 0 16px #63dded6b;
}

.boby-photo-zoom:is(:hover, :focus-visible)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 18px #63dded88;
}

.wp-block-gallery figure.wp-block-image .boby-photo-zoom > img {
  display: block;
  width: 100%;
  height: 100%;
}

.wp-block-image:not(.wp-block-gallery .wp-block-image) .boby-photo-zoom {
  display: inline-block;
  max-width: 100%;
  width: auto;
  height: auto;
}

.wp-block-image .boby-photo-zoom > img {
  vertical-align: middle;
}

.boby-agrandissement {
  position: fixed;
  inset: 0;
  max-width: calc(100% - 20px);
  max-height: calc(100% - 20px);
  margin: auto;
  padding: 12px;
  border: 1px solid #63dded;
  border-radius: 12px;
  background: #101830;
  color: #fff;
}
.boby-agrandissement::backdrop { background: #050813e8; }
.boby-agrandissement img {
  display: block;
  max-width: min(88vw, 1440px);
  max-height: 78vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}
.boby-agrandissement button {
  display: block;
  margin: 0 0 8px auto;
  padding: 5px 10px;
  border: 1px solid #ffc247;
  border-radius: 6px;
  background: #101830;
  color: #ffc247;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .boby-photo-zoom { transition: none; }
}

.wp-lightbox-container:is(:hover, :focus-within) {
  outline: 2px solid #63dded;
  outline-offset: -2px;
  box-shadow: 0 0 18px #63dded7a;
}

.fiche-diorama .boby-atelier {
  width: 100cqw;
  max-width: none;
  margin-inline: calc(50% - 50cqw);
  padding-inline: max(clamp(18px, 4vw, 42px), 5.725cqw);
  border-radius: 0;
}

.fiche-diorama .scene-corps-fiche .scene-contact-diorama {
  width: 100cqw;
  margin-inline: calc(50% - 50cqw);
}

.boby-contact-editor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding: 10px 16px;
  border-radius: 0 14px 30px 0;
  background: linear-gradient(115deg, #142759, #145685 56%, #087c96);
  color: #fff;
}

.boby-contact-editor strong { color: #ffbc35; }

.boby-note-zoom {
  position: relative;
  width: min(100%, 144px);
  aspect-ratio: 1;
  margin-block-start: .9rem;
  overflow: hidden;
  border: 1px solid #62daee70;
  border-radius: 8px;
  background: #080614;
}

.fiche-diorama .contenu-wordpress .boby-note-zoom img,
.boby-note-zoom img {
  position: absolute;
  display: block;
  max-width: none;
  width: var(--zoom-width);
  height: var(--zoom-height);
  left: var(--zoom-left);
  top: var(--zoom-top);
}

.boby-note-zoom { margin-inline: auto; }

.boby-video-diorama {
  margin-block-start: clamp(26px, 5vw, 56px);
}

.boby-video-diorama iframe {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border: 1px solid #62daee70;
  border-radius: 14px;
  background: #080614;
  box-shadow: 0 0 24px #37b7ea26;
}

.boby-video-diorama .boby-video-abonnement {
  margin: 1rem auto 0;
  padding-inline: .6rem;
  color: var(--dore);
  text-align: center;
  font: 400 clamp(1.4rem, 3vw, 2rem) / 1.2 "Annie Use Your Telescope", "Segoe Print", cursive;
}

.fiche-diorama .destination:has(> .boby-video-diorama:last-child .boby-video-abonnement) {
  padding-block-end: 0;
}

.fiche-diorama .scene-corps-fiche:has(.destination > .boby-video-diorama:last-child .boby-video-abonnement) + .scene-reseaux {
  margin-block-start: 0;
}

.fiche-diorama .destination > .boby-video-diorama:last-child .boby-video-abonnement {
  margin-block: 0;
  padding-block: clamp(24px, 5vw, 54px);
}

.boby-video-indisponible {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding: 1rem .6rem;
  text-align: center;
}

.boby-video-indisponible p { margin: 0; }

.boby-video-age {
  display: block;
  flex: 0 0 auto;
  width: 3.1rem;
  height: auto;
  border-radius: 50%;
}

.contenu-wordpress .boby-section .boby-titre-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .28em;
  margin-block: 0 .6em;
  color: var(--texte);
  font: 400 clamp(1.5rem, 3vw, 2.25rem) / 1.1 Bangers, "Segoe UI", sans-serif;
}

.boby-section,
.boby-image-texte {
  margin-block: clamp(24px, 4vw, 48px);
}

.intro-diorama.boby-image-texte {
  background: var(--fond);
}

.boby-image-texte-editor {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 20px;
}

.boby-image-texte-editor img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
}

@media (max-width: 660px) {
  .boby-image-texte-editor { grid-template-columns: minmax(0, 1fr); }
}

.boby-section {
  background: var(--fond);
  padding-block: clamp(24px, 4vw, 48px);
  margin-block: 0;
}

.boby-section-contenu {
  padding-inline: 5.725%;
}

.boby-section-contenu > :last-child { margin-block-end: 0; }
.boby-titre-section .boby-section-libelle { color: inherit; min-width: 0; }
.boby-titre-section .boby-section-accent { color: var(--dore); }
