/* Raitumpodee Farm · V3. Une journée à la ferme : mangue, papaye, feuille, fleur de frangipanier, ciel de Chiang Dao. */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --cream: #fff7e8;
  --sand: #ffe9c7;
  --jungle: #0e3b2e;
  --jungle-2: #145c3f;
  --leaf: #1fa45b;
  --lime: #b6e35a;
  --mango: #ffb321;
  --papaya: #ff6b3d;
  --pink: #ff4f8b;
  --sky: #9ed8ff;
  --ink: #10241b;
  --ink-2: #3d5247;
  --line: rgba(16, 36, 27, .12);
  --r: 26px;
  --shadow: 0 24px 60px -28px rgba(14, 59, 46, .55);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grow: 0;
  --t: 0;
}
.theme-mango { --tint: #ffe2a3; --accent: #c2410c; }
.theme-papaya { --tint: #ffd4c4; --accent: #b0124f; }
.theme-leaf { --tint: #dcf5c8; --accent: #0f6b38; }
.theme-pink { --tint: #ffd9e8; --accent: #b0124f; }
.theme-sky { --tint: #d4eeff; --accent: #0b5ea8; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 450 18px/1.65 var(--sans); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { overflow: visible; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); font-weight: 750; }
h1 em, h2 em { font-style: italic; font-weight: 700; color: var(--accent, var(--papaya)); position: relative; white-space: nowrap; }
h1 em::after, h2 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .22em; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10'%3E%3Cpath d='M0 6 Q7.5 0 15 6 T30 6 T45 6 T60 6' fill='none' stroke='%23ffb321' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / .9em 100%; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; position: relative; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 200; background: #fff; padding: 10px 16px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--papaya); outline-offset: 3px; }
.lead { font-size: clamp(1.12rem, 1.7vw, 1.32rem); color: var(--ink-2); max-width: 36em; }
.center { text-align: center; margin-top: 44px; }

/* Boutons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 26px;
  border-radius: 999px; font: 750 1.05rem/1.2 var(--sans); text-decoration: none; border: 2.5px solid var(--ink); cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .18s, box-shadow .18s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-mango { background: var(--mango); color: var(--ink); }
.btn-wa { background: #25c467; color: var(--ink); }
.btn-jungle { background: var(--jungle); color: var(--cream); }
.btn-line { background: #fff; color: var(--ink); }
.btn-full { width: 100%; }
.link { font-weight: 750; color: var(--jungle-2); text-decoration: underline; text-decoration-color: var(--mango);
  text-decoration-thickness: 4px; text-underline-offset: 5px; }
.link:hover { color: var(--papaya); }

/* En-tête */
.top { position: sticky; top: 0; z-index: 60; padding: 10px 0; }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 66px; padding: 6px 10px 6px 16px; border-radius: 22px;
  background: #fff7e8; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 62px; }
.brand span { font: 800 1.25rem/1 var(--serif); display: flex; flex-direction: column; gap: 4px; }
.brand small { font: 650 .82rem/1 var(--sans); color: var(--jungle-2); letter-spacing: .02em; }
.menu-box > summary { list-style: none; cursor: pointer; width: 50px; height: 50px; border-radius: 14px; display: grid;
  place-content: center; gap: 5px; background: var(--mango); border: 2px solid var(--ink); }
.menu-box > summary::-webkit-details-marker { display: none; }
.menu-box > summary span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-box[open] > summary span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-box[open] > summary span:nth-child(2) { opacity: 0; }
.menu-box[open] > summary span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.menu-box ul { list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-weight: 700; }
.menu a[aria-current="page"] { color: var(--papaya); }
@media (max-width: 1079px) {
  .top-book { display: none; }
  .menu-box ul { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); background: var(--cream); border: 2px solid var(--ink);
    border-radius: 22px; box-shadow: 4px 4px 0 var(--ink); padding: 8px 18px 18px; max-height: calc(100vh - 110px); overflow: auto; }
  .menu-box li a { display: block; padding: 13px 4px; font: 750 1.3rem/1.2 var(--serif); border-bottom: 1.5px dashed var(--line); }
  .menu-cta a { margin-top: 14px; border: 2px solid var(--ink) !important; text-align: center; border-radius: 999px; background: var(--mango);
    font-family: var(--sans) !important; font-size: 1.1rem !important; }
}
@media (min-width: 1080px) {
  .js .menu-box > summary { display: none; }
  .menu-box ul { display: flex; align-items: center; gap: 22px; }
  .menu a { position: relative; }
  .menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 4px; border-radius: 4px; background: var(--mango); transition: right .25s; }
  .menu a:hover::after, .menu a[aria-current="page"]::after { right: 0; }
  .menu-more, .menu-cta { display: none; }
  .top-book { min-height: 48px; padding: 8px 20px; }
}

/* Lianes sur les bords (grands écrans) */
.vines { display: none; }
@media (min-width: 1320px) {
  .vines { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 5; }
  .vine { position: absolute; top: 0; height: 100vh; width: 80px; }
  .vine-l { left: 0; }
  .vine-r { right: 0; transform: scaleX(-1); }
  .vine-stem { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--grow)); }
  .vl { transform-box: fill-box; transform-origin: 0 50%; scale: 0; transition: scale .5s cubic-bezier(.3, 1.6, .5, 1); }
  .vl.on { scale: 1; }
}

/* Animations de base. Elles démarrent une fois la page chargée (classe .anime posée par app.js) ; décor en couche à part. */
.js:not(.anime) *, .js:not(.anime) *::before { animation-play-state: paused !important; }
.hl, .hf, .cloud, .hornbill, .flyer, .leaf, .flower, .cta-leaf, .cta-fruit, .fruit-ico, .step-ico, .foot-elephant, .gecko, .sun, .intro-bfly, .contact-gecko, .mq-track { will-change: transform; }
@keyframes sway { 0%, 100% { rotate: -4deg; } 50% { rotate: 5deg; } }
@keyframes drift { from { translate: -30vw 0; } to { translate: 130vw 0; } }
@keyframes fly { 0% { translate: -30vw 10vh; } 50% { translate: 50vw -4vh; } 100% { translate: 130vw 6vh; } }
@keyframes flap { 0%, 100% { scale: 1 1; } 50% { scale: 1 .35; } }
@keyframes bflap { 0%, 100% { scale: 1 1; } 50% { scale: .25 1; } }
@keyframes flutter { 0%, 100% { translate: 0 0; rotate: -8deg; } 25% { translate: 40px -30px; rotate: 6deg; } 50% { translate: 80px 10px; rotate: -4deg; } 75% { translate: 30px 30px; rotate: 10deg; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes peek { 0%, 70%, 100% { translate: 0 0; } 78%, 92% { translate: -46px 0; } }
@keyframes walk { from { translate: -260px 0; } to { translate: calc(100vw + 40px) 0; } }
@keyframes step { 0%, 100% { rotate: -8deg; } 50% { rotate: 8deg; } }
@keyframes marquee { to { translate: -50% 0; } }
@keyframes pop { from { scale: .6; opacity: 0; } to { scale: 1; opacity: 1; } }

.wing { transform-box: fill-box; transform-origin: 50% 100%; animation: flap .5s ease-in-out infinite; }
.wing-back { animation-delay: -.1s; }
.bw { transform-box: fill-box; animation: bflap .32s ease-in-out infinite; }
.bw-l { transform-origin: 100% 50%; }
.bw-r { transform-origin: 0 50%; }
.flyer.bfly { position: absolute; width: 54px; height: 40px; animation: flutter 9s ease-in-out infinite; }
.leg { transform-box: fill-box; transform-origin: 50% 0; animation: step 1.1s ease-in-out infinite; }
.leg-b { animation-delay: -.55s; }

/* Accueil : le ciel */
.hero { position: relative; margin-top: -88px; padding-top: 88px; min-height: max(720px, 100svh); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, #7fcbff 0%, #b9e4ff 38%, #ffe3b0 72%, #ffcf8a 100%); }
.sun { position: absolute; width: 150px; height: 150px; right: 14%; top: 18%; border-radius: 50%;
  background: radial-gradient(circle, #fff4c2 0 38%, #ffd166 60%, rgba(255, 179, 33, 0) 72%); filter: blur(.5px); animation: bob 7s ease-in-out infinite; }
.cloud { position: absolute; width: 200px; opacity: .92; animation: drift linear infinite; }
.c1 { top: 12%; animation-duration: 70s; animation-delay: -20s; }
.c2 { top: 26%; width: 140px; animation-duration: 95s; animation-delay: -60s; opacity: .8; }
.c3 { top: 6%; width: 110px; animation-duration: 120s; animation-delay: -5s; opacity: .7; }
.hornbill { position: absolute; top: 20%; left: 0; width: 120px; animation: fly 16s linear infinite; animation-delay: 2s; }
.hero-mountains, .day-mountains, .foot-mountains { position: absolute; left: 0; bottom: 0; width: 100%; height: 46%; }
.hero-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hl { position: absolute; transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite; }
.hl-1 { width: 150px; height: 400px; left: -40px; bottom: -60px; rotate: -18deg; }
.hl-2 { width: 120px; height: 330px; left: 70px; bottom: -110px; animation-delay: -2s; animation-duration: 7s; }
.hl-3 { width: 230px; height: 250px; right: -50px; bottom: -40px; animation-delay: -1s; }
.hl-4 { width: 130px; height: 360px; right: 140px; bottom: -150px; animation-delay: -3s; animation-duration: 8s; }
.hl-5 { width: 150px; height: 160px; left: 28%; bottom: -70px; animation-delay: -4s; }
.hf { position: absolute; width: 54px; height: 54px; animation: spin 24s linear infinite; }
.hf-1 { left: 120px; bottom: 210px; }
.hf-2 { right: 60px; bottom: 190px; width: 42px; animation-direction: reverse; }
.hf-3 { left: 33%; bottom: 60px; width: 38px; }
.bfly-a { left: 44%; top: 15%; }
.bfly-b { right: 30%; top: 62%; animation-delay: -4s; animation-duration: 11s; scale: .8; }
.hero-in { display: grid; gap: 40px; align-items: center; padding: 50px 0 120px; }
.hero-txt .lead { color: #183327; font-weight: 500; }
.hero h1 { color: var(--jungle); }
.hero-window { position: relative; margin: 0; background: #fff; padding: 12px 12px 54px; border-radius: 8px; rotate: 2.5deg;
  box-shadow: 0 30px 60px -20px rgba(14, 59, 46, .55); max-width: 560px; justify-self: center; }
.hero-window img { border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-window figcaption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: italic 600 1.15rem/1.2 var(--serif); color: var(--jungle-2); }
.hero-window::before, .hero-window::after { content: ""; position: absolute; width: 110px; height: 30px; background: rgba(255, 179, 33, .75); top: -14px; }
.hero-window::before { left: -20px; rotate: -24deg; }
.hero-window::after { right: -20px; rotate: 20deg; background: rgba(255, 79, 139, .6); }
.hero-window .gecko { position: absolute; width: 120px; right: -70px; bottom: 90px; rotate: -90deg; animation: peek 9s ease-in-out infinite; cursor: pointer; }
@media (min-width: 960px) {
  .hero-in { grid-template-columns: 1.05fr .95fr; gap: 60px; }
}
@media (max-width: 959px) {
  .hero { min-height: 0; }
  .hero-in { padding: 36px 0 150px; }
  .hl-1 { width: 90px; height: 240px; left: -30px; bottom: -40px; }
  .hl-2 { display: none; }
  .hl-3 { width: 140px; height: 150px; right: -40px; bottom: -30px; }
  .hl-4 { width: 80px; height: 220px; right: 60px; bottom: -110px; }
  .hl-5 { display: none; }
  .hf-1 { left: 50px; bottom: 120px; }
  .hf-3 { display: none; }
  .sun { width: 110px; height: 110px; top: auto; bottom: 330px; right: -16px; }
  .hero .bfly-a { left: auto; right: 8%; top: auto; bottom: 120px; }
  .hornbill { width: 80px; top: 8%; }
  .hero-window .gecko { width: 90px; right: -40px; }
}

/* Bande qui défile */
.marquee { background: var(--jungle); color: var(--cream); overflow: hidden; border-block: 3px solid var(--ink); padding: 18px 0; rotate: -1.2deg; margin: -18px -10px 0; position: relative; z-index: 3; }
.mq-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 32s linear infinite; }
.mq-track span { font: italic 700 clamp(1.6rem, 3vw, 2.4rem)/1 var(--serif); white-space: nowrap; }
.mq-ico { width: 34px; height: 36px; flex: none; }

/* Bandes */
.band { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.band-tight { padding-top: 24px; }
.band-soft { background: var(--sand); }
.band-jungle { background: var(--jungle); color: var(--cream); }
.band-jungle p { color: rgba(255, 247, 232, .86); }
.band-jungle h2 { color: #fff; }
.sec-h { max-width: 16ch; }
.sec-p { color: var(--ink-2); max-width: 38em; margin-bottom: 44px; font-size: 1.15rem; }

/* Intro */
.intro-in { display: grid; gap: 50px; align-items: center; }
.intro-txt p { color: var(--ink-2); }
.intro-pics { position: relative; min-height: 460px; }
.intro-bfly { position: absolute; width: 70px; height: 52px; left: 46%; top: 6%; animation: flutter 8s ease-in-out infinite; }
@media (min-width: 960px) { .intro-in { grid-template-columns: 1fr 1fr; gap: 80px; } .intro-pics { min-height: 600px; } }

/* Polaroïds */
.pola { margin: 0; background: #fff; padding: 10px 10px 16px; border-radius: 6px; box-shadow: var(--shadow); transition: rotate .4s, scale .4s; }
.pola img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.pola:hover { rotate: 0deg !important; scale: 1.03; z-index: 3; }
.intro-pics .pola-1, .polas .pola-1 { position: absolute; width: 66%; left: 0; top: 0; rotate: -4deg; }
.intro-pics .pola-2, .polas .pola-2 { position: absolute; width: 52%; right: 0; bottom: 0; rotate: 5deg; }
.pola-solo { rotate: 2deg; max-width: 560px; justify-self: center; width: 100%; }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 90px; } }

/* Une journée : le ciel change avec le défilement (--t de 0 à 1, posé par app.js) */
.day { position: relative; color: var(--ink); }
.day-sky { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; overflow: hidden; z-index: 0;
  background: linear-gradient(180deg, var(--sky-a, #7fcbff), var(--sky-b, #ffe3b0)); }
.day-sun { position: absolute; width: 130px; height: 130px; border-radius: 50%; left: calc(8% + var(--t) * 76%);
  top: calc(60% - sin(var(--t) * 180deg) * 46%); background: radial-gradient(circle, #fff4c2 0 36%, var(--sun, #ffd166) 58%, transparent 72%); }
.day-stars { position: absolute; inset: 0 0 40% 0; opacity: clamp(0, (var(--t) - .7) * 4, 1);
  background-image: radial-gradient(2px 2px at 10% 20%, #fff, transparent), radial-gradient(2px 2px at 30% 10%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 50% 30%, #fff, transparent), radial-gradient(2px 2px at 70% 15%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 85% 35%, #fff, transparent), radial-gradient(2px 2px at 20% 45%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 62% 50%, #fff, transparent), radial-gradient(2px 2px at 92% 8%, #fff, transparent); }
.day-mountains { height: 34%; }
.day-mountains .m1 { fill: var(--m1, #7fb7a4); } .day-mountains .m2 { fill: var(--m2, #3f8f6b); } .day-mountains .m3 { fill: var(--m3, #17603f); }
.day-in { position: relative; z-index: 1; padding: 110px 0 60px; }
.day-head { max-width: 640px; background: rgba(255, 247, 232, .9); border: 2.5px solid var(--ink); border-radius: var(--r); padding: 30px 34px; box-shadow: 6px 6px 0 var(--ink); }
.day-head h2 { margin-bottom: .3em; }
.day-head p { margin: 0; font-size: 1.15rem; }
.moments { display: grid; gap: 22vh; padding: 22vh 0 30vh; }
.moment { display: grid; gap: 0; max-width: 560px; background: var(--cream); border: 2.5px solid var(--ink); border-radius: var(--r);
  overflow: hidden; box-shadow: 8px 8px 0 var(--ink); }
.moment:nth-child(even) { justify-self: end; }
.moment-pic { margin: 0; }
.moment-pic img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.moment-txt { padding: 26px 30px 30px; }
.moment-txt p { color: var(--ink-2); }
@media (max-width: 700px) { .moments { gap: 16vh; padding: 14vh 0 20vh; } .day-head { padding: 24px; } .moment-txt { padding: 22px; } }

/* Choisir son expérience : la suite de la nuit de « A day at the farm », texte clair */
.xp { z-index: 1; color: #fff7e8; background: linear-gradient(180deg, #232051 0%, #2a2457 55%, #0e3b2e 100%); }
.xp .sec-h { color: #fff; }
.xp .sec-p { color: rgba(255, 247, 232, .85); }
.xp::before { content: ""; position: absolute; inset: 0 0 50% 0; pointer-events: none; opacity: .8;
  background-image: radial-gradient(2px 2px at 8% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 22% 30%, #fff, transparent),
    radial-gradient(2px 2px at 40% 8%, #fff, transparent), radial-gradient(1.5px 1.5px at 58% 22%, #fff, transparent),
    radial-gradient(2px 2px at 74% 10%, #fff, transparent), radial-gradient(1.5px 1.5px at 90% 28%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 66% 40%, #fff, transparent), radial-gradient(2px 2px at 14% 44%, #fff, transparent); }
.xp .bento { border-color: #fff7e8; box-shadow: 6px 6px 0 var(--mango); }
.xp .bento:hover { box-shadow: 9px 9px 0 var(--mango); }

/* Bento des expériences */
.bento-grid { display: grid; gap: 18px; }
.bento { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; border-radius: var(--r);
  overflow: hidden; text-decoration: none; border: 2.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); isolation: isolate; transition: transform .25s, box-shadow .25s; }
.bento:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.bento figure { position: absolute; inset: 0; margin: 0; z-index: -1; }
.bento figure img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s; }
.bento:hover figure img { scale: 1.06; }
.bento-txt { display: grid; gap: 4px; margin: 14px; padding: 18px 20px; border-radius: 18px; background: var(--c); color: var(--ink); border: 2px solid var(--ink); }
.bento-txt strong { font: 800 1.6rem/1.1 var(--serif); }
.bento-ico { position: absolute; top: 14px; right: 14px; width: 70px; height: 70px; padding: 10px; border-radius: 50%; background: var(--cream);
  border: 2px solid var(--ink); transition: rotate .4s; }
.bento:hover .bento-ico { rotate: 18deg; }
.t-mango { --c: var(--mango); } .t-papaya { --c: #ff8f6b; } .t-leaf { --c: var(--lime); } .t-sky { --c: var(--sky); } .t-pink { --c: #ff8fb4; }
@media (min-width: 900px) {
  .bento-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 300px; }
  .bento { min-height: 0; }
  .b0 { grid-column: span 3; grid-row: span 2; } .b1, .b2 { grid-column: span 3; } .b3, .b4 { grid-column: span 3; }
}

/* Mini-jeu */
.game { background: var(--jungle) radial-gradient(circle at 80% 0%, #1d7a4f 0, transparent 55%); color: var(--cream); padding: clamp(72px, 10vw, 120px) 0; overflow: hidden; }
.game-in { display: grid; gap: 40px; align-items: center; }
.game h2 { color: var(--mango); }
.game-txt p { color: rgba(255, 247, 232, .88); }
.game-help { font-style: italic; }
.game-real a { color: var(--mango); font-weight: 750; }
.game-box { position: relative; border-radius: var(--r); overflow: hidden; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--mango); background: #bfe8ff; touch-action: none; }
.game-box canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.game-hud { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 8px;
  font: 800 1.1rem/1 var(--sans); color: var(--ink); pointer-events: none; }
.game-hud span { background: rgba(255, 247, 232, .9); border: 2px solid var(--ink); border-radius: 12px; padding: 7px 12px; }
.hud-lives { color: var(--pink); }
.game-screen { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 24px;
  background: rgba(14, 59, 46, .78); }
.game-screen[hidden] { display: none; }
.game-title { font: italic 800 clamp(2.2rem, 5vw, 3.4rem)/1 var(--serif); color: var(--mango); margin: 0 0 6px; }
.game-msg { font-size: 1.15rem; margin: 0 0 6px; max-width: 24em; }
.game-best { margin: 0 0 14px; color: var(--lime); font-weight: 700; }
.game-best:empty { display: none; }
@media (min-width: 960px) { .game-in { grid-template-columns: .8fr 1.2fr; gap: 70px; } }

/* Ce qui pousse */
.fruits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fruit { display: grid; justify-items: center; gap: 12px; text-align: center; font: 750 1.15rem/1.2 var(--serif); padding: 26px 12px 22px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: var(--r); box-shadow: 5px 5px 0 var(--ink); }
.fruit:last-child { grid-column: span 2; }
.fruit-ico { width: 92px; height: 92px; animation: bob 3.2s ease-in-out infinite; transition: scale .3s; }
.fruit:nth-child(2) .fruit-ico { animation-delay: -.6s; } .fruit:nth-child(3) .fruit-ico { animation-delay: -1.2s; }
.fruit:nth-child(4) .fruit-ico { animation-delay: -1.8s; } .fruit:nth-child(5) .fruit-ico { animation-delay: -2.4s; }
.fruit:hover .fruit-ico { scale: 1.18; }
.fruit:nth-child(1) { background: #fff1c9; } .fruit:nth-child(2) { background: #fffbd0; } .fruit:nth-child(3) { background: #e5f6cf; }
.fruit:nth-child(4) { background: #ffe1e6; } .fruit:nth-child(5) { background: #dff4e8; }
@media (min-width: 900px) { .fruits { grid-template-columns: repeat(5, 1fr); gap: 20px; } .fruit:last-child { grid-column: auto; } }

/* Produits */
.prods { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 22px; margin: 0 -4px; scrollbar-width: thin; }
.prod { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: var(--r); padding: 14px 14px 20px; border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink); background: var(--c); transition: rotate .3s; }
.prod:hover { rotate: -1.5deg; }
.prod figure { margin: 0 0 16px; border-radius: 16px; overflow: hidden; border: 2px solid var(--ink); }
.prod img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.prod h3 { margin: 0 6px .3em; }
.prod p { margin: 0 6px; color: var(--ink-2); flex: 1; }
.s-mango { --c: #ffe08a; } .s-pink { --c: #ffc4d8; } .s-leaf { --c: #d4f2a8; } .s-papaya { --c: #ffc2a8; } .s-sky { --c: #c9e9ff; }
@media (min-width: 960px) { .prods { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 26px; } }

/* Galerie en mosaïque */
.masonry { columns: 2 160px; column-gap: 14px; }
.masonry figure { margin: 0 0 14px; break-inside: avoid; border-radius: 20px; overflow: hidden; border: 2.5px solid var(--ink); }
.masonry img { width: 100%; transition: scale .6s; }
.masonry figure:hover img { scale: 1.05; }
.masonry .g1 img { aspect-ratio: 1; object-fit: cover; }
.masonry .g3 img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 960px) { .masonry { columns: 3; column-gap: 20px; } .masonry figure { margin-bottom: 20px; } }

/* Questions */
.faq-in { display: grid; gap: 30px; }
@media (min-width: 960px) { .faq-in { grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: start; } .faq h2 { position: sticky; top: 120px; } }
.qa-list { display: grid; gap: 12px; }
.qa { background: #fff; border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px;
  font: 750 1.2rem/1.3 var(--serif); }
.qa summary::-webkit-details-marker { display: none; }
.qa-ico { width: 40px; height: 40px; flex: none; padding: 5px; border-radius: 50%; background: var(--mango); border: 2px solid var(--ink); transition: rotate .4s; }
.qa[open] .qa-ico { rotate: 144deg; }
.qa[open] { background: #fff9ec; }
.qa-a { padding: 0 22px 8px; color: var(--ink-2); }
.qa-a a:not(.btn) { color: var(--jungle-2); font-weight: 700; }

/* Appel final */
.cta { position: relative; background: var(--mango); padding: clamp(80px, 11vw, 140px) 0 clamp(30px, 4vw, 50px); overflow: hidden; border-top: 3px solid var(--ink); text-align: center; z-index: 1; }
.cta-in { max-width: 760px; }
.cta h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.cta p { font-size: 1.2rem; margin-bottom: 30px; }
.cta .btns { justify-content: center; }
.cta-leaf, .cta-fruit { position: absolute; }
.cta-leaf { transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
.cta-leaf-a { width: 220px; height: 240px; left: -70px; top: 30px; rotate: 30deg; }
.cta-leaf-b { width: 130px; height: 360px; right: -10px; top: -60px; rotate: 160deg; animation-delay: -3s; }
.cta-fruit { width: 80px; height: 86px; animation: bob 4s ease-in-out infinite; }
.cta-fruit-a { right: 12%; bottom: 14%; } .cta-fruit-b { left: 14%; top: 14%; width: 64px; animation-delay: -2s; }
@media (max-width: 700px) { .cta-leaf-a { width: 130px; height: 140px; left: -60px; top: 10px; } .cta-leaf-b { width: 80px; right: -30px; } .cta-fruit { width: 56px; } .cta-fruit-a { display: none; } .cta-fruit-b { top: 4%; left: 6%; } }

/* En-tête des pages intérieures */
.phero { position: relative; background: var(--tint); margin-top: -88px; padding: 150px 0 90px; overflow: hidden; border-bottom: 3px solid var(--ink); }
.phero-short { padding-bottom: 60px; }
.phero-in { display: grid; gap: 44px; align-items: center; }
.phero-txt .lead { margin-bottom: 28px; color: var(--ink); }
.polas { position: relative; min-height: 420px; }
.phero-deco { position: absolute; inset: 0; pointer-events: none; }
.leaf { position: absolute; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; opacity: .95; }
.leaf-a { width: 110px; height: 300px; right: -20px; bottom: -80px; rotate: 12deg; }
.leaf-b { width: 90px; height: 240px; left: -30px; top: 60px; rotate: 150deg; animation-delay: -3s; }
.flower { position: absolute; width: 50px; height: 50px; animation: spin 26s linear infinite; }
.flower-a { right: 22%; top: 120px; } .flower-b { left: 46%; bottom: 30px; width: 36px; animation-direction: reverse; }
.phero .bfly-a { left: auto; right: 34%; top: 50%; }
@media (min-width: 960px) {
  .phero-in { grid-template-columns: 1.1fr .9fr; gap: 70px; }
  .polas { min-height: 520px; }
  .leaf-a { width: 150px; height: 400px; }
}
@media (max-width: 959px) { .phero { padding-top: 130px; } .leaf-b { display: none; } .leaf-a { width: 80px; height: 220px; right: -34px; bottom: -90px; } .phero-short .leaf-a { bottom: -150px; } .flower-a { top: 100px; right: 8%; } .phero .bfly-a { top: auto; bottom: 40px; right: 10%; } }

/* Étapes / atouts */
.steps { display: grid; gap: 20px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.step { background: var(--c); border: 2.5px solid var(--ink); border-radius: var(--r); padding: 30px 28px; box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; }
.step p { color: var(--ink-2); margin: 0; }
.step-ico { width: 84px; height: 84px; margin-bottom: 18px; animation: bob 3.6s ease-in-out infinite; }
.step:nth-child(2) .step-ico { animation-delay: -1.2s; } .step:nth-child(3) .step-ico { animation-delay: -2.4s; }

/* Encore à découvrir */
.xrow { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; margin: 0 -4px; }
.xcard { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--c); border: 2.5px solid var(--ink);
  border-radius: var(--r); overflow: hidden; box-shadow: 5px 5px 0 var(--ink); transition: transform .25s; }
.xcard:hover { transform: translateY(-5px); }
.xcard figure { margin: 0; }
.xcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 2.5px solid var(--ink); }
.xcard-ico { position: absolute; top: 12px; right: 12px; width: 58px; height: 58px; padding: 8px; background: var(--cream); border-radius: 50%; border: 2px solid var(--ink); }
.xcard-txt { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.xcard-txt strong { font: 800 1.4rem/1.1 var(--serif); }
.xcard-txt > span:not(.arrow) { color: var(--ink-2); flex: 1; }
.arrow { font-size: 1.6rem; font-weight: 800; }
@media (min-width: 1100px) { .xrow { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* Texte long */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
.prose a:not(.btn) { color: var(--jungle-2); font-weight: 650; }
.big-thai { font: 700 clamp(3rem, 8vw, 5rem)/1 system-ui, sans-serif; color: var(--mango) !important; margin-top: 20px; }

/* Contact */
.contact-grid { display: grid; gap: 44px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.25fr .75fr; gap: 64px; } }
.form { background: #fff; border-radius: var(--r); padding: clamp(22px, 4vw, 40px); border: 2.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.field { display: grid; gap: 7px; margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
label, legend { font-weight: 700; font-size: 1.0625rem; padding: 0; }
input, select, textarea { width: 100%; font: 500 1.08rem/1.4 var(--sans); color: var(--ink); background: var(--cream);
  border: 2px solid var(--ink); border-radius: 14px; padding: 13px 14px; min-height: 54px; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--mango); }
textarea { resize: vertical; }
.picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.picks legend { margin-bottom: 10px; }
@media (min-width: 700px) { .picks { grid-template-columns: repeat(3, 1fr); } }
.pick { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 64px; border: 2px solid var(--ink);
  border-radius: 16px; background: var(--cream); cursor: pointer; font-weight: 650; line-height: 1.2; transition: background .2s, transform .2s; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.pick-ico { width: 36px; height: 36px; flex: none; }
.pick:has(input:checked) { background: var(--mango); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.pick:has(input:focus-visible) { outline: 3px solid var(--papaya); outline-offset: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { color: #b3261e; font-weight: 700; }
.form-note { font-size: 1.0625rem; color: var(--ink-2); margin: 14px 0 0; }
.form-fail { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--sand); border: 2px dashed var(--ink); }
.form-done { text-align: center; padding: 20px 0; }
.form-done .btns { justify-content: center; }
.done-ico { width: 90px; height: 98px; margin: 0 auto 12px; animation: pop .6s cubic-bezier(.3, 1.6, .5, 1); }
.form-done-title { font: 800 1.9rem/1.2 var(--serif); }
.form-link { margin-top: 18px; background: none; border: 0; padding: 8px 0; font: 700 1.0625rem var(--sans); color: var(--jungle-2); text-decoration: underline; cursor: pointer; }
.contact-side { position: relative; }
.contact-side h2 { font-size: 1.9rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; text-decoration: none; background: #fff;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); overflow-wrap: anywhere; transition: transform .2s; }
.contact-list a:hover { transform: translate(-2px, -2px); }
.contact-list svg { width: 26px; height: 26px; flex: none; color: var(--leaf); margin-top: 2px; }
.contact-list span { display: grid; color: var(--ink-2); }
.contact-list strong { color: var(--ink); }
.contact-gecko { width: 140px; margin: 26px 0 0 auto; display: block; animation: bob 3s ease-in-out infinite; }

/* Bas de page */
.foot { position: relative; color: rgba(255, 247, 232, .86); font-size: 1.0625rem; }
.foot-scene { position: relative; height: 260px; overflow: hidden;
  background: linear-gradient(180deg, var(--mango) 0%, #ffbe4a 45%, #ff9f6b 100%); }
/* Pages qui ne finissent pas par la bannière orange : le ciel part de la couleur du dessus et se réchauffe doucement. */
.foot-doux .foot-scene { height: 300px; background: linear-gradient(180deg, var(--foot-top) 0%, #ffe6b8 30%, #ffc766 62%, #ff9f6b 100%); }
main > .phero:last-child { border-bottom: 0; }
.foot-sun { position: absolute; left: 62%; bottom: 40px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, #fff1c2 0 40%, #ffd166 62%, rgba(255, 209, 102, 0) 72%); }
.foot-mountains { height: 100%; }
.foot-mountains .m1 { fill: #f2a07a; } .foot-mountains .m2 { fill: #3f8f6b; } .foot-mountains .m3 { fill: var(--jungle); }
.foot-elephant { position: absolute; bottom: 8px; width: 130px; animation: walk 46s linear infinite; }
.foot-elephant.baby { width: 72px; bottom: 8px; animation-delay: -2.4s; }
.foot-body { background: var(--jungle); padding: 30px 0 110px; }
.foot a { color: #fff7e8; text-decoration: none; }
.foot a:hover { color: var(--mango); }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 64px; } }
.foot-brand img { width: 150px; margin-bottom: 18px; }
.foot-thai { font-size: 1.3rem; color: var(--mango); }
.foot-h { font: 800 1.4rem/1.2 var(--serif); color: var(--mango); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-contact a { display: inline-flex; gap: 10px; align-items: center; overflow-wrap: anywhere; }
.foot-contact svg { width: 20px; height: 20px; flex: none; }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1.5px dashed rgba(255, 247, 232, .25); }
.foot-legal a { text-decoration: underline; text-underline-offset: 3px; }
.foot-legal p { margin: 0 0 8px; }

/* WhatsApp flottant */
.float-wa { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 62px; height: 62px; border-radius: 50%; background: #25c467; color: var(--ink);
  display: grid; place-items: center; border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .2s; }
.float-wa:hover { transform: rotate(-10deg) scale(1.06); }
.float-wa svg { width: 32px; height: 32px; }
html.pharo-cookies-ouvert .float-wa, html.jeu-en-cours .float-wa { display: none; }

/* Apparitions au défilement (posées par app.js) ; « réduire les animations » = tout visible et immobile */
.js .reveal { opacity: 0; translate: 0 34px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
  .hornbill, .cloud, .foot-elephant.baby { display: none; }
  .foot-elephant { left: 8%; }
  .vine-stem { stroke-dashoffset: 0; }
  .vl { scale: 1; }
}
