/*
Theme Name: Le Coin Geek des Boby
Version: 1.1.44
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: boby
*/
@import url("https://fonts.googleapis.com/css2?family=Annie+Use+Your+Telescope&family=Bangers&display=swap");

:root {
  --boby-bulle: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2080%2070%22%3E%3Cpath%20fill%3D%22%23fff%22%20stroke%3D%22%23070611%22%20stroke-width%3D%223%22%20stroke-linejoin%3D%22round%22%20d%3D%22M12%205h55q10%200%2010%2010v31q0%2010-10%2010H53l15%2012-34-12H12Q3%2056%203%2046V15Q3%205%2012%205Z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  color-scheme: dark;
  --fond: #080614;
  --texte: #faf6ef;
  --dore: #ffaf17;
  --trait: #383344;
  font-family: "Segoe UI", system-ui, sans-serif;
  background-color: #14182d;
  background-image:
    conic-gradient(from 270deg at 4px 4px, #0b0e1e 90deg, transparent 0),
    conic-gradient(from 270deg at 4px 4px, #0b0e1e 90deg, transparent 0);
  background-size: 13px 26px;
  background-position: 4px 5px, 10px 18px;
  background-attachment: fixed;
  color: var(--texte);
}

* { box-sizing: border-box; }

body {
  display: flow-root;
  max-width: 1124px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--fond);
  box-shadow: -1px 0 #262c46, 1px 0 #262c46;
}

.contenu {
  width: min(88.55%, 1160px);
  margin-inline: auto;
}

.hero {
  position: relative;
  margin-inline: auto;
  aspect-ratio: 1310 / 726;
  container-type: inline-size;
}

.banniere {
  display: block;
  width: 100%;
  height: auto;
}

.boby {
  position: absolute;
  top: 42.6%;
  left: 1.25%;
  width: 29.3%;
  height: auto;
  transform-origin: 50% 88%;
  animation:
    boby-entree 700ms ease-out,
    boby-balancement 5s 1.25s ease-in-out infinite;
}

@keyframes boby-entree {
  0% { opacity: 0; transform: translateY(15%) scale(.72); }
  52% { opacity: 1; transform: translateY(-5%) scale(1.05); }
  74% { transform: translateY(1%) scale(.98); }
  88% { transform: translateY(-1%) scale(1.01); }
  100% { transform: none; }
}

@keyframes boby-balancement {
  0%, 34%, 70%, 100% { transform: none; }
  13%, 19% { transform: rotate(3deg); }
  49%, 55% { transform: rotate(-2.5deg); }
}

.hero h1 {
  position: absolute;
  top: 72.2%;
  left: 32%;
  right: 5%;
  margin: 0;
  padding-inline-start: 8.3cqw;
  font-family: "Annie Use Your Telescope", "Segoe Print", cursive;
  font-size: 5.9cqw;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 2px 5px #080614, 0 0 12px #080614b3;
}

.hero h1::before {
  content: "";
  position: absolute;
  top: .57em;
  left: 0;
  width: 7.1cqw;
  aspect-ratio: 8 / 7;
  background: var(--boby-bulle);
  transform: translateY(-50%) rotate(-7deg);
}

.hero h1 span {
  color: var(--dore);
  text-transform: uppercase;
}

.cartes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dioramas { --accent: #ffaf17; }
.coulisses { --accent: #a9ddfa; }
.bobybat { --accent: #cbb7ff; }
.bobybook { --accent: #ffca8f; }

.carte {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: end;
  aspect-ratio: .95;
  border: 1px solid #45404b;
  border-bottom: 3px solid var(--accent);
  border-radius: 11px;
  background: #141020;
  color: var(--texte);
  text-decoration: none;
  transition: transform .28s cubic-bezier(.2,.75,.3,1.32), box-shadow .25s;
  container-type: inline-size;
}

.carte-fond, .carte::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.carte-fond {
  z-index: -2;
  height: 76%;
  object-fit: cover;
  object-position: center top;
  mask-image: linear-gradient(#000 84%, transparent);
  transition: transform .4s ease;
}

.carte::after {
  content: "";
  z-index: -1;
  background: linear-gradient(180deg, transparent 31%, #0a081530 52%, #0a0815ec 92%, #0a0815);
}

.carte-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 54%;
  height: 48%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.libelle {
  width: 100%;
  position: relative;
  padding: 0 18% 10% 6%;
  font-size: 10.2cqw;
  font-family: Bangers, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: .025em;
  line-height: 1.14;
}

.coulisses .libelle { font-size: 9cqw; }

.fleche {
  position: absolute;
  right: 7%;
  bottom: 10%;
  display: grid;
  place-items: center;
  width: 13%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: max(12px, 5.5cqw);
  color: var(--accent);
  transition: background .22s ease, color .22s ease;
}

.carte:focus-visible, .retour:focus-visible {
  outline: 2px solid var(--accent, var(--dore));
  outline-offset: 4px;
}

.carte:is(:hover, :focus-visible) {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 20%, transparent);
}

.carte:is(:hover, :focus-visible) .carte-fond { transform: scale(1.05); }
.carte:is(:hover, :focus-visible) .fleche { background: var(--accent); color: var(--fond); }

.pied {
  margin-block: 44px 26px;
  border-top: 1px solid var(--trait);
  padding-top: 12px;
  color: #d7d1e2;
  font-size: .94rem;
  font-weight: 650;
}

.destination { padding-block: 40px; }
.retour { color: var(--accent, var(--dore)); }

@media (max-width: 760px) {
  .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero { aspect-ratio: 1.62; }
  .hero h1 { top: 67%; }
  .pied { margin-top: 28px; }
}

@media (max-width: 420px) {
  .contenu { width: 92%; }
  .hero h1 { font-size: 6.25cqw; }
}

@media (prefers-reduced-motion: reduce) {
  .boby { animation: none; }
  .carte, .carte-fond, .fleche { transition: none; }
  .carte:is(:hover, :focus-visible), .carte:is(:hover, :focus-visible) .carte-fond { transform: none; }
}

.bandeau-reseaux {
  width: 94.275%;
  margin-inline: 0 auto;
  border-radius: 0 14px 62px 0;
  border: 1px solid #62daee70;
  box-shadow: 0 12px 32px #05051280, 0 0 24px #37b7ea26;
}

.bandeau-reseaux {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  margin-block-start: clamp(54px, 9vw, 104px);
  padding: clamp(24px, 5vw, 52px);
  background: linear-gradient(115deg, #142759, #145685 56%, #087c96);
}

.bandeau-reseaux h2 {
  margin: 0;
  font: 400 clamp(2rem, 4.6vw, 3.5rem) / 1 Bangers, "Segoe UI", sans-serif;
  letter-spacing: .025em;
}

.reseaux {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reseau {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--trait);
  border-radius: 9px;
  background: #100e20;
  color: var(--texte);
  font: 400 clamp(1rem, 2vw, 1.35rem) Bangers, "Segoe UI", sans-serif;
  letter-spacing: .035em;
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}

.youtube { --accent: #ff8592; }
.facebook { --accent: #a9c8ff; }
.instagram { --accent: #f4a6dd; }
.twitter { --accent: #ffaf17; }

.reseau svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.reseau-fleche {
  margin-inline-start: auto;
  color: var(--accent);
  font: 600 .85rem system-ui, sans-serif;
}

.reseau:is(:hover, :focus-visible):any-link {
  border-color: var(--accent);
  background: #1b1730;
}

.reseau:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.reseau[aria-disabled="true"] { opacity: .65; }

@media (max-width: 760px) {
  .bandeau-reseaux {
    grid-template-columns: minmax(0, 1fr);
  }

  .bandeau-reseaux { border-bottom-right-radius: 38px; }

  .coupure-reseaux { display: none; }
}

@media (max-width: 370px) {
  .reseaux { grid-template-columns: minmax(0, 1fr); }
}

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

.projet-une {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(20px, 4vw, 48px);
  margin-block-start: clamp(48px, 7vw, 82px);
  padding: clamp(18px, 3.8vw, 42px);
  border: 1px solid #3c4350;
  border-inline-start: 3px solid var(--dore);
  border-radius: 12px;
  background: linear-gradient(135deg, #111a1a, #171225 80%);
}

.projet-photo {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: clamp(300px, 40vw, 450px);
  margin: 0;
}

.projet-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.projet-photo figcaption {
  margin-block-start: 8px;
  color: #d7d1e2;
  font-size: .82rem;
}

.projet-presentation { overflow-wrap: anywhere; }
.projet-presentation p { line-height: 1.6; max-width: 50ch; }

.projet-presentation h2,
.projet-presentation .projet-resume,
.projet-photo figcaption {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
}

.projet-presentation .projet-resume { -webkit-line-clamp: 5; }
.projet-presentation:only-child { grid-column: 1 / -1; }

.projet-label, .projet-presentation h2, .lien-fiche-projet {
  font-family: Bangers, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: .035em;
}

.projet-presentation .projet-label {
  margin: 0 0 clamp(14px, 2vw, 24px);
  color: var(--dore);
  font-size: clamp(2rem, 4.3vw, 3.35rem);
  line-height: 1;
}
.projet-presentation h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.9rem); line-height: .98; }

.lien-fiche-projet {
  display: inline-block;
  text-decoration: none;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid var(--dore);
  border-radius: 8px;
  color: var(--dore);
  cursor: pointer;
}

.lien-fiche-projet:hover { background: #ffaf171a; }

.lien-fiche-projet:focus-visible {
  outline: 2px solid var(--dore);
  outline-offset: 4px;
}

@media (max-width: 660px) {
  .projet-une { grid-template-columns: minmax(0, 1fr); }
  .projet-photo { height: clamp(175px, 45vw, 250px); }
}

.scene-parallaxe {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #06113d;
}

.scene-reseaux {
  background: var(--fond);
  display: flow-root;
  margin-block: clamp(44px, 7vw, 86px);
}

.decor-reseaux {
  position: absolute;
  z-index: -2;
  --boby-course-parallaxe: clamp(210px, 23vw, 310px);
  inset: calc(-1 * var(--boby-course-parallaxe)) 0;
  transform: translateY(calc(var(--boby-progression-parallaxe, 0) * var(--boby-course-parallaxe)));
}

.decor-reseaux::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#080e2899, #080e2899) center / cover no-repeat,
    var(--boby-decor, url("assets/fond-boby-reseaux.webp")) center 44% / cover no-repeat;
  transform: scale(1.08);
  transform-origin: 62% 44%;
}

.scene-parallaxe::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(to bottom, var(--fond), transparent 19% 69%, var(--fond));
  pointer-events: none;
}

.scene-reseaux .bandeau-reseaux {
  margin-block-start: 0;
}

@media (max-width: 760px) {
  .decor-reseaux { --boby-course-parallaxe: clamp(125px, 29vw, 205px); }
  .decor-reseaux::before { background-position: 65% center; }
}

@media (prefers-reduced-motion: reduce) {
  .decor-reseaux { inset: 0; transform: none; }
}

.hero {
  z-index: 1;
  isolation: isolate;
}

.plan-banniere {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  mask-image: linear-gradient(#000 81%, transparent);
}

.presentation-boby {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(22px, 5vw, 56px);
  margin-block-start: clamp(20px, 4vw, 48px);
}

.portrait-elar {
  display: block;
  width: min(100%, 275px);
  height: auto;
  justify-self: center;
  border: 2px solid var(--dore);
  border-radius: 16px;
}

.bulle-presentation {
  position: relative;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid #67607c;
  border-radius: 22px;
  background: #181326;
}

.bulle-presentation::before {
  content: "";
  position: absolute;
  top: 47%;
  left: 0;
  width: 19px;
  height: 19px;
  background: inherit;
  border: solid #67607c;
  border-width: 0 0 1px 1px;
  transform: translateX(-50%) rotate(45deg);
}

.bulle-presentation h2 {
  margin: 0;
  color: var(--dore);
  font: 400 clamp(1.8rem, 4vw, 3.25rem) / 1.05 Bangers, "Segoe UI", sans-serif;
  letter-spacing: .025em;
}

.bulle-presentation p {
  white-space: pre-line;
  max-width: 52ch;
  margin: 14px 0 0;
  line-height: 1.6;
}

@media (max-width: 660px) {
  .presentation-boby { grid-template-columns: 1fr; }
  .portrait-elar { width: min(64%, 230px); }
  .bulle-presentation::before {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) rotate(135deg);
  }
}

.scene-ouverture {
  padding-block-end: clamp(28px, 5vw, 58px);
}

.scene-projet,
.scene-presentation,
.scene-destination {
  padding-block: clamp(64px, 10vw, 120px);
}

.scene-projet .projet-une,
.scene-presentation .presentation-boby {
  margin-block-start: 0;
}

.scene-destination .destination {
  padding: clamp(20px, 4vw, 40px);
  background: #080614e8;
  border-radius: 12px;
}

.couverture-univers {
  position: relative;
  width: 100%;
  margin-block-start: -3.2%;
  isolation: isolate;
  aspect-ratio: 4.65;
  min-height: 100px;
}

@media (max-width: 760px) {
  .couverture-univers { margin-block-start: -7%; }
}

.couverture-univers::before,
.couverture-univers::after,
.couverture-photo {
  position: absolute;
  inset: 0;
  width: 100%;
}

.couverture-univers::before,
.couverture-univers::after {
  content: "";
  pointer-events: none;
}

.couverture-univers::before {
  z-index: -2;
  border-bottom-left-radius: 70% 10%;
  background: linear-gradient(100deg, #082f59, #07162d 78%);
}

.couverture-univers::after {
  z-index: -1;
  bottom: 4%;
  border-bottom-left-radius: 72% 13%;
  background: linear-gradient(100deg, #137bb0, #0b365c 70%, #102b43);
}

.couverture-photo {
  height: 92%;
  overflow: hidden;
  border-bottom-left-radius: 74% 16%;
  border-top: 1px solid #4fc9e625;
  border-bottom: 2px solid #79e6fb;
  box-shadow: 0 3px 13px #3ed9ff80;
}

.couverture-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.couverture-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, #080614eb, #08061491 13%, #08061436 27%, transparent 45%);
}

.page-univers .destination h2 {
  margin-top: 0;
  font: 400 clamp(1.5rem, 3vw, 2.25rem) Bangers, "Segoe UI", sans-serif;
}


.contenu-wordpress { overflow-wrap: anywhere; }
.contenu-wordpress img { max-width: 100%; height: auto; }
.contenu-wordpress a { color: var(--dore); }
.contenu-wordpress .wp-block-button__link { color: white; }
.admin-bar .hero { scroll-margin-top: 46px; }

.scene-diorama {
  padding-block: clamp(24px, 4.5vw, 60px);
}

.carte-diorama {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #687eaa80;
  border-radius: 16px;
  background: #141528f2;
  box-shadow: 0 12px 32px #05051280;
}

.photo-diorama {
  display: block;
  align-self: stretch;
  min-width: 0;
}

.photo-diorama img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.presentation-diorama {
  grid-column: -2 / -1;
  padding: clamp(20px, 3vw, 40px);
  overflow-wrap: anywhere;
}

.presentation-diorama:only-child { grid-column: 1 / -1; }

.presentation-diorama h2 {
  margin: 0;
  font: 400 clamp(2rem, 4vw, 3.2rem) / 1.1 "Annie Use Your Telescope", cursive;
}

.presentation-diorama .post-it-diorama {
  position: relative;
  isolation: isolate;
  display: inline-block;
  margin: 0 0 1rem;
  padding: .45em 1.05em .5em;
  transform: rotate(-3deg);
  color: #231704;
  font: 700 1.25rem / 1.15 "Annie Use Your Telescope", "Segoe Print", cursive;
}

.post-it-diorama::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(105deg, #ffb916, #ffcc38 68%, #ffc21c);
  clip-path: polygon(
    4% 10%, 19% 7%, 31% 8%, 45% 4%, 59% 5%, 75% 2%, 94% 4%,
    98% 12%, 96% 20%, 99% 27%, 97% 35%, 100% 45%, 97% 55%,
    99% 65%, 96% 74%, 97% 87%, 88% 91%, 70% 92%, 52% 95%,
    35% 93%, 16% 98%, 5% 95%, 3% 84%, 5% 77%, 1% 67%,
    3% 58%, 0 47%, 2% 33%, 5% 25%, 3% 18%
  );
}

.fiche-diorama .contenu-wordpress .wp-block-media-text {
  overflow: hidden;
  margin-block: 1.5rem;
  border: 1px solid #687eaa80;
  border-radius: 14px;
  background: #141528;
}

@media (max-width: 650px) {
  .carte-diorama { grid-template-columns: minmax(0, 1fr); }
}

.scene-diorama-pleine,
.scene-contact-diorama {
  background: var(--fond);
}

.scene-contact-diorama {
  display: flow-root;
  padding-block: clamp(16px, 3vw, 30px);
}

.scene-contact-diorama .bandeau-contact-diorama {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1.1rem;
  margin-block-start: 0;
  padding: .4rem 1.25rem;
  border-bottom-right-radius: 30px;
  font: 400 clamp(1.1rem, 2.2vw, 1.7rem) / 1.08 Bangers, "Segoe UI", sans-serif;
  letter-spacing: .03em;
}

.bandeau-contact-diorama p { margin: 0; }

.bandeau-contact-diorama a {
  display: inline-block;
  padding: .22em .65em;
  border-radius: 6px;
  background: #100e20;
  color: var(--dore);
  text-decoration: none;
}

.bandeau-contact-diorama a:is(:hover, :focus-visible) {
  color: #100e20;
  background: var(--dore);
}

.statut-carte {
  position: absolute;
  inset: 15% -8% auto;
  z-index: 1;
  padding: .3em 11%;
  transform: rotate(-9deg);
  border-block: 1px dashed #120e1c99;
  background: #e5ccaa;
  color: #211b22;
  box-shadow: 0 3px 8px #080614a6;
  text-align: center;
  font: 400 clamp(.85rem, 9cqw, 1.5rem) / 1 Bangers, "Segoe UI", sans-serif;
}

.bobybook .statut-carte {
  transform: rotate(8deg);
  background: #ffcf65;
}

.toile-carte {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  width: 40%;
  aspect-ratio: 1;
  color: #f2e9e0b3;
  background:
    repeating-radial-gradient(circle at 0 0, transparent 0 13%, currentColor 13.5% 14.4%, transparent 15% 17%),
    repeating-conic-gradient(from 90deg at 0 0, currentColor 0 1.3deg, transparent 2deg 22deg);
  mask-image: radial-gradient(circle at 0 0, black 51%, transparent 69%);
  pointer-events: none;
}

.barre-retour[hidden] { display: none; }

.barre-retour {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  width: min(100%, 1124px);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 1rem;
  padding: 4px clamp(10px, 3vw, 28px);
  border-bottom: 1px solid #26334c;
  background: #080614;
  box-shadow: 0 4px 12px #08061480;
}

.barre-retour a {
  padding: 5px 4px;
  color: var(--texte);
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none;
}

.barre-retour a:is(:hover, :focus-visible) { color: var(--dore); }

@media (min-width: 601px) {
  .admin-bar .barre-retour { top: var(--wp-admin--admin-bar--height, 32px); }
}

@media (min-width: 601px) and (max-width: 782px) {
  .admin-bar .barre-retour { top: var(--wp-admin--admin-bar--height, 46px); }
}

.scene-corps-fiche {
  container-type: inline-size;
  background: var(--fond);
}

.fiche-diorama .hero h1 {
  font-size: clamp(1.05rem, 5.2cqw, 3.65rem);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.intro-diorama {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 56px);
  padding-inline-end: 5.725%;
  background: var(--fond);
}

.intro-diorama-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid #62daee70;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 0 24px #37b7ea26;
}

.intro-diorama-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.intro-diorama-texte {
  position: relative;
  padding-inline-start: 20px;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.intro-diorama-texte:only-child {
  grid-column: 1 / -1;
  margin-inline-start: 6.1%;
}

.intro-diorama-texte::before {
  content: "";
  position: absolute;
  inset: .25em auto auto 5px;
  width: 4px;
  height: 1em;
  border-radius: 2px;
  transform: rotate(19deg);
  background: var(--dore);
}

.intro-diorama-texte > :first-child { margin-block-start: 0; }
.intro-diorama-texte > :last-child { margin-block-end: 0; }
.fiche-diorama .scene-corps-fiche .destination { padding-block-start: 12px; }

@media (max-width: 660px) {
  .intro-diorama {
    grid-template-columns: minmax(0, 1fr);
    padding-inline-end: 0;
  }
  .intro-diorama-photo { max-width: 88%; }
  .intro-diorama-photo img { max-height: 390px; }
  .intro-diorama-texte { margin-inline: 6.1%; }
}

.fiche-diorama .wp-block-gallery img { border-radius: 8px; }


.retour-precedent {
  position: absolute;
  inset: auto clamp(10px, 1.3cqw, 16px) calc(3.2cqw + 6px) auto;
  padding: 3px 6px;
  color: #d7d9e7;
  font: 500 .78rem / 1.3 "Segoe UI", sans-serif;
  text-decoration: none;
}

.retour-precedent:is(:hover, :focus-visible) {
  color: var(--dore);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .retour-precedent { inset-block-end: calc(7cqw + 3px); }
}

.boby-abonnement {
  position: fixed;
  right: max(clamp(8px, 1.5vw, 26px), env(safe-area-inset-right));
  bottom: max(clamp(8px, 1.5vw, 22px), env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .4em .7em;
  border: 1px solid var(--dore);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(125deg, #18203a, #101021);
  box-shadow: 0 5px 18px #060510cf, 0 0 14px #ffaf1740;
  font: 400 clamp(.95rem, 2vw, 1.25rem) / 1 Bangers, "Segoe UI", sans-serif;
  text-decoration: none;
  animation: boby-abonnement-entree .7s both, boby-abonnement-rebond 14s .7s infinite;
}

.boby-abonnement[hidden] { display: none; }
.boby-abonnement svg { width: 1.55em; height: 1.55em; flex: none; }
.boby-abonnement:is(:hover, :focus-visible) { color: var(--dore); animation-play-state: paused, paused; }
.boby-abonnement:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@keyframes boby-abonnement-entree {
  0% { opacity: 0; transform: translateY(18px) scale(.72); }
  58% { opacity: 1; transform: translateY(-9px) scale(1.07); }
  79% { transform: translateY(2px) scale(.98); }
  100% { opacity: 1; transform: none; }
}

@keyframes boby-abonnement-rebond {
  0%, 93%, 100% { transform: none; }
  95% { transform: translateY(-9px); }
  97% { transform: translateY(1px); }
  98.5% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .boby-abonnement { animation: none; }
}

.cabinet-boby {
  width: min(90%, 740px);
  margin: 0 auto;
  padding: clamp(20px, 5vw, 46px);
  scroll-margin-top: 5rem;
  border: 1px solid #62daee70;
  border-radius: 10px 24px 24px 24px;
  background: linear-gradient(145deg, #14233a, #111025 65%);
  box-shadow: 0 0 30px #37b7ea26;
}

.hero-titre-avec-sous-titre {
  position: absolute;
  top: 72.2%;
  left: 32%;
  right: 5%;
  width: fit-content;
  max-width: 63%;
  padding-inline-start: 8.3cqw;
}

.hero .hero-titre-avec-sous-titre h1 {
  position: static;
  padding: 0;
}

.hero-sous-titre {
  margin: .08em 0 0;
  color: #ddd7ea;
  text-align: right;
  overflow-wrap: anywhere;
  font: 400 clamp(.85rem, 2.3cqw, 1.6rem) / 1.05 "Annie Use Your Telescope", "Segoe Print", cursive;
}

@media (max-width: 760px) {
  .hero-titre-avec-sous-titre { top: 62%; }
}

.cabinet-boby h2 {
  margin: 0 0 1.2rem;
  font: 400 clamp(1.9rem, 5vw, 3rem) / 1 Bangers, "Segoe UI", sans-serif;
}

.cabinet-boby h2 span { color: var(--dore); }

.cabinet-boby form { display: grid; gap: .55rem; }
.cabinet-boby label { font-weight: 650; }

.cabinet-boby :is(select, input, textarea) {
  width: 100%;
  margin: 0 0 .9rem;
  padding: .8rem 1rem;
  border: 1px solid #566284;
  border-radius: 8px;
  background-color: #090b1a;
  color: var(--texte);
  font: inherit;
}

.cabinet-boby select {
  appearance: none;
  padding-inline-end: 2.6rem;
  background-image: linear-gradient(45deg, transparent 50%, #ffb32a 50%), linear-gradient(135deg, #ffb32a 50%, transparent 50%);
  background-position: right 1.22rem center, right .92rem center;
  background-size: .3rem .3rem;
  background-repeat: no-repeat;
}

.cabinet-boby textarea { resize: vertical; }

.cabinet-boby button {
  justify-self: start;
  padding: .6rem 1.2rem;
  border: 1px solid var(--dore);
  border-radius: 8px;
  background: var(--dore);
  color: #100e20;
  font: 400 1.3rem / 1 Bangers, "Segoe UI", sans-serif;
  cursor: pointer;
}

.cabinet-boby button:hover { background: #ffd479; }
.cabinet-boby :focus-visible { outline: 2px solid #62daee; outline-offset: 3px; }

.cabinet-statut {
  padding: .75rem 1rem;
  border-inline-start: 3px solid #62daee;
  background: #0a1020;
}

.cabinet-erreur { border-inline-start-color: #ff8bae; }

.boby-corps-page > :not(.boby-section, .boby-image-texte) {
  margin-inline: 5.725%;
}

.boby-corps-page > .boby-image-texte,
.boby-corps-page > .boby-section {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
