/* ==========================================================================
   Pages univers — maquettes Destockshop30 v7
   ========================================================================== */

.ds30-universe {
  background: #f5f7fa;
  padding: 1.5rem 0 0;
}

.ds30-universe__layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .ds30-universe__layout {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 2rem;
  }
}

.ds30-universe-sidebar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ds30-universe-sidebar__title {
  margin: 0;
  padding: 0.85rem 1rem;
  background: #0f172a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ds30-universe-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.ds30-universe-sidebar__link {
  display: block;
  padding: 0.65rem 1rem;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.ds30-universe-sidebar__link:hover,
.ds30-universe-sidebar__link.is-active {
  background: #eff6ff;
  color: var(--ds30-universe-accent, #006cff);
  border-left-color: var(--ds30-universe-accent, #006cff);
}

.ds30-universe-sidebar__help {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.8125rem;
  color: #64748b;
}

.ds30-universe-sidebar__help strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.ds30-universe-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.ds30-universe-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.ds30-universe-breadcrumb a:hover {
  color: var(--ds30-universe-accent, #006cff);
}

.ds30-universe-hero {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

@media (min-width: 768px) {
  .ds30-universe-hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.ds30-universe-hero--compact {
  grid-template-columns: 1fr;
}

.ds30-universe-hero__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #64748b;
}

.ds30-universe-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.05;
  color: #0f172a;
}

.ds30-universe-hero__tagline {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ds30-universe-accent, #006cff);
}

.ds30-universe-hero__intro {
  margin: 0;
  color: #475569;
  line-height: 1.55;
  font-size: 0.9375rem;
}

.ds30-universe-section-title {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  color: #0f172a;
}

.ds30-universe-cards {
  margin-bottom: 2rem;
}

.ds30-universe-cards__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ds30-universe-card {
  display: block;
  text-align: center;
  padding: 0;
  background: #fff;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ds30-universe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.ds30-universe-card__visual {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  background: #f8fafc;
  overflow: hidden;
}

.ds30-universe-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ds30-universe-card__title {
  display: block;
  padding: 0.85rem 0.65rem 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  color: #0f172a;
}

.ds30-universe-card__sub {
  display: block;
  padding: 0 0.65rem 0.75rem;
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.35;
}

.ds30-universe-card__cta {
  display: none;
}

.ds30-universe-popular {
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.ds30-universe-popular__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
}

.ds30-universe-faq {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.ds30-universe-faq__item {
  border-bottom: 1px solid #eef2f7;
  padding: 0.65rem 0;
}

.ds30-universe-faq__item:last-child {
  border-bottom: none;
}

.ds30-universe-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
}

.ds30-universe-faq__item p {
  margin: 0.55rem 0 0;
  color: #64748b;
  line-height: 1.55;
  font-size: 0.875rem;
}

.ds30-universe-trust {
  margin-top: 0;
  padding: 2rem 0;
  background: #1a1a1a;
  border-top: 0;
}

.ds30-universe-trust__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

.ds30-universe-trust__item strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.ds30-universe-trust__item span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Thèmes par univers */
.ds30-universe--enfant .ds30-universe-sidebar__title {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.ds30-universe--enfant .ds30-universe-hero__tagline {
  color: #db2777;
}

.ds30-universe--outillage .ds30-universe-sidebar__title {
  background: linear-gradient(135deg, #ea580c, #c2410c);
}

.ds30-universe--entretien .ds30-universe-sidebar__title {
  background: linear-gradient(135deg, #059669, #047857);
}

.ds30-universe--moto .ds30-universe-sidebar__title {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

.ds30-universe--pneus .ds30-universe-sidebar__title {
  background: linear-gradient(135deg, #111827, #374151);
}

.ds30-universe--accessoires .ds30-universe-hero__title,
.ds30-universe--pieces .ds30-universe-hero__title {
  letter-spacing: 0.02em;
}

.ds30-universe-promos__link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ds30-universe-accent, #006cff);
  text-decoration: none;
}

.ds30-universe-popular__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ds30-universe-tires {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.ds30-universe-tires__intro {
  margin: 0.35rem 0 1rem;
  color: #64748b;
  font-size: 0.875rem;
}

.ds30-universe-section-head {
  margin-bottom: 1.25rem;
}

.ds30-universe-section-head__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #0f172a;
}

.ds30-universe-section-head__intro {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.ds30-universe--section {
  padding-bottom: 0;
}

.ds30-universe--section .ds30-products-grid {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .ds30-universe-cards__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ds30-universe-trust__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .ds30-universe-cards__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Famille pièces (Freinage, etc.) — maquette landing
   ========================================================================== */

.ds30-universe--family .ds30-universe-sidebar__link.is-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--ds30-universe-accent, #006cff);
  color: #fff;
  border-left-color: transparent;
}

.ds30-universe--family .ds30-universe-sidebar__link.is-active:hover {
  background: #0056d6;
  color: #fff;
}

.ds30-universe-sidebar__toggle {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.ds30-universe-sidebar__children {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0.5rem;
  background: #f8fafc;
}

.ds30-universe-sidebar__child {
  display: block;
  padding: 0.45rem 1rem 0.45rem 1.5rem;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

.ds30-universe-sidebar__child:hover {
  color: var(--ds30-universe-accent, #006cff);
  background: #eff6ff;
}

.ds30-universe-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center right;
}

.ds30-family-subs {
  margin-bottom: 1.75rem;
}

.ds30-family-subs__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ds30-family-subcard {
  margin: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ds30-family-subcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.ds30-family-subcard__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 1rem 0.85rem 1.1rem;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.ds30-family-subcard__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
}

.ds30-family-subcard__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.ds30-family-subcard__title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: #0f172a;
}

.ds30-family-subcard__refs {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ds30-universe-accent, #006cff);
}

.ds30-family-subcard__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.55rem 1rem;
  min-width: 8.5rem;
  background: var(--ds30-universe-accent, #006cff);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.ds30-family-subcard:hover .ds30-family-subcard__cta {
  background: #0056d6;
}

.ds30-family-popular__track {
  display: grid;
  gap: 1rem;
  grid-auto-flow: column;
  grid-auto-columns: minmax(11.5rem, 1fr);
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ds30-family-popular__track > .ds30-universe-popular__item {
  scroll-snap-align: start;
}

.ds30-family-all {
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.ds30-family-all .ds30-universe-section-title {
  text-align: left;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .ds30-family-subs__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ds30-universe--family .ds30-universe-trust__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1024px) {
  .ds30-family-subs__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
