/* ============================================================================
 * custom-home-hero.css — Hero sombre « Créer votre projet » sur la home (FR/EN).
 * Réplique de la section /projects/new de l'app, en HTML/CSS statiques.
 * Injecté en haut de <main> par custom-home-hero.js.
 * Tout est namespacé .csh-* pour ne pas entrer en conflit avec le bundle du site.
 * Couleurs : variables CSS du site + quelques teintes sombres dédiées.
 * ==========================================================================*/

.csh-hero {
  --csh-bg: var(--color-background-dark, #0f231f);
  --csh-card: #16241e;          /* carte surélevée */
  --csh-field: #0c1813;         /* champ « en puits », + sombre que la carte */
  --csh-field-border: #3a4f47;  /* bordure de champ bien visible */
  --csh-border: var(--color-border, #2c433e);
  --csh-text: var(--color-text-light, #fdfcfb);
  --csh-muted: #93a59c;
  --csh-lime: var(--color-primary, #dffea1);

  background: var(--csh-bg);
  color: var(--csh-text);
  /* Dégagement haut juste suffisant pour passer sous la nav fixe ; latéral/bas inchangés. */
  padding: calc(var(--spacing, 0.25rem) * 44) 20px clamp(40px, 6vw, 88px);
  /* Typo du site : corps en inter. */
  font-family: var(--font-inter), Inter, ui-sans-serif, system-ui, sans-serif;
}
/* ≥1024px : la nav est nettement plus courte → dégagement réduit. */
@media (width >= 1024px) {
  .csh-hero { padding-top: calc(var(--spacing, 0.25rem) * 28); }
}
/* Titres en aktiv-grotesk, comme le reste du site. */
.csh-hero .csh-h1,
.csh-hero .csh-h2,
.csh-hero .csh-card-head,
.csh-hero .csh-benefits strong,
.csh-hero .csh-gauge strong {
  font-family: var(--font-aktiv), var(--font-inter), sans-serif;
}

.csh-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 900px) {
  .csh-wrap { grid-template-columns: 1fr; }
  .csh-mktcol { order: -1; } /* marketing au-dessus du formulaire sur mobile */
}

/* ----- Colonne marketing (droite) ----- */
.csh-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(223, 254, 161, 0.10);
  border: 1px solid rgba(223, 254, 161, 0.22);
  color: var(--csh-lime); font-size: 14px; font-weight: 600;
}
.csh-pill svg { width: 16px; height: 16px; }

.csh-h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04; font-weight: 800; letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.csh-h1 .csh-lime { color: var(--csh-lime); }

.csh-lead {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55;
  color: #c4d2cb; max-width: 36em; margin: 0 0 28px;
}

.csh-benefits { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.csh-benefits li { display: flex; gap: 16px; align-items: flex-start; }
.csh-bicon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(223, 254, 161, 0.10);
  border: 1px solid rgba(223, 254, 161, 0.18);
  display: flex; align-items: center; justify-content: center; color: var(--csh-lime);
}
.csh-bicon svg { width: 20px; height: 20px; }
.csh-benefits strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.csh-benefits span { color: var(--csh-muted); font-size: 14.5px; line-height: 1.5; }

.csh-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 18px; }
.csh-gauge {
  display: flex; align-items: center; gap: 12px;
  background: rgba(22, 36, 30, 0.6); border: 1px solid var(--csh-border);
  border-radius: 16px; padding: 12px 16px;
}
.csh-gauge svg { width: 60px; height: 60px; }
.csh-gauge strong { display: block; font-size: 14px; font-weight: 700; }
.csh-gauge span { color: var(--csh-muted); font-size: 12.5px; }
.csh-gt {
  align-self: stretch;        /* même hauteur que la carte score à côté */
  height: auto; width: 132px;
  border-radius: 4px; background: #fff;
  padding: 8px 12px; object-fit: contain;
}

.csh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.csh-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(22, 36, 30, 0.6); border: 1px solid var(--csh-border);
  color: #e6ede9; font-size: 12.5px; font-weight: 500;
}
.csh-chip svg { width: 14px; height: 14px; color: var(--csh-lime); }

/* ----- Colonne formulaire (gauche) ----- */
.csh-h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; margin: 0 0 6px; }
.csh-sub { color: var(--csh-muted); font-size: 15px; line-height: 1.5; margin: 0 0 20px; max-width: 34em; }

.csh-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.csh-step { display: inline-flex; align-items: center; gap: 7px; color: var(--csh-muted); font-size: 13.5px; font-weight: 600; }
.csh-step i {
  width: 22px; height: 22px; border-radius: 999px; font-style: normal; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); color: var(--csh-muted); border: 1px solid var(--csh-border);
}
.csh-step--active { color: var(--csh-text); }
.csh-step--active i { background: var(--csh-lime); color: #0f231f; border-color: var(--csh-lime); }
.csh-steps .csh-sep { flex: 1 1 16px; height: 1px; background: var(--csh-border); min-width: 16px; }

.csh-card { background: var(--csh-card); border: 1px solid var(--csh-border); border-radius: 16px; padding: 22px; }
.csh-card-head { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.csh-badge-num {
  width: 24px; height: 24px; border-radius: 999px; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  background: var(--csh-lime); color: #0f231f;
}

.csh-form { display: flex; flex-direction: column; }
.csh-label { font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.csh-label:first-of-type { margin-top: 0; }
.csh-label em { color: #ff6b6b; font-style: normal; }
.csh-label--muted { color: var(--csh-muted); font-weight: 500; }

.csh-input {
  width: 100%; box-sizing: border-box;
  background: var(--csh-field); color: var(--csh-text);
  border: 1px solid var(--csh-field-border); border-radius: 10px;
  padding: 11px 13px; font-size: 15px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.csh-input::placeholder { color: #6f8179; }
.csh-input:focus {
  outline: none; border-color: var(--csh-lime);
  box-shadow: 0 0 0 3px rgba(223, 254, 161, 0.18);
}
.csh-select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2393a59c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.csh-select option { background: #16241e; color: var(--csh-text); }
.csh-textarea { resize: vertical; min-height: 84px; }

.csh-btn {
  margin-top: 20px; width: 100%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--csh-lime); color: #0f231f;
  border: none; border-radius: 10px; padding: 13px 18px;
  font-size: 15.5px; font-weight: 700; font-family: inherit;
  transition: filter .15s, transform .05s;
}
.csh-btn:hover { filter: brightness(1.05); }
.csh-btn:active { transform: translateY(1px); }
.csh-foot { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--csh-muted); font-size: 12.5px; margin: 14px 0 0; }
.csh-foot svg { width: 14px; height: 14px; color: var(--csh-lime); }

/* Anti-flash : caché tant que le JS n'a pas signalé l'injection. */
.csh-hero[hidden] { display: none !important; }
