/* ========================================================
   MON PETIT MONDE — Le style se personnalise ici ✨
   Modifie les variables ci-dessous pour changer les couleurs.
   ======================================================== */
:root {
  --pink-background: #ffbdd8;
  --pink-light: #ffe5f0;
  --pink-card: #fff8fb;
  --pink-dark: #d94b86;
  --pink-strong: #ef78ad;
  --pink-outline: #ffffff;
  --pink-soft-shadow: #df8ead;
  --text: #75435d;
  --white: #ffffff;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  background-color: var(--pink-background);
  background-image:
    radial-gradient(circle at 13% 22%, rgba(255,255,255,.58) 0 5px, transparent 6px),
    radial-gradient(circle at 87% 73%, rgba(255,255,255,.48) 0 4px, transparent 5px),
    radial-gradient(circle at 90% 12%, rgba(255,255,255,.45), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,.30), transparent 30%);
  display: flex; flex-direction: column; overflow-x: hidden;
}
a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid #a72c60; outline-offset: 5px; }
strong { color: var(--pink-dark); }

/* BARRE DE NAVIGATION — dupliquée dans les pages HTML */
.site-header {
  position: relative; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 15px;
  width: min(1140px, calc(100% - 42px)); margin: 24px auto 0; padding: 11px 12px 11px 23px;
  border: 2px solid rgba(255,255,255,.96); border-radius: 999px;
  background: rgba(255,250,253,.86);
  box-shadow: 0 8px 29px rgba(182,64,119,.11);
  backdrop-filter: blur(13px);
}
.brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap;
  text-decoration: none; font-size: clamp(.94rem, 1.8vw, 1.13rem); font-weight: 800; color: var(--pink-dark); }
.brand__bow { font-size: 1.6rem; } .brand__star { font-size: 14px; color: #ef8ab6; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 10px 14px;
  border-radius: 30px; font-size: .9rem; font-weight: 700; color: #a05278; text-decoration: none; white-space: nowrap;
  transition: color .18s ease, background .18s ease, transform .18s ease; }
