body {
  font-family: var(--font-sans);
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hp-wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
}

.hp-block {
  padding: 112px 32px;
}

.hp-block-notop {
  padding-top: 40px;
}

.hp-block-tint {
  background-color: var(--color-beige);
}

/* Boutons */
.hp-ctarow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hp-ctarow--center {
  justify-content: center;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  padding: 15px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hp-btn:focus-visible,
.hp-chip:focus-visible,
.hp-opt:focus-visible,
.hp-aud:focus-visible,
.hp-faq-i summary:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
}

.hp-btn:active {
  transform: scale(0.97);
}

/* CTA principal : fond cyan + texte foncé, comme le .button.blue de
   www.legaleo.ai et le Button solid/primary de la plateforme (le cyan est
   trop clair pour porter du texte, il ne sert que de fond). Survol à plat,
   légèrement assombri — même color-mix que la plateforme. */
.hp-btn-primary,
.hp-btn-cyan {
  color: var(--color-black);
  background-color: var(--color-cyan);
}

.hp-btn-primary:hover,
.hp-btn-cyan:hover {
  background-color: color-mix(in srgb, var(--color-cyan) 85%, #000 10%);
}

.hp-btn-cyan {
  margin-top: 32px;
}

/* Secondaire : contour foncé (Button outline/secondary de la plateforme). */
.hp-btn-ghost {
  color: var(--color-black);
  background-color: transparent;
  border-color: rgb(31 18 14 / 0.2);
}

.hp-btn-ghost:hover {
  border-color: var(--color-black);
  background-color: rgb(31 18 14 / 0.04);
}

/* Titres de section */
.hp-kicker {
  display: inline-block;
  color: var(--color-teal);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hp-kicker--light {
  color: var(--color-orange-bg);
}

.hp-kicker--cyan {
  color: var(--color-cyan);
}

/* Mise en valeur dans les titres : couleur seule, pas d'italique. */
.hp-em {
  font-style: normal;
  font-weight: 500;
  color: inherit;
}

/* Partie mise en valeur renvoyée à la ligne : titre en deux temps, la
   phrase en noir, puis la couleur en dessous. */
.hp-em--br {
  display: block;
}

.hp-sechead-center {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hp-h2 {
  margin-top: 16px;
  color: var(--color-black);
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.8px;
  text-wrap: balance;
}

.hp-h2 .hp-em {
  color: var(--color-teal);
}

.hp-h2-left {
  text-align: left;
}

.hp-h2-light {
  color: var(--color-white);
}

.hp-h2-light .hp-em {
  color: var(--color-cyan);
}

.hp-h2-xl {
  font-size: 54px;
}

.hp-h3 {
  margin-top: 0;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hp-h3b {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hp-p {
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.hp-lede-c {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: balance;
}

.hp-lede2 {
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.hp-lede2-light {
  color: rgb(255 254 251 / 0.72);
}

/* Listes */
.hp-checks {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.hp-checks li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.hp-checks li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  /* Pastille teal pleine, coche blanche (homepage et page contact) */
  background: var(--color-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffefb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Points clés d'une feature : encadrés, pour se détacher du paragraphe
   (.hp-p) qui les précède, en liste à puces. */
.hp-bars {
  display: grid;
  gap: 4px;
  margin-top: 26px;
  border: 1px solid #cdf3f2;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  background-color: var(--color-teal-bg);
}

.hp-bars li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

/* Expressions clés mises en avant dans chaque point */
.hp-bars strong {
  color: var(--color-black);
  font-weight: 800;
}

/* Puce ronde, centrée sur la première ligne (0.75em = moitié de la
   hauteur de ligne 1.5) */
.hp-bars li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-teal);
  translate: 0 -50%;
}

/* Pastilles / tags réutilisés par les mockups */
.hp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap;
  /* Même dessin que le Pill de la plateforme (legaleo-ai/components/
     design-system/Pill) : fond teinté + fin contour dérivé du texte. */
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 600;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, opacity 0.35s ease, transform 0.35s var(--ease-out);
}

/* Couleurs des statuts de contrat de la plateforme (Pill.module.css,
   utils/functions/contractStatus.ts : signature en bleu, signé #24856d). */
.hp-pill--teal { color: #087f83; background-color: #e8f5f5; }
.hp-pill--orange { color: #f57c00; background-color: #fff4e6; }
.hp-pill--green { color: #24856d; background-color: color-mix(in srgb, #24856d 10%, white); }
.hp-pill--blue { color: #00a5eb; background-color: #e5f3fe; }
.hp-pill--purple { color: var(--color-purple-text); background-color: var(--color-purple-bg); }
.hp-pill--dark { color: var(--color-white); background-color: var(--color-black); }

.hp-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 9.5px;
  font-weight: 800;
}

.hp-avatar--teal { background-color: var(--color-teal); }
.hp-avatar--orange { background-color: #fc9d1f; }
.hp-avatar--purple { background-color: var(--color-purple-text); }

/* Glyphe Leo (étoile à 8 branches, cf. badge de la page Leo) */
.hp-leo-glyph {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362e7eb' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 2.5v6M12 15.5v6M2.5 12h6M15.5 12h6M5.3 5.3l4.2 4.2M14.5 14.5l4.2 4.2M18.7 5.3l-4.2 4.2M9.5 14.5l-4.2 4.2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hp-leo-tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: calc(56px * 7 / 34);
  background-color: var(--color-leo-badge);
}

/* Animation Lottie de Leo (js/main.js : leoAnims), posée sur le picto
   statique qu'elle remplace une fois chargée (.has-lottie sur le parent).
   Jamais en display: none : lottie mesure son conteneur au chargement
   (canvas 0 × 0 sinon). Encart de 18 % = 64 % du badge, même rapport que
   .lb-fanim sur la page Leo (56px, 10px de padding). Le parent doit être
   positionné. */
.hp-leo-lottie {
  position: absolute;
  inset: 18%;
}

.has-lottie > .hp-leo-glyph {
  visibility: hidden;
}

.hp-leo-tile .hp-leo-glyph {
  width: 30px;
  height: 30px;
}

.hp-leo-tile--sm {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.hp-leo-tile--sm .hp-leo-glyph {
  width: 19px;
  height: 19px;
}

.hp-beta {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  color: var(--color-black);
  background-color: var(--color-cyan);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Apparition au scroll (js/main.js : initReveal). Sans JS, la classe
   .js-reveal n'est jamais posée : tout reste visible. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 991px) {
  .hp-block {
    padding: 88px 28px;
  }

  .hp-h2 {
    font-size: 36px;
  }

  .hp-h2-xl {
    font-size: 42px;
  }
}

@media (max-width: 640px) {
  .hp-block {
    padding: 64px 20px;
  }

  .hp-block-notop {
    padding-top: 24px;
  }

  .hp-h2 {
    font-size: 29px;
    letter-spacing: -0.4px;
  }

  .hp-h2-xl {
    font-size: 32px;
  }

  .hp-h3b {
    font-size: 22px;
  }

  .hp-lede2,
  .hp-lede-c {
    font-size: 16px;
  }
}

/* Pastille Bêta dans un bouton cyan : fond encre pour rester lisible */
.hp-btn .hp-beta {
  color: var(--color-lime);
  background-color: var(--color-black);
}

/* ---------- FAQ : accordéon (homepage, page contact) ---------- */
.hp-faq {
  margin-top: 48px;
  border-top: 1px solid var(--color-border);
}

.hp-faq-i {
  border-bottom: 1px solid var(--color-border);
}

.hp-faq-i summary {
  position: relative;
  display: block;
  padding: 24px 48px 24px 4px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.hp-faq-i summary::-webkit-details-marker {
  display: none;
}

.hp-faq-i summary:hover {
  color: var(--color-teal);
}

/* + qui devient − */
.hp-faq-i summary::before,
.hp-faq-i summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background-color: currentColor;
  transition: transform 0.3s var(--ease-out);
}

.hp-faq-i summary::after {
  transform: rotate(90deg);
}

.hp-faq-i[open] summary::after {
  transform: rotate(0);
}

.hp-faq-a {
  overflow: hidden;
}

.hp-faq-a p {
  max-width: 680px;
  padding: 0 4px 24px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
}

.hp-faq-a p:not(:last-child) {
  padding-bottom: 12px;
}

@media (max-width: 640px) {
  .hp-faq-i summary {
    padding: 20px 40px 20px 0;
    font-size: 16px;
  }
}
