/* MIYEBA — page d'attente. Polices auto-hébergées (aucune requête vers Google : pas de transfert de données à un tiers). */
@font-face { font-family: 'Mochiy Pop One'; src: url('assets/polices/MochiyPopOne_400Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('assets/polices/Nunito_400Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('assets/polices/Nunito_700Bold.woff') format('woff'); font-weight: 700; font-display: swap; }

:root {
  --violet-nuit: #43066F;
  --violet: #5B089B;
  --orange: #FF8A2A;
  --jaune: #FFE15C;
  --creme: #FFE9A0;
  --texte-clair: #F4E8FF;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--violet-nuit); }
body {
  margin: 0; overflow-x: clip; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #fff;
  background: linear-gradient(#43066F 0%, #5B089B 30%, #8A3DB5 52%, #C0689F 72%, #E3875A 88%, #F0A94E 100%);
  background-attachment: fixed;
}
a { color: inherit; }

/* En-tête */
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px clamp(18px, 4vw, 40px); }
.logo { font-family: 'Mochiy Pop One', sans-serif; letter-spacing: .28em; font-size: clamp(16px, 2.2vw, 22px); color: var(--orange); text-decoration: none; }
.date { font-weight: 700; font-size: 14px; background: rgba(255,255,255,.18); padding: 8px 16px; border-radius: 18px; white-space: nowrap; }

/* Contenu */
.hero { flex: 1; text-align: center; padding: clamp(8px, 4vh, 40px) clamp(18px, 5vw, 40px) 24px; position: relative; z-index: 2; }
.sur { color: var(--jaune); font-style: italic; font-size: clamp(15px, 2vw, 18px); margin: 0 0 10px; }
h1 { font-family: 'Mochiy Pop One', sans-serif; font-weight: 400; font-size: clamp(32px, 6.2vw, 56px); line-height: 1.14; margin: 0 0 18px; text-shadow: 0 3px 14px rgba(40,0,70,.55); }
.sous { max-width: 560px; margin: 0 auto 18px; font-size: clamp(15px, 2vw, 18px); line-height: 1.45; color: var(--texte-clair); }
.puces { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0; margin: 0 0 24px; list-style: none; }
.puces li { background: rgba(255,225,92,.16); border: 1px solid rgba(255,225,92,.55); color: var(--jaune); padding: 6px 16px; border-radius: 18px; font-weight: 700; font-size: clamp(13px, 1.8vw, 15px); }

/* Le mot « voix » : mis en valeur exprès (jeu de mots voix / voie) */
.voix { color: var(--jaune); text-shadow: 0 0 14px rgba(255,214,92,.9), 0 0 34px rgba(255,200,70,.55); }

/* Formulaire */
.form { display: flex; gap: 10px; justify-content: center; max-width: 560px; margin: 0 auto; }
.form input[type=email] { flex: 1; min-width: 0; height: 52px; border: 0; border-radius: 26px; padding: 0 22px; font: inherit; font-size: 16px; background: #fff; color: #3a2a4a; }
.form input[type=email]::placeholder { color: #7d6f8c; }
.form button { height: 52px; padding: 0 28px; border: 0; border-radius: 26px; font: inherit; font-weight: 700; font-size: 16px; background: var(--creme); color: var(--violet); box-shadow: 0 6px 14px rgba(255,214,80,.35); cursor: pointer; }
.form button:disabled { opacity: .6; cursor: default; }
:where(input, button, a):focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* champ-piège contre les robots */
.note { font-size: 13px; color: #EBD9F7; margin: 12px auto 0; max-width: 520px; line-height: 1.4; }
.retour { min-height: 20px; margin: 8px auto 0; font-weight: 700; font-size: 16px; color: #fff; }
.retour.erreur { color: #FFD0D0; }
.merci { font-family: 'Mochiy Pop One', sans-serif; font-size: clamp(20px, 3vw, 26px); line-height: 1.4; margin: 8px 0 0; text-shadow: 0 2px 10px rgba(40,0,70,.5); }
.cache { display: none !important; }

/* Scène du bas : l'Aziza dépasse du pied de page */
.scene { position: relative; height: clamp(150px, 22vh, 190px); z-index: 1; margin-top: auto; pointer-events: none; clip-path: inset(-600px -100vw 0 -100vw); } /* on ne coupe que le bas : l'Aziza « dépasse » du pied de page, la lueur déborde librement */
.halo { position: absolute; left: 50%; bottom: -150px; width: min(760px, 160vw); aspect-ratio: 1.7; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,214,92,.85), rgba(255,200,70,.5) 35%, rgba(255,200,70,.15) 65%, transparent); animation: souffle 5.2s ease-in-out infinite; }
.aziza { position: absolute; left: 50%; bottom: -12px; width: clamp(170px, 24vw, 230px); height: auto; transform: translateX(-50%); animation: monte .9s cubic-bezier(.22,.9,.3,1) both; }
@keyframes monte { from { transform: translate(-50%, 70%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes souffle { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .halo, .aziza { animation: none; } }

/* Pied de page */
.pied { background: #37045F; color: var(--texte-clair); display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding: 14px clamp(18px, 4vw, 40px); font-size: 13px; font-weight: 700; position: relative; z-index: 2; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .form { flex-direction: column; }
  .form input[type=email] { flex: none; width: 100%; }
  .pied { flex-direction: column; justify-content: center; text-align: center; }
  .date { font-size: 12px; padding: 6px 12px; }
}

/* Pages légales */
body.legal { background: var(--violet-nuit); }
.page { max-width: 720px; width: 100%; margin: 0 auto; padding: 8px 20px 48px; flex: 1; line-height: 1.6; font-size: 17px; }
.page h1 { font-size: clamp(26px, 5vw, 36px); margin-bottom: 20px; }
.page h2 { font-family: 'Mochiy Pop One', sans-serif; font-weight: 400; font-size: 20px; color: var(--jaune); margin: 28px 0 8px; }
.page p, .page li { color: var(--texte-clair); }
.page a { color: var(--jaune); }
.a-completer { background: #FFE15C; color: #43066F; padding: 0 6px; border-radius: 4px; font-weight: 700; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Écrans d'ordinateur peu hauts : tout doit tenir sans défiler */
@media (min-width: 561px) and (max-height: 820px) {
  .nav { padding-top: 14px; padding-bottom: 6px; }
  h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 12px; }
  .sous { margin-bottom: 12px; }
  .puces { margin-bottom: 16px; }
  .hero { padding-top: 4px; padding-bottom: 8px; }
  .note { margin-top: 6px; }
}
