/* ============================================================
   PS Pattern — Hero CTA pré-footer "Un piano à confier ?" (Figma 16113:6013)
   Variante hero centrée : photo + overlay, eyebrow, gros titre, sous-titre,
   2 CTA (Nous écrire rouge + Appeler bordé blanc). Tokens : tokens.css.
   Boutons : ps-buttons.css.
   ============================================================ */

.ps-hero-cta {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  display: flex;
  background-color: var(--ps-color-black);
  color: var(--ps-color-white);
  overflow: hidden;
}

.ps-hero-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ps-hero-cta__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ps-hero-cta__overlay {
  position: absolute;
  inset: 0;
  background: var(--ps-gradient-hero-overlay);
}

.ps-hero-cta__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1760px;
  margin-inline: auto;
  padding-block: var(--ps-spacing-100);
  padding-inline: clamp(2rem, 3.6vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 42px;
  text-align: center;
}

.ps-hero-cta__lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ps-spacing-32);
}

.ps-hero-cta__eyebrow {
  margin: 0;
  font-weight: var(--ps-font-weight-bold);
  font-size: var(--ps-font-size-14);
  letter-spacing: var(--ps-letter-spacing-eyebrow);
  text-transform: uppercase;
  color: var(--ps-color-on-dark-62);
}
.ps-hero-cta__title {
  margin: 0;
  max-width: 1400px;
  font-weight: var(--ps-font-weight-light);
  font-size: clamp(2.75rem, 7vw, 100px);
  line-height: 1.0;
  letter-spacing: -0.05em;
  color: var(--ps-color-white);
}
.ps-hero-cta__subtitle {
  margin: 0;
  max-width: 1100px;
  font-weight: var(--ps-font-weight-regular);
  font-size: var(--ps-font-size-20);
  line-height: 1.5;
  letter-spacing: var(--ps-letter-spacing-body);
  color: var(--ps-color-on-dark-78);
}

.ps-hero-cta__actions {
  display: flex;
  gap: var(--ps-spacing-24);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* Autorise le retour à la ligne des labels de CTAs dans le pré-footer
   (utile quand les grids --grid2 / --grid3 / --grid4 contraignent la largeur des boutons). */
.ps-hero-cta__actions .ps-btn {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.ps-hero-cta__actions .ps-btn__label {
  text-align: center;
}

/* Modifier : grille 2×2 (utilisée sur Location & Vente avec 4 CTAs) */
.ps-hero-cta__actions--grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ps-spacing-16);
  max-width: 720px;
  width: 100%;
}
.ps-hero-cta__actions--grid2 > .ps-btn {
  width: 100%;
  justify-content: center;
}

/* Modifier : grille 3 colonnes (utilisée sur Vente occasion avec 3 CTAs) */
.ps-hero-cta__actions--grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ps-spacing-16);
  max-width: 960px;
  width: 100%;
}
.ps-hero-cta__actions--grid3 > .ps-btn {
  width: 100%;
  justify-content: center;
}

/* Modifier : grille 4 colonnes (utilisée sur Accords avec 4 CTAs) */
.ps-hero-cta__actions--grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ps-spacing-16);
  max-width: 1280px;
  width: 100%;
}
.ps-hero-cta__actions--grid4 > .ps-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1200px) {
  .ps-hero-cta__actions--grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .ps-hero-cta__actions--grid3 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ps-hero-cta__actions { flex-direction: column; width: 100%; }
  .ps-hero-cta__actions .ps-btn { width: 100%; justify-content: center; }
  .ps-hero-cta__actions--grid2 { grid-template-columns: 1fr; }
  .ps-hero-cta__actions--grid4 { grid-template-columns: 1fr; }
}
