/* Accueil — hero, produits les plus demandés, « Notre approche » (index.html) */

.section {
  padding: 56px 0;
}

.section__title {
  margin: 0 0 36px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
}

/* --- Produits les plus demandés --- */
.home-bestsellers-section .section__title {
  margin-bottom: 16px;
}

.home-bestsellers-section #home-bestsellers-status {
  margin: 0 0 20px;
  min-height: 0;
}

.home-bestsellers-section #home-bestsellers-status:empty {
  display: none;
  margin: 0;
}

.home-bestsellers__cta {
  margin: 28px 0 0;
  text-align: center;
}

/* --- Hero --- */
.hero {
  padding: 60px 0 0px;
  background-color:transparent;
  color: var(--text);
}

.hero__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 48px;
  align-items: center;
}

/* Même partage qu’en grid 1fr 1fr : deux colonnes égales */
.hero__grid > * {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 960px) {
  .hero__grid {
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 40px;
  }

  .hero__grid > * {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
  }
}

.hero__eyebrow {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  margin: 0 0 20px;
  font-family: "Montserrat", "Inter", system-ui, -apple-system, sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--black);
}

.hero__lead {
  margin: 0 0 32px;
  max-width: 42ch;
  font-size: 1rem;
  color: var(--muted);
}

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

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  /* background: var(--surface); */
  overflow: hidden;
  /* border: 1px solid rgba(0, 0, 0, 0.08); */
}

.hero-visual .shop-showcase-pattern {
  z-index: 0;
  opacity: 1;
  border-radius: inherit;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, transparent 42%, rgba(0, 0, 0, 0.04) 100%),
    linear-gradient(
      55deg,
      hsla(0, 0%, 100%, 0) 20%,
      hsla(0, 0%, 0%, 0.02) 35%,
      hsla(0, 0%, 0%, 0.008) 50%,
      hsla(0, 0%, 0%, 0.02) 70%,
      hsla(0, 0%, 100%, 0) 80%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 0) calc(99% - 1px),
      rgba(0, 0, 0, 0.08) calc(99% - 1px),
      rgba(0, 0, 0, 0.08)
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 0) calc(99% - 1px),
      rgba(0, 0, 0, 0.08) calc(99% - 1px),
      rgba(0, 0, 0, 0.08)
    );
  background-size: 100%, 100%, 16px 16px, 16px 16px;
}

.hero-visual__carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Croquis : couche fixe */
.hero-visual__img--sketch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  box-sizing: border-box;
  display: block;
  z-index: 1;
}

/* Pièce finie : même cadrage ; le conteneur se « remplit » du bas vers le haut (effet couche d’impression 3D) */
.hero-visual__print-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(100% 0 0 0);
  opacity: 1;
  animation: hero-visual-print-rise 9s linear infinite;
  will-change: clip-path, opacity;
}

.hero-visual__img--print {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  box-sizing: border-box;
  display: block;
}

/* Ligne de « fusion » : suit le bord supérieur de la zone révélée pendant le remplissage */
.hero-visual__fusion-bar {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  z-index: 4;
  pointer-events: none;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(160, 210, 255, 0.45) 18%,
    rgba(0, 120, 230, 0.92) 42%,
    rgba(220, 245, 255, 1) 50%,
    rgba(0, 110, 210, 0.92) 58%,
    rgba(160, 210, 255, 0.45) 82%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  top: 100%;
  transform: translateY(-50%);
  animation: hero-fusion-bar 9s linear infinite;
  will-change: top, opacity;
}

@keyframes hero-fusion-bar {
  0% {
    top: 100%;
    opacity: 0;
  }
  /* Fondu d’apparition (~0,45 s) — top aligné sur le remplissage */
  2.5% {
    top: 95.5%;
    opacity: 0.22;
  }
  5.5% {
    top: 90.1%;
    opacity: 1;
  }
  /* Plateau visible pendant le reste du remplissage */
  48% {
    top: 13.6%;
    opacity: 1;
  }
  /* Fondu de disparition (~0,55 s) avant la fin du remplissage */
  52.5% {
    top: 5.5%;
    opacity: 0.55;
  }
  55.5556% {
    top: 0%;
    opacity: 0;
  }
  55.5557%,
  100% {
    top: 100%;
    opacity: 0;
  }
}

/*
  Boucle 9 s (0 % = 100 %, croquis seul) :
  5 s remplissage lent → 2 s pause rempli → 1 s effacement en fondu d’opacité → 1 s pause vide.
  Pourcentages = durée / 9 s (linear pour respecter les durées au pixel près).
*/
@keyframes hero-visual-print-rise {
  0% {
    clip-path: inset(100% 0 0 0);
    opacity: 1;
  }
  /* Fin du remplissage lent (5 s) */
  55.5556% {
    clip-path: inset(0% 0 0 0);
    opacity: 1;
  }
  /* Fin de la pause rempli (2 s) */
  77.7778% {
    clip-path: inset(0% 0 0 0);
    opacity: 1;
  }
  /* Fin de l’effacement en fondu (1 s), calque plein puis invisible */
  88.8889% {
    clip-path: inset(0% 0 0 0);
    opacity: 0;
  }
  /* Reset clip tout en gardant l’opacité à 0 : évite un flash 0 → 1 au même instant que le clip */
  88.889%,
  99.4% {
    clip-path: inset(100% 0 0 0);
    opacity: 0;
  }
  /* Opacité rétablie juste avant le remplissage suivant (calque encore entièrement masqué) */
  99.41%,
  100% {
    clip-path: inset(100% 0 0 0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual__print-layer {
    animation: none;
    clip-path: inset(100% 0 0 0);
    opacity: 1;
  }

  .hero-visual__fusion-bar {
    animation: none;
    opacity: 0;
  }
}

.about {
  padding: 56px 0 72px;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
}

.about__title {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
}

.about__text p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.975rem;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about-visual {
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: contrast(0.8) sepia(0.25);
}
