/* Nyls — vitrine. Mobile d'abord ; aucune ressource tierce. */

@font-face {
  font-family: "Quicksand";
  src: url("assets/quicksand.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --night: #2a2540;
  --night-deep: #1f1b31;
  --cream: #fff6e6;
  --muted: #d8cfe4;
  --gold: #ffd696;
  --gold-soft: #ffe8be;
  --violet-shadow: rgba(80, 60, 110, 0.6);
  --line: rgba(255, 246, 230, 0.16);
  --gutter: clamp(1.25rem, 5vw, 2rem);
}

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

html {
  background: var(--night);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  color: var(--cream);
  font-family: "Quicksand", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--gold-soft); text-underline-offset: 0.2em; }
a:hover { color: var(--cream); }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  padding: 0.6rem 1rem; border-radius: 999px;
  background: var(--cream); color: var(--night); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

main:focus { outline: none; }

/* Sélecteur de langue */
.lang {
  position: absolute; z-index: 10;
  top: max(0.9rem, env(safe-area-inset-top)); right: max(0.9rem, env(safe-area-inset-right));
  display: flex; align-items: center; gap: 0.15rem;
  padding: 0.2rem 0.35rem; border-radius: 999px;
  background: rgba(31, 27, 49, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 0.85rem; letter-spacing: 0.08em; color: var(--muted);
}
.lang a {
  display: inline-block; min-width: 2.75rem; min-height: 2.75rem; line-height: 2.75rem;
  text-align: center; border-radius: 999px; text-decoration: none; color: var(--muted);
}
.lang a[aria-current="true"] { color: var(--cream); font-weight: 700; }
.lang a:hover { color: var(--cream); }

/* Plein écran d'accueil */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 34rem;
  overflow: hidden;
  display: grid; justify-items: center; align-content: start;
  text-align: center;
}
.hero-art { position: absolute; inset: 0; background: #8f8cb3; }
.hero-art img { position: absolute; display: block; }
.hero-blur {
  inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(70px) saturate(0.85) brightness(0.92); transform: scale(1.35); opacity: 0.9;
}
.hero-img {
  inset: 0; margin: auto;
  width: 100%; height: 100%; max-width: calc(100svh * 731 / 1280);
  object-fit: cover; object-position: 50% 62%;
}
/* Écran plus large que l'illustration : ses bords se fondent dans la copie floutée. */
@media (min-aspect-ratio: 731/1280) {
  .hero-img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  }
}
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
/* Léger voile en haut pour la lisibilité du titre, fondu vers la nuit en bas. */
.hero::before { top: 0; height: 50%; background: linear-gradient(180deg, rgba(42, 37, 64, 0.38), rgba(42, 37, 64, 0)); }
.hero::after { bottom: 0; height: 22%; background: linear-gradient(180deg, rgba(42, 37, 64, 0), var(--night)); }

.hero-text { position: relative; z-index: 1; padding: calc(13svh + 1rem) var(--gutter) 0; }

.title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(5rem, 26vw, 10rem);
  line-height: 1;
  letter-spacing: 0.04em;
  padding-left: 0.04em; /* recentre le texte espacé */
  color: var(--cream);
  text-shadow:
    0 0 0.05em rgba(255, 232, 190, 0.75),
    0 0 0.12em rgba(255, 232, 190, 0.75),
    0 0 0.3em rgba(255, 214, 150, 0.45),
    0 0 0.55em rgba(255, 214, 150, 0.45);
}
.subtitle {
  margin: 1.1rem 0 0;
  font-weight: 500;
  font-size: clamp(0.95rem, 4vw, 1.45rem);
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  color: var(--cream);
  text-shadow: 0 0 0.6em var(--violet-shadow), 0 0 1.2em var(--violet-shadow), 0 1px 2px rgba(42, 37, 64, 0.5);
}

.scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-left: -1.5rem;
  border-radius: 999px; color: var(--cream); opacity: 0.8;
  animation: cue 2.8s ease-in-out infinite;
}
.scroll-cue:hover { opacity: 1; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Les Nyls */
.nyls-layer { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.nyls {
  --b: clamp(2.6rem, 11vw, 3.6rem);
  position: absolute; left: 0; top: 0;
  width: var(--b); height: var(--b);
  margin: calc(var(--b) / -2) 0 0 calc(var(--b) / -2);
  opacity: 0; transition: opacity 1.6s ease;
  will-change: transform;
}
.nyls.is-ready { opacity: 1; }
.nyls-halo {
  position: absolute; inset: calc(var(--b) * -0.31);
  border-radius: 50%;
  background: radial-gradient(circle closest-side,
    rgba(255, 220, 160, 0.85) 0%, rgba(255, 200, 140, 0.42) 40%, rgba(255, 200, 140, 0) 70%);
}
.nyls-body {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle calc(var(--b) * 0.56) at 45% 40%,
    #fffdf5 0%, #fff0c8 45%, #ffd696 80%, rgba(255, 214, 150, 0.6) 100%);
  box-shadow: 0 0 calc(var(--b) * 0.24) rgba(255, 232, 190, 0.7);
}
.nyls-eyes {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0;
  transform: translate(var(--lx, 0px), calc(var(--b) * 0.038 + var(--ly, 0px)));
}
.nyls-eyes i {
  position: absolute; top: calc(var(--b) * -0.043);
  width: calc(var(--b) * 0.086); height: calc(var(--b) * 0.086);
  border-radius: 50%; background: #6a4e5c;
  transform-origin: center; transition: transform 0.12s ease;
}
.nyls-eyes i:first-child { left: calc(var(--b) * -0.162); }
.nyls-eyes i:last-child { left: calc(var(--b) * 0.076); }
.nyls.is-blinking .nyls-eyes i { transform: scaleY(0.15); }

.far-glow {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #fff3da;
  box-shadow: 0 0 10px 3px rgba(255, 214, 150, 0.55);
  opacity: 0.45;
  animation: drift 26s ease-in-out infinite alternate, twinkle 7s ease-in-out infinite;
}
.far-glow:nth-child(1) { left: 12%; top: 58%; animation-duration: 31s, 8s; }
.far-glow:nth-child(2) { left: 82%; top: 44%; width: 4px; height: 4px; animation-duration: 24s, 6s; animation-delay: -6s, -2s; }
.far-glow:nth-child(3) { left: 68%; top: 76%; animation-duration: 29s, 9s; animation-delay: -12s, -4s; }
.far-glow:nth-child(4) { left: 26%; top: 86%; width: 4px; height: 4px; animation-duration: 35s, 7s; animation-delay: -3s, -1s; }
.far-glow:nth-child(5) { left: 90%; top: 18%; width: 3px; height: 3px; animation-duration: 27s, 10s; animation-delay: -18s, -5s; }
@keyframes drift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(22px, -30px); }
  100% { transform: translate(-16px, -12px); }
}
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.6; } }