.nav-link:hover { background: #ffe8f2; color: #be3571; transform: translateY(-2px); }
.nav-link.is-active, .nav-link[aria-current="page"] { color: white; background: var(--pink-dark); box-shadow: 0 3px 0 #ba3e76; }
.nav-symbol { font-size: 1rem; font-weight: 900; }

/* ELEMENTS COMMUNS */
.page { position: relative; isolation: isolate; width: 100%; flex: 1; }
.page--home { min-height: min(880px,calc(100vh - 130px)); padding: 55px 18px 35px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; }
.page--inner { width: min(1070px, calc(100% - 36px)); margin: 0 auto; padding: 67px 0 53px; }
.section-heading { text-align: center; max-width: 790px; margin: 0 auto 39px; }
.section-heading__pill { display: inline-block; border: 1px solid #fff; padding: 10px 18px;
  border-radius: 30px; background: #fff5faad; font-size: .75rem; letter-spacing: .17em; font-weight: 800; color: var(--pink-dark); }
.section-heading h1 { margin: 15px 0 16px; font-size: clamp(2.75rem, 6vw, 4.9rem); color: #c7427c; line-height: 1.06; letter-spacing: -.045em; }
.accent-script { color: #f273a8; font-style: italic; }
.section-heading p { font-size: clamp(1.02rem,2.3vw,1.16rem); line-height: 1.7; margin: 0 auto; max-width: 590px; }
.site-footer { position: relative; margin: 0 auto; padding: 22px 12px 26px; text-align: center; color: #a74776; font-size: .82rem; font-weight: 700; }
.site-footer span { color: #fff; padding: 0 5px; }
.cta-button, .email-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 51px; max-width: 100%; padding: 13px 24px; border-radius: 999px;
  background: var(--pink-dark); box-shadow: 0 6px 0 #b9346e; color: white; text-decoration: none;
  font-size: 1rem; font-weight: 800; overflow-wrap: anywhere;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.cta-button:hover, .email-button:hover { transform: translateY(-3px); background: #c83e78; box-shadow: 0 9px 0 #ae3267; }
.cta-button:active, .email-button:active { transform: translateY(2px); box-shadow: 0 3px 0 #ae3267; }

/* ACCUEIL : identité visuelle de la première version conservée */
.welcome { width: 100%; max-width: 710px; position: relative; background: var(--pink-card); border: 4px solid white;
  border-radius: 30px; box-shadow: 0 17px 0 rgba(212,81,139,.11), 0 23px 55px rgba(160,53,101,.17);
  padding: 58px clamp(24px,6vw,64px) 44px; text-align: center; }
.welcome__ribbon { position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  font-size: 56px; filter: drop-shadow(0 5px 3px rgba(132,55,91,.12)); }
.welcome__eyebrow { margin: 0 0 12px; color: var(--pink-dark); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.welcome h1 { margin: 0 0 22px; color: var(--pink-dark); font-size: clamp(2.5rem,7vw,4.3rem); letter-spacing: -.045em; line-height: 1.1; }
.welcome p:not(.welcome__eyebrow) { margin: 0 auto 22px; max-width: 550px; font-size: clamp(1.05rem,2.8vw,1.18rem); line-height: 1.8; }
.welcome__intro { font-weight: 500; }
.welcome__divider { display: flex; justify-content: center; align-items: center; gap: 14px; color: var(--pink-strong); margin: 28px 0; }
.welcome__divider::before,.welcome__divider::after { content: ""; width: min(29%,140px); height: 2px; background: #f7cedf; }
.email-button { margin-top: 5px; }
.welcome__next { margin: 33px 0 0; padding-top: 26px; border-top: 1px dashed #f1b9cf; }
.decoration { color: #fff8fc; font-size: 23px; letter-spacing: 20px; opacity: .95; user-select: none; }
.float-deco { position: absolute; z-index: -1; color: #fff9fc; font-size: 56px; opacity: .75; animation: float 6s ease-in-out infinite; }
.float-deco--left { left: 9%; top: 20%; } .float-deco--right { right: 12%; bottom: 18%; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-14px) rotate(10deg); } }

/* MENU MAGIQUE */
.portal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.portal-card { position: relative; overflow: hidden; min-height: 390px; display: flex; flex-direction: column; align-items: flex-start;
  border: 4px solid white; border-radius: 31px; padding: 34px 37px; text-decoration: none; color: var(--text);
  box-shadow: 0 16px 0 rgba(198,60,121,.13), 0 22px 38px rgba(133,55,92,.09);
  transition: transform .25s ease, box-shadow .25s ease; }
.portal-card:hover { transform: translateY(-7px) rotate(-.5deg); box-shadow: 0 23px 0 rgba(198,60,121,.11),0 31px 40px rgba(133,55,92,.13); }
.portal-card--movies { background: linear-gradient(137deg,#fff8fc 0%,#ffe4f0 56%,#ffd2e8 100%); }
.portal-card--games { background: linear-gradient(140deg,#fffafc 0%,#ffeaf3 56%,#fcd6e8 100%); }
.portal-card__tag { color: var(--pink-dark); font-size: .76rem; letter-spacing: .14em; font-weight: 900; margin-top: 12px; }
.portal-card__art { align-self: flex-end; font-size: 76px; line-height: 1; margin: 8px 11px 7px; filter: drop-shadow(0 8px 8px #da8ca84f); transform: rotate(-11deg);
  transition: transform .3s ease; }
.portal-card:hover .portal-card__art { transform: rotate(3deg) scale(1.13); }
.portal-card__title { display: block; color: #c9427b; font-size: clamp(1.9rem,3.1vw,2.6rem); letter-spacing: -.03em; font-weight: 900; margin: 10px 0 8px; }
.portal-card__desc { display: block; line-height: 1.7; font-size: 1rem; max-width: 350px; }
.portal-card__action { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--pink-dark); font-size: 1rem; font-weight: 900; padding-top: 22px; }
.portal-card__bubbles { position: absolute; right: 30px; top: 22px; font-size: 25px; color: #ed83ac; letter-spacing: 8px; }
.small-note { text-align: center; font-size: .9rem; margin-top: 53px; font-weight: 700; color: #a14c73; }

/* FILMS : carte Barbie */
.collection-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.collection-topline h2 { font-size: 1.45rem; margin: 0; color: #ba3772; }
.category-count { background: #fff7fb; color: #b14a7a; font-size: .81rem; padding: 10px 16px; border-radius: 30px; font-weight: 700; }
.movie-card { display: grid; grid-template-columns: minmax(220px,.9fr) minmax(0,1.15fr); gap: 0;
  background: var(--pink-card); border: 4px solid white; border-radius: 33px; overflow: hidden;
  box-shadow: 0 17px 0 rgba(212,81,139,.12), 0 23px 55px rgba(160,53,101,.13); }
.movie-card__poster { position: relative; isolation: isolate; min-height: 410px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 48%, #ffe7f3 0%, #ffc4e1 49%,#f58bbc 100%);
  box-shadow: inset -10px 0 30px #d8599717; }
.movie-card__poster:before { content: ""; position: absolute; width: 350px; height: 350px; z-index: -1; border-radius: 50%;
  border: 2px solid #ffffff91; box-shadow: 0 0 0 28px #ffffff22,0 0 0 58px #ffffff22; }
.poster__ring { display: grid; place-items: center; width: 154px; height: 154px; border-radius: 50%; color: #fff;
  font-size: 88px; text-shadow: 0 4px 9px #c7418177; transform: rotate(-13deg); }
.poster__text { position: relative; color: #fff; font-size: clamp(4rem,8vw,6.4rem); line-height: 1; font-style: italic; font-weight: 900;
  text-shadow: -3px 4px 0 #e45c9a, 0 10px 21px #c63c807d; letter-spacing: -.08em; transform: rotate(-7deg); }
.poster__subtitle { color: #a83574; font-size: .75rem; font-weight: 900; letter-spacing: .2em; margin-top: 22px; }
.poster__spark { position: absolute; color: #fff; font-size: 44px; text-shadow: 0 0 12px #fff; animation: twinkle 3s ease-in-out infinite; }
.poster__spark--one { top: 48px; left: 49px; } .poster__spark--two { right: 41px; top: 67px; font-size: 25px; animation-delay: -.9s; }
.poster__spark--three { right: 45px; bottom: 32px; font-size: 35px; animation-delay: -1.5s; }
@keyframes twinkle { 50% { opacity: .38; transform: scale(.74) rotate(22deg); } }
.movie-card__details { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(28px,5vw,62px); }
.movie-card__label { font-size: .76rem; font-weight: 900; letter-spacing: .16em; color: var(--pink-dark); }
.movie-card__details h3 { font-size: clamp(2.1rem,4vw,3.2rem); line-height: 1.13; letter-spacing: -.04em; margin: 16px 0; color: #c9417b; }
.movie-card__details p { font-size: 1.06rem; line-height: 1.73; margin: 0 0 19px; }
.movie-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 5px 0 24px; }
.movie-card__chips span { background: #ffe4f0; color: #a94373; font-size: .82rem; font-weight: 700; border-radius: 30px; padding: 8px 11px; }
.movie-card__details .external-note { font-size: .77rem; color: #a56b86; margin-top: 19px; margin-bottom: 0; }
.collection-bottom { margin-top: 33px; text-align: center; font-weight: 700; font-size: .93rem; color: #a24571; }
.back-link { display: table; margin: 54px auto 0; font-weight: 800; text-decoration: none; color: #b53772; }
.back-link:hover { text-decoration: underline; }

/* JEUX : espace extensible */
.soon-card { max-width: 620px; margin: 0 auto; text-align: center; border: 4px solid #fff;
  border-radius: 31px; background: #fff8fbdc; box-shadow: 0 15px 0 rgba(212,81,139,.10);
  padding: 52px 27px 58px; }
.soon-card__icon { font-size: 82px; }
.soon-card h2 { color: #c9417b; font-size: clamp(1.8rem,4vw,2.6rem); margin: 23px 0 13px; }
.soon-card p { line-height: 1.75; max-width: 435px; margin: 0 auto 30px; }

/* ANIMATION DE POUSSIÈRE DE FÉE : JS crée les ✦, CSS les anime */
.fairy-sparkle { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; user-select: none; will-change: transform,opacity;
  text-shadow: 0 0 7px #fff,0 0 15px currentColor; font-size: var(--spark-size,18px);
  animation: fairy-burst var(--spark-duration,750ms) cubic-bezier(.12,.67,.2,1) both; }
@keyframes fairy-burst { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.2) rotate(0); }
  12% { opacity: 1; } 75% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--spark-x)),calc(-50% + var(--spark-y))) scale(.35) rotate(var(--spark-rotate)); } }
@media (max-width: 840px) {
  .site-header { border-radius: 25px; flex-direction: column; gap: 8px; width: calc(100% - 28px); padding: 13px 10px 12px; }
  .site-nav { justify-content: center; }
  .nav-link { padding: 8px 11px; font-size: .86rem; }
  .page--inner { padding-top: 48px; }
}
@media (max-width: 650px) {
  .page--home { padding: 52px 14px 28px; }
  .welcome { padding: 55px 21px 37px; border-radius: 23px; }
  .welcome__ribbon { font-size: 48px; top: -28px; }
  .welcome__eyebrow { line-height: 1.6; }
  .welcome p:not(.welcome__eyebrow) { line-height: 1.7; }
  .decoration { letter-spacing: 10px; }
  .portal-grid { grid-template-columns: 1fr; gap: 25px; }
  .portal-card { min-height: 330px; padding: 25px 27px; }
  .portal-card__art { font-size: 60px; }
  .movie-card { grid-template-columns: 1fr; }
  .movie-card__poster { min-height: 280px; }
  .poster__ring { height: 90px; font-size: 59px; }
  .poster__text { font-size: 4.25rem; }
  .movie-card__details { padding: 32px 25px 36px; }
  .section-heading h1 { font-size: clamp(2.5rem,10vw,3.8rem); }
  .float-deco { display: none; }
}
@media (max-width: 380px) {
  .brand { font-size: .95rem; }
  .nav-link { font-size: .8rem; padding: 9px 8px; gap: 4px; }
  .nav-symbol { display: none; }
  .cta-button,.email-button { padding: 12px 16px; font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}


/* ==========================================
   GALERIE BARBIE — Grille de jaquettes responsive
   ========================================== */
.page--gallery { width: min(1134px, calc(100% - 36px)); padding-top: 56px; }
.page--gallery .section-heading { max-width: 840px; margin-bottom: 34px; }
.page--gallery .section-heading h1 { font-size: clamp(2.5rem,5.5vw,4.5rem); }
.gallery-panel { background: rgba(255,249,252,.72); border: 3px solid rgba(255,255,255,.92); border-radius: 32px; padding: clamp(17px,3.1vw,35px); box-shadow: 0 16px 0 rgba(212,81,139,.10), 0 24px 54px rgba(160,53,101,.10); }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 17px; flex-wrap: wrap; margin-bottom: 22px; }
.gallery-title h2 { color: #b63a74; margin: 0 0 5px; font-size: clamp(1.25rem,2.8vw,1.75rem); }
.gallery-title h2 span { color: #fa92b7; }
.gallery-title p { margin: 0; color: #ae6a89; font-size: .91rem; font-weight: 700; }
.gallery-search { display: flex; align-items: center; gap: 9px; background: #fff; border: 2px solid #f5d1e1; border-radius: 999px; padding: 0 13px; min-height: 44px; min-width: min(100%,270px); color: #c34680; box-shadow: 0 3px 12px rgba(174,69,117,.05); }
.gallery-search:focus-within { outline: 2px solid #cf4c85; outline-offset: 2px; }
.gallery-search > span { font-size: 24px; line-height: 1; }
.gallery-search input { border: 0; background: transparent; color: #853a60; font-family: inherit; font-weight: 600; font-size: .89rem; outline: 0; width: 100%; min-width: 0; }
.gallery-search input::placeholder { color: #ad8294; }
.poster-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 18px 13px; }
.poster-card { min-width: 0; text-decoration: none; color: #8a3d66; display: flex; flex-direction: column; position: relative; transition: transform .2s ease; }
.poster-card:hover, .poster-card:focus-visible { transform: translateY(-6px); }
.poster-card__frame { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 12px; border: 3px solid white; background: #f5afd1; box-shadow: 0 6px 11px rgba(152,60,103,.18); transition: box-shadow .22s ease; }
.poster-card:hover .poster-card__frame { box-shadow: 0 10px 22px rgba(152,60,103,.28); }
.poster-card__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.poster-card__hover { position: absolute; inset: auto 0 0; display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(transparent,rgba(97,17,62,.88)); color: #fff; font-size: .84rem; font-weight: 800; padding: 35px 7px 11px; opacity: 0; transform: translateY(8px); transition: opacity .2s ease,transform .2s ease; }
.poster-card:hover .poster-card__hover,.poster-card:focus-visible .poster-card__hover { opacity: 1; transform: translateY(0); }
.poster-card__text { display: flex; flex-direction: column; gap: 4px; padding: 9px 3px 1px; }
.poster-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 800; line-height: 1.34; font-size: .83rem; }
.poster-card__year { color: #aa6b8a; font-size: .73rem; font-weight: 700; }
.empty-results { padding: 45px 12px; text-align: center; font-size: 1.1rem; font-weight: 800; color: #b6427f; }
.gallery-footer { text-align: center; border-top: 1px dashed #efb4ce; margin-top: 31px; padding-top: 28px; }
.gallery-footer p { max-width: 660px; margin: 20px auto 0; font-size: .8rem; line-height: 1.6; color: #9e5c7b; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display:none !important; }
@media(max-width: 1000px) { .poster-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media(max-width: 800px) { .poster-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media(max-width: 590px) { .poster-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 10px; } .gallery-toolbar { align-items: stretch; } .gallery-search { width: 100%; } }
@media(max-width: 390px) { .poster-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .gallery-panel { border-radius: 22px; } }

/* ==========================================
   ONGLETS DES COLLECTIONS — BARBIE / LOONEY TUNES
   ========================================== */
.collection-tabs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 0 auto 21px; }
.collection-tab { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 53px; padding: 12px 19px; border: 2px solid rgba(255,255,255,.92); border-radius: 999px; background: #fff9fdce; box-shadow: 0 5px 13px #b8498322; color: #a54878; font: 800 .98rem "Trebuchet MS", "Segoe UI", sans-serif; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.collection-tab:hover { background: white; transform: translateY(-3px); }
.collection-tab.is-selected { background: #d94b86; color: #fff; box-shadow: 0 5px 0 #ac3566; }
.collection-tab:focus-visible { outline: 3px solid #963d72; outline-offset: 4px; }
.tab-count { display: inline-grid; place-items: center; min-width: 27px; height: 25px; padding: 2px 7px; border-radius: 30px; background: #efc0d5; color: #9f3967; font-size: .76rem; }
.is-selected .tab-count { background: #fff2f8; color: #b43d72; }
@media (max-width: 410px) { .collection-tabs { gap: 8px; } .collection-tab { padding: 10px 12px; font-size: .85rem; gap: 6px; } }

/* ==========================================================
   LA CHEVAUCHÉE ENCHANTÉE — jeu 2D (chevauchee.js)
   ========================================================== */
.page--game { width: min(1190px,calc(100% - 30px)); padding-top: 42px; }
.game-heading { margin-bottom: 27px; }
.game-heading h1 { font-size: clamp(2.4rem,5.7vw,4.4rem); }
.game-heading p { max-width: 670px; }
.runner-panel { overflow: hidden; background: #fff7fc; border: 4px solid white; border-radius: 28px; box-shadow: 0 14px 0 #c9609829,0 28px 60px #9d426724; }
.runner-topbar { display: flex; align-items:center; justify-content: space-between; background: #fff9fc; padding: 11px 23px; border-bottom: 1px solid #f9d8e7; }
.runner-brand { color: #ad4c79; font-size:.77rem; font-weight: 900; letter-spacing: .14em; white-space:nowrap; }
.runner-brand>span:first-child { font-size: 19px; vertical-align: middle; padding-right: 4px; }
.runner-brand__star { color: #f89cba; padding-left:7px; }
.runner-actions { display:flex; gap: 9px; }
.runner-icon-btn { min-width: 37px; height: 34px; border: 1px solid #f4cfe0; border-radius: 11px; background: #fff1f8; color: #a84270; font: 900 1.05rem 'Trebuchet MS',sans-serif; cursor: pointer; transition: background .2s; }
.runner-icon-btn:hover:not(:disabled) { background: #fbd9e9; }
.runner-icon-btn:disabled { opacity: .45; cursor: not-allowed; }
.runner-icon-btn:focus-visible,.runner-play-btn:focus-visible,.runner-jump-btn:focus-visible { outline: 3px solid #9b356e; outline-offset: 3px; }
.runner-sound-slash { display: inline; color:#d95680; margin-left:-3px; }
.runner-icon-btn[aria-pressed="true"] .runner-sound-slash { display: none; }
.runner-stats { display:grid; grid-template-columns: repeat(4,1fr); gap: 4px; padding: 10px 20px 12px; background: linear-gradient(180deg,#fff9fc,#fff0f8); }
.runner-stat { display:flex; flex-direction:column; align-items:center; gap:3px; min-width:0; }
.runner-stat__label { color:#b46a8c; font-size:.69rem; font-weight:900; letter-spacing: .1em; }
.runner-stat strong { color:#9b356e; font-variant-numeric:tabular-nums; font-size: clamp(1rem,2.1vw,1.4rem); letter-spacing:.025em; line-height:1.2; white-space:nowrap; }
.runner-stat small { font-size:.62em; color:#ad6988; }
.runner-stat--lives strong { color:#eb5f93; font-size:clamp(.9rem,2.1vw,1.4rem); letter-spacing:.12em; }
.runner-stage { position: relative; overflow: hidden; background: #99d8e8; aspect-ratio: 960 / 490; touch-action: manipulation; isolation: isolate; }
.runner-stage canvas { display:block; width:100%; height:100%; object-fit:contain; }
.runner-hud-effects { pointer-events:none; display:flex; flex-wrap:wrap; justify-content:center; gap:7px; position:absolute; top:12px; left:8px; right:8px; z-index:2; }
.runner-power-pill { display:inline-flex; align-items:center; gap:5px; background:#fff7f2f0; border:2px solid #ffdb76; border-radius:99px; padding:6px 11px; color:#895061; font-weight:900; font-size:clamp(.65rem,1.4vw,.81rem); box-shadow:0 3px 9px #51274c26; }
.runner-power-pill--thriller { border-color:#cda4ff; color:#60277d; background:#f3e9ffef; }
.runner-overlay { z-index:4; display:flex; align-items:center; justify-content:center; position:absolute; inset:0; padding:14px; background:linear-gradient(90deg,rgba(25,19,56,.20),rgba(34,23,58,.27)); }
.runner-overlay[hidden] { display:none; }
.runner-overlay__card { width:min(450px,90%); max-height: 100%; overflow-y:auto; text-align:center; padding:clamp(17px,2.5vw,30px) clamp(18px,3vw,37px) clamp(15px,2.5vw,28px); border:3px solid #fff; border-radius:25px; background:rgba(255,246,253,.95); box-shadow:0 17px 50px #3b224a5c; backdrop-filter:blur(12px); }
.runner-overlay__eyebrow { font-size:clamp(.59rem,.95vw,.7rem); font-weight:900; color:#ad5b83; letter-spacing:.17em; }
.runner-overlay__symbol { font-size:clamp(23px,4vw,40px); color:#dc73a0; line-height:1.2; margin:5px 0; }
.runner-overlay h2 { font-size:clamp(1.1rem,2.7vw,1.8rem); color:#b53d76; letter-spacing:-.025em; margin:3px 0 11px; }
.runner-overlay p { font-size:clamp(.75rem,1.45vw,.94rem); line-height:1.45; color:#78556d; margin:0 auto 15px; max-width:340px; }
.runner-play-btn { display:inline-flex; justify-content:center; align-items:center; gap:9px; color:white; background:linear-gradient(125deg,#e95393,#b83578); border:0; border-bottom:4px solid #962958; border-radius: 99px; padding:11px 21px; cursor:pointer; font:900 clamp(.8rem,1.35vw,.94rem) 'Trebuchet MS', sans-serif; box-shadow:0 6px 16px #c7578938; transition:transform .15s; }
.runner-play-btn:hover { transform:translateY(-2px); }
.runner-overlay__hint { display:block; margin-top:11px; font-size:.68rem; color:#b27694; font-weight:700; }
.runner-event { position:absolute; z-index:3; top:20%; left:0; right:0; pointer-events:none; text-align:center; font-size:clamp(1.15rem,3.3vw,2.4rem); font-weight:900; text-shadow:0 3px 0 #512a62a8,0 0 25px #fff; color:#fff8bd; opacity:0; transform:translateY(8px) scale(.9); transition:opacity .2s,transform .2s; }
.runner-event.is-visible { opacity:1; transform:translateY(0) scale(1); }
.runner-event.is-thriller { color:#d1ff8f; text-shadow:0 3px 0 #271039,0 0 22px #b55dff; }
.runner-controls { display:flex; justify-content:space-between; align-items:center; gap:15px; background:#fff9fc; padding:12px 21px; }
.runner-controls__help { color:#a66886; margin:0; font-size:.81rem; line-height:1.4; }
.runner-controls__help strong { color:#a53a72; }
.runner-controls__sep { padding:0 5px; }
.runner-jump-btn { display:flex; align-items:center; justify-content:center; gap:9px; background:#da558d; color:#fff; border:0; border-bottom:4px solid #a83267; border-radius:16px; padding:11px 22px; min-width:147px; cursor:pointer; touch-action:manipulation; font:900 .99rem 'Trebuchet MS',sans-serif; box-shadow:0 5px 12px #bc638a2a; }
.runner-jump-btn:hover { background:#c84981; }
.runner-jump-btn:active { transform:translateY(2px); border-bottom-width:2px; }
.runner-guide { max-width:1100px; margin:39px auto 0; }
.runner-guide h2 { color:#b7427b; font-size:clamp(1.4rem,3vw,2rem); text-align:center; margin:0 0 22px; }
.runner-guide__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
.runner-guide__item { border:2px solid white; border-radius:23px; background:#fff9fceb; padding:22px 20px 20px; text-align:center; box-shadow:0 9px 25px #aa598321; }
.runner-guide__emoji { display:grid; place-items:center; height:58px; width:58px; margin:0 auto 9px; font-size:32px; border-radius:19px; background:#ffe4f1; }
.runner-guide__item h3 { color:#bb4681; font-size:1.05rem; margin:8px 0; }
.runner-guide__item p { font-size:.87rem; color:#88576f; line-height:1.6; margin:0; }
.runner-guide__note { text-align:center; color:#995f7b; font-size:.78rem; margin:19px auto; line-height:1.5; max-width:850px; }
@media (max-width:650px) {
  .page--game { width:calc(100% - 14px); padding-top:27px; }
  .runner-panel { border-width:2px; border-radius:16px; }
  .runner-topbar { padding:8px 12px; }
  .runner-brand { font-size:.62rem; letter-spacing:.08em; }
  .runner-stats { padding:9px 7px 11px; }
  .runner-stat__label { font-size:.56rem; letter-spacing:0; }
  .runner-stat strong { font-size:clamp(.78rem,3vw,1rem); }
  .runner-stat--lives strong { font-size:.85rem; }
  .runner-stage { aspect-ratio: 960 / 580; }
  .runner-stage canvas { height:100%; object-fit: fill; }
  .runner-overlay { padding:7px; }
  .runner-overlay__card { width:min(92%,340px); padding:11px 14px 13px; border-radius:15px; border-width:2px; }
  .runner-overlay__symbol { display:none; }
  .runner-overlay h2 { font-size:clamp(.95rem,3.8vw,1.5rem); margin:4px 0 5px; }
  .runner-overlay p { font-size:clamp(.66rem,2.45vw,.9rem); line-height:1.26; margin-bottom:8px; }
  .runner-overlay__hint { margin-top:6px; font-size:.58rem; }
  .runner-play-btn { padding:8px 13px; font-size:.75rem; }
  .runner-controls { flex-direction:column; gap:9px; padding:12px; }
  .runner-controls__help { font-size:.74rem; text-align:center; }
  .runner-jump-btn { width:100%; min-height:51px; font-size:1.08rem; }
  .runner-guide__grid { grid-template-columns:1fr; gap:12px; }
  .runner-guide__item { display:grid; grid-template-columns:53px 1fr; text-align:left; padding:14px; column-gap:13px; }
  .runner-guide__emoji { width:51px; height:51px; grid-row:span 2; font-size:27px; margin:0; }
  .runner-guide__item h3 { margin:0; align-self:end; }
  .runner-guide__item p { font-size:.79rem; }
}
@media (prefers-reduced-motion: reduce) { .runner-event { transition:none; } }

/* ===== Mode PIXEL ART / arcade rétro ===== */
.runner-panel{border-radius:11px;border:5px solid #fff;box-shadow:0 0 0 4px #bc5687, 11px 11px 0 #b9477861;}
.runner-topbar,.runner-stats,.runner-controls{background:#fff0f8;border-bottom:3px solid #eba9c8;}
.runner-brand,.runner-stat__label,.runner-stat strong,.runner-controls__help,.runner-power-pill{font-family:'Courier New',monospace;font-weight:900;}
.runner-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;}
.runner-stat strong{font-size:clamp(.88rem,2.05vw,1.32rem);}
.runner-stage canvas{image-rendering:pixelated;image-rendering:crisp-edges;}
.runner-stage{border-top:3px solid #9c508a;border-bottom:3px solid #9c508a;}
.runner-overlay__card{border-radius:5px;box-shadow:9px 9px 0 #4b3158aa;border:4px solid #fbe2ec;}
.runner-overlay__eyebrow,.runner-overlay h2,.runner-play-btn{font-family:'Courier New',monospace;font-weight:900;}
.runner-play-btn,.runner-jump-btn,.runner-duck-btn,.runner-icon-btn{border-radius:4px;}
.runner-power-pill{border-radius:4px;}
.runner-touch-buttons{display:flex;gap:10px;align-items:stretch;}
.runner-duck-btn{display:flex;align-items:center;justify-content:center;gap:9px;background:#7d68b8;color:white;border:0;border-bottom:4px solid #533f90;padding:11px 21px;cursor:pointer;touch-action:none;font:900 .95rem 'Courier New',monospace;}
.runner-duck-btn:active{transform:translateY(2px);border-bottom-width:2px;}
.runner-jump-btn{font-family:'Courier New',monospace;}
.runner-music-settings{max-width:1100px;margin:18px auto 0;background:#fff8fc;border:2px solid #fff;border-radius:12px;padding:15px 20px;color:#915073;box-shadow:0 5px 20px #b87da61f;}
.runner-music-settings summary{font-weight:900;color:#aa4176;cursor:pointer;font-family:'Courier New',monospace;font-size:.93rem;}
.runner-music-settings p{font-size:.83rem;line-height:1.55;margin:12px 0;}
.runner-music-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.runner-music-fields label{display:flex;flex-direction:column;gap:7px;font-weight:800;font-size:.84rem;}
.runner-music-fields input{width:100%;max-width:100%;font-size:.8rem;border:2px dashed #e7a1c3;border-radius:5px;padding:8px;background:#fff;}
.runner-music-status{font-family:'Courier New',monospace;font-weight:800;color:#68528c;}
.runner-icon-btn:focus-visible,.runner-duck-btn:focus-visible{outline:3px solid #9b356e;outline-offset:3px;}
@media(max-width:650px){
 .runner-panel{border-width:2px;box-shadow:0 0 0 2px #bc5687,5px 5px 0 #b9477840;}
 .runner-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;padding:9px 3px 11px;}
 .runner-stat__label{font-size:.46rem;}
 .runner-stat strong{font-size:clamp(.65rem,2.25vw,.86rem);}
 .runner-stat--lives strong{font-size:.7rem;}
 .runner-touch-buttons{width:100%;gap:7px;}
 .runner-touch-buttons button{flex:1;min-width:0;padding:12px 5px;font-size:.83rem;}
 .runner-music-settings{padding:12px;}
 .runner-music-fields{grid-template-columns:1fr;}
}

/* === Apparence de la cartouche 8-bit : gros pixels nets et boutons rétro === */
.runner-stage{background:#77c9f9;image-rendering:pixelated;}
.runner-stage canvas{image-rendering:pixelated;image-rendering:crisp-edges;}
.runner-panel{border:5px solid #fef2f8;border-radius:0;box-shadow:0 0 0 5px #b04f86,12px 12px 0 #75466b33;}
.runner-topbar{background:#342746;color:#fff5ed;}
.runner-brand{color:#fff5ed;font-family:'Courier New',monospace;font-size:.78rem;letter-spacing:.03em;}
.runner-stat{border-radius:0;}
.runner-overlay__card{background:#fcf0fc;border:6px solid #4c345a;border-radius:0;box-shadow:12px 12px 0 #23172e66;}
.runner-play-btn,.runner-icon-btn,.runner-jump-btn,.runner-duck-btn{border-radius:0;box-shadow:4px 4px 0 #3c325c55;}
.runner-guide__item{border-radius:0;}
@media(max-width:650px){.runner-panel{border-width:3px;box-shadow:0 0 0 2px #b04f86,5px 5px 0 #75466b22;}}

/* Troisième bonus : mode amour « 23 ». */
.runner-power-pill--love{background:#fff0f7ef;color:#a32e69;border-color:#ff9bc8;}
.runner-guide__grid{grid-template-columns:repeat(4,minmax(0,1fr));}
@media(max-width:950px){.runner-guide__grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.runner-guide__grid{grid-template-columns:1fr;}}


/* ==========================================================
   ACCUEIL LOLLY — golden retriever pixel qui arrive de la gauche
   ========================================================== */
.welcome--lolly { max-width: 840px; padding-bottom: 38px; }
.lolly-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 240px) 1fr;
  align-items: end;
  gap: 24px;
  margin: 10px auto 6px;
  max-width: 690px;
}
.lolly-dog-wrap {
  position: relative;
  align-self: end;
  justify-self: start;
  animation: lolly-enter 1.9s cubic-bezier(.17,.83,.28,1) .05s both;
}
.lolly-dog {
  width: min(240px, 100%);
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 0 rgba(220,115,158,.17)) drop-shadow(0 18px 26px rgba(145,67,101,.18));
}
.lolly-dog-wrap::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 14px;
  bottom: -2px;
  height: 10px;
  border-radius: 999px;
  background: rgba(215,128,166,.18);
}
.lolly-bubble {
  position: relative;
  text-align: left;
  background: #fff8fd;
  border: 4px solid #ffd2e4;
  border-radius: 24px;
  padding: 19px 22px 18px;
  box-shadow: 0 12px 0 rgba(224,120,164,.16), 0 16px 30px rgba(148,57,98,.11);
  opacity: 0;
  transform: translateY(10px) scale(.96);
  animation: lolly-talk .8s ease 1.35s forwards;
}
.lolly-bubble::before {
  content: "";
  position: absolute;
  left: -16px;
  bottom: 28px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 16px solid #ffd2e4;
}
.lolly-bubble::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 30px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 13px solid #fff8fd;
}
.lolly-bubble__title {
  margin: 0 0 9px;
  color: var(--pink-dark);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 900;
}
.lolly-bubble p:last-child {
  margin: 0;
  max-width: none;
  font-size: clamp(1rem, 2.2vw, 1.08rem);
  line-height: 1.75;
}
.welcome__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}
.cta-button--soft {
  background: #ef78ad;
  box-shadow: 0 6px 0 #cf5b92;
}
.cta-button--soft:hover { background: #e7659f; box-shadow: 0 9px 0 #c54f86; }
.cta-button--soft:active { box-shadow: 0 3px 0 #c54f86; }
@keyframes lolly-enter {
  from { transform: translateX(-120vw); }
  78% { transform: translateX(18px); }
  to { transform: translateX(0); }
}
@keyframes lolly-talk {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 760px) {
  .lolly-scene {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }
  .lolly-bubble {
    text-align: center;
    width: 100%;
  }
  .lolly-bubble::before, .lolly-bubble::after {
    left: 50%;
    bottom: auto;
    top: -15px;
    transform: translateX(-50%) rotate(90deg);
  }
  .lolly-dog-wrap { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .lolly-dog-wrap, .lolly-bubble { animation: none !important; opacity: 1; transform: none; }
}


/* ==============================================================
   MYSTÈRE : espace volontairement vide pour une surprise ultérieure
   ============================================================= */
.page--mystery { min-height: calc(100vh - 170px); }

/* ==============================================================
   DATE : micro-jeu romantique, pixel boy, boutons malicieux
   ============================================================= */
.page--date {
  display: grid; place-items: center;
  min-height: calc(100svh - 145px);
  padding: 46px 16px 72px;
  overflow: hidden;
}
.date-deco { position: absolute; z-index: -1; user-select: none; color: rgba(255,255,255,.88); font-size: clamp(3rem,7vw,6.8rem); }
.date-deco--one { top: 12%; left: 8%; transform: rotate(-15deg); }
.date-deco--two { top: 42%; right: 7%; transform: rotate(12deg); }
.date-deco--three { bottom: 7%; left: 13%; transform: rotate(5deg); }
.date-card {
  position: relative; width: min(880px,100%); isolation: isolate;
  padding: clamp(28px,5vw,55px) clamp(18px,5vw,62px) 32px;
  background: linear-gradient(165deg,#fffafc 0%,#fff4fa 69%,#ffe8f2 100%);
  border: 5px solid #fff;
  border-radius: 32px;
  box-shadow: 0 16px 0 #d668a544,0 24px 56px #9b3d7233;
  text-align: center;
}
.date-card__top { font-size: .78rem; letter-spacing: .2em; color: #c65b8b; font-weight: 900; }
.date-card__top span { color: #ea82ad; letter-spacing: normal; }
.date-card h1 { margin: 15px 0 9px; font-size: clamp(2.2rem,5.4vw,3.75rem); letter-spacing: -.05em; line-height: 1.1; color: #c43f79; }
.date-card h1 em { color: #ef76a8; font-style: italic; }
.date-stage { max-width: 670px; margin: 10px auto 0; display: grid; grid-template-columns: minmax(135px,235px) 1fr; align-items: center; column-gap: 15px; }
.date-sprite { width: 100%; transform-origin: center bottom; filter: drop-shadow(0 9px 0 #d870a637); animation: date-idle 2s ease-in-out infinite; }
.date-boy { display: block; margin: 0 auto; width: 100%; max-height: 300px; image-rendering: pixelated; }
.date-boy__arm-left,.date-boy__arm-right { transform-origin: center 140px; }
.date-speech { position: relative; text-align: left; padding: 26px clamp(19px,4vw,35px); border: 3px solid #f4accb; border-radius: 25px; background: #fff; box-shadow: 6px 8px 0 #f0d0e0; }
.date-speech::before { content:""; position:absolute; left:-13px; top:46%; width:22px; height:22px; background:#fff; border-left:3px solid #f4accb; border-bottom:3px solid #f4accb; transform:rotate(45deg); }
.date-speech__dots { color:#f18cb7; letter-spacing: 7px; font-weight: 900; }
.date-speech p { margin:9px 0 12px; font-size:clamp(1.18rem,2.8vw,1.65rem); font-weight: 800; line-height:1.5; color:#8a466d; }
.date-speech p strong { color:#d43c7a; }
.date-speech__caption { font-size:.85rem; color:#c8759b; font-weight:700; }
.date-choice-zone { position: relative; width:min(100%,530px); height:162px; margin:3px auto 0; touch-action: manipulation; }
.date-yes,.date-no {
  position:absolute; top:38px; border:0; border-radius:999px;
  min-height:57px; padding:14px 25px;
  font:900 clamp(.95rem,2.5vw,1.05rem) 'Trebuchet MS',Arial,sans-serif;
  white-space:nowrap; cursor:pointer; touch-action: manipulation;
  transition: background-color .15s,box-shadow .15s,left .16s ease-out,top .16s ease-out,transform .16s ease-out;
}
.date-yes { left:7%; z-index:1; color:#fff; background:#d94b86; box-shadow:0 6px 0 #ad3268; }
.date-yes:hover { background:#c83d77; transform:translateY(-3px); box-shadow:0 9px 0 #ad3268; }
.date-yes:focus-visible { outline: 3px solid #9c366b; outline-offset:4px; }
.date-no { left:61%; z-index:2; color:#bd5887; background:#fff; border:2px solid #f5bbd4; box-shadow:0 5px 0 #f3cbdd; }
.date-no:focus-visible { outline:2px solid #df8fb2; outline-offset:3px; }
.date-hint { margin:-8px 0 0; color:#ba7a9b; font-size:.88rem; font-weight:700; }
.date-celebration { margin:0 auto; max-width:520px; animation: date-pop .4s ease both; }
.date-celebration[hidden] { display:none !important; }
.date-celebration__big { font-size:clamp(1.8rem,4vw,3rem); color:#d9387b; font-weight:900; letter-spacing:.015em; margin:7px 0 4px; }
.date-celebration p:not(.date-celebration__big) { margin:10px 0 24px; font-weight:700; color:#984e75; }
.date-replay { padding:12px 21px; border:2px solid #f0b4d0; border-radius:40px; background:#fff; color:#bc4e82; cursor:pointer; font-weight:800; }
.date-replay:hover { background:#ffe7f2; }
.date-card.is-accepted .date-choice-zone,.date-card.is-accepted .date-hint { display:none; }
.date-card.is-accepted .date-sprite { animation:date-jump .42s cubic-bezier(.3,.8,.4,1) infinite alternate; }
.date-card.is-accepted .date-boy__arm-left { animation:date-wave-left .38s ease-in-out infinite alternate; }
.date-card.is-accepted .date-boy__arm-right { animation:date-wave-right .38s ease-in-out infinite alternate; }
.date-confetti { position:absolute; inset:0; z-index:4; pointer-events:none; overflow:hidden; border-radius:inherit; }
.date-heart-piece { position:absolute; bottom:-25px; opacity:0; animation: date-heart-fly var(--heart-dur,2.3s) ease-out forwards; color:var(--heart-color,#e9609c); font-size:var(--heart-size,25px); left:var(--heart-x,50%); }
@keyframes date-idle { 50% { transform:translateY(-5px); } }
@keyframes date-pop { from { opacity:0; transform:scale(.9); } to { opacity:1; transform:scale(1); } }
@keyframes date-jump { to { transform:translateY(-19px) rotate(3deg); } }
@keyframes date-wave-left { to { transform:rotate(-9deg); } }
@keyframes date-wave-right { to { transform:rotate(10deg); } }
@keyframes date-heart-fly { 10% { opacity:1; } 100% { opacity:0; transform:translate(var(--heart-drift,0px),-590px) rotate(var(--heart-rot,25deg)) scale(1.2); } }
@media(max-width:700px) {
  .site-header { border-radius:22px; flex-wrap:wrap; justify-content:center; padding:12px 16px; }
  .site-nav { justify-content:center; }
  .nav-link { padding:9px 10px; }
  .date-stage { grid-template-columns:1fr; justify-items:center; gap:5px; }
  .date-sprite { max-width:168px; }
  .date-speech { width:100%; text-align:center; }
  .date-speech::before { left:calc(50% - 12px); top:-12px; border-left:3px solid #f4accb; border-top:3px solid #f4accb; border-bottom:0; }
  .date-card__top { font-size:.7rem; letter-spacing:.09em; }
  .date-choice-zone { height:175px; }
  .date-yes { left:4%; }
  .date-no { left:58%; }
}
@media(max-width:370px) { .date-yes,.date-no { padding:12px 16px; font-size:.86rem; } .date-choice-zone { height:185px; } }
@media(prefers-reduced-motion:reduce) {
  .date-sprite,.date-card.is-accepted .date-sprite,.date-card.is-accepted .date-boy__arm-left,.date-card.is-accepted .date-boy__arm-right { animation:none !important; }
  .date-heart-piece { animation-duration:.1s !important; }
}


/* ==========================================================
   COFFRE MYSTÈRE — romantique, pixellisé, PDF sous clé
   ========================================================== */
.page--mystery { min-height: calc(100svh - 155px); display:grid; place-items:center; padding:55px 18px 75px; }
.mystery-star { position:absolute; z-index:-1; color:#fff8fc; opacity:.84; font-size:clamp(45px,8vw,100px); animation:float 6s ease-in-out infinite; }
.mystery-star--one {top:8%; left:7%}
.mystery-star--two {top:35%; right:6%; animation-delay:-2s}
.mystery-star--three {bottom:7%; left:15%; animation-delay:-4s}
.mystery-card {width:min(830px,100%); position:relative; text-align:center; background:linear-gradient(155deg,#fffafd 10%,#fff0f7 75%,#ffe3ef); border:5px solid #fff; border-radius:32px; padding:clamp(30px,5vw,54px) clamp(19px,5vw,50px); box-shadow:0 18px 0 #d665a33d,0 35px 55px #b1477a27;}
.mystery-eyebrow {margin:0 0 14px; letter-spacing:.16em; font-size:.79rem; font-weight:900; color:#d25f8f}
.mystery-card h1 {margin:0; color:#c8447c; font-size:clamp(2.3rem,6vw,4.5rem); letter-spacing:-.04em; line-height:1.1}
.mystery-card h1 em {font-style:italic; color:#f07cab}
.mystery-lede {font-size:clamp(1rem,2.5vw,1.18rem); line-height:1.7; max-width:490px; margin:17px auto 5px}
.mystery-vault {max-width:610px; margin:0 auto}
.mystery-lock {position:relative; width:170px; height:185px; display:grid; place-items:center; margin:20px auto 4px; transform-origin:center bottom}
.mystery-lock-art {width:132px; height:162px; image-rendering:pixelated; filter:drop-shadow(0 9px 0 #d569a332) drop-shadow(0 20px 17px #cf72994a); transition:transform .7s ease,filter .5s ease}
.mystery-lock__spark {position:absolute; color:#ee78a7; font-size:24px; animation:mystery-twinkle 2.6s ease-in-out infinite alternate}
.mystery-lock__spark--a {left:6px; top:42px}
.mystery-lock__spark--b {right:2px; top:18px;animation-delay:-1.7s}
.mystery-lock__spark--c {right:15px; bottom:12px;animation-delay:-.7s}
.mystery-locked h2, .mystery-reveal h2 {font-size:clamp(1.5rem,3vw,2.15rem);color:#b84378;margin:2px 0 10px}
.mystery-locked__hint {margin:0 auto 25px;line-height:1.6}
.mystery-form {max-width:490px;margin:0 auto}
.mystery-form label {display:block;text-align:left;font-size:.9rem;font-weight:800;color:#ab4b79;margin:0 0 9px 9px}
.mystery-form__row {display:flex;align-items:stretch;gap:11px}
.mystery-form input {flex:1; min-width:0; padding:14px 18px; border:2px solid #f5bbd2; border-radius:16px;background:#fff;color:#783e5c;font:700 1rem 'Trebuchet MS',Arial,sans-serif;outline:none;box-shadow:inset 0 3px 7px #f9e8ef}
.mystery-form input:focus {border-color:#d75490;box-shadow:0 0 0 4px #eeaad25e}
.mystery-open-btn {border:0; border-radius:16px; padding:12px 22px;background:#d94b86;color:#fff;font:900 1rem 'Trebuchet MS',Arial,sans-serif;cursor:pointer;box-shadow:0 5px 0 #ac3669;white-space:nowrap}
.mystery-open-btn:hover {background:#c63e78;transform:translateY(-2px)}
.mystery-open-btn:disabled {opacity:.64;cursor:progress}
.mystery-feedback {color:#c3396c;font-size:.88rem;min-height:1.5em;margin:13px 0 0;font-weight:700}
.mystery-coming {font-weight:800; color:#bf6a92; padding:12px; margin:0 auto}
.mystery-reveal[hidden], .mystery-form[hidden], .mystery-coming[hidden] {display:none!important}
.mystery-reveal {animation:mystery-reveal .65s cubic-bezier(.16,1,.3,1) both}
.mystery-reveal__hearts {font-size:2.1rem;letter-spacing:15px;color:#f077aa;margin:8px auto 6px}
.mystery-reveal p {font-weight:700;line-height:1.6;margin:0 0 18px}
.mystery-preview-shell {background:#fff;border:4px solid #ffe0eb;padding:7px;border-radius:19px;box-shadow:0 8px 20px #bf678c33;margin:10px 0 22px}
#mystery-pdf {display:block;width:100%;height:min(56vh,510px);min-height:300px;border:0;border-radius:10px;background:#fff}
.mystery-download {margin-top:4px}
.mystery-vault.is-open .mystery-lock-art {transform:rotate(-9deg) translateY(-7px);filter:drop-shadow(0 12px 12px #c45e8c3d)}
.mystery-vault.is-shaking .mystery-lock-art {animation:mystery-shake .35s linear}
@keyframes mystery-shake {0%,100%{transform:translateX(0)}25%{transform:translateX(-10px)}50%{transform:translateX(9px)}75%{transform:translateX(-6px)}}
@keyframes mystery-twinkle {to{opacity:.38;transform:translateY(-9px) scale(.7)}}
@keyframes mystery-reveal {from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:540px){.page--mystery{padding:34px 13px 60px}.mystery-card{padding:27px 16px 36px}.mystery-form__row{flex-direction:column}.mystery-form label{text-align:center}.mystery-open-btn{width:100%;min-height:50px}.mystery-lock{margin:8px auto 0}.mystery-star{font-size:44px}#mystery-pdf{min-height:250px;height:48vh}}
@media(prefers-reduced-motion:reduce){.mystery-star,.mystery-lock__spark,.mystery-reveal,.mystery-vault.is-shaking .mystery-lock-art{animation:none!important}}

/* ==========================================================
   RESPONSIVE GLOBAL — Téléphone, tablette, ordinateur
   Compatible tactile et petits écrans (320 px et plus).
   ========================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { max-width: 100%; }
img, video, iframe, svg, canvas { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.page, .site-header, .welcome, .gallery-panel, .runner-panel,
.mystery-card, .date-card { min-width: 0; }
.cta-button, .email-button, .nav-link, .collection-tab,
.mystery-open-btn, .date-yes, .date-replay, .runner-icon-btn,
.runner-jump-btn, .runner-duck-btn, .runner-play-btn { touch-action: manipulation; }

/* La barre de jeu ne doit jamais cacher ses boutons son et pause. */
.runner-topbar { gap: 12px; min-width: 0; }
.runner-brand { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.runner-actions { flex: 0 0 auto; }

@media (min-width: 841px) and (max-width: 1120px) {
  .site-header { width: calc(100% - 32px); }
  .page--inner { width: calc(100% - 40px); }
  .page--gallery { width: calc(100% - 40px); }
  .page--game { width: calc(100% - 34px); }
}

/* Tablette : navigation claire, cartes qui occupent l'espace disponible. */
@media (min-width: 541px) and (max-width: 840px) {
  .site-header { width: calc(100% - 30px); }
  .site-nav { width: 100%; justify-content: center; }
  .nav-link { justify-content: center; min-width: 90px; min-height: 44px; }
  .page--inner { width: calc(100% - 30px); }
  .page--gallery { width: calc(100% - 30px); }
  .page--game { width: calc(100% - 28px); }
  .welcome { padding-inline: clamp(26px, 5vw, 50px); }
  .lolly-scene { grid-template-columns: minmax(155px, 215px) minmax(0,1fr); gap: 18px; }
  .runner-controls { flex-wrap: wrap; justify-content: center; }
  .runner-controls__help { flex-basis: 100%; text-align: center; }
}

/* Téléphones : tout reste dans la largeur du navigateur, sans scroll horizontal. */
@media (max-width: 540px) {
  .site-header {
    width: calc(100% - 22px);
    margin-top: 12px;
    padding: 12px 10px;
    border-radius: 22px;
    gap: 10px;
  }
  .brand { justify-content: center; max-width: 100%; font-size: 1rem; }
  .site-nav { width: 100%; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
  .nav-link { min-width: 0; min-height: 46px; display:flex; justify-content:center; padding: 9px 4px; font-size: clamp(.72rem,2.7vw,.91rem); }
  .nav-symbol { display: none; }
  .page--inner, .page--gallery { width: calc(100% - 24px); padding-top: 32px; padding-bottom: 42px; }
  .page--home { padding: 44px 12px 35px; gap: 16px; }
  .welcome { width: 100%; padding: 48px 16px 30px; border-width: 3px; border-radius: 24px; }
  .welcome h1 { font-size: clamp(2.2rem,10vw,3rem); }
  .welcome__eyebrow { letter-spacing: .08em; }
  .welcome__actions { gap: 11px; }
  .welcome__actions a { min-height: 46px; }
  .lolly-scene { grid-template-columns: minmax(0,1fr); justify-items:center; gap: 10px; }
  .lolly-dog { width: min(210px,74vw); }
  .lolly-bubble { min-width:0; padding: 15px 16px; }
  .lolly-bubble__title { font-size: 1.2rem; }
  .lolly-bubble p:last-child { font-size: .99rem; line-height: 1.62; }
  .section-heading { margin-bottom: 25px; }
  .section-heading__pill { max-width: 100%; font-size: .69rem; line-height: 1.5; letter-spacing: .1em; }
  .section-heading h1 { font-size: clamp(2rem,9vw,2.9rem); overflow-wrap: break-word; }
  .section-heading p { font-size: .99rem; }
  .float-deco, .date-deco, .mystery-star { pointer-events: none; }
  .gallery-panel { padding: 14px 11px 20px; border-radius: 20px; }
  .gallery-toolbar { gap: 12px; }
  .gallery-title { width: 100%; }
  .gallery-search { width: 100%; min-height: 49px; }
  .gallery-search input { font-size: 16px; } /* Évite le zoom automatique dans Safari iOS */
  .collection-tabs { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .collection-tab { width:100%; min-width:0; min-height:49px; padding:10px 7px; gap:5px; font-size: clamp(.79rem,2.7vw,.9rem); }
  .poster-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 11px; }
  .poster-card__title { font-size: .82rem; }
  .poster-card__year { font-size: .73rem; }
  .poster-card__hover { display: none; } /* sur tactile, le nom reste lisible sous l'affiche */
  .gallery-footer .cta-button { max-width: 100%; }
  .site-footer { padding: 19px 12px 25px; line-height: 1.6; }

  /* Le jeu tient dans l'écran avec HUD réparti sur deux rangées. */
  .page--game { width: calc(100% - 14px); padding-top: 30px; }
  .game-heading { margin-bottom: 25px; }
  .runner-panel { border-width: 2px; box-shadow: 0 0 0 2px #b04f86, 4px 5px 0 #75466b22; }
  .runner-topbar { padding: 9px 11px; gap: 8px; }
  .runner-brand { font-size: clamp(.61rem,2.4vw,.75rem); line-height: 1.35; letter-spacing: 0; }
  .runner-brand__star { display: none; }
  .runner-actions { gap: 7px; }
  .runner-icon-btn { min-width: 43px; min-height: 43px; height:43px; font-size: 1.13rem; }
  .runner-stats { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap: 11px 3px; padding: 10px 5px 12px; }
  .runner-stat { grid-column: span 2; gap:3px; }
  .runner-stat:nth-child(4), .runner-stat:nth-child(5) { grid-column: span 3; }
  .runner-stat__label { font-size: clamp(.55rem,2.35vw,.68rem); letter-spacing: 0; text-align:center; }
  .runner-stat strong, .runner-stat--lives strong { font-size: clamp(.79rem,3vw,1rem); }
  .runner-stage { aspect-ratio: 15 / 11; min-height: 206px; }
  .runner-stage canvas { width: 100%; height: 100%; object-fit: fill; }
  .runner-overlay { padding: 8px; }
  .runner-overlay__card { width: min(98%,380px); max-height: 96%; padding: 10px 10px 12px; border-width: 3px; overflow-y: auto; }
  .runner-overlay__eyebrow { font-size: .62rem; letter-spacing: .07em; }
  .runner-overlay h2 { font-size: clamp(1rem,4.1vw,1.35rem); margin: 5px 0; }
  .runner-overlay p { font-size: clamp(.76rem,3vw,.87rem); line-height:1.35; margin-bottom: 9px; }
  .runner-play-btn { min-height: 42px; max-width: 100%; font-size: clamp(.72rem,2.9vw,.88rem); padding: 8px 12px; }
  .runner-overlay__hint { font-size:.62rem; line-height:1.3; margin-top:9px; }
  .runner-controls { flex-direction:column; gap:11px; padding:12px 10px; }
  .runner-controls__help { font-size:.78rem; line-height:1.55; text-align:center; }
  .runner-touch-buttons { display:grid; grid-template-columns:1fr 1fr; gap:8px; width:100%; }
  .runner-touch-buttons button { min-width:0; min-height:54px; padding:11px 6px; font-size: .89rem; }
  .runner-guide { margin-top: 31px; }
  .runner-guide__grid { gap: 12px; }
  .runner-guide__item { padding: 13px; }
  .runner-guide__item p { font-size: .82rem; }

  /* La question, le personnage et les boutons restent lisibles sur un téléphone. */
  .page--date { padding: 30px 12px 48px; }
  .date-card { padding: 28px 14px 29px; border-width: 3px; border-radius: 24px; }
  .date-stage { gap: 11px; }
  .date-sprite { max-width: min(168px,51vw); }
  .date-speech { padding: 17px 13px; border-radius: 19px; }
  .date-speech p { font-size: clamp(1.07rem,4.6vw,1.3rem); }
  .date-choice-zone { width: 100%; height: 174px; }
  .date-yes, .date-no { min-height: 49px; padding: 12px 14px; font-size: clamp(.79rem,3.4vw,.94rem); }
  .date-yes { left:4%; }
  .date-no { left:58%; }
  .date-celebration { max-width: 100%; }

  /* Le coffre et le PDF ne débordent pas de la page. */
  .page--mystery { padding: 31px 12px 50px; }
  .mystery-card { padding: 30px 14px 35px; border-width:3px; border-radius:24px; }
  .mystery-eyebrow { letter-spacing:.08em; font-size:.72rem; line-height:1.5; }
  .mystery-card h1 { font-size: clamp(2rem,9vw,3rem); }
  .mystery-lede { font-size:.98rem; }
  .mystery-form__row { flex-direction:column; }
  .mystery-form input { width: 100%; min-height: 50px; font-size:16px; }
  .mystery-open-btn { min-height: 50px; }
  .mystery-preview-shell { padding:3px; border-width:2px; }
  #mystery-pdf { width:100%; height:min(55vh,440px); min-height:230px; }
  .mystery-download { max-width:100%; }
}

@media (max-width: 370px) {
  .site-nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .nav-link { font-size: .88rem; min-height: 45px; }
  .welcome__actions { flex-direction: column; align-items:stretch; }
  .welcome__actions a { width:100%; }
  .lolly-dog { width: min(192px,66vw); }
  .runner-brand { font-size: .6rem; }
  .runner-overlay__hint { display:none; }
  .runner-overlay__card { padding: 9px 10px; }
  .runner-overlay p { font-size: .74rem; }
  .runner-overlay h2 { font-size: 1rem; }
  .runner-play-btn { min-height: 42px; }
  .date-yes, .date-no { padding: 11px 10px; }
}

@media (orientation: landscape) and (max-height: 490px) and (max-width: 950px) {
  .page--home { padding-top: 30px; }
  .page--inner, .page--gallery, .page--game { padding-top: 24px; }
  .runner-overlay__card { max-height: 95%; }
}

/* Gestion des gestes tactiles et d'une navigation clavier visible. */
@media (hover:none) and (pointer:coarse) {
  .nav-link:hover, .poster-card:hover, .collection-tab:hover { transform:none; }
  .poster-card__hover { display:none; }
  .runner-touch-buttons button { user-select:none; -webkit-user-select:none; }
}
@media (prefers-reduced-motion: reduce) {
  .lolly-bubble { opacity:1; transform:none; }
}


/* =======================================================
   CHOIX DU CHEVAL — vignettes pixel art intégrées à l'overlay
   ======================================================= */
.runner-overlay__card:has(.horse-picker:not([hidden])){width:min(95%,620px);max-height:min(98%,450px);overflow-y:auto;scrollbar-width:thin;}
.horse-picker{padding:0;border:0;margin:6px auto 13px;min-width:0;max-width:540px;width:100%;}
.horse-picker[hidden]{display:none!important;}
.horse-picker legend{color:#a23d71;text-align:center;font:900 clamp(.68rem,1.5vw,.89rem) 'Courier New',monospace;margin:0 auto 6px;letter-spacing:.02em;}
.horse-picker__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.horse-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:114px;padding:7px 4px;border:3px solid #f2cadd;background:#fffafc;border-radius:8px;cursor:pointer;color:#914766;transition:transform .15s,border-color .15s,background .15s;touch-action:manipulation;font-family:'Courier New',monospace;}
.horse-choice:focus-visible{outline:3px solid #b2387b;outline-offset:2px;}
.horse-choice.is-selected{background:#ffdaea;border-color:#d24987;box-shadow:inset 0 0 0 2px #fff;transform:translateY(-2px);}
.horse-choice__pixel{width:min(100%,88px);height:59px;image-rendering:pixelated;}
.horse-choice strong{font-size:clamp(.68rem,1.45vw,.92rem);line-height:1.1;white-space:normal;overflow-wrap:anywhere;}
.horse-choice small{font-size:clamp(.54rem,1.2vw,.68rem);line-height:1.15;opacity:.86;}
.horse-choice--aspic{--coat:#f9f8ef;--shade:#c8d8e0;--mane:#e6e2d6;--hoof:#8a8191;}
.horse-choice--royal{--coat:#845037;--shade:#653728;--mane:#382c2b;--hoof:#3b3030;}
.horse-choice--acrobatte{--coat:#c18452;--shade:#925c3f;--mane:#5c3b2a;--hoof:#604339;}
.horse-picker__help{margin:6px 0 0!important;font:700 .73rem 'Trebuchet MS',sans-serif!important;color:#ac6287!important;}
.runner-play-btn:disabled{cursor:not-allowed;opacity:.5;filter:grayscale(.2);transform:none!important;}
@media(max-width:540px){
 .runner-overlay__card:has(.horse-picker:not([hidden])){width:98%;padding:8px 8px 10px;max-height:98%;}
 .horse-picker{margin:2px auto 7px;}
 .horse-picker__grid{gap:4px;}
 .horse-choice{min-height:78px;padding:3px 2px;border-width:2px;}
 .horse-choice__pixel{height:36px;width:64px;}
 .horse-choice strong{font-size:clamp(.53rem,2.25vw,.73rem);}
 .horse-choice small{font-size:clamp(.45rem,1.9vw,.61rem);}
 .horse-picker legend{font-size:.65rem;margin-bottom:3px;}
 .horse-picker__help{font-size:.58rem!important;margin:3px 0 0!important;}
 .runner-overlay__card:has(.horse-picker:not([hidden])) .runner-overlay__symbol{display:none;}
 .runner-overlay__card:has(.horse-picker:not([hidden])) #runner-overlay-text{font-size:.7rem;line-height:1.25;margin-bottom:5px;}
}

/* =======================================================
   DATE — le non reste fuyant au PC, mais explose en pixels au tactile
   ======================================================= */
.date-sprite{position:relative;}
.date-boy__eye{transition:transform .14s steps(2,end);}
.date-card.is-refused .date-boy__eye{transform:translate(-4px,2px);}
.date-card.is-refused .date-sprite{animation:date-boy-boom .82s steps(6,end) .48s forwards;}
.date-card.is-refused .date-choice-zone,.date-card.is-refused .date-hint{display:none;}
.date-refusal{animation:date-pop .45s ease both;margin:10px auto;max-width:540px;}
.date-refusal[hidden]{display:none!important;}
.date-refusal__big{font-weight:900;color:#d34a83;font-size:clamp(1.9rem,4vw,2.7rem);margin:0 auto 7px;}
.date-refusal p:not(.date-refusal__big){font-weight:700;color:#9b557a;}
.date-pixel-piece{position:absolute;z-index:5;left:50%;top:50%;height:9px;width:9px;background:var(--pixel-bg,#f59cbc);pointer-events:none;animation:date-pixels-fly .75s steps(7,end) var(--pixel-delay,0s) forwards;}
@keyframes date-boy-boom{0%,35%{opacity:1;transform:scale(1)}55%{opacity:1;transform:scale(1.15) rotate(-3deg)}70%{opacity:.75;transform:scale(1.08) rotate(7deg)}100%{opacity:0;transform:scale(.13) rotate(14deg)}}
@keyframes date-pixels-fly{0%{opacity:1;transform:translate(0,0) scale(1)}95%{opacity:1}100%{opacity:0;transform:translate(var(--px),var(--py)) scale(.75)}}
@media(prefers-reduced-motion:reduce){.date-card.is-refused .date-sprite{animation:none!important;opacity:0;}.date-pixel-piece{animation-duration:.01s!important;}}

/* Petite explosion persistante à la place du garçon sur écran tactile. */
.date-boom-marker{display:none;grid-column:1;grid-row:1;align-self:center;justify-self:center;z-index:3;pointer-events:none;flex-direction:column;align-items:center;color:#d94b86;text-shadow:2px 3px #fff;}
.date-boom-marker span{font-size:clamp(3.3rem,9vw,6rem);line-height:1.1;image-rendering:pixelated;}
.date-boom-marker strong{font:900 clamp(1.5rem,4vw,2.1rem) 'Courier New',monospace;}
.date-card.is-refused .date-boom-marker{display:flex;animation:date-boom-appear .45s steps(4,end) .85s both;}
@keyframes date-boom-appear{from{opacity:0;transform:scale(.3) rotate(-18deg)}to{opacity:1;transform:scale(1) rotate(0)}}
@media(prefers-reduced-motion:reduce){.date-card.is-refused .date-boom-marker{animation:none!important;}}
