/* Hero V3 — accueil uniquement (lié depuis index.html) */

.hero.hero--v3 {
  display: block;
  overflow: visible;
  padding-bottom: 28px;
  color: #fff;
  isolation: isolate;
}

.hero.hero--v3 .hero-bg {
  z-index: 0;
}

/* Overlay léger type mockup — pas de bande sombre en bas */
.hero.hero--v3 .hero-bg::before {
  filter: brightness(1.08) saturate(1.2) contrast(1.02);
}

.hero.hero--v3 .hero-bg::after {
  background: linear-gradient(
    155deg,
    rgba(26, 107, 156, 0.28) 0%,
    rgba(18, 55, 85, 0.36) 50%,
    rgba(12, 45, 70, 0.42) 100%
  ) !important;
}

.hero-v3-glow {
  position: absolute;
  right: -5%;
  top: -10%;
  width: min(48vw, 460px);
  height: min(48vw, 460px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 120, 0.22), transparent 68%);
  z-index: 0;
  pointer-events: none;
}

.hero-v3-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #f4a261, #e85d04 40%, var(--blue) 75%, transparent);
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
}

.hero-v3-inner {
  position: relative;
  z-index: 2;
  padding-top: 22px;
  padding-bottom: 8px;
}

.hero-v3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 280px);
  grid-template-rows: auto auto;
  column-gap: 36px;
  row-gap: 12px;
  align-items: end;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.hero-v3-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  text-align: left;
  color: #fff;
}

.hero-v3-brand {
  margin-bottom: 14px;
}

.hero-v3-brand img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.hero.hero--v3 .hero-badge {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(232, 93, 4, 0.6), rgba(26, 107, 156, 0.45));
  border: 1px solid rgba(255, 200, 140, 0.45);
}

.hero.hero--v3 .hero-punch {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: left;
}

.hero.hero--v3 .hero-punch-line {
  display: block;
}

.hero.hero--v3 .hero-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  justify-content: flex-start;
}

.hero.hero--v3 .hero-stat-chip {
  font-size: 0.86rem;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero.hero--v3 .hero-lead-intro {
  margin: 0 0 16px;
  font-size: 1.12rem;
  font-weight: 600;
  max-width: 28rem;
  opacity: 0.96;
  text-align: left;
}

.hero.hero--v3 .hero-offer-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}

.hero-offer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero.hero--v3 .hero-offer-pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-decoration: none;
  animation: heroV3Float 5.5s ease-in-out infinite;
}

.hero.hero--v3 .hero-offer-pill--salt,
.hero.hero--v3 .hero-offer-pill--highlight {
  background: linear-gradient(90deg, rgba(232, 93, 4, 0.6), rgba(26, 107, 156, 0.45));
  border: 1px solid rgba(255, 200, 140, 0.45);
}

.hero-offer-row:nth-child(1) .hero-offer-pill:nth-child(2) { animation-delay: -1.2s; }
.hero-offer-row:nth-child(2) .hero-offer-pill:nth-child(1) { animation-delay: -2.4s; }
.hero-offer-row:nth-child(2) .hero-offer-pill:nth-child(2) { animation-delay: -3.2s; }

@keyframes heroV3Float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.hero.hero--v3 .hero-panel-water {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  width: 100%;
  max-width: 280px;
  justify-self: end;
  padding: 14px;
  animation: heroV3Rise 0.65s ease both;
}

.hero.hero--v3 .hero-cta {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin: 0;
}

/* CTA style mockup : blanc / orange */
.hero.hero--v3 .hero-cta .btn-primary {
  background: linear-gradient(135deg, #fff 0%, #fff7ed 100%) !important;
  color: #9a3412 !important;
  border: 1px solid rgba(232, 93, 4, 0.35) !important;
  box-shadow: 0 6px 18px rgba(232, 93, 4, 0.22) !important;
}

.hero.hero--v3 .hero-cta .btn-primary:hover {
  color: #9a3412 !important;
  box-shadow: 0 10px 24px rgba(232, 93, 4, 0.28) !important;
}

.hero.hero--v3 .hero-cta .btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
  color: #fff !important;
  background: transparent !important;
}

.hero.hero--v3 .hero-cta .btn:hover {
  transform: translateY(-3px) scale(1.03);
}

/* Pastille Chimie compacte */
.hero.hero--v3 .hero-panel-chem {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  display: block;
  text-decoration: none;
  color: #fff;
  width: 100%;
  max-width: 280px;
  justify-self: end;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, #0c3d5c 0%, #1a6b9c 45%, #2a9d8f 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: heroV3Rise 0.7s 0.12s ease both;
  text-align: left;
}

.hero.hero--v3 .hero-panel-chem:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  color: #fff;
}

.hero.hero--v3 .hero-chem-inner {
  gap: 8px;
  align-items: flex-end;
}

.hero.hero--v3 .hero-chem-tag {
  margin-bottom: 4px;
  padding: 2px 7px;
  font-size: 0.58rem;
}

.hero.hero--v3 .hero-chem-title {
  margin: 0 0 2px;
  font-size: 0.98rem;
  line-height: 1.15;
}

.hero.hero--v3 .hero-chem-lead {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
}

.hero.hero--v3 .hero-chem-chips {
  margin-top: 6px;
  gap: 4px;
}

.hero.hero--v3 .hero-chem-chip {
  font-size: 0.6rem;
  padding: 2px 6px;
}

.hero.hero--v3 .btn-chem {
  margin-top: 8px;
  padding: 5px 10px;
  font-size: 0.72rem;
}

.hero.hero--v3 .hero-water-brands {
  display: none;
}

.hero.hero--v3 .hero-chem-thumbs {
  width: 68px;
  gap: 2px;
}

.hero.hero--v3 .hero-chem-thumbs img {
  max-width: 100%;
  object-fit: contain;
  max-height: none;
}

.hero.hero--v3 .hero-chem-thumbs .thumb-ibc,
.hero.hero--v3 .hero-chem-thumbs img:nth-child(1) {
  height: 42px;
  max-height: 42px;
  max-width: 68px;
}

.hero.hero--v3 .hero-chem-thumbs .thumb-fut,
.hero.hero--v3 .hero-chem-thumbs img:nth-child(2) {
  height: 34px;
  max-height: 34px;
  transform: rotate(-3deg);
}

.hero.hero--v3 .hero-chem-thumbs .thumb-bidon,
.hero.hero--v3 .hero-chem-thumbs img:nth-child(3) {
  height: 28px;
  max-height: 28px;
  transform: rotate(3deg);
}

@keyframes heroV3Rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero.hero--v3 .hero-scroll {
  position: relative;
  z-index: 2;
  margin-top: 6px;
}

@media (max-width: 860px) {
  .hero-v3-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
    align-items: start;
  }

  .hero-v3-copy,
  .hero.hero--v3 .hero-panel-water,
  .hero.hero--v3 .hero-cta,
  .hero.hero--v3 .hero-panel-chem {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
    justify-self: start;
    max-width: none;
  }

  .hero.hero--v3 .hero-panel-water,
  .hero.hero--v3 .hero-panel-chem {
    max-width: 280px;
  }

  .hero.hero--v3 .hero-punch {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .hero.hero--v3 .hero-offer-pill {
    font-size: 1rem;
    padding: 10px 14px;
  }
}
