/* ============================================================
   home.css — accueil visiteur non connecté (refonte oct. 2026)
   Jetons --fq-* (app-parity.css, chargé par header.php) : clair / sombre.
   Un seul violet (primary) pour les CTA ; cartes = card + cardBorder.
   ============================================================ */

body.page-home { background: var(--fq-bg); color: var(--fq-text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.hm { overflow-x: hidden; }
.hm-container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hm-section { padding: 64px 0; }
.hm-section--alt { background: var(--fq-bg-secondary); }
.hm-h2 { font-family: var(--fq-font-title); font-weight: 700; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 0 0 10px; text-align: center; letter-spacing: -.01em; color: var(--fq-text); }
.hm-sub { text-align: center; color: var(--fq-text-secondary); font-size: 16px; line-height: 1.5; max-width: 620px; margin: 0 auto 36px; }
.hm-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fq-primary); background: var(--fq-primary-light); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }

/* ---------- Héros ---------- */
.hm-hero { padding: 48px 0 56px; }
.hm-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hm-h1 { font-family: var(--fq-font-title); font-weight: 700; font-size: clamp(32px, 5.2vw, 56px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.02em; color: var(--fq-text); }
.hm-lead { font-size: 17px; line-height: 1.55; color: var(--fq-text-secondary); margin: 0 0 24px; max-width: 560px; }
.hm-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hm-btn-lg { padding: 14px 22px; font-size: 16px; }
.hm-facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--fq-text-secondary); font-size: 14px; font-weight: 600; }
.hm-facts li { display: inline-flex; align-items: center; gap: 6px; }
.hm-facts svg { width: 16px; height: 16px; color: var(--fq-success); flex-shrink: 0; }

/* Maquette téléphone : ValueCard + annonce générée (mêmes composants que l'app) */
.hm-hero__visual { display: flex; justify-content: center; }
.hm-phone {
  width: 320px; max-width: 100%; display: flex; flex-direction: column; gap: 12px;
  background: var(--fq-bg); border: 1px solid var(--fq-card-border); border-radius: 36px; padding: 18px 14px 20px;
  box-shadow: 0 30px 60px rgba(17, 24, 39, .18), 0 0 0 8px var(--fq-bg-secondary);
}
.hm-phone__bar { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; padding: 0 4px; }
.hm-phone__chip { font-size: 11px; font-weight: 700; color: var(--fq-primary); background: var(--fq-primary-light); padding: 4px 10px; border-radius: 999px; }
.hm-phone__item { display: flex; gap: 10px; align-items: center; background: var(--fq-card); border: 1px solid var(--fq-card-border); border-radius: 14px; padding: 10px; }
.hm-phone__thumb { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--fq-primary-light), var(--fq-bg-secondary)); flex-shrink: 0; }
.hm-phone__item strong { display: block; font-size: 13px; }
.hm-phone__item span { font-size: 12px; color: var(--fq-text-secondary); }
.hm-phone .fq-valuecard { padding: 16px 16px 14px; }
.hm-phone .fq-valuecard__price { font-size: 34px; }
.hm-phone__listing { background: var(--fq-card); border: 1px solid var(--fq-card-border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.hm-phone__label { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fq-text-secondary); }
.hm-phone__listing strong { font-size: 13px; line-height: 1.3; }
.hm-phone__listing p { margin: 0; font-size: 12px; color: var(--fq-text-secondary); line-height: 1.4; }
.hm-phone__pchips { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--fq-text-secondary); }

/* ---------- Comment ça marche ---------- */
.hm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hm-step { background: var(--fq-card); border: 1px solid var(--fq-card-border); border-radius: 20px; padding: 22px; }
.hm-step__n { width: 36px; height: 36px; border-radius: 12px; background: var(--fq-primary); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.hm-step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.hm-step p { margin: 0; color: var(--fq-text-secondary); font-size: 14px; line-height: 1.5; }

/* ---------- Fonctionnalités ---------- */
.hm-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hm-feature { background: var(--fq-card); border: 1px solid var(--fq-card-border); border-radius: 20px; padding: 22px; }
.hm-feature__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--fq-primary-light); color: var(--fq-primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.hm-feature__icon svg { width: 22px; height: 22px; }
.hm-feature h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.hm-feature p { margin: 0; color: var(--fq-text-secondary); font-size: 14px; line-height: 1.5; }

/* ---------- Plateformes ---------- */
.hm-platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 0; }
.hm-platform { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 160px; padding: 18px 16px; background: var(--fq-card); border: 1px solid var(--fq-card-border); border-radius: 16px; }
.hm-platform img { height: 28px; width: auto; display: block; }
.hm-platform__word { font-weight: 800; font-size: 20px; line-height: 28px; letter-spacing: -.01em; }
.hm-platform__tag { font-size: 12px; color: var(--fq-text-secondary); font-weight: 600; }

/* ---------- Tarifs ---------- */
.hm-pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 16px; justify-content: center; }
.hm-plan { background: var(--fq-card); border: 1px solid var(--fq-card-border); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.hm-plan--premium { background: var(--fq-primary); color: #fff; border-color: transparent; box-shadow: 0 12px 32px rgba(126, 34, 206, .30); }
.hm-plan__name { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.hm-plan__price { font-family: var(--fq-font-title); font-size: 40px; font-weight: 700; line-height: 1; }
.hm-plan__price small { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; opacity: .8; }
.hm-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.hm-plan li { display: flex; gap: 8px; align-items: flex-start; }
.hm-plan li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--fq-success); }
.hm-plan--premium li svg { color: #fff; }
.hm-plan .fq-btn { margin-top: auto; }
.hm-plan--premium .fq-btn--primary { background: #fff; color: var(--fq-primary); }
.hm-plan__note { font-size: 12px; margin: 0; text-align: center; opacity: .85; }

/* ---------- FAQ ---------- */
.hm-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.hm-faq details { background: var(--fq-card); border: 1px solid var(--fq-card-border); border-radius: 16px; padding: 0 18px; }
.hm-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--fq-primary); flex-shrink: 0; }
.hm-faq details[open] summary::after { content: '–'; }
.hm-faq details p { margin: 0 0 16px; color: var(--fq-text-secondary); font-size: 14px; line-height: 1.55; }

/* ---------- CTA final + stores ---------- */
.hm-final { text-align: center; }
.hm-final .hm-h2 { margin-bottom: 20px; }
.hm-stores { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hm-stores a { display: inline-block; line-height: 0; }
.hm-stores img { height: 48px; width: auto; display: block; }

/* ---------- Accessibilité ---------- */
.hm a:focus-visible, .hm button:focus-visible, .hm summary:focus-visible { outline: 3px solid var(--fq-primary); outline-offset: 3px; border-radius: 12px; }

/* ---------- Responsive (mobile d'abord : gouttière 16 px, pas de débordement) ---------- */
@media (max-width: 900px) {
  .hm-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hm-steps, .hm-features { grid-template-columns: 1fr 1fr; }
  .hm-pricing { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hm-section { padding: 44px 0; }
  .hm-hero { padding: 24px 0 40px; }
  .hm-h1 { font-size: 32px; }
  .hm-lead { font-size: 16px; }
  .hm-steps, .hm-features { grid-template-columns: 1fr; }
  .hm-hero__ctas .fq-btn { width: 100%; }
  .hm-phone { width: 100%; max-width: 340px; }
  .hm-platform { min-width: calc(50% - 6px); }
  body.page-home.navbar-offset { padding-bottom: 0 !important; }
}
