/*
====================================================
Project : Société de Plomberie Ayouche
Page    : Notre Histoire
Author  : AI + User
Version : 1.0.0
Notes   : Pixel-perfect reproduction of a supplied mockup. Reuses the
          site's shared design tokens (colors, buttons, navbar, footer
          from style.css). Every class below is prefixed `hst-`.
====================================================
*/

/* --------------------------------------------------------------------------
   SHARED
   -------------------------------------------------------------------------- */
.hst-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   HERO — background: assets/back/hesto.png
   -------------------------------------------------------------------------- */
.hst-hero {
  position: relative;
  aspect-ratio: 21 / 8;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
  background-color: #000A17;
  background-image: url('../back/hesto.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hst-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 10, 23, .55) 0%, rgba(0, 10, 23, .2) 40%, rgba(0, 10, 23, 0) 60%);
}

.hst-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.hst-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 18px;
}

.hst-breadcrumb a {
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hst-breadcrumb a:hover {
  color: var(--color-primary);
}

.hst-breadcrumb i {
  font-size: 9px;
  color: rgba(255, 255, 255, .3);
}

.hst-breadcrumb span[aria-current] {
  color: var(--color-primary);
}

.hst-hero-content {
  max-width: 600px;
}

.hst-hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 58px;
  line-height: 1.05;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0;
}

.hst-hero-content h1 .accent {
  color: var(--color-primary);
}

.hst-hero-rule {
  display: block;
  width: 56px;
  height: 3px;
  margin: 16px 0;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.hst-hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  color: #FFFFFF;
  margin: 0 0 20px;
}

.hst-hero-subtitle .accent {
  color: var(--color-primary);
}

.hst-hero-text {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .6);
  max-width: 460px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   NOTRE PARCOURS — timeline
   -------------------------------------------------------------------------- */
.hst-journey {
  background-color: var(--color-white);
}

.hst-journey-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.hst-journey-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 25px;
  line-height: 1.35;
  color: var(--color-primary-dark);
  margin: 0;
}

.hst-journey-header p {
  flex-shrink: 0;
  max-width: 320px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--color-text-gray);
  margin: 8px 0 0;
}

.hst-journey-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hst-journey-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: 14px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.hst-journey-arrow:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.hst-journey-track {
  position: relative;
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.hst-journey-track::before {
  content: '';
  position: absolute;
  top: 6px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  border-top: 2px dotted var(--color-primary);
  z-index: 0;
}

.hst-journey-step {
  position: relative;
  z-index: 1;
}

.hst-journey-year {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--color-primary);
  margin-bottom: 10px;
  padding-left: 16px;
}

.hst-journey-year::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 140, 209, .18);
}

.hst-journey-step h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-primary-dark);
  margin: 0 0 6px;
}

.hst-journey-step p {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--color-text-gray);
  margin: 0 0 14px;
}

.hst-journey-media {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 180 / 150;
}

.hst-journey-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   NOS VALEURS
   -------------------------------------------------------------------------- */
.hst-values {
  background-color: var(--color-bg-light);
}

.hst-values-grid {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 40px;
  align-items: center;
}

.hst-values-text h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.35;
  color: var(--color-primary-dark);
  margin: 0;
}

.hst-values-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.hst-value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: 19px;
  margin-bottom: 16px;
}

.hst-value-item h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary-dark);
  margin: 0 0 6px;
}

.hst-value-item p {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--color-text-gray);
  margin: 0;
}

/* --------------------------------------------------------------------------
   PLA EN CHIFFRES
   -------------------------------------------------------------------------- */
.hst-stats {
  background-color: var(--color-white);
}

.hst-stats-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.hst-stats-text h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 25px;
  line-height: 1.35;
  color: var(--color-primary-dark);
  margin: 0 0 30px;
}

.hst-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 20px;
}

.hst-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  font-size: 16px;
  margin-bottom: 10px;
}

.hst-stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.hst-stat-item span {
  font-size: 12.5px;
  color: var(--color-text-gray);
}

.hst-mission-wrap {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(1, 41, 99, .14);
}

.hst-mission-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 10 / 7;
}

.hst-mission-card {
  position: absolute;
  right: 20px;
  top: 20px;
  bottom: 20px;
  width: 44%;
  padding: 26px 22px;
  background-color: rgba(0, 10, 23, .82);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hst-mission-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: rgba(0, 140, 209, .2);
  color: var(--color-primary);
  font-size: 18px;
  margin-bottom: 16px;
}

.hst-mission-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: #FFFFFF;
  margin: 0 0 10px;
}

.hst-mission-card p {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .72);
  margin: 0;
}

/* --------------------------------------------------------------------------
   UNE ÉQUIPE, UNE FORCE
   -------------------------------------------------------------------------- */
.hst-team {
  background-color: var(--color-bg-light);
}

.hst-team-grid {
  display: grid;
  grid-template-columns: .6fr 1.4fr;
  gap: 0;
  align-items: stretch;
}

.hst-team-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 40px;
}

.hst-team-text h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.35;
  color: var(--color-primary-dark);
  margin: 0 0 14px;
}

.hst-team-text p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--color-text-gray);
  margin: 0 0 24px;
}

.hst-team-media-wrap {
  position: relative;
  margin-right: -24px;
  border-radius: var(--radius-card) 0 0 var(--radius-card);
  overflow: hidden;
}

@media (min-width: 1320px) {
  .hst-team-media-wrap {
    margin-right: calc(-24px - (100vw - var(--container-width)) / 2);
  }
}

.hst-team-media-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 12 / 5;
}

/* --------------------------------------------------------------------------
   CTA FINAL
   -------------------------------------------------------------------------- */
.hst-cta {
  position: relative;
  background-color: #000A17;
  overflow: hidden;
}

.hst-cta-decor {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40%;
  height: 100%;
  background-image: url('../back/hesto.png');
  background-position: left center;
  background-size: cover;
  opacity: .35;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .6) 0%, transparent 85%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .6) 0%, transparent 85%);
}

.hst-cta-inner {
  position: relative;
  z-index: 1;
  padding-block: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.hst-cta-inner h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.35;
  color: #FFFFFF;
  margin: 0;
}

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

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .hst-journey-track {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 30px;
  }

  .hst-journey-track::before {
    display: none;
  }

  .hst-values-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hst-values-row {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
  }

  .hst-stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hst-team-grid {
    grid-template-columns: 1fr;
  }

  .hst-team-text {
    padding-right: 0;
    padding-bottom: 30px;
  }

  .hst-team-media-wrap {
    border-radius: var(--radius-card);
  }
}

@media (max-width: 991.98px) {
  .hst-hero {
    aspect-ratio: auto;
    min-height: 560px;
    padding-bottom: 40px;
  }

  .hst-hero-content h1 {
    font-size: 34px;
  }

  .hst-journey-header {
    flex-direction: column;
    gap: 16px;
  }

  .hst-journey-header p {
    max-width: none;
  }

  .hst-mission-card {
    position: static;
    width: auto;
    margin-top: 16px;
  }

  .hst-cta-decor {
    display: none;
  }

  .hst-cta-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .hst-hero {
    min-height: 520px;
    padding-top: calc(var(--navbar-height) + 24px);
  }

  .hst-hero-content h1 {
    font-size: 28px;
  }

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

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

  .hst-stat-item strong {
    font-size: 22px;
  }

  .hst-cta-inner h2 {
    font-size: 22px;
  }
}
