/* Page d'accueil publique (avant la connexion). Utilise les variables et composants de app.css. */
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--purple); padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 100; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.hm-wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.hm-head { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.hm-head-in { display: flex; align-items: center; gap: 28px; padding: 22px 0; }
.hm-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hm-brand img { height: 46px; width: auto; display: block; flex: none; }
.hm-brand b { font-family: var(--head); font-weight: 700; font-size: 18px; color: #fff; }
.hm-nav { display: flex; gap: 6px; margin-left: auto; }
.hm-nav a { color: var(--lilac); text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 999px; }
.hm-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.hm-head .btn { text-decoration: none; }

.hm-hero { position: relative; overflow: hidden; color: #fff; padding: 132px 0 88px;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 14%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 34% 70%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 62%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 56% 30%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(60% 80% at 85% 20%, rgba(79,216,210,.16), transparent 70%),
    linear-gradient(160deg, #2B1B3D, #140B1E); }
.hm-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hm-kicker { margin: 0 0 14px; font-family: var(--head); font-weight: 600; font-size: 18px; color: var(--teal); }
.hm-hero h1 { font-weight: 800; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; color: #fff; }
.hm-lead { font-size: 18px; line-height: 1.55; color: var(--lilac); max-width: 34em; margin: 20px 0 0; }
.hm-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hm-cta .btn, .hm-end .btn { text-decoration: none; padding: 16px 32px; font-size: 15px; }
.btn.ghost-dark { color: #fff; border-color: rgba(255,255,255,.35); }
.btn.ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.hm-note { margin: 22px 0 0; font-size: 14px; color: var(--gray); max-width: 36em; }
.hm-note a { color: var(--teal); }

.hm-preview { position: relative; display: flex; flex-direction: column; gap: 14px; }
.hm-tag { position: absolute; top: -14px; right: 16px; z-index: 2; background: var(--teal); color: var(--on-teal); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.pv-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 22px; }
.pv-top-card { display: flex; align-items: center; gap: 22px; }
.pv-side { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.pv-big { font-family: var(--head); font-weight: 800; font-size: 30px; line-height: 1; }
.pv-big small { font-size: 15px; font-weight: 600; color: var(--gray); }
.pv-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--lilac); margin-bottom: 4px; }
.pv-top b { font-family: var(--mono); color: #fff; }
.pv-card .track { background: rgba(255,255,255,.14); height: 8px; }
.pv-cap { font-weight: 700; font-size: 13px; color: var(--lilac); margin-bottom: 12px; }
.pv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pv-cell { height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.pv-cell.tex { background-color: rgba(255,255,255,.06); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 3px, transparent 3px 9px); }
.pv-cell.free { border: 1.5px dashed var(--teal); color: var(--teal); }
.pv-cell.mine { background: rgba(79,216,210,.2); border: 1.5px solid var(--teal); color: #BFF5F2; }
.pv-cell.taken { background: rgba(255,255,255,.1); color: var(--gray); }

.hm-sec { padding: 88px 0; }
.hm-sec.alt { background: #fff; border-block: 1px solid var(--line); }
.hm-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-2); }
.hm-sec h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.hm-p { font-size: 17px; line-height: 1.6; color: var(--text2); max-width: 32em; margin: 16px 0 0; }
.hm-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hm-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hm-goal { border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(135deg, #2B1B3D, #140B1E); color: #fff; }
.hm-goal.alt { background: #fff; color: var(--purple); border: 1px solid var(--line); }
.hm-goal b { font-family: var(--head); font-weight: 800; font-size: 56px; line-height: 1; color: var(--teal); }
.hm-goal.alt b { color: var(--teal-2); }
.hm-goal span { font-weight: 700; font-size: 17px; }
.hm-goal small { font-size: 13px; opacity: .75; }

.hm-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hm-steps li { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.hm-num { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--teal-2); }
.hm-steps h3 { font-weight: 700; font-size: 19px; line-height: 1.2; }
.hm-steps p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text2); }

.hm-trust { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.hm-trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hm-trust li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-size: 15.5px; line-height: 1.5; color: var(--text2); }
.hm-trust li b { color: var(--purple); }

.hm-faq { max-width: 820px; }
.hm-faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.hm-faq details:last-child { border-bottom: 1px solid var(--line); }
.hm-faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; color: var(--purple); padding: 18px 40px 18px 0; position: relative; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--teal-2); }
.hm-faq details[open] summary::after { content: '\2212'; }
.hm-faq details p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.6; color: var(--text2); max-width: 44em; }

.hm-end { padding: 72px 0; background: linear-gradient(135deg, #2B1B3D, #140B1E); color: #fff; }
.hm-end-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hm-end h2 { color: #fff; font-weight: 800; font-size: clamp(26px, 3vw, 36px); }
.hm-end p { margin: 8px 0 0; color: var(--lilac); font-size: 16px; }

.hm-foot { background: #140B1E; color: var(--gray); padding: 36px 0; }
.hm-foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hm-foot .hm-brand b { font-size: 15px; display: block; }
.hm-foot .hm-brand span { font-size: 13px; }
.hm-foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.hm-foot a { color: var(--lilac); text-decoration: none; font-weight: 600; font-size: 14px; }
.hm-foot a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1000px) {
  .hm-hero { padding: 108px 0 64px; }
  .hm-hero-in, .hm-two, .hm-trust { grid-template-columns: 1fr; gap: 40px; }
  .hm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-nav { display: none; }
  .hm-head-in .btn { margin-left: auto; }
  .hm-sec { padding: 64px 0; }
}
@media (max-width: 560px) {
  .hm-goals, .hm-steps { grid-template-columns: 1fr; }
  .pv-top-card { flex-direction: column; align-items: flex-start; }
  .hm-cta .btn { width: 100%; }
}

/* Avis « application en développement » : coin inférieur gauche, toujours visible */
.dev-notice { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 340px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #FFF6E8; color: #6B430F; border: 1.5px solid #F5A64B; box-shadow: 0 8px 24px rgba(20, 11, 30, .28); font-size: 12.5px; line-height: 1.4; }
.dev-notice p { margin: 0; }
.dev-notice b { display: block; font-size: 13px; color: #4A2C06; margin-bottom: 2px; }
.dev-dot { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: #F5A64B; box-shadow: 0 0 0 4px rgba(245, 166, 75, .28); }
/* réserve de la place en bas de page pour que l avis ne cache pas le pied de page */
.hm-foot { padding-bottom: 160px; }
@media (max-width: 560px) { .dev-notice { left: 8px; right: 8px; bottom: 8px; max-width: none; } .hm-foot { padding-bottom: 200px; } }
