/* ==========================================================================
   HYPERMARKET — HOMEPAGE
   ========================================================================== */

/* Hero */
.hero {
  padding-block: var(--space-7) var(--space-6);
  text-align: center;
}
.hero__eyebrow {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.hero h1 {
  max-width: 18ch;
  margin-inline: auto;
}
.hero p.lead {
  max-width: 48ch;
  margin-inline: auto;
  margin-top: var(--space-2);
}
.hero__actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-4);
  flex-wrap: wrap;
}
.hero__image {
  margin-top: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--color-bg-alt);
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

.section-heading {
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}
.section-heading p.lead { margin-top: var(--space-1); }

/* Cartes produit */
.product-card__image {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-base) var(--ease); }
.card:hover .product-card__image img { transform: scale(1.04); }
.product-card__body { padding: var(--space-2); }
.product-card__title { font-size: var(--fs-base); font-weight: 600; margin-bottom: 4px; }
.product-card__desc { font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: var(--space-1); }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; }
.product-card__price { font-weight: 700; }

/* Cartes "problème → solution" */
.solution-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: box-shadow var(--duration-base) var(--ease);
}
.solution-card:hover { box-shadow: var(--shadow-lg); }
.solution-card h3 { margin-bottom: var(--space-1); }
.solution-card p { color: var(--color-text-muted); margin-bottom: var(--space-2); }
.solution-card .btn { padding: 0.6rem 1.25rem; font-size: var(--fs-xs); }

/* Shop by world */
.world-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-bg-alt);
  color: var(--color-text-inverse);
  display: flex;
  align-items: flex-end;
  padding: var(--space-3);
}
.world-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43,38,33,0.75), rgba(43,38,33,0.05) 60%);
  z-index: 0;
}
.world-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.world-card__body { position: relative; z-index: 1; }
.world-card__body h3 { color: var(--color-text-inverse); margin-bottom: 2px; }
.world-card__body p { color: rgba(250,247,242,0.85); font-size: var(--fs-sm); margin-bottom: 0; }

/* Why us */
.benefit { text-align: center; padding: var(--space-3); }
.benefit__icon {
  width: 48px; height: 48px;
  margin-inline: auto var(--space-2);
  background: var(--color-accent-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
  font-weight: 700;
}
.benefit h4 { font-size: var(--fs-base); margin-bottom: 4px; }
.benefit p { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0; }

/* Discover / guides */
.guide-card__image { aspect-ratio: 16/10; background: var(--color-bg-alt); overflow: hidden; }
.guide-card__image img { width: 100%; height: 100%; object-fit: cover; }
.guide-card__body { padding: var(--space-2); }
.guide-card__eyebrow { font-size: var(--fs-xs); text-transform: uppercase; color: var(--color-accent); font-weight: 600; }

/* FAQ */
.faq-list { max-width: var(--container-narrow); margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--color-border); padding-block: var(--space-2); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: var(--fs-xl); color: var(--color-accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: var(--space-1); color: var(--color-text-muted); }

@media (max-width: 560px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
}
