/* Picopop — mini site vitrine (picopop.app) */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/fredoka-400-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Andika';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/andika-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Andika';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/andika-700-latin.woff2') format('woff2');
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  min-height: 100%;
}
body {
  font-family: 'Andika', 'Segoe UI', sans-serif;
  color: #2e2a5e;
  /* Fond uni #FFF2DE + calque image FIXÉ au viewport (::before) :
     l'image n'est jamais « coupée » au scroll (background-attachment: fixed
     est buggé sur iOS, un calque position:fixed ne l'est pas). */
  background: #FFF2DE;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 32px 20px 40px;
  text-align: center;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #FFF2DE url('bg.webp') center bottom / cover no-repeat;
}

h1, h2, h3 { font-family: 'Fredoka', sans-serif; }

/* --- Switch de langue (haut droite) --- */
.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border-radius: 999px;
  padding: 9px 16px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #8b7cf0;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(90, 80, 140, 0.2);
  transition: transform 0.1s ease;
}
.lang-switch:active { transform: scale(0.95); }

/* --- Header / branding --- */
.logo {
  width: clamp(110px, 22vw, 170px);
  height: auto;
}
.wordmark {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 4.4rem);
  letter-spacing: 1px;
  line-height: 1.05;
  margin: 6px 0 10px;
  text-shadow:
    -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 3px 3px 0 #fff,
    -3px 0 0 #fff, 3px 0 0 #fff, 0 -3px 0 #fff, 0 3px 0 #fff,
    0 6px 14px rgba(90, 80, 140, 0.22);
}
.wordmark span:nth-child(1) { color: #ff8fae; }
.wordmark span:nth-child(2) { color: #57c8a3; }
.wordmark span:nth-child(3) { color: #9b8cf5; }
.wordmark span:nth-child(4) { color: #ffcf3f; }
.wordmark span:nth-child(5) { color: #ff6b6b; }
.wordmark span:nth-child(6) { color: #8b7cf0; }
.wordmark span:nth-child(7) { color: #57c8a3; }
.tagline {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  line-height: 1.5;
}
.tagline .hl { color: #8b7cf0; font-style: normal; }

/* Devise en cascade au chargement (comme le boot screen de l'app) */
.tagline-line1,
.tagline-line2,
.tagline-line3 {
  display: block;
  opacity: 0;
  animation: line-in 0.5s ease forwards;
}
/* « Color. » et « Scan. » sur la MÊME ligne, mais apparition en 2 temps */
.tagline-line1,
.tagline-line2 {
  display: inline-block;
}
.tagline-line2 { margin-left: 0.35em; }
.tagline-line1 { animation-delay: 0.2s; }
.tagline-line2 { animation-delay: 0.65s; }
.tagline-line3 { animation-delay: 1.1s; }
@keyframes line-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tagline-line1, .tagline-line2, .tagline-line3 { animation: none; opacity: 1; }
  .fan .card { animation: none; opacity: 1; }
}

/* --- Éventail de covers --- */
.fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: clamp(36px, 7vh, 64px) 0 clamp(28px, 5vh, 48px);
  padding: 0 10px;
}
/* Wrapper .card : porte l'apparition "pop" décalée + le z-order FIGÉ.
   L'img porte la rotation + le hover → aucun conflit d'animation. */
.fan .card {
  position: relative;
  opacity: 0;
  animation: cover-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.fan .card:nth-child(1) { z-index: 1; animation-delay: 1.55s; }
.fan .card:nth-child(2) { z-index: 2; margin-left: -34px; animation-delay: 1.7s; }
.fan .card:nth-child(3) { z-index: 3; margin-left: -34px; animation-delay: 1.85s; }
.fan .card:nth-child(4) { z-index: 2; margin-left: -34px; animation-delay: 2s; }
@keyframes cover-pop {
  from { opacity: 0; transform: scale(0.55) translateY(26px); }
  to { opacity: 1; transform: none; }
}
.fan img {
  width: clamp(130px, 22vw, 230px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(90, 80, 140, 0.28);
  display: block;
  transition: transform 0.18s ease;
}
.fan .card:nth-child(1) img { transform: rotate(-9deg) translateY(14px); }
.fan .card:nth-child(2) img { transform: rotate(-3deg); }
.fan .card:nth-child(3) img { transform: rotate(3deg); }
.fan .card:nth-child(4) img { transform: rotate(9deg) translateY(14px); }
/* Hover : la carte garde sa rotation et son empilement, elle se soulève juste */
.fan .card:nth-child(1) img:hover { transform: rotate(-9deg) translateY(2px) scale(1.05); }
.fan .card:nth-child(2) img:hover { transform: rotate(-3deg) translateY(-12px) scale(1.05); }
.fan .card:nth-child(3) img:hover { transform: rotate(3deg) translateY(-12px) scale(1.05); }
.fan .card:nth-child(4) img:hover { transform: rotate(9deg) translateY(2px) scale(1.05); }

/* --- Badges stores (non cliquables) --- */
.coming {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  letter-spacing: 3px;
  color: #7a52c7;
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  margin-bottom: 18px;
}
.badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #1d1d1f;
  color: #fff;
  border-radius: 14px;
  padding: 14px 24px;
  min-width: 200px;
  text-align: left;
  cursor: default;
  user-select: none;
  box-shadow: 0 6px 16px rgba(46, 42, 94, 0.25);
}
.badge svg { flex: 0 0 auto; }
.badge small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 1.2px;
  opacity: 0.85;
  font-family: 'Fredoka', sans-serif;
}
.badge strong {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
}

/* --- Footer --- */
footer {
  margin-top: auto;
  padding-top: 48px;
  font-size: 0.9rem;
  color: #6b6357;
}
footer a {
  color: #7a52c7;
  font-weight: 700;
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }
footer .sep { margin: 0 8px; opacity: 0.5; }

/* --- Pages légales --- */
.legal-page {
  text-align: left;
  align-items: center;
}
.legal-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(90, 80, 140, 0.16);
  max-width: 760px;
  width: 100%;
  padding: clamp(24px, 5vw, 48px);
  margin-top: 20px;
  line-height: 1.65;
}
.legal-card h1 { font-size: 2rem; margin-bottom: 18px; color: #2e2a5e; }
.legal-card h2 { font-size: 1.25rem; margin: 26px 0 8px; color: #7a52c7; }
.legal-card p, .legal-card li { color: #3a3560; margin-bottom: 8px; }
.legal-card ul { padding-left: 22px; }
.back-home {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: #8b7cf0;
  background: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(90, 80, 140, 0.2);
}

@media (max-width: 560px) {
  .fan img { width: 24vw; border-width: 4px; border-radius: 14px; }
  .fan .card:nth-child(2), .fan .card:nth-child(3), .fan .card:nth-child(4) { margin-left: -5vw; }
}