/* Sections */
main { position: relative; z-index: 6; }
main > section {
  max-width: 36rem; margin: 0 auto;
  padding: clamp(3.5rem, 12vw, 6rem) var(--gutter) 0;
  text-align: center;
}
h2 { margin: 0 0 0.9rem; font-weight: 500; }

.teaser p {
  margin: 0;
  font-weight: 300; font-size: clamp(1.55rem, 6.4vw, 2.4rem); line-height: 1.38;
  text-wrap: balance;
  text-shadow: 0 0 0.6em rgba(255, 214, 150, 0.22);
}

.soon h2 { font-size: clamp(1.1rem, 4.4vw, 1.35rem); letter-spacing: 0.14em; color: var(--gold-soft); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.25rem; }
.stores[hidden] { display: none; }
.store {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.4rem;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--cream);
}

.news {
  margin-top: clamp(3.5rem, 12vw, 6rem) !important;
  padding: 2rem var(--gutter) !important;
  max-width: calc(36rem - 2 * var(--gutter)) !important;
  width: calc(100% - 2 * var(--gutter));
  border: 1px solid var(--line); border-radius: 1.5rem;
  background: rgba(255, 246, 230, 0.035);
}
.news h2 { font-size: 1.15rem; letter-spacing: 0.08em; }
.news p { margin: 0; color: var(--muted); }
.news-slot { display: flex; gap: 0.6rem; margin-top: 1.4rem; opacity: 0.5; }
.news-slot span { height: 3rem; border-radius: 999px; border: 1px dashed var(--line); }
.news-slot span:first-child { flex: 1; }
.news-slot span:last-child { width: 6.5rem; }

.social h2 { font-size: 1rem; letter-spacing: 0.14em; color: var(--muted); }
.social ul { display: flex; justify-content: center; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.social a {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem;
  border-radius: 50%; border: 1px solid var(--line); color: var(--cream);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.social a:hover, .social a:focus-visible {
  color: var(--gold-soft); border-color: rgba(255, 214, 150, 0.6);
  box-shadow: 0 0 18px rgba(255, 214, 150, 0.35);
}
.social svg {
  width: 1.5rem; height: 1.5rem;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.social svg .dot, .social svg .fill { fill: currentColor; stroke: none; }

/* Pied de page */
.footer {
  position: relative; z-index: 6;
  max-width: 40rem; margin: 0 auto;
  padding: clamp(4rem, 14vw, 7rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  text-align: center; font-size: 0.9rem; color: var(--muted);
}
.ai { padding-top: 2rem; border-top: 1px solid var(--line); }
.ai h2 { font-size: 0.95rem; letter-spacing: 0.1em; color: var(--cream); }
.ai p { margin: 0; }
.footer-links { margin: 1.75rem 0 0.5rem; }
.copy { margin: 0; opacity: 0.85; }

/* Mentions légales */
.legal-page .lang { background: rgba(31, 27, 49, 0.6); }
.legal { max-width: 40rem; margin: 0 auto; padding: 5.5rem var(--gutter) 0; }
.legal h1 { margin: 0.5rem 0 2rem; font-weight: 300; font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.15; }
.legal h2 { margin: 2rem 0 0.4rem; font-size: 1.05rem; letter-spacing: 0.06em; color: var(--gold-soft); }
.legal p { margin: 0 0 0.6rem; color: var(--muted); }
.legal .updated { margin-top: 2.5rem; font-size: 0.9rem; }
.home-mark {
  display: inline-block; text-decoration: none; color: var(--cream);
  font-weight: 300; font-size: 2rem; letter-spacing: 0.04em;
  text-shadow: 0 0 0.12em rgba(255, 232, 190, 0.75), 0 0 0.4em rgba(255, 214, 150, 0.45);
}

/* Apparition douce des sections (le script ajoute .js) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease, transform 1.1s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Sans animation : tout est là, immobile, et le Nyls se pose près du titre. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue, .far-glow { animation: none; }
  .far-glow { opacity: 0.4; }
  .nyls { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
