/* Accueil public : présentation du produit.
   Couleurs uniquement par les jetons de public.css (var(--bg2), var(--accent)...) : le design classique (html.design-classic) s'applique aussi ici.
   Mise en page fluide : une colonne sur téléphone, deux colonnes dès que la place le permet (pas de largeur fixe). */

html:has(body.home) { scroll-behavior: smooth; }
.home .hm [id] { scroll-margin-top: 24px; }

/* ── Cadre ── */
.hm {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 10vw, 124px);
  padding: clamp(28px, 6vw, 72px) 0 clamp(64px, 9vw, 112px);
  overflow-x: clip;   /* le halo derrière l'aperçu ne doit jamais élargir la page */
}
.hm-wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
/* L'en-tête et le pied de page suivent la même colonne que le contenu */
.home .site-header,
.home .site-footer {
  padding-inline: max(clamp(16px, 4vw, 40px), calc((100vw - 1120px) / 2 + clamp(16px, 4vw, 40px)));
}
.home .site-footer-inner { max-width: none; padding: 0; }
.home .site-footer-links { gap: 0 6px; }
.home .site-footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 13px; }
.home .site-footer-links a:hover { color: var(--accent2); }

/* ── Outils de mise en page ── */
.hm-row { display: flex; align-items: center; gap: 12px; }
.hm-flexwrap { flex-wrap: wrap; }
.hm-stack { display: flex; flex-direction: column; }
.hm-gap4 { gap: 4px; } .hm-gap8 { gap: 8px; } .hm-gap12 { gap: 12px; }
.hm-grow { flex: 1 1 0; min-width: 0; }
.hm-push { margin-left: auto; }
.hm-push-top { margin-top: auto; }
.hm-t2 { color: var(--text2); }
.hm-t3 { color: var(--text3); }
.hm-pos { color: var(--green); }
.hm-neg { color: var(--red); }
.hm-sm { font-size: 14px; line-height: 1.5; }
.hm-xs { font-size: 13px; line-height: 1.45; }
.hm-b6 { font-weight: 600; }
.hm-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-narrow { max-width: 640px; }

/* ── Textes ── */
.hm-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent2);
}
.hm-h1, .hm-h2, .hm-q, .hm-step-n {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -.012em;
}
.hm-h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; text-wrap: balance; color: var(--text); }
.hm-h2 { font-size: clamp(27px, 3.6vw, 38px); line-height: 1.15; text-wrap: balance; color: var(--text); }
.hm-h3 { font-size: 19px; line-height: 1.3; font-weight: 650; color: var(--text); }
.hm-lead { font-size: clamp(17px, 1.9vw, 19px); line-height: 1.6; color: var(--text2); max-width: 540px; }
.hm-p { font-size: clamp(16px, 1.6vw, 17px); line-height: 1.6; color: var(--text2); max-width: 520px; }
.hm-fine { font-size: 14px; line-height: 1.55; color: var(--text3); max-width: 520px; }
.hm-fine a, .hm-link { color: var(--accent2); font-weight: 600; text-decoration: none; }
.hm-fine a:hover, .hm-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hm-link { display: inline-flex; align-items: center; min-height: 44px; }

/* ── Boutons : cibles d'au moins 44 px ── */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  background: var(--bg3);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, filter .15s;
}
.hm-btn:hover { background: var(--bg4); }
.hm-btn--pri { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--btn-on-active); }
.hm-btn--pri:hover { background: var(--accent-fill); filter: brightness(1.1); }
.hm-btn--ghost { background: transparent; border-color: transparent; color: var(--text2); }
.hm-btn--ghost:hover { background: var(--bg2); color: var(--text); }
.hm-btn--out { background: transparent; }
.hm-btn--out:hover { background: var(--bg2); border-color: var(--accent2); }
.hm-btn--lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.hm-btn--blk { width: 100%; }

