/* ==========================================================================
   HOB Collection Cards — Design éditorial premium
   ========================================================================== */

:root {
  --hob-cream:       #F5F0E8;
  --hob-sand:        #E8DCC8;
  --hob-terracotta:  #C4622D;
  --hob-burgundy:    #7A2530;
  --hob-charcoal:    #2C2C2C;
  --hob-taupe:       #7A6E5F;
  --hob-white:       #FFFFFF;
  --hob-font-heading:'Cormorant Garamond', Georgia, serif;
  --hob-font-body:   'Jost', 'Helvetica Neue', sans-serif;
}

/* ==========================================================================
   Section header
   ========================================================================== */

.hob-collections {
  padding: 80px 24px 60px;
  background: var(--hob-cream);
}

.hob-collections__header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 56px;
}

.hob-collections__label {
  font-family: var(--hob-font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--hob-terracotta);
  margin: 0 0 14px;
}

.hob-collections__title {
  font-family: var(--hob-font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--hob-charcoal);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

.hob-collections__title em {
  font-style: italic;
  color: var(--hob-terracotta);
}

.hob-collections__subtitle {
  font-family: var(--hob-font-body);
  font-size: 0.9rem;
  color: var(--hob-taupe);
  line-height: 1.75;
  margin: 0;
}

/* ==========================================================================
   Grille — Layout éditorial asymétrique
   ========================================================================== */

.hob-collections__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
}

/* Card gauche légèrement plus haute */
.hob-card--left {
  margin-top: 0;
}
.hob-card--right {
  margin-top: 40px; /* décalage éditorial */
}

@media (max-width: 768px) {
  .hob-collections__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hob-card--right {
    margin-top: 0;
  }
}

/* ==========================================================================
   Card
   ========================================================================== */

.hob-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  background: var(--hob-charcoal);
  cursor: pointer;
  /* Ratio portrait — idéal pour les tapis */
  aspect-ratio: 3 / 4;
}

/* Image */
.hob-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hob-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.hob-card:hover .hob-card__img {
  transform: scale(1.10);
}

/* Overlay dégradé */
.hob-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 22, 18, 0.92) 0%,
    rgba(28, 22, 18, 0.45) 45%,
    rgba(28, 22, 18, 0.10) 100%
  );
  transition: background 0.5s ease;
}

.hob-card:hover .hob-card__overlay {
  background: linear-gradient(
    to top,
    rgba(28, 22, 18, 0.96) 0%,
    rgba(28, 22, 18, 0.55) 50%,
    rgba(28, 22, 18, 0.15) 100%
  );
}

/* ==========================================================================
   Contenu de la card
   ========================================================================== */

.hob-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Top — label + count */
.hob-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hob-card__label {
  font-family: var(--hob-font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hob-terracotta);
}

.hob-card__count {
  font-family: var(--hob-font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 3px 10px;
}

/* Titre */
.hob-card__title {
  font-family: var(--hob-font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: var(--hob-white);
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}

/* Description — cachée par défaut, révélée au hover */
.hob-card__desc {
  font-family: var(--hob-font-body);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 320px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin 0.35s ease;
}

.hob-card:hover .hob-card__desc,
.hob-card:focus .hob-card__desc {
  max-height: 80px;
  opacity: 1;
}

/* CTA */
.hob-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hob-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hob-white);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.3s ease, gap 0.3s ease;
}

.hob-card:hover .hob-card__cta {
  border-color: var(--hob-terracotta);
  gap: 16px;
}

.hob-card__cta-text {
  transition: color 0.3s ease;
}
.hob-card:hover .hob-card__cta-text {
  color: var(--hob-terracotta);
}

.hob-card__cta-arrow {
  display: flex;
  align-items: center;
  color: var(--hob-terracotta);
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.hob-card:hover .hob-card__cta-arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   Numéro décoratif
   ========================================================================== */

.hob-card__number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--hob-font-heading);
  font-size: 5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.4s ease;
}

.hob-card:hover .hob-card__number {
  color: rgba(196,98,45,0.12);
}

/* ==========================================================================
   Ligne de séparation décorative entre les deux cards
   ========================================================================== */

.hob-collections__grid::after {
  content: none;
}

/* ==========================================================================
   Footer — lien "View All"
   ========================================================================== */

.hob-collections__footer {
  text-align: center;
  margin-top: 48px;
}

.hob-collections__view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hob-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hob-charcoal);
  text-decoration: none;
  padding: 14px 32px;
  border: 1.5px solid var(--hob-charcoal);
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.hob-collections__view-all:hover {
  background: var(--hob-charcoal);
  color: var(--hob-white);
  gap: 16px;
}

.hob-collections__view-all svg {
  transition: transform 0.25s ease;
}

.hob-collections__view-all:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Animations d'entrée (Intersection Observer)
   ========================================================================== */

.hob-card {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hob-card.hob-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.hob-card--right {
  transition-delay: 0.15s;
}

/* Respecte les préférences système */
@media (prefers-reduced-motion: reduce) {
  .hob-card,
  .hob-card__img,
  .hob-card__overlay,
  .hob-card__desc,
  .hob-card__cta,
  .hob-card__cta-arrow,
  .hob-card__number {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
