/* Boutons « bientôt disponible » + micro-animations (ajouté par tools/site/prepare.py après extra.css). */

/* ---------- App Store / Google Play : pas encore sortis ---------- */
.store-btn.soon,
.store-btn.soon.light {
  position: relative;
  overflow: visible;
  isolation: isolate;
  color: var(--ink);
  /* verre dépoli + contour dégradé aux couleurs de Psst */
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)) padding-box,
    var(--sea-gradient) border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(103, 129, 176, 0.16);
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.store-btn.soon .store-logo { opacity: 0.55; }
.store-btn.soon .store-copy small { opacity: 0.6; }
.store-btn.soon .store-copy strong { opacity: 0.82; }

/* reflet qui balaie le bouton de temps en temps */
.store-btn.soon .soon-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.store-btn.soon .soon-shine::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 45%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(189, 239, 228, 0.65), rgba(195, 178, 244, 0.55), transparent);
  transform: skewX(-18deg);
  animation: psst-shine 4.2s ease-in-out infinite;
}
.store-row .store-btn.soon:nth-child(2) .soon-shine::before { animation-delay: 0.35s; }

/* pastille « Bientôt » */
.store-btn.soon .soon-badge {
  position: absolute;
  top: -9px;
  right: -7px;
  padding: 3px 8px 3px 7px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 6px 14px rgba(58, 68, 82, 0.22);
  animation: psst-float 3s ease-in-out infinite;
}
.store-btn.soon .soon-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sea);
  box-shadow: 0 0 0 0 rgba(189, 239, 228, 0.9);
  animation: psst-pulse 1.8s ease-out infinite;
}

.store-btn.soon:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(103, 129, 176, 0.24);
}

/* ---------- micro-animations des autres boutons ---------- */
.nav-cta,
.journal-all,
.reading-cta a {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(58, 68, 82, 0.22);
}
.nav-cta:hover span { animation: psst-nudge 0.9s ease-in-out infinite; }
.nav-cta span { display: inline-block; }
.journal-all:hover { transform: translateX(2px); }
.scroll-link span { display: inline-block; animation: psst-nudge 2.2s ease-in-out infinite; }
.carousel-tools button { transition: transform 0.2s ease, background-color 0.2s ease; }
.carousel-tools button:hover { transform: translateY(-1px); }

/* transform (pas left) : animé par la carte graphique, sans recalcul de la mise en page à chaque image */
@keyframes psst-shine {
  0%, 55% { transform: translateX(0) skewX(-18deg); }
  85%, 100% { transform: translateX(400%) skewX(-18deg); }
}
@keyframes psst-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes psst-pulse {
  0% { box-shadow: 0 0 0 0 rgba(126, 188, 167, 0.55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(126, 188, 167, 0); }
}
@keyframes psst-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .store-btn.soon .soon-shine::before,
  .store-btn.soon .soon-badge,
  .store-btn.soon .soon-badge::before,
  .scroll-link span,
  .nav-cta:hover span { animation: none; }
  .store-btn.soon:hover, .nav-cta:hover { transform: none; }
}

/* ---------- articles écrits via l'API : listes et liens dans le texte (absents des articles d'origine) ---------- */
.reading section ul,
.reading section ol { padding-left: 22px; margin: 0 0 16px; }
.reading section li { font-size: 16px; line-height: 1.95; color: #606b78; }
.reading section li::marker { color: #7EBCA7; }
.reading section p a,
.reading section li a { color: #4c6f63; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- accessibilité : contrastes WCAG AA ----------
   Mêmes teintes que le design d'origine, un cran plus sombres : 4,5:1 sur le fond #FCFBF8 pour le texte courant,
   3:1 pour le grand titre (« vos envies »). */
html:root { --muted: #6D737E; }
body .eyebrow { color: #6D7474; }
body .scroll-link { color: #6C737B; }
body .section-kicker { color: #6E737B; }
body .article-tag { color: #6C737C; }
body .footer-links { color: #6C737D; }
body .hero-copy .sea { color: #529C8B; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
