/* ============================================
   HOME PAGE CSS — Matériels BTP
   ============================================ */

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-home.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero.loaded .hero__bg {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(31,31,31,0.92) 0%,
    rgba(31,31,31,0.75) 40%,
    rgba(31,31,31,0.3) 100%
  );
}

.hero__overlay-accent {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(242,183,5,0.08) 0%, transparent 60%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.2s forwards;
}

.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--yellow);
}

.hero__title {
  font-family: var(--font-primary);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.4s forwards;
}

.hero__title .accent {
  color: var(--yellow);
  display: block;
}

.hero__title .line {
  display: block;
}

.hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.6s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.8s forwards;
}

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  animation: fadeInUp 0.6s ease 1.0s forwards;
}

.hero__stat-num {
  font-family: var(--font-primary);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* Hero right panel */
.hero__panel {
  opacity: 0;
  animation: fadeInLeft 0.8s ease 0.5s forwards;
}

.hero__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__feature {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.hero__feature:hover {
  background: rgba(242,183,5,0.1);
  border-color: rgba(242,183,5,0.3);
  transform: translateX(-8px);
}

.hero__feature-icon {
  width: 52px;
  height: 52px;
  background: var(--yellow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--black);
  flex-shrink: 0;
}

.hero__feature-text { flex: 1; }
.hero__feature-title {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.hero__feature-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 3;
  animation: bounce 2s ease infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Marquee bar ---- */
.marquee-bar {
  background: var(--yellow);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  padding: 0 24px;
}

.marquee-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Products Teaser ---- */
.products-teaser {
  padding: 100px 0;
  background: var(--white);
}

.products-teaser__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}

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

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--yellow);
}

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--graphite);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.07);
}

.product-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}

.product-card__body {
  padding: 20px;
}

.product-card__name {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
  line-height: 1.2;
}

.product-card__variant {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--metal);
  margin-bottom: 12px;
}

.product-card__price {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange);
}

.product-card__price-note {
  font-size: 0.7rem;
  color: var(--metal);
  font-family: var(--font-mono);
}

.product-card__footer {
  padding: 0 20px 16px;
  display: flex;
  gap: 10px;
}

.product-card__add {
  flex: 1;
  padding: 10px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-card__add:hover {
  background: var(--yellow);
  color: var(--black);
}

.product-card__detail {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--concrete);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--metal);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.product-card__detail:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ---- Why Us ---- */
.why-us {
  padding: 100px 0;
  background: var(--graphite);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: 'M.BTP';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-primary);
  font-size: 18rem;
  font-weight: 700;
  color: rgba(255,255,255,0.02);
  pointer-events: none;
  white-space: nowrap;
}

.why-us__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-us__image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.why-us__image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.why-us__image-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--yellow);
  border-radius: 10px;
  padding: 20px 24px;
  text-align: center;
}

.why-us__image-badge-num {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}

.why-us__image-badge-text {
  font-size: 0.75rem;
  color: var(--black);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.why-us__content .section-tag { color: var(--yellow); }
.why-us__content .section-title { color: var(--white); }
.why-us__content .section-subtitle { color: var(--steel); }

.why-us__list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-us__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.why-us__item-icon {
  width: 48px;
  height: 48px;
  background: rgba(242,183,5,0.12);
  border: 1px solid rgba(242,183,5,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--yellow);
  flex-shrink: 0;
}

.why-us__item-title {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.why-us__item-desc {
  font-size: 0.875rem;
  color: var(--steel);
  line-height: 1.6;
}

/* ---- Stats ---- */
.stats-section {
  background: var(--yellow);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(31,31,31,0.65);
  margin-top: 8px;
  font-weight: 500;
}

/* ---- Testimonials ---- */
.testimonials {
  padding: 100px 0;
  background: var(--white);
}

.testimonials__header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonials__header .section-subtitle {
  max-width: 500px;
  margin: 0 auto;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-card__quote {
  font-size: 3rem;
  line-height: 0.8;
  color: var(--yellow);
  font-family: Georgia, serif;
  margin-bottom: 16px;
}

.testimonial-card__text {
  font-size: 0.9rem;
  color: var(--metal);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--concrete);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--black);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--black);
  font-size: 0.95rem;
}

.testimonial-card__location {
  font-size: 0.75rem;
  color: var(--metal);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.testimonial-card__stars {
  margin-left: auto;
  color: var(--yellow);
  font-size: 0.8rem;
  letter-spacing: 2px;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--black);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.cta-banner__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--yellow);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cta-banner__title {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
}

.cta-banner__title em {
  font-style: normal;
  color: var(--yellow);
}

.cta-banner__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .hero__panel {
    display: none;
  }

  .why-us__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why-us__image {
    max-height: 400px;
  }

  .why-us__image img {
    aspect-ratio: 16/9;
  }

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

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    gap: 24px;
  }

  .hero__stat-num {
    font-size: 1.8rem;
  }

  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner__actions {
    justify-content: center;
  }
}

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
