/* ═══════════════════════════════════════════════════════════
   ApexClub — hero mobile partagé
   Ces règles étaient en style inline dans index.html seul,
   alors que how-it-works.html porte le même markup : le bloc
   s'y affichait donc sans aucun style sur téléphone.
   Fichier commun aux deux pages — ne pas dupliquer ailleurs.
   ═══════════════════════════════════════════════════════════ */

/* Boutons à bordure dégradée */
/* 1. Hover Border Gradient CTAs */
@property --hbg-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes hbg-rot { to { --hbg-a: 360deg; } }
.hbg-wrap {
  position: relative; display: inline-flex;
  border-radius: 100px; padding: 1px;
  background: conic-gradient(from var(--hbg-a), #c29d78 0%, transparent 40%, transparent 60%, #c29d78 100%);
  transition: opacity .3s;
}
.hbg-wrap:hover { animation: hbg-rot 1.5s linear infinite; }
.hbg-inner {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 100px; padding: 12px 26px;
  background: #121212; color: #fff;
  font-family: 'Helvetica Neue', Helveticaneue, Arial, sans-serif;
  font-size: 14px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: background .3s;
}
.hbg-wrap:hover .hbg-inner { background: rgba(18,18,18,0.85); }
.hbg-ghost .hbg-inner { background: transparent; border: 1px solid rgba(255,255,255,0.2); }

/* ════════════════════════════════════════
   HERO MOBILE — Figma pixel-perfect
   node-id: 81-814
   Structure: card top → title → desc → CTAs
════════════════════════════════════════ */

/* Mobile hero wrapper */
.hero-mobile {
  display: none;
  flex-direction: column;
  background: #121212;
  width: 100%;
}

/* ── Car card (Figma: border, rounded, shadow) ── */
.hm-card {
  margin: 16px 16px 0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
}
.hm-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.hm-card-media video,
.hm-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Countdown badge */
.hm-countdown {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #121212;
  font-family: 'Helvetica Neue', Helveticaneue, Arial, sans-serif;
  letter-spacing: 0.3px;
}
/* Heart */
.hm-heart {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(18,18,18,0.65);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Investors badge */
.hm-investors {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255,255,255,0.03);
  border: 0.7px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 11px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hm-investors-label {
  font-size: 10px;
  color: #fff;
  font-family: 'Helvetica Neue', Helveticaneue, Arial, sans-serif;
}
.hm-investors-avatars {
  display: flex;
  align-items: center;
}
.hm-investors-avatars img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #121212;
  margin-left: -8px;
}
.hm-investors-avatars img:first-child { margin-left: 0; }
.hm-investors-more {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #121212;
  font-weight: 700;
  font-family: 'Helvetica Neue', Helveticaneue, Arial, sans-serif;
  margin-left: -8px;
}
/* Card info row */
.hm-card-info {
  padding: 12px 14px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hm-card-spec {
  font-size: 11px;
  color: #aaa;
  font-family: 'Helvetica Neue', Helveticaneue, Arial, sans-serif;
  margin-bottom: 2px;
}
.hm-card-name {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  font-family: 'Helvetica Neue', Helveticaneue, Arial, sans-serif;
}
.hm-card-id {
  background: rgba(255,255,255,0.1);
  border-radius: 27px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  font-family: 'Helvetica Neue', Helveticaneue, Arial, sans-serif;
}
/* Price row */
.hm-card-price {
  margin: 0 14px 14px;
  background: #282828;
  border-radius: 11px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hm-card-price-label {
  font-size: 13px;
  color: #fff;
  font-family: 'Helvetica Neue', Helveticaneue, Arial, sans-serif;
}
.hm-card-price-val {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  font-family: 'Helvetica Neue', Helveticaneue, Arial, sans-serif;
}

/* ── Text content block ── */
.hm-text {
  padding: 28px 20px 0;
}
.hm-title {
  font-size: 38px;
  font-weight: 500;
  color: #fff;
  font-family: 'Helvetica Neue', Helveticaneue, Arial, sans-serif;
  line-height: 1.2;
  margin: 0 0 16px;
}
.hm-desc {
  font-size: 16px;
  color: #aaa;
  font-family: 'Helvetica Neue', Helveticaneue, Arial, sans-serif;
  line-height: 1.65;
  margin: 0 0 28px;
}

/* ── CTAs — side by side, Figma: gold filled + outline ── */
.hm-ctas {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.hm-cta-primary {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #c29d78;
  border-radius: 9px;
  padding: 14px 16px;
  text-decoration: none;
  border: none;
}
.hm-cta-primary span {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  font-family: 'Helvetica Neue', Helveticaneue, Arial, sans-serif;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.hm-cta-secondary {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(194,157,120,0.1);
  border: 1px solid #c29d78;
  border-radius: 9px;
  padding: 14px 16px;
  text-decoration: none;
}
.hm-cta-secondary span {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  font-family: 'Helvetica Neue', Helveticaneue, Arial, sans-serif;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.hm-cta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

/* ── Trusted by ── */
.hm-trusted {
  padding: 0 20px 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hm-trusted-label {
  font-size: 13px;
  color: #6b6b6b;
  font-family: 'Helvetica Neue', Helveticaneue, Arial, sans-serif;
}
.hm-trusted-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hm-trusted-logos img {
  height: 16px;
  max-width: 80px;
  object-fit: contain;
  opacity: 0.7;
}
/* La griffe LCL descend bien sous les lettres : à hauteur égale aux
   autres, le sigle paraîtrait deux fois plus petit. */
.hm-trusted-logos img.logo-lcl {
  height: 24px;
  max-width: 40px;
}
/* Signe très allongé : à 16px de haut il tiendrait sur 320px et
   déborderait. On le cale sur la largeur disponible. */
.hm-trusted-logos img.logo-automotive {
  height: 11px;
  max-width: 220px;
}


/* Paliers de taille */
@media (max-width: 480px) {
  .hm-title { font-size: 32px !important; }
  .hm-desc  { font-size: 15px !important; }
  .hm-card  { margin: 12px 12px 0; }
  .hm-text  { padding: 24px 16px 0 !important; }
  .hm-ctas  { gap: 8px !important; }
  .hm-trusted { padding: 0 16px 28px !important; }
}
@media (max-width: 375px) {
  .hm-title { font-size: 28px !important; }
  .hm-cta-primary span,
  .hm-cta-secondary span { font-size: 13px !important; }
}
@media (max-width: 320px) {
  .hm-title { font-size: 24px !important; }
  .hm-card  { margin: 10px 10px 0; }
  .hm-text  { padding: 20px 12px 0 !important; }
  .hm-trusted { padding: 0 12px 24px !important; }
}

/* ── Correctifs ────────────────────────────────────────────
   Les deux CTA portaient flex:1 sans min-width et un texte en
   white-space:nowrap : un libelle long (« Découvrir les
   véhicules ») débordait du viewport au lieu de passer à la
   ligne. min-width:0 + retour à la ligne autorisé ci-dessus,
   padding resserré sur les petits écrans ci-dessous.
───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hm-cta-primary,
  .hm-cta-secondary { padding: 12px 10px; gap: 6px; }
  .hm-cta-icon { flex-shrink: 0; }
}
@media (max-width: 375px) {
  .hm-cta-primary,
  .hm-cta-secondary { padding: 11px 8px; }
}