/* ── Cartes, pastilles ── */
.hm-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(18px, 2.6vw, 28px);
  min-width: 0;
}
.hm-card--hi { border-color: var(--border2); box-shadow: 0 24px 64px rgba(0, 0, 0, .42); }
.hm-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg4);
  color: var(--text2);
}
.hm-badge--ac { background: var(--accent-tint); color: var(--accent2); }
.hm-bar { height: 8px; border-radius: 4px; background: var(--bg4); overflow: hidden; }
.hm-bar > i { display: block; height: 100%; border-radius: 4px; background: var(--gold); }
.hm-sep { border: 0; height: 1px; background: var(--border); margin: 0; }
.hm-i { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ── Hero ── */
.hm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hm-hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hm-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  background: var(--bg2);
}
.hm-hero-visual { position: relative; isolation: isolate; display: flex; justify-content: center; }
.hm-hero-visual::before {
  content: "";
  position: absolute;
  inset: -14% -10%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--accent-tint), transparent 72%);
}
.hm-dash { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 16px; }
.hm-amount {
  font-size: clamp(40px, 7vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hm-avatars { display: inline-flex; flex: 0 0 auto; }
.hm-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg);
  border: 2px solid var(--bg2);
}
.hm-av--a { background: var(--info); }
.hm-av--b { background: var(--accent2); margin-left: -8px; }

/* ── Sections en deux colonnes ── */
.hm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}
.hm-split--flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.hm-split--flip > .hm-copy { order: 2; }
.hm-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-width: 0; }
#fonctions.hm-split { align-items: start; }

.hm-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); min-width: 0; }
.hm-steps li { display: flex; align-items: flex-start; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.hm-step-n { font-size: 34px; line-height: 1; width: 30px; flex: 0 0 auto; color: var(--accent2); }

.hm-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hm-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--text2); }
.hm-checks .hm-i { margin-top: 2px; color: var(--green); }
.hm-checks li.is-off { color: var(--text3); }
.hm-checks li.is-off .hm-i { color: var(--text3); }
.hm-checks--tight { gap: 10px; }
.hm-checks--tight li { font-size: 14px; }

/* ── Aperçu de la prise en main ── */
.hm-wizard { display: flex; flex-direction: column; gap: 14px; }
.hm-seg { display: flex; gap: 6px; }
.hm-seg i { flex: 1 1 0; height: 6px; border-radius: 3px; background: var(--bg4); }
.hm-seg i.on { background: var(--accent); }
.hm-q { font-size: clamp(24px, 3vw, 28px); line-height: 1.2; color: var(--text); }
.hm-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 16px;
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 3px var(--accent-tint);
  font-size: 26px;
}
.hm-field .hm-t3 { font-size: 20px; }

