@charset "UTF-8";

/* ── Meyer Reset ───────────────────────────────────────────── */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ── Base ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-style: italic;
  font-weight: 500;
  font-family: "Feronia";
  src:
    url("fonts/Feroniapi-MediumItalic.woff") format("woff"),
    url("fonts/Feroniapi-MediumItalic.woff2") format("woff2");
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.position-fixed {
  position: fixed;
}

.transition-on {
  background-color: rgb(231, 230, 230);
}

/* ── Fade overlay ──────────────────────────────────────────── */
#fade-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* ── Scroll hint (flèche droite) ───────────────────────────── */
#scroll-hint {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  cursor: default;
}
#scroll-hint.visible {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}
#scroll-hint svg {
  width: 28px;
  height: 28px;
  animation: pulse-right 2s ease-in-out infinite;
}
@keyframes pulse-right {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.35;
  }
  50% {
    transform: translateX(5px);
    opacity: 0.75;
  }
}

/* ── Background image ──────────────────────────────────────── */
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ══════════════════════════════════════════════════════════════
   PAGE 01 — intro Heidi
═══════════════════════════════════════════════════════════════ */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.2s ease;
}
#intro.fade-out {
  opacity: 0;
}

#intro-titre {
  font-family: "Feronia", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 9rem);
  color: black;
  -webkit-text-stroke: 0;
  line-height: 1;
}
#intro-auteur {
  font-family: "Feronia", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 3.5rem);
  color: black;
  -webkit-text-stroke: 0;
  line-height: 1;
}

/* ── Texte histoire (pages 01 / 03 / 05) ──────────────────── */
.contenu-texte {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  padding: 70px 8vw 0;
  text-align: center;
}
/* page 01 : démarre invisible */
.contenu-texte.hidden-start {
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.contenu-texte.hidden-start.visible {
  opacity: 1;
  pointer-events: auto;
}

.contenu-texte p {
  font-family: "Feronia", serif;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0);
  -webkit-text-stroke: 1px black;
  font-size: clamp(2rem, 4vw, 5rem);
  line-height: 1.1;
  transition:
    opacity 1s ease,
    color 0.4s ease;
  cursor: default;
}
#texte-2 {
  opacity: 0;
  pointer-events: none;
}
.contenu-texte p:hover {
  color: black;
}

/* ── Badges (pages 01 / 03 / 05) ──────────────────────────── */
.badge {
  position: fixed;
  top: 0;
  left: 0;
  will-change: transform;
  z-index: 15;
}
/* page 01 : badges démarrent invisibles */
.badge.hidden-start {
  opacity: 0;
  transition: opacity 1s ease;
}
.badge.hidden-start.visible {
  opacity: 1;
}

.badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.badge-1 {
  width: 113px;
  height: 113px;
}
.badge-2 {
  width: 277px;
  height: 77px;
}

/* ══════════════════════════════════════════════════════════════
   PAGE 02 — l'ascension (chèvres)
═══════════════════════════════════════════════════════════════ */
.paturage-mobile {
  display: none;
}
.paturage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.paturage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 130%;
  object-fit: contain;
}
.troupeau {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
.chevre {
  position: absolute;
  width: clamp(50px, 8vw, 130px);
  top: 0;
  left: 0;
  transform-origin: center bottom;
  will-change: transform;
  pointer-events: all;
  cursor: default;
}
.chevre.slow {
  cursor: default;
}
.chevre.fast {
  cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(123, 79, 166, 0.9))
    drop-shadow(0 0 14px rgba(123, 79, 166, 0.5));
  animation: fast-glow 1.5s ease-in-out infinite;
}
@keyframes fast-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(123, 79, 166, 0.7))
      drop-shadow(0 0 10px rgba(123, 79, 166, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(123, 79, 166, 1))
      drop-shadow(0 0 22px rgba(123, 79, 166, 0.6))
      drop-shadow(0 0 40px rgba(123, 79, 166, 0.3));
  }
}
.chevre.caught {
  animation: caught-pulse 0.4s ease forwards;
}
@keyframes caught-pulse {
  0% {
    filter: drop-shadow(0 0 0px rgba(123, 79, 166, 0));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(123, 79, 166, 0.9));
  }
  100% {
    filter: none;
  }
}

