/* Feuille de la page d'attente, reprise de mobile/suivi/site/maquettes/attente/enigme/index.html (validée le 22/11/2026). */
/* Nunito, la police de l'app sur Android, servie par le site là où la police ronde du système manque (statique/fonts, polices.py). */
@font-face { font-family: Nunito; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/nunito-400.woff2') format('woff2'); }
@font-face { font-family: Nunito; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/fonts/nunito-700.woff2') format('woff2'); }
@font-face { font-family: Nunito; font-style: normal; font-weight: 800 900; font-display: swap; src: url('/fonts/nunito-900.woff2') format('woff2'); }
:root {
  --vanille: #fff8f3;
  --carreau: rgba(255, 140, 175, .10);
  --fraise: #ffd3e1; --fraise-l: #ffeef4; --fraise-d: #f6b3c8;
  --primaire: #d0145f; --primaire-d: #8f0c40;
  --encre: #4f3242; --encre-douce: #6b4558; --prune: #3b2433;
  --menthe-ink: #1d7550; --menthe-l: #e3f7ec;
  --font: ui-rounded, "SF Pro Rounded", Nunito, "Hiragino Maru Gothic ProN", Quicksand, "Varela Round", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  font-family: var(--font); color: var(--encre); font-size: 17px; line-height: 1.5;
  background-color: var(--vanille);
  background-image: linear-gradient(90deg, var(--carreau) 50%, transparent 50%), linear-gradient(var(--carreau) 50%, transparent 50%);
  background-size: 52px 52px;
}
img { display: block; max-width: 100%; }
a { color: var(--primaire-d); text-underline-offset: 3px; }
a:hover { color: var(--primaire); }
:focus-visible { outline: 3px solid var(--primaire-d); outline-offset: 3px; border-radius: 10px; }

main {
  flex: 1; width: min(560px, 100% - 32px); margin: 0 auto; padding: 28px 0 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
/* titre BounCake en texte, allure du titre de l'app (mobile/src/ui/Titre.tsx, TitreAccueil.tsx) :
   framboise puis brun à partir de la cinquième lettre, contour blanc de 3 px, relief rose à 7 px et halo */
.marque {
  margin: 0; font-weight: 900; font-size: clamp(46px, 12vw, 64px); line-height: 1.1; letter-spacing: -1.5px; white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 3px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff, 0 -3px 0 #fff, 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff,
    0 7px 0 #ff8fbd, 0 12px 18px rgba(168, 16, 75, .32);
}
.marque .m1 { color: #e0196b; }
.marque .m2 { color: #7a3a1c; }
.marque.petite { font-size: 34px; display: inline-block; padding: 4px 6px 10px; border-radius: 14px; }
.marque.petite:hover { color: inherit; }

/* Nuppi endormi sur son coussin */
.scene { position: relative; width: min(300px, 74vw); aspect-ratio: 1 / .82; margin: 40px 0 6px; }
.coussin {
  position: absolute; left: 8%; right: 8%; bottom: 4%; height: 22%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, #ffeaf1 0 45%, #ffd0de 78%);
  box-shadow: 0 8px 0 #f9c6d6, 0 18px 26px rgba(214, 51, 111, .10);
}
.coussin::after { content: ""; position: absolute; inset: 15% 9%; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .9); }
.nuppi { position: absolute; left: 50%; bottom: 13%; width: 66%; translate: -50% 0; transform-origin: 50% 100%; animation: souffle 3.6s ease-in-out infinite; }
.zzz { position: absolute; z-index: 2; right: 27%; top: 36%; font-weight: 900; color: #8a78d0; pointer-events: none; }
.zzz span { position: absolute; opacity: 0; animation: zzz 3.6s ease-in-out infinite; text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff; }
.zzz span:nth-child(1) { font-size: 20px; }
.zzz span:nth-child(2) { font-size: 26px; animation-delay: 1.2s; }
.zzz span:nth-child(3) { font-size: 34px; animation-delay: 2.4s; }
.reve { position: absolute; right: -14%; top: -12%; width: 30%; }
.reve-nuage {
  aspect-ratio: 1.15; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 0 var(--fraise-d), 0 10px 20px rgba(79, 50, 66, .08); animation: flotte 5s ease-in-out infinite;
}
.reve-nuage img { width: 68%; }
.reve i { position: absolute; border-radius: 50%; background: #fff; box-shadow: 0 3px 0 var(--fraise-d); }
.reve i:nth-of-type(1) { width: 14px; height: 14px; left: -4%; bottom: -12%; }
.reve i:nth-of-type(2) { width: 9px; height: 9px; left: -16%; bottom: -26%; }

h1 { margin: 10px 0 6px; font-size: clamp(28px, 6.4vw, 40px); line-height: 1.15; color: var(--prune); font-weight: 900; text-wrap: balance; }
.enigme { margin: 0 0 26px; font-size: clamp(17px, 2.4vw, 19px); color: var(--encre-douce); max-width: 26em; }

/* formulaire */
.carte { width: 100%; max-width: 460px; background: #fff; border-radius: 26px; padding: 20px 20px 16px; box-shadow: 0 6px 0 rgba(143, 12, 64, .12), 0 16px 34px rgba(79, 50, 66, .08); text-align: left; }
.carte label, .retrait label { display: block; font-weight: 800; font-size: 15px; margin: 0 0 8px; color: var(--prune); }
.ligne { display: flex; gap: 10px; }
.ligne input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 17px; color: var(--encre);
  border: 2px solid #ecc9d6; background: #fffafc;
}
.ligne input::placeholder { color: #9a7a8a; }
.ligne input:focus-visible { outline: 3px solid var(--primaire-d); outline-offset: 2px; border-color: var(--primaire); }
.ligne button {
  flex: none; min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 17px; background: var(--primaire); color: #fff; box-shadow: 0 5px 0 var(--primaire-d);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.ligne button:hover { transform: translateY(-2px); }
.ligne button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--primaire-d); }
.info { margin: 12px 4px 0; font-size: 14px; line-height: 1.45; color: var(--encre-douce); }
.a-valider {
  display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; border: 1.5px dashed #b98aa0;
  font-size: 12px; font-weight: 800; color: var(--encre-douce); vertical-align: 1px;
}
/* erreur */
.erreur { margin: 10px 4px 0; font-size: 14px; font-weight: 800; color: #b0174b; }
.merci { display: flex; align-items: center; gap: 12px; padding: 6px 2px; font-weight: 800; color: var(--prune); font-size: 18px; }
.merci img { width: 56px; flex: none; }
.merci p { margin: 0; }
.merci small { display: block; font-weight: 600; font-size: 15px; color: var(--encre-douce); margin-top: 2px; }
.merci:focus { outline: none; }

/* mentions des stores, non cliquables */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.stores li {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 7px 18px 7px 14px; border-radius: 18px;
  background: var(--encre); color: #fff; box-shadow: 0 5px 0 #2b1a24; text-align: left;
}
.stores svg { width: 24px; height: 24px; flex: none; }
.stores small { display: block; font-size: 12px; font-weight: 700; opacity: .88; line-height: 1.2; }
.stores b { display: block; font-size: 17px; line-height: 1.2; }

footer { padding: 14px 16px 18px; text-align: center; font-size: 13px; color: var(--encre-douce); }
footer a { color: var(--encre-douce); margin: 0 8px; display: inline-block; padding: 6px 2px; }

/* champ piège, hors de la vue et du clavier */
.piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* sans JavaScript, la redirection ?merci=1#merci, ?erreur=adresse#erreur ou ?erreur=1#envoi-rate se lit par :target.
   Le script pose la classe js sur <html> et gère alors seul l'affichage, sinon ces règles l'emporteraient sur hidden. */
html:not(.js) #merci:target { display: flex !important; }
html:not(.js) .carte:has(#merci:target) form { display: none; }
html:not(.js) #envoi-rate:target, html:not(.js) #erreur:target { display: block !important; }

/* pages Confidentialité, Contact et 404 */
.entete { text-align: center; padding: 22px 16px 0; }
main.doc { justify-content: flex-start; text-align: left; width: min(680px, 100% - 32px); }
.feuille { width: 100%; background: #fff; border-radius: 26px; padding: 26px 26px 18px; box-shadow: 0 6px 0 rgba(143, 12, 64, .12), 0 16px 34px rgba(79, 50, 66, .08); }
.feuille h1 { margin: 0 0 12px; font-size: clamp(26px, 5vw, 34px); text-align: left; }
.feuille h2 { margin: 22px 0 4px; font-size: 19px; color: var(--prune); font-weight: 900; }
.feuille p { margin: 0 0 12px; }
.feuille .note { font-size: 14px; color: var(--encre-douce); }
/* page Contact : champ qui retire l'adresse de la liste, puis sa confirmation (sans JavaScript, lue par :target) */
.retrait { margin: 4px 0 18px; }
.retrait .erreur { margin: 10px 4px 0; }
.feuille .fait { font-weight: 800; color: var(--prune); padding: 12px 16px; border-radius: 16px; background: var(--menthe-l); }
.fait:focus { outline: none; }
html:not(.js) #retire:target { display: block !important; }
html:not(.js) .feuille:has(#retire:target) .retrait { display: none; }
.feuille.vide { text-align: center; }
.feuille.vide h1 { text-align: center; }

footer nav + nav { margin-top: 2px; }
footer .langues a[aria-current] { font-weight: 900; text-decoration: none; color: var(--prune); }

@media (max-width: 420px) {
  .ligne { flex-direction: column; }
  .ligne button { width: 100%; }
}
@keyframes souffle { 0%, 100% { scale: 1 1; } 50% { scale: 1.035 .955; } }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 8px) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(24px, -54px) scale(1.15) rotate(12deg); } }
@keyframes flotte { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(5deg); } }
@media (prefers-reduced-motion: reduce) {
  .nuppi, .reve-nuage, .zzz span { animation: none; }
  .ligne button { transition: none; }
  .zzz span { opacity: .85; }
  .zzz span:nth-child(2) { transform: translate(12px, -22px); }
  .zzz span:nth-child(3) { transform: translate(26px, -50px); }
}

/* japonais : coupure de ligne entre groupes de mots là où le navigateur le sait (Chrome 119 et suivants) */
:lang(ja) h1, :lang(ja) .enigme { word-break: auto-phrase; }
