/**
 * @file
 * Hero vitrine homepage — split 50/50 (image + float card / texte + CTAs).
 * Bloc : Drupal\dolcevitadog_hero\Plugin\Block\HeroBlock
 * Template : modules/custom/dolcevitadog_hero/templates/dolcevitadog-hero.html.twig
 */

.dvd-hero {
  background: var(--dvd-paper-2);
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   Visual (image + float card)
   ============================================================ */
.dvd-hero__visual {
  background: var(--dvd-paper);
  border-radius: 12px;
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--dvd-border);
}
.dvd-hero__visual-link,
.dvd-hero__visual > img {
  display: block;
  width: 100%;
  height: 100%;
}
.dvd-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.dvd-hero__visual:hover img {
  transform: scale(1.03);
}

/* Float card (produit uniquement) */
.dvd-hero__float {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: var(--dvd-paper);
  border: 1px solid var(--dvd-border);
  border-radius: 8px;
  padding: 0.875rem 1.125rem;
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: var(--dvd-ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.dvd-hero__float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.24);
  color: var(--dvd-ink);
}
.dvd-hero__float-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}
.dvd-hero__float-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--dvd-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dvd-sage-d);
  background: var(--dvd-paper-2);
  border: 1px solid var(--dvd-sage);
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  margin-bottom: 0.25rem;
}
.dvd-hero__float-name {
  font-family: var(--dvd-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dvd-hero__float-meta {
  font-family: var(--dvd-sans);
  font-size: 0.75rem;
  color: var(--dvd-muted);
}
.dvd-hero__float-price {
  flex-shrink: 0;
  text-align: right;
}
.dvd-hero__price {
  font-family: var(--dvd-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dvd-ink);
  letter-spacing: -0.01em;
}

/* ============================================================
   Texte éditorial
   ============================================================ */
.dvd-hero__eyebrow {
  display: inline-block;
  font-family: var(--dvd-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dvd-amber-d);
  margin-bottom: 1rem;
}
.dvd-hero__title {
  font-family: var(--dvd-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dvd-ink);
  margin: 0 0 1.25rem 0;
}
.dvd-hero__italic {
  font-style: italic;
  color: var(--dvd-amber-d);
  font-weight: 300;
}
.dvd-hero__lead {
  font-family: var(--dvd-sans);
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--dvd-muted);
  max-width: 480px;
  margin: 0 0 1.75rem 0;
}
.dvd-hero__lead > p {
  margin: 0 0 0.75rem 0;
}
.dvd-hero__lead > p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   CTAs
   ============================================================ */
.dvd-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.dvd-hero__cta {
  font-family: var(--dvd-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.dvd-hero__cta--primary.btn-dark {
  background: var(--dvd-ink);
  border-color: var(--dvd-ink);
  color: var(--dvd-paper);
}
.dvd-hero__cta--primary.btn-dark:hover {
  background: var(--dvd-sage-d);
  border-color: var(--dvd-sage-d);
  transform: translateY(-1px);
}
.dvd-hero__cta--secondary.btn-outline-dark {
  background: transparent;
  border-color: var(--dvd-ink);
  color: var(--dvd-ink);
}
.dvd-hero__cta--secondary.btn-outline-dark:hover {
  background: var(--dvd-ink);
  color: var(--dvd-paper);
  transform: translateY(-1px);
}

/* ============================================================
   Trust signals (3 badges sous les CTAs)
   ============================================================ */
.dvd-hero__trust {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}
.dvd-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--dvd-sans);
  font-size: 0.8125rem;
  color: var(--dvd-muted);
}
.dvd-hero__trust-icon {
  font-size: 1.125rem;
  color: var(--dvd-sage-d);
  line-height: 1;
}
.dvd-hero__trust-label {
  font-weight: 500;
  color: var(--dvd-ink);
  letter-spacing: 0.01em;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 991.98px) {
  .dvd-hero {
    padding: 2.5rem 0;
  }
  .dvd-hero__visual {
    aspect-ratio: 1/1;
    margin-bottom: 2rem;
  }
  .dvd-hero__title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }
}
@media (max-width: 575.98px) {
  .dvd-hero__float {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.75rem 0.875rem;
  }
  .dvd-hero__float-price {
    text-align: left;
  }
  .dvd-hero__ctas .dvd-hero__cta {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.75rem 1.25rem;
  }
}
