/* Accueil — fidèle à design/Accueil.dc.html (option 1A) */

.ph {
  background-image: repeating-linear-gradient(135deg, #eaeeeb 0 11px, #e1e7e3 11px 22px);
  position: relative;
  overflow: hidden;
}

.ph > span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 24px);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a978f;
  text-align: center;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hero split — même largeur max que le reste du site (1440px) */
.home-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.home-hero__copy {
  padding: 56px clamp(24px, 4vw, 48px);
  background: var(--color-brand-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.home-hero__badge {
  align-self: flex-start;
  background: rgba(95, 224, 142, 0.16);
  color: #8ff0b3;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}

.home-hero__copy h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 52px);
  line-height: 1.03;
  margin: 0;
  letter-spacing: -0.01em;
  color: #fff;
}

.home-hero__lead {
  font-size: 17px;
  line-height: 1.55;
  color: #cfe6d8;
  margin: 0;
  max-width: 460px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 14px;
  font-size: 13px;
  color: #a9d4bb;
  font-weight: 600;
}

.home-hero__media {
  min-height: 440px;
  overflow: hidden;
  background: var(--color-brand-dark);
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  display: block;
}

/* Populaires */
.home-popular {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
}

.home-popular__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-block: 22px;
}

.home-popular__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-brand-dark);
  letter-spacing: 0.04em;
}

.home-popular__chip {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #33413a;
}

.home-popular__chip:hover {
  color: var(--color-brand-link);
  border-color: var(--color-brand-100);
}

/* Sections */
.home-section {
  padding: 52px 0 20px;
}

.home-section--bestsellers {
  padding: 44px 0 56px;
}

.home-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--color-text);
  margin: 0 0 6px;
}

.home-section__lead {
  color: var(--color-text-muted);
  font-size: 15px;
  margin: 0 0 30px;
}

.home-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 16px;
}

.home-section__head .home-section__lead {
  margin: 0;
}

.home-section__more {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-brand-link);
  font-size: 14px;
  flex: none;
}

.home-univers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-tile {
  border: 1px solid #e8ece9;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  color: inherit;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.home-tile:hover {
  color: inherit;
  box-shadow: 0 14px 30px rgba(15, 58, 47, 0.12);
  transform: translateY(-2px);
}

.home-tile__media {
  height: 150px;
}

.home-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-tile__body {
  padding: 16px 18px;
}

.home-tile__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--color-text);
}

.home-tile__desc {
  color: var(--color-text-light);
  font-size: 13px;
  margin-top: 3px;
}

.home-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  border: 1px solid #e8ece9;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  color: inherit;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.product-card:hover {
  color: inherit;
  box-shadow: 0 14px 30px rgba(15, 58, 47, 0.12);
  transform: translateY(-2px);
}

.product-card__media {
  height: 190px;
  position: relative;
  background: #ffffff;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-brand);
  color: #fff;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 6px;
}

.product-card__badge--dark {
  background: var(--color-brand-dark);
}

.product-card__body {
  padding: 16px 16px 18px;
}

.product-card__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.3;
}

.product-card__subtitle {
  color: var(--color-text-light);
  font-size: 12.5px;
  margin: 5px 0 12px;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-brand-dark);
}

.product-card__price span {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-light);
}

/* Avis */
.home-reviews {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-light);
  padding: 52px 0;
}

.home-reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.home-reviews h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--color-text);
  margin: 0 0 8px;
}

.home-reviews__score {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-reviews__stars,
.review-card__stars {
  color: #f5a623;
  letter-spacing: 2px;
}

.home-reviews__stars {
  font-size: 20px;
}

.home-reviews__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--color-brand-dark);
}

.home-reviews__count {
  color: var(--color-text-light);
  font-size: 14px;
}

.home-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: #fff;
  border: 1px solid #e8ece9;
  border-radius: 14px;
  padding: 24px;
}

.review-card__stars {
  font-size: 15px;
  letter-spacing: 1px;
}

.review-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #33413a;
  margin: 12px 0 18px;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
}

.review-card__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
}

.review-card__meta {
  color: var(--color-text-light);
  font-size: 12.5px;
}

.home-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 34px;
  opacity: 0.7;
}

.home-logos .ph {
  width: 120px;
  height: 44px;
  border-radius: 8px;
}

@media (max-width: 1000px) {
  .home-univers,
  .home-reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero__copy {
    padding: 36px 20px 32px;
    gap: 18px;
  }

  .home-hero__media,
  .home-hero__media img {
    min-height: 220px;
  }

  .home-hero__actions .btn {
    flex: 1 1 160px;
    justify-content: center;
  }

  .home-popular__inner {
    padding-block: 16px;
    gap: 10px;
  }

  .home-univers,
  .home-products,
  .home-reviews__grid {
    grid-template-columns: 1fr;
  }

  .home-section,
  .home-reviews {
    padding-inline: 0;
  }

  .home-section h2,
  .home-reviews h2 {
    font-size: 26px;
  }
}
