html, body { margin: 0; padding: 0; background: #F4F2FA; }
/* Défilement fluide vers les ancres internes (#how, #pricing, #faq…).
   scroll-padding-top compense la hauteur de l'en-tête collant (68px). */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
* { box-sizing: border-box; }
::selection { background: #C9B2FF; color: #16142B; }
:focus-visible { outline: 3px solid #16142B; outline-offset: 2px; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
a { color: #16142B; }
a:hover { color: #5B45C7; }
[hidden] { display: none !important; }
/* ------------------------------------------------------------------
   Micro-interactions. Tous les boutons violets partagent le même geste
   (.hz-lift) : posés sur une ombre dure, ils s'enfoncent au survol puis
   se plaquent complètement au clic (l'ombre disparaît) — le même ressenti
   « physique » que le bouton de la bannière de cookies. Les panneaux du
   tableau de bord (.hz-card) restent volontairement STATIQUES : aucun
   soulèvement ni ombre au survol. La tuile « Créer un deck » (.hz-tile)
   s'éclaire simplement.
   ------------------------------------------------------------------ */
button { transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease; }
.hz-lift { box-shadow: 3px 3px 0 #16142B !important; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.hz-lift:hover:not(:disabled) { transform: translate(1px, 1px); box-shadow: 2px 2px 0 #16142B !important; }
.hz-lift:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 rgba(22, 20, 43, 0) !important; }
.hz-tile:hover:not(:disabled) { background: #FCFBFE; border-color: #16142B; border-style: solid; }

/* Bouton sombre (Réviser) : encre indigo posée sur une petite ombre dure,
   s'enfonce au survol — même geste que .hz-lift mais en version discrète. */
.hz-btn-dark { background: #201C4B; border: 1.5px solid #16142B; border-radius: 6px; color: #FCFBFE; box-shadow: 2px 2px 0 rgba(22, 20, 43, .35); }
.hz-btn-dark:hover:not(:disabled) { background: #16142B; transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(22, 20, 43, .35); }
/* Bouton discret (+ Cartes) : simple contour qui s'encre au survol. */
.hz-btn-ghost:hover:not(:disabled) { border-color: #16142B !important; color: #16142B !important; }
/* Lien/bouton en pointillés (+ Nouvel objectif) : s'encre au survol. */
.hz-dash:hover { border-color: #16142B !important; color: #16142B !important; background: #FCFBFE; }
/* Les cartes de deck (pile de papier) sont statiques : aucun effet au survol. */

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes blinkDot { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* ------------------------------------------------------------------
   Landing — titre héros. La taille est réduite via clamp() et le mot
   animé (« pour <mot> ») ne se coupe JAMAIS en fin de ligne (nowrap),
   sauf sur très petits écrans où il peut de nouveau passer à la ligne
   pour éviter tout débordement horizontal.
   ------------------------------------------------------------------ */
.hz-hero-title { font-size: clamp(46px, 5.5vw, 72px); }
@media (max-width: 760px) {
  .hz-hero-title { font-size: clamp(34px, 9vw, 50px); }
}

/* Grille des tarifs (landing) : 3 offres côte à côte, empilées sur mobile. */
.hz-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .hz-pricing-grid { grid-template-columns: 1fr; max-width: 460px; } }

/* ------------------------------------------------------------------
   Barre de progression de génération (onboarding + création d'objectif).
   La largeur est pilotée en JS ; une animation de brillance indique que
   le travail est en cours tant que la barre n'a pas atteint 100 %.
   ------------------------------------------------------------------ */
.hz-progress { position: relative; width: 100%; height: 10px; background: #E5E2F0; border-radius: 99px; overflow: hidden; }
.hz-progress > span { display: block; height: 100%; width: 0%; border-radius: 99px; background: #7C5CE0; transition: width .5s cubic-bezier(.3,.7,.4,1); }
.hz-progress.is-done > span { background: #5B45C7; }
.hz-progress:not(.is-done)::after {
  content: ""; position: absolute; inset: 0; border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%); animation: hzShimmer 1.4s ease-in-out infinite;
}
@keyframes hzShimmer { 100% { transform: translateX(100%); } }

/* ------------------------------------------------------------------
   FAQ (landing). Accordéon natif <details> : chaque question s'ouvre
   en douceur, le chevron pivote. Sans JS, accessible au clavier.
   ------------------------------------------------------------------ */
.hz-faq { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.hz-faq-item { border: 1.5px solid #16142B; border-radius: 8px; background: #FCFBFE; overflow: hidden; }
.hz-faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex;
  align-items: center; justify-content: space-between; text-align: left; gap: 18px;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 18px;
  color: #16142B; transition: background-color .16s ease;
}
.hz-faq-item summary::-webkit-details-marker { display: none; }
.hz-faq-item summary:hover { background: #F4F2FA; }
.hz-faq-item summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 2px;
  border-right: 2.5px solid #7C5CE0; border-bottom: 2.5px solid #7C5CE0;
  transform: rotate(45deg); transition: transform .22s ease;
}
.hz-faq-item[open] summary::after { transform: rotate(225deg); }
.hz-faq-item .hz-faq-answer {
  padding: 0 24px 22px 24px; margin: 0; font-size: 15.5px; line-height: 1.62; color: #3E3A5F; text-align: center;
}
.hz-faq-item[open] summary { background: #F4F2FA; }
@media (prefers-reduced-motion: no-preference) {
  .hz-faq-item[open] .hz-faq-answer { animation: rise .28s ease both; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
