/* Budget Me — styles communs du site vitrine (complète dist/output.css de Tailwind) */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: 'Inter', system-ui, sans-serif; background: #0F0F1A; color: #fff; overflow-x: hidden; }
.price, .mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
[hidden] { display: none !important; }

/* Affichage selon l'état de lancement (piloté par site.js → BM_CONFIG) */
/* On masque l'état inactif au lieu de « révéler » l'actif : `display: revert`
   remettrait les liens en inline et casserait badges et boutons. */
html:not([data-launch="live"]) [data-show="live"] { display: none !important; }
html[data-launch="live"] [data-show="prelaunch"] { display: none !important; }
html:not([data-ios="live"]) [data-show-ios="live"] { display: none !important; }
html[data-ios="live"] [data-show-ios="prelaunch"] { display: none !important; }

/* Mot-clé en dégradé (un seul par titre, avec parcimonie) */
.gradient-text {
  background: linear-gradient(135deg, #DBD3FF 0%, #9A90FF 45%, #6C63FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-blur { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.dot-grid {
  background-image: radial-gradient(circle, rgba(108,99,255,0.10) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-glow {
  background: radial-gradient(ellipse at center, rgba(108,99,255,0.22) 0%, rgba(108,99,255,0) 65%);
}

/* Cadre de téléphone pour les captures réelles */
.phone {
  background: #1A1A2E; border: 1px solid #2A2A45; border-radius: 2rem; padding: 0.5rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(108,99,255,0.06);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 1.5rem; }

/* Boutons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: #6C63FF; color: #fff; font-weight: 700; border-radius: 1rem;
  padding: 0.95rem 1.6rem; transition: background-color .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 10px 30px -10px rgba(108,99,255,0.7);
}
.btn-primary:hover { background: #4A42CC; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  color: #fff; font-weight: 600; border-radius: 1rem; padding: 0.95rem 1.4rem;
  border: 1px solid #2A2A45; background: rgba(26,26,46,0.6); transition: border-color .2s, background-color .2s;
}
.btn-secondary:hover { border-color: #6C63FF; background: #1A1A2E; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid #9A90FF; outline-offset: 3px; border-radius: 0.75rem;
}

/* Badge de store (non cliquable tant que l'app n'est pas publiée) */
.store-badge {
  display: inline-flex; align-items: center; gap: 0.75rem; border-radius: 0.9rem;
  padding: 0.6rem 1.1rem 0.6rem 0.9rem; background: #000; border: 1px solid #2A2A45; color: #fff;
}
.store-badge small { display: block; font-size: 0.68rem; letter-spacing: .02em; color: #A0A0C0; line-height: 1.1; }
.store-badge strong { display: block; font-size: 1.05rem; line-height: 1.2; }

/* QR code provisoire : clairement marqué comme maquette */
.qr-frame { position: relative; background: #fff; border-radius: 1rem; padding: 0.5rem; width: 9.5rem; }
.qr-frame img { display: block; width: 100%; height: auto; }
.qr-placeholder::after {
  content: ''; position: absolute; inset: 0.5rem; border-radius: 0.5rem;
  background: repeating-linear-gradient(-45deg, rgba(245,200,66,0) 0 10px, rgba(245,200,66,0.18) 10px 20px);
  pointer-events: none;
}
.qr-tag {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #F5C842; color: #1A1A2E; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 0.25rem 0.45rem; border-radius: 0.35rem; text-transform: uppercase; white-space: nowrap;
}
html[data-launch="live"] .qr-placeholder::after,
html[data-launch="live"] .qr-tag { display: none; }

/* FAQ */
.faq details { border-bottom: 1px solid #2A2A45; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .2s; flex-shrink: 0; color: #9A90FF; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq details p { color: #A0A0C0; line-height: 1.7; padding-bottom: 1.25rem; font-size: 0.95rem; }
.faq details a { color: #9A90FF; text-decoration: underline; text-underline-offset: 2px; }

/* Menu mobile */
details[data-menu] > summary { list-style: none; cursor: pointer; }
details[data-menu] > summary::-webkit-details-marker { display: none; }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* CTA final : le téléphone monte à l'apparition, flotte, et enchaîne trois écrans en fondu (12 s le cycle) */
.reveal.cta-phone { transform: translateY(40px); transition-duration: .8s; }
.reveal.cta-phone.visible { transform: none; }
.cta-phone.visible .cta-float { animation: cta-float 6s ease-in-out .8s infinite; }
@keyframes cta-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.phone-stack { position: relative; }
.phone-stack img { opacity: 0; animation: cta-screen 12s infinite; }
.phone-stack img + img { position: absolute; top: .5rem; left: .5rem; width: calc(100% - 1rem); }
.phone-stack img:nth-child(2) { animation-delay: 4s; }
.phone-stack img:nth-child(3) { animation-delay: 8s; }
@keyframes cta-screen { 0% { opacity: 0; } 5%, 33% { opacity: 1; } 38%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .cta-float, .phone-stack img { animation: none !important; }
  .phone-stack img:first-child { opacity: 1; }
}
