body {
  background:
    linear-gradient(
      to bottom,
      rgba(10, 5, 0, 1),
      black 0vh,
      black 120vh,
      transparent 150vh
    ),
    url("../assets/default-bg.webp");
  background-size: contain;
}

.hero-bg {
  background-image:
    linear-gradient(to bottom, rgba(12, 5, 0, 0.2), rgba(12, 5, 0, 0.65)),
    url("assets/stories-hero-bg.webp");
}

/* Liste principale */
.stories-main {
  max-width: 65%;
  margin: 4rem auto;
  padding: 0 2rem;
}

.stories-main img {
  max-width: 100%;
}

/* Groupe d'histoires */
.stories-group {
  margin-bottom: 6rem;
}

.group-header {
  text-align: center;
  margin-bottom: 4rem;
}

.group-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #f6e5b0;
  margin-bottom: 1rem;
  position: relative;
  font-variant: small-caps;
}

.group-divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #dba85a, transparent);
  margin: 0 auto;
}

/* Séparateur entre groupes */
.group-separator {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(219, 168, 90, 0.3) 50%,
    transparent 100%
  );
  margin: 8rem 0;
}

/* Carte histoire */
.story-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
  transition: transform 0.3s ease;

  /* Bordure fine et dorée*/
  border: 2px solid rgba(212, 167, 88, 0.8);
  border-radius: 12px;

  /* Effet verre dépoli + lueur */
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px);

  /* Ombres subtiles */
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(246, 229, 176, 0.2) inset;
}

.story-card:hover {
  transform: translateY(-4px);
}

.story-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.story-card:hover .story-image img {
  transform: scale(1.05);
}

.story-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-right: 3rem;
}

.story-title {
  font-size: 1.6rem;
  font-weight: 500;
  color: #f6e5b0;
  letter-spacing: 0.1em;
  margin: 1rem 0 0 0;
  font-variant: small-caps;
}

.story-summary {
  color: #d9c8a5;
  font-size: 1.25rem;
  margin: 0;
  text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {
  .stories-main {
    padding: 0 1rem;
    margin: 2rem auto;
  }

  .story-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .story-image {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: 0.1em;
  }
}

/* Description groupe */
.group-description {
  max-width: 50vw;
  margin: 3rem auto 4rem;
  padding: 2rem 3rem;
  background: rgba(26, 20, 15, 0.6);
  border: 1px solid rgba(219, 168, 90, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  text-align: center;
}

.group-description blockquote {
  font-size: 1.6em;
  margin: 0;
  font-style: italic;
}

.group-description p {
  font-size: 1.6rem;
  color: #e8d9b5;
  line-height: 1.2;
  margin: 0;
}

/* Espacement ajusté si description présente */
.stories-group:has(.group-description) .subgroup {
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .group-description {
    padding: 1.5rem;
    margin: 2rem auto;
  }

  .group-description p {
    font-size: 1rem;
  }
}

/* Sous-groupe */
.subgroup {
  margin-bottom: 4rem;
}

.subgroup-title {
  font-size: 2rem;
  font-weight: 500;
  color: #dba85a;
  letter-spacing: 0.15em;
  margin: 2.5rem 0 1.5rem 0;
  position: relative;
  padding-left: 1rem;
  font-variant: small-caps;
}

.subgroup-title::before {
  content: "";
  position: absolute;
  left: 0;
  color: #f6e5b0;
  font-weight: 300;
}

.subgroup-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(219, 168, 90, 0.6),
    transparent
  );
  margin: 2rem 0 2.5rem 1rem;
}

/* Ajustement spacing groupe avec sous-groupes */
.stories-group:has(.subgroup) {
  margin-bottom: 8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .subgroup-title {
    font-size: 1.4rem;
    padding-left: 1.5rem;
  }

  .subgroup-divider {
    margin-left: 1.5rem;
  }
}