/* ── Aperçu de la conversation ── */
.hm-chat { display: flex; flex-direction: column; gap: 12px; }
.hm-bub { max-width: 90%; padding: 12px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.hm-bub--u { align-self: flex-end; background: var(--accent-fill); color: var(--btn-on-active); border-bottom-right-radius: 6px; }
.hm-bub--a { align-self: flex-start; background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 6px; }
.hm-chat .hm-badge { align-self: flex-start; }

/* ── Engagements ── */
.hm .site-trust { margin-block: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hm-trust .trust-grid { width: 100%; margin: 8px 0 4px; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hm-trust .trust-card { background: var(--bg2); border-color: var(--border); border-radius: var(--r); padding: 22px; gap: 10px; }
.hm-trust .trust-svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-bottom: 4px;
  border-radius: var(--r-sm);
  background: var(--accent-tint);
  stroke: var(--accent2);
}

/* ── Tarifs ── */
.hm-pricing { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hm-pricing-head { width: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 32px; }
.hm-pricing-head .hm-stack { min-width: min(100%, 320px); }
.hm-billing { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hm-seg-ctl { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-sm); background: var(--bg3); border: 1px solid var(--border); }
.hm-seg-ctl button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text2);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.hm-seg-ctl button.is-on { background: var(--bg2); color: var(--text); box-shadow: 0 0 0 1px var(--border2); }
.hm-save { font-size: 13px; line-height: 1.45; color: var(--accent2); max-width: 340px; }
.hm-save[hidden] { display: none; }
.hm-plans { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.hm-plan { display: flex; flex-direction: column; gap: 20px; }
.hm-plan--featured { border-color: var(--accent); }
/* Les trois cartes alignent leurs prix : l'en-tête a la hauteur de la description la plus longue */
@media (min-width: 961px) { .hm-plan > .hm-stack:first-child { min-height: 112px; } }
.hm-plan-name { font-size: 24px; line-height: 1.2; }
.hm-price-block { min-height: 62px; }
.hm-price { font-size: 34px; line-height: 1.15; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.hm-price-suffix { font-size: 15px; font-weight: 500; color: var(--text3); margin-left: 6px; }
.hm-legal { font-size: 12px; color: var(--text3); }
.hm-legal a { color: var(--accent2); }

/* ── Appel final ── */
.hm-final { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; padding: clamp(24px, 5vw, 44px); }
.hm-final-title { max-width: 560px; }

/* ── Apparition au défilement (désactivée sans JavaScript et avec « réduire les animations ») ── */
.js-reveal .hm-reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }
.js-reveal .hm-reveal { transition: opacity .6s ease, transform .6s ease; }

/* ── Page À propos ── */
.hm-gap16 { gap: 16px; }
.hm-head { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-bottom: clamp(24px, 3vw, 36px); }
.hm-p--big { font-family: 'Inter', system-ui, sans-serif; font-synthesis: none; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; color: var(--text); max-width: 620px; }
.hm-link--inline { min-height: 0; display: inline; }
.hm-quote { position: relative; width: 100%; max-width: 520px; }
.hm-quote-mark {
  display: block;
  height: 40px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 88px;
  line-height: .9;
  color: var(--accent2);
}
.hm-quote blockquote p {
  font-family: 'Inter', system-ui, sans-serif;
  font-synthesis: none;
  font-size: clamp(22px, 2.7vw, 29px);
  line-height: 1.32;
  color: var(--text);
  text-wrap: pretty;
}
.hm-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.hm-feat { display: flex; flex-direction: column; gap: 10px; }
.hm-ico {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  border-radius: var(--r-sm);
  background: var(--accent-tint);
  color: var(--accent2);
}
.hm-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 12px; }
.hm-tier { display: flex; flex-direction: column; gap: 6px; }
.hm-tier--featured { border-color: var(--accent); }
.hm-tier-name { font-size: 24px; line-height: 1.2; }
.hm-tier-price { padding-top: 14px; font-size: 32px; line-height: 1.15; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
/* Les prix des trois offres s'alignent : la description a toujours la hauteur de deux lignes */
@media (min-width: 900px) { .hm-tier > .hm-t2 { min-height: 3.1em; } }
.hm-final--col { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 28px; }

/* ── Tablette et téléphone ── */
@media (max-width: 960px) {
  .hm-plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .hm-plan--featured { order: -1; }
}
@media (max-width: 860px) {
  .hm-hero, .hm-split, .hm-split--flip { grid-template-columns: minmax(0, 1fr); }
  .hm-split--flip > .hm-copy { order: 0; }
  .hm-hero-visual { justify-content: flex-start; }
  .hm-dash { max-width: none; }
  .hm-hero-visual::before { inset: -8% 0; }
}
@media (max-width: 560px) {
  .hm-actions { width: 100%; flex-direction: column; }
  .hm-actions .hm-btn { width: 100%; }
  .hm-final { flex-direction: column; align-items: stretch; }
  .hm-final .hm-btn { width: 100%; }
  .hm-bub { max-width: 100%; }
  .hm-steps li { gap: 14px; padding: 18px 0; }
  .hm-step-n { width: 24px; font-size: 30px; }
  .hm-seg-ctl { width: 100%; }
  .hm-seg-ctl button { flex: 1 1 0; }
}

/* Design bancaire : même police partout, les grands titres passent en Inter semi-gras */
.hm-h1, .hm-h2, .hm-q, .hm-step-n, .hm-p--big, .hm-quote blockquote p, .hm-quote-mark { font-weight: 600; letter-spacing: -.025em; }
.hm-h1 { line-height: 1.04; }