/* ── Roches (page 02) ──────────────────────────────────────── */
.roches {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.roche {
  position: absolute;
}

/* page 02 roches */
.page-02 .roche-a {
  width: 4%;
  top: 70%;
  left: 80%;
}
.page-02 .roche-b {
  width: 5%;
  top: 55%;
  left: 20%;
}
.page-02 .roche-c {
  width: 3%;
  top: 30%;
  left: 72%;
}
.page-02 .roche-d {
  width: 4%;
  top: 70%;
  left: 55%;
}
.page-02 .roche-e {
  width: 5%;
  top: 60%;
  left: 70%;
}
.page-02 .roche-f {
  width: 12%;
  top: 40%;
  left: 80%;
}
.page-02 .roche-g {
  width: 11%;
  top: 60%;
  left: 30%;
}
.page-02 .roche-h {
  width: 10%;
  top: 20%;
  left: 10%;
}

/* ── Violettes (page 02) ───────────────────────────────────── */
.violettes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.violette {
  position: absolute;
}
.violette-a {
  width: 3%;
  top: 80%;
  left: 7%;
}
.violette-b {
  width: 2.5%;
  top: 82%;
  left: 11%;
}
.violette-c {
  width: 4%;
  top: 79%;
  left: 9%;
}
.violette-d {
  width: 2.5%;
  top: 83%;
  left: 18%;
}
.violette-e {
  width: 3%;
  top: 80%;
  left: 27%;
}
.violette-f {
  width: 4%;
  top: 82%;
  left: 31%;
}
.violette-g {
  width: 2.5%;
  top: 75%;
  left: 42%;
}
.violette-h {
  width: 3%;
  top: 80%;
  left: 50%;
}
.violette-i {
  width: 4%;
  top: 82%;
  left: 54%;
}
.violette-j {
  width: 2.5%;
  top: 79%;
  left: 58%;
}
.violette-k {
  width: 3%;
  top: 73%;
  left: 68%;
}
.violette-l {
  width: 4%;
  top: 80%;
  left: 72%;
}
.violette-m {
  width: 2.5%;
  top: 83%;
  left: 82%;
}
.violette-n {
  width: 3%;
  top: 71%;
  left: 86%;
}
.violette-o {
  width: 4%;
  top: 82%;
  left: 89%;
}

/* ── Messages (pages 02 / 04 / 06) ────────────────────────── */
.message-intro {
  position: fixed;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Feronia", serif;
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  color: #6b2aaa;
  text-shadow: 0 0 10px rgba(123, 79, 166, 0.4);
  white-space: nowrap;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  animation: message-appear 4s ease forwards;
}
@keyframes message-appear {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.message-final {
  position: fixed;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Feronia", serif;
  font-style: italic;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
}
/* variante page 02 */
.page-02 .message-final {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  width: clamp(200px, 100vw, 950px);
}
/* variante page 04 */
.page-04 .message-final {
  top: 4%;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  width: clamp(200px, 55vw, 950px);
}
/* variante page 06 */
.page-06 .message-final {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  width: clamp(200px, 96vw, 1600px);
  -webkit-text-stroke: 0;
}

/* ══════════════════════════════════════════════════════════════
   PAGE 04 — chalet
═══════════════════════════════════════════════════════════════ */
.montagne-mobile {
  display: none;
}
.montagne {
  position: fixed;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: 85%;
  z-index: 0;
  pointer-events: none;
}
.montagne img {
  width: 100%;
  height: 110%;
}
.chalet {
  position: fixed;
  bottom: 51%;
  right: 8%;
  z-index: 2;
  pointer-events: none;
}
.chalet img {
  height: 25vh;
  width: auto;
}

/* ── Sapins (pages 04 / 06) ────────────────────────────────── */
.sapins {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.sapin {
  position: absolute;
  cursor: pointer;
  transform-origin: center bottom;
  pointer-events: all;
}

/* page 04 sapins */
.page-04 .sapin-a {
  width: 12%;
  bottom: 36%;
  left: 12%;
}
.page-04 .sapin-b {
  width: 9%;
  bottom: 32%;
  left: 17%;
}
.page-04 .sapin-c {
  width: 12%;
  bottom: 26%;
  left: 58%;
}
.page-04 .sapin-d {
  width: 10%;
  bottom: 21%;
  left: 55%;
}
.page-04 .sapin-e {
  width: 12%;
  bottom: 65%;
  right: 18%;
}
.page-04 .sapin-f {
  width: 9%;
  bottom: 60%;
  right: 24%;
}
.page-04 .sapin-g {
  width: 9%;
  bottom: 62%;
  right: 3%;
}
.page-04 .sapin-h {
  width: 8%;
  bottom: 44%;
  right: 8%;
}

/* page 06 sapins — numéros debug désactivés */
.page-06 .sapins {
  z-index: 4;
}
.page-06 .sapin::after {
  display: none;
}
.page-06 .sapin-a {
  width: 10%;
  bottom: 50%;
  left: 3%;
}
.page-06 .sapin-b {
  width: 7%;
  bottom: 45%;
  left: 10%;
}
.page-06 .sapin-c {
  width: 9%;
  bottom: 40%;
  left: 30%;
}
.page-06 .sapin-d {
  width: 5%;
  bottom: 33%;
  left: 48%;
}
.page-06 .sapin-e {
  width: 7%;
  bottom: 38%;
  left: 52%;
}
.page-06 .sapin-f {
  width: 12%;
  bottom: 18%;
  left: 60%;
}
.page-06 .sapin-g {
  width: 5%;
  bottom: 30%;
  right: 18%;
}
.page-06 .sapin-h {
  width: 10%;
  bottom: 28%;
  right: 6%;
}

@keyframes sapin-gigote {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(2deg);
  }
  40% {
    transform: rotate(-2.5deg);
  }
  60% {
    transform: rotate(1.5deg);
  }
  80% {
    transform: rotate(-1deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
.sapin.gigote {
  animation: sapin-gigote 0.6s ease-in-out;
}

@keyframes sapin-ecarte-gauche {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-100px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes sapin-ecarte-droite {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(100px);
  }
  100% {
    transform: translateX(0);
  }
}
.sapin.ecarte-gauche {
  animation: sapin-ecarte-gauche 0.8s ease-in-out;
}
.sapin.ecarte-droite {
  animation: sapin-ecarte-droite 0.8s ease-in-out;
}

/* ── Roches page 04 ────────────────────────────────────────── */
.page-04 .roche-a {
  width: 3%;
  top: 80%;
  left: 7%;
}
.page-04 .roche-b {
  width: 2.5%;
  top: 82%;
  left: 11%;
}
.page-04 .roche-c {
  width: 4%;
  top: 79%;
  left: 9%;
}
.page-04 .roche-d {
  width: 2.5%;
  top: 83%;
  left: 18%;
}
.page-04 .roche-e {
  width: 3%;
  top: 80%;
  left: 27%;
}
.page-04 .roche-f {
  width: 4%;
  top: 82%;
  left: 31%;
}
.page-04 .roche-g {
  width: 2.5%;
  top: 75%;
  left: 42%;
}
.page-04 .roche-h {
  width: 3%;
  top: 80%;
  left: 50%;
}
.page-04 .roche-i {
  width: 4%;
  top: 82%;
  left: 54%;
}
.page-04 .roche-j {
  width: 2.5%;
  top: 79%;
  left: 58%;
}
.page-04 .roche-k {
  width: 3%;
  top: 73%;
  left: 68%;
}
.page-04 .roche-l {
  width: 4%;
  top: 80%;
  left: 72%;
}
.page-04 .roche-m {
  width: 2.5%;
  top: 83%;
  left: 82%;
}
.page-04 .roche-n {
  width: 3%;
  top: 71%;
  left: 86%;
}
.page-04 .roche-o {
  width: 4%;
  top: 82%;
  left: 89%;
}

/* ── Banc caché (pages 04 / 06) ────────────────────────────── */
.banc-cache {
  position: fixed;
  width: 8%;
  height: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.banc-cache.visible {
  opacity: 1;
}
.banc-cache.trouve {
  z-index: 200;
  animation: banc-apparait 1.8s ease forwards;
}
@keyframes banc-apparait {
  0% {
    opacity: 0;
    transform: scale(0.6);
    filter: none;
  }
  30% {
    opacity: 1;
    transform: scale(2);
    filter: drop-shadow(0 0 10px rgba(123, 79, 166, 0.9))
      drop-shadow(0 0 30px rgba(123, 79, 166, 0.5));
  }
  60% {
    opacity: 1;
    transform: scale(2);
    filter: drop-shadow(0 0 10px rgba(123, 79, 166, 0.9))
      drop-shadow(0 0 30px rgba(123, 79, 166, 0.5));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   PAGE 06 — alpes
═══════════════════════════════════════════════════════════════ */
.fond-paysage {
  position: fixed;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fond-desktop {
  display: block;
  width: 95%;
  height: 102%;
  object-fit: unset;
}
.fond-mobile {
  display: none;
}

/* ── Roches page 06 (violettes) ────────────────────────────── */
.page-06 .roches {
  z-index: 2;
}
.page-06 .roche-a {
  width: 2%;
  top: 79%;
  left: 4%;
}
.page-06 .roche-b {
  width: 1.4%;
  top: 81%;
  left: 6%;
}
.page-06 .roche-c {
  width: 1.8%;
  top: 78%;
  left: 8%;
}
.page-06 .roche-d {
  width: 1.5%;
  top: 85%;
  left: 17%;
}
.page-06 .roche-e {
  width: 2%;
  top: 72%;
  left: 23%;
}
.page-06 .roche-f {
  width: 1.6%;
  top: 74%;
  left: 25%;
}
.page-06 .roche-g {
  width: 1.8%;
  top: 88%;
  left: 35%;
}
.page-06 .roche-h {
  width: 2.2%;
  top: 76%;
  left: 44%;
}
.page-06 .roche-i {
  width: 1.5%;
  top: 79%;
  left: 46%;
}
.page-06 .roche-j {
  width: 1.9%;
  top: 84%;
  left: 48%;
}
.page-06 .roche-k {
  width: 1.4%;
  top: 80%;
  left: 50%;
}
.page-06 .roche-l {
  width: 1.7%;
  top: 71%;
  left: 63%;
}
.page-06 .roche-m {
  width: 2%;
  top: 73%;
  left: 65%;
}
.page-06 .roche-n {
  width: 1.6%;
  top: 87%;
  left: 75%;
}
.page-06 .roche-o {
  width: 2%;
  top: 82%;
  left: 86%;
}
.page-06 .roche-p {
  width: 1.8%;
  top: 85%;
  left: 88%;
}
.page-06 .roche-q {
  width: 1.5%;
  top: 80%;
  left: 91%;
}
.page-06 .roche-r {
  width: 2%;
  top: 73%;
  left: 94%;
}
.caillou-a {
  width: 1.9%;
  top: 86%;
  left: 14%;
  position: absolute;
}
.caillou-b {
  width: 2.1%;
  top: 74%;
  left: 57%;
  position: absolute;
}
.caillou-c {
  width: 1.7%;
  top: 77%;
  left: 92%;
  position: absolute;
}

/* ── Chèvres page 06 ───────────────────────────────────────── */
.page-06 .chevre {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: clamp(55px, 20vw, 90px);
  z-index: 3;
  pointer-events: none;
  transform-origin: center bottom;
  will-change: transform;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE — max-width: 768px
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body {
    position: fixed;
  }

  /* ── page 02 mobile ── */
  .page-02 .paturage-desktop {
    display: none;
  }
  .page-02 .paturage-mobile {
    display: block;
    width: calc(110vw - 10px);
    height: auto;
    max-width: none;
    max-height: none;
  }
  .page-02 .paturage {
    align-items: flex-end;
  }
  .page-02 .chevre {
    width: clamp(55px, 18vw, 90px);
  }
  .page-02 .roche-a {
    width: 10vw;
    top: 55%;
    left: 5%;
  }
  .page-02 .roche-b {
    width: 12vw;
    top: 62%;
    left: 70%;
  }
  .page-02 .roche-c {
    width: 9vw;
    top: 70%;
    left: 30%;
  }
  .page-02 .roche-d {
    width: 11vw;
    top: 75%;
    left: 55%;
  }
  .page-02 .roche-e,
  .page-02 .roche-f,
  .page-02 .roche-g,
  .page-02 .roche-h {
    display: none;
  }
  .page-02 .violette-a {
    width: 6vw;
    top: 68%;
    left: 4%;
  }
  .page-02 .violette-b {
    width: 5vw;
    top: 70%;
    left: 8%;
  }
  .page-02 .violette-c {
    width: 7vw;
    top: 67%;
    left: 6%;
  }
  .page-02 .violette-d {
    width: 5vw;
    top: 72%;
    left: 18%;
  }
  .page-02 .violette-e {
    width: 6vw;
    top: 69%;
    left: 32%;
  }
  .page-02 .violette-f {
    width: 7vw;
    top: 71%;
    left: 36%;
  }
  .page-02 .violette-g {
    width: 5vw;
    top: 65%;
    left: 52%;
  }
  .page-02 .violette-h {
    width: 6vw;
    top: 74%;
    left: 62%;
  }
  .page-02 .violette-i {
    width: 7vw;
    top: 76%;
    left: 66%;
  }
  .page-02 .violette-j {
    width: 5vw;
    top: 73%;
    left: 70%;
  }
  .page-02 .violette-k {
    width: 6vw;
    top: 68%;
    left: 82%;
  }
  .page-02 .violette-l {
    width: 7vw;
    top: 83%;
    left: 8%;
  }
  .page-02 .violette-m {
    width: 5vw;
    top: 86%;
    left: 14%;
  }
  .page-02 .violette-n {
    width: 6vw;
    top: 82%;
    left: 48%;
  }
  .page-02 .violette-o {
    width: 7vw;
    top: 85%;
    left: 74%;
  }
  .page-02 .message-intro {
    font-size: clamp(0.8rem, 3.5vw, 1.1rem);
    white-space: normal;
    text-align: center;
    width: 85vw;
    top: 3%;
  }
  .page-02 .message-final {
    font-size: clamp(0.5rem, 9vw, 1.5rem);
    width: 88vw;
    top: 3%;
    line-height: 1;
  }

  /* ── page 04 mobile ── */
  .page-04 .montagne-mobile {
    display: block;
    position: fixed;
    bottom: -1%;
    left: 51%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    z-index: 0;
    pointer-events: none;
  }
  .page-04 .montagne-mobile img {
    width: 98%;
    height: 100%;
  }
  .page-04 .montagne {
    display: none;
  }
  .page-04 .chalet {
    bottom: 42%;
    right: 5%;
    z-index: 1;
  }
  .page-04 .chalet img {
    height: 15vh;
  }
  .page-04 .sapins {
    pointer-events: all;
  }
  .page-04 .sapin-b,
  .page-04 .sapin-d,
  .page-04 .sapin-f {
    display: none;
    pointer-events: none;
  }
  .page-04 .sapin-a {
    width: 28%;
    bottom: 28%;
    left: 5%;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
  }
  .page-04 .sapin-c {
    width: 20%;
    bottom: 30%;
    left: 23%;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
  }
  .page-04 .sapin-e {
    width: 24%;
    bottom: 42%;
    right: 35%;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
  }
  .page-04 .sapin-g {
    width: 20%;
    bottom: 40%;
    right: 1%;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
  }
  .page-04 .sapin-h {
    width: 26%;
    bottom: 32%;
    right: 5%;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
  }
  .page-04 .roche-a {
    width: 6vw;
    top: 70%;
    left: 2%;
  }
  .page-04 .roche-b {
    width: 5vw;
    top: 73%;
    left: 7%;
  }
  .page-04 .roche-c {
    width: 7vw;
    top: 68%;
    left: 5%;
  }
  .page-04 .roche-d {
    width: 5vw;
    top: 75%;
    left: 24%;
  }
  .page-04 .roche-e {
    width: 6vw;
    top: 67%;
    left: 38%;
  }
  .page-04 .roche-f {
    width: 7vw;
    top: 70%;
    left: 43%;
  }
  .page-04 .roche-g {
    width: 5vw;
    top: 73%;
    left: 41%;
  }
  .page-04 .roche-h {
    width: 6vw;
    top: 69%;
    left: 62%;
  }
  .page-04 .roche-i {
    width: 7vw;
    top: 72%;
    left: 67%;
  }
  .page-04 .roche-j {
    width: 5vw;
    top: 68%;
    left: 65%;
  }
  .page-04 .roche-k {
    width: 6vw;
    top: 71%;
    left: 88%;
  }
  .page-04 .roche-l {
    width: 7vw;
    top: 85%;
    left: 3%;
  }
  .page-04 .roche-m {
    width: 5vw;
    top: 82%;
    left: 8%;
  }
  .page-04 .roche-n {
    width: 6vw;
    top: 88%;
    left: 55%;
  }
  .page-04 .roche-o {
    width: 7vw;
    top: 84%;
    left: 82%;
  }
  .page-04 .banc-cache {
    width: 14%;
  }
  .page-04 .message-intro {
    font-size: clamp(0.8rem, 3.5vw, 1.1rem);
    white-space: normal;
    text-align: center;
    width: 85vw;
    top: 3%;
  }
  .page-04 .message-final {
    font-size: clamp(0.5rem, 9vw, 1.5rem);
    width: 88vw;
    top: 3%;
    line-height: 1;
  }

  /* ── page 06 mobile ── */
  .page-06 .fond-desktop {
    display: none;
  }
  .page-06 .fond-mobile {
    display: block;
    max-width: 100%;
    max-height: 120%;
    width: 98%;
    height: 200%;
    object-fit: contain;
  }
  .page-06 .sapins {
    pointer-events: all;
  }
  .page-06 .sapin-b,
  .page-06 .sapin-d,
  .page-06 .sapin-f {
    display: none;
    pointer-events: none;
  }
  .page-06 .sapin-a {
    width: 22%;
    bottom: 42%;
    left: 5%;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
  }
  .page-06 .sapin-c {
    width: 18%;
    bottom: 38%;
    left: 20%;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
  }
  .page-06 .sapin-e {
    width: 20%;
    bottom: 30%;
    right: 35%;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
  }
  .page-06 .sapin-g {
    width: 17%;
    bottom: 32%;
    right: 1%;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
  }
  .page-06 .sapin-h {
    width: 22%;
    bottom: 22%;
    right: 5%;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
  }
  .page-06 .roche-a {
    width: 5vw;
  }
  .page-06 .roche-b {
    width: 4.5vw;
  }
  .page-06 .roche-c {
    width: 4.5vw;
  }
  .page-06 .roche-e {
    width: 5vw;
  }
  .page-06 .roche-f {
    width: 5vw;
  }
  .page-06 .roche-h {
    width: 5.5vw;
  }
  .page-06 .roche-i {
    width: 4.5vw;
  }
  .page-06 .roche-j {
    width: 4.5vw;
  }
  .page-06 .roche-k {
    width: 4.5vw;
  }
  .page-06 .roche-l {
    width: 4.5vw;
  }
  .page-06 .roche-m {
    width: 5vw;
  }
  .page-06 .roche-o {
    width: 4.5vw;
  }
  .page-06 .roche-q {
    width: 5.5vw;
  }
  .page-06 .roche-d,
  .page-06 .roche-g,
  .page-06 .roche-k,
  .page-06 .roche-n,
  .page-06 .roche-p,
  .page-06 .roche-q,
  .page-06 .roche-r,
  .caillou-a,
  .caillou-b,
  .caillou-c {
    display: none;
  }
  .page-06 .banc-cache {
    width: 14%;
  }
  .page-06 .chevre {
    height: clamp(55px, 14vw, 90px);
  }
  .page-06 .message-final {
    font-size: clamp(0.5rem, 9vw, 1.5rem);
    width: 88vw;
    top: 3%;
    line-height: 1;
  }
}
