/* ---- Font : Kaushan Script — brush calligraphy (hébergée en local) ---- */
@font-face {
  font-family: 'Kaushan Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/kaushan-script-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kaushan Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/kaushan-script-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f7f0e7;
  --bg-glow: #ffe9d6;
  --ink: #2f2a33;
  --muted: #8a8089;
  --accent: #b9a6d4;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  display: flex;
  background:
    radial-gradient(120% 80% at 50% 8%, var(--bg-glow) 0%, transparent 60%),
    radial-gradient(90% 60% at 80% 100%, #efe4f5 0%, transparent 65%),
    var(--bg);
  color: var(--ink);
  font-family: 'Kaushan Script', 'Segoe Script', cursive;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Mise en page : tout tient dans un écran téléphone ---- */
.stage {
  margin: auto;
  padding: clamp(1.25rem, 5vw, 2.5rem) 1.25rem;
  padding-bottom: calc(clamp(1.25rem, 5vw, 2.5rem) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vh, 1.25rem);
  text-align: center;
}

/* ---- Illustration ---- */
.art {
  position: relative;
  display: inline-flex;
}

.art__img {
  display: block;
  width: min(58vw, 34vh, 240px);
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(60, 45, 70, 0.18));
  animation: float 6s ease-in-out infinite;
}

/* ---- Étincelles ---- */
.sparkle {
  position: absolute;
  color: var(--accent);
  font-size: 0.9rem;
  opacity: 0;
  animation: twinkle 4s ease-in-out infinite;
}
.sparkle--1 { top: 8%;  left: -4%;  animation-delay: 0s;   }
.sparkle--2 { top: 26%; right: -6%; animation-delay: 1.3s; font-size: 1.2rem; }
.sparkle--3 { bottom: 14%; left: 2%; animation-delay: 2.6s; }

/* ---- Texte ---- */
.title {
  margin: 0;
  font-size: clamp(2.4rem, 12.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.25; /* laisse respirer les jambages du script */
  letter-spacing: 0.01em;
}

.dots {
  display: inline-block;
  color: var(--accent);
}

.subtitle {
  margin: 0;
  /* sans-serif volontaire : le script reste lisible en gros, pas en petit */
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(0.85rem, 3.6vw, 1rem);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- Animations ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes twinkle {
  0%, 100%   { opacity: 0;   transform: scale(0.6); }
  40%, 60%   { opacity: 0.9; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .art__img, .sparkle { animation: none; }
  .sparkle { opacity: 0.7; }
}

/* ---- Paysage / petits écrans bas ---- */
@media (max-height: 480px) and (orientation: landscape) {
  .stage { flex-direction: row; gap: 1.5rem; text-align: left; }
  .art__img { width: min(30vw, 55vh, 200px); }
}
