/* Page Dropplo. Le monde du jeu (Dropplo/DESIGN.md) : Fredoka pour les titres, Nunito Sans pour le reste. */
:root{--ecume:#EEF7F1;--eau:#B9DAD6;--mousse:#D6E7D4;--tomate:#FF5A4A;--soleil:#FFC730;--encre:#3A2540;--nuit:#14173A;--lune:#C4C8EA;
  --titre:"Fredoka",system-ui,sans-serif;--texte:"Nunito Sans",system-ui,sans-serif;--doux:cubic-bezier(.22,.8,.24,1)}
*{box-sizing:border-box}
html{background:#F7B7A6;color:var(--ecume);font-family:var(--texte);font-weight:600;line-height:1.45;-webkit-font-smoothing:antialiased;scrollbar-color:#6E6AA6 transparent;scrollbar-width:thin}
body{margin:0;overflow-x:clip}
::selection{background:var(--soleil);color:#0C3540}
h1,h2,p{margin:0}
h1,h2{font-family:var(--titre);font-weight:600;line-height:1.04;text-wrap:balance}
p{text-wrap:pretty}
a{color:inherit;text-underline-offset:.2em}
:focus-visible{outline:3px solid var(--soleil);outline-offset:3px;border-radius:6px}
#sky{display:none}

.logo{display:block;width:min(290px,60vw);aspect-ratio:2.76;margin:0 0 26px -6px;cursor:pointer}
.logo svg,.logo img{display:block;width:100%;height:auto;overflow:visible}

/* Sans script, les écrans s'empilent sur leur propre couleur. */
.station{position:relative;min-height:100vh;min-height:100svh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:3vw;padding:9vh clamp(22px,6vw,96px)}
.station h2{font-size:clamp(2.6rem,5.2vw,4.8rem)}
.station h1{font-size:clamp(2.8rem,5.4vw,5.6rem)}
.aube{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
.station .words p:not(.note){margin-top:16px;font-size:clamp(1.1rem,1.5vw,1.3rem);max-width:32ch}
.aube{background:linear-gradient(#FFDDB8,#F7B7A6 45%,#B7A6D8);color:var(--encre)}
.feuillage{background:linear-gradient(#163A26,#12301F 60%,#0B2116)}.feuillage p{color:var(--mousse)}
.etang{background:linear-gradient(#12505A,#0C3540 55%,#07222C)}.etang p{color:var(--eau)}
.nuit,.fin{background:linear-gradient(#1F2456,#14173A 60%,#0A0C22)}.nuit p{color:var(--lune)}
.pond{display:none}

.js #sky{display:block;position:fixed;inset:0;width:100vw;height:100vh;z-index:0}
.js .stage{position:relative;z-index:1;height:520vh}
.js .view{position:sticky;top:0;height:100vh;height:100svh;overflow:clip}
.js .track{display:flex;height:100%;width:500vw;will-change:transform}
.ready .station{background:none}
.js .station{flex:0 0 100vw;height:100%;min-height:0;padding:9vh clamp(22px,6vw,96px) 9vh}
.js .pond{display:block;height:100%;min-height:0;touch-action:pan-y;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.aube :focus-visible{outline-color:var(--encre)}
.nuit .words,.fin .words{text-shadow:0 0 14px var(--nuit)}

.go{display:inline-flex;align-items:center;margin-top:24px;padding:.72em 1.15em;border-radius:999px;background:var(--encre);color:#FFF4E8;font-weight:700;font-size:1.05rem;text-decoration:none;box-shadow:0 8px 22px rgba(58,37,64,.26);transition:transform .5s var(--doux),box-shadow .5s var(--doux)}
.go:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(58,37,64,.32)}
.hint{position:absolute;left:clamp(22px,6vw,96px);bottom:7vh;display:flex;align-items:center;gap:.5em;font-size:.98rem;color:var(--encre)}
.hint svg{animation:drift 3.4s ease-in-out infinite}
html:not(.js) .hint{display:none}
/* Sans script, pas de formulaire : il enverrait l'adresse dans l'URL. */
html:not(.js):not(.stack) .sign,html:not(.js):not(.stack) .note,html:not(.js):not(.stack) .go,.failed .sign,.failed .note,.failed .go{display:none}
@keyframes drift{50%{transform:translateX(7px)}}

.nuit{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.phone{width:auto;height:min(72vh,52vw);aspect-ratio:780/1688;margin:auto;padding:1.4%;border-radius:13% / 6%;background:#06181F;box-shadow:0 34px 60px -18px rgba(2,8,20,.72),0 8px 18px rgba(2,8,20,.3)}
.phone img{display:block;width:100%;height:100%;object-fit:cover;border-radius:11.5% / 5.3%}

.sign{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}
.sign input{flex:1 1 200px;min-width:0;height:52px;padding:0 20px;border-radius:999px;border:0;background:rgba(238,240,255,.14);color:inherit;font:600 1rem var(--texte);caret-color:var(--soleil)}
.sign input::placeholder{color:currentColor;opacity:.72}
.sign input[data-bad]{box-shadow:inset 0 0 0 2px var(--soleil)}
.sign input:-webkit-autofill{-webkit-text-fill-color:var(--ecume);box-shadow:inset 0 0 0 60px #2A2E5E;caret-color:var(--soleil)}
.sign button[aria-disabled=true]{opacity:.6;cursor:default;transform:none}
.sign button{height:52px;padding:0 24px;border:0;border-radius:999px;background:var(--tomate);color:#2B0B07;font:700 1.05rem var(--texte);cursor:pointer;transition:transform .5s var(--doux),opacity .3s}
.sign button:hover{transform:translateY(-2px)}
.note{margin-top:12px;font-size:.95rem;font-weight:400;color:var(--lune)}
.note a,.foot a{display:inline-block;padding-block:.5em}

.foot{position:relative;z-index:1;background:var(--nuit);display:flex;flex-wrap:wrap;gap:16px 28px;align-items:center;justify-content:space-between;padding:36px clamp(22px,6vw,96px);font-size:.95rem;font-weight:400;color:var(--lune)}
.studio img{display:block;width:128px;height:auto}
.social{display:flex;flex-wrap:wrap;gap:6px 18px}

@media (max-width:820px){
  .station,.nuit{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:7vh 22px}
  /* Les écrans se suivent à la verticale. 400svh + 100lvh : la dernière butée reste juste, barre d'adresse visible ou non. */
  .js .stage{height:500vh;height:calc(400svh + 100lvh)}
  .js .track{flex-direction:column;width:100%;height:500%}
  .js .station{flex:0 0 20%;width:100%;height:auto;padding:7vh 22px 5vh}
  .words{flex:0 0 auto}
  .js .pond{flex:1 1 auto;height:auto}
  .phone{display:none}
  .logo{width:190px;margin-bottom:12px}
  .station h1,.station h2{font-size:clamp(2.1rem,9.2vw,3rem)}
  .station .words p:not(.note){font-size:1.05rem;margin-top:8px}
  .go{margin-top:12px}
  .hint{left:0;right:0;bottom:1.5vh;justify-content:center;font-size:.92rem}
  .hint svg{transform:rotate(90deg);animation:none}
  .sign{margin-top:12px}
  .sign input,.sign button{height:46px}
  .foot{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){.hint svg{animation:none}.go,.sign button{transition:none}}
