.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  background: #111;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.58) 0%, rgba(0,0,0,.26) 38%, rgba(0,0,0,.20) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  padding: 0 0 56px;
}

.hero-inner {
  width: 100%;
}

.hero-title {
  margin: 0;
  max-width: 1000px;
  font-size: clamp(58px, 7vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  font-weight: 900;
  color: #fff;
}

.hero-title .accent {
  color: #de060e;
}

.hero-bottom {
  margin-top: 42px;
  max-width: 1120px;
}

.hero-line {
  height: 1px;
  background: rgba(255,255,255,.45);
  width: 100%;
  margin-bottom: 28px;
}

.hero-dots {
  display: flex;
  gap: 14px;
  align-items: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.15);
}

.section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.section-label-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 78px;
  align-items: start;
  margin-bottom: 86px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #de060e;
  font-size: 14px;
  font-weight: 800;
  padding-top: 14px;
  white-space: nowrap;
}

.section-label::before {
  content: '';
  width: 34px;
  height: 2px;
  background: #de060e;
  display: inline-block;
}

.section-title {
  margin: 0;
  font-size: clamp(50px, 5vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.07em;
  font-weight: 900;
  max-width: 760px;
}

.about-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 84px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-text .lead {
  font-size: 28px;
  line-height: 1.55;
  margin: 0 0 30px;
  font-weight: 400;
  color: #191a1d;
}

.about-text .small {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.home-button-arrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d7d8dc;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}

.home-button-arrow span:first-child {
  padding: 18px 28px;
  min-width: 150px;
  text-align: center;
}

.home-button-arrow .icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: #0e0f12;
  color: #fff;
  font-size: 24px;
}

.about-visual {
  position: relative;
}

.about-visual img {
  width: 100%;
  aspect-ratio: 1.7 / 1;
  object-fit: cover;
  background: #ddd;
}

.shape-outline {
  position: absolute;
  left: -110px;
  bottom: -118px;
  width: 220px;
  height: 220px;
  border: 1px solid #dcdde2;
  clip-path: polygon(0 0, 50% 0, 100% 40%, 100% 100%, 40% 100%, 0 60%);
  opacity: 0.9;
  pointer-events: none;
}

.services-band {
  /* background: linear-gradient(to right, #ebecf0 0%, #ebecf0 67%, transparent 67%, transparent 100%); */
  padding-top: 100px;
  padding-bottom: 130px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}

.service-card {
  background: #fff;
  border: 1px solid #d9dade;
  padding: 54px 44px 44px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-flag {
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-flag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.service-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: #44474f;
}

.stats-section {
  padding-top: 130px;
  padding-bottom: 240px;
}

.stats-grid-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 66px;
  position: relative;
  z-index: 2;
}

.stat-card {
  border-top: 1px solid #2c2d33;
  padding-top: 34px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 44px;
  align-items: start;
}

.stat-number {
  font-size: clamp(78px, 7vw, 118px);
  line-height: 0.88;
  letter-spacing: -0.07em;
  font-weight: 900;
  color: #de060e;
}

.stat-text {
  font-size: 18px;
  line-height: 1.7;
  color: #1f2025;
  font-weight: 600;
  max-width: 320px;
}

.ghost-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

.ghost-track {
  display: inline-block;
  font-size: clamp(110px, 9vw, 176px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px #dbdce0;
  text-transform: none;
  animation: ghostMove 35s linear infinite;
  padding-left: 20px;
}

@keyframes ghostMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-30%);
  }
}

@media (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-label-row,
  .about-grid {
    gap: 50px;
  }

  .stat-card {
    grid-template-columns: 150px 1fr;
  }
}

@media (max-width: 980px) {
  .section,
  .stats-section {
    padding: 90px 0;
  }

  .services-band {
    padding: 80px 0 95px;
  }

  .section-label-row,
  .about-grid,
  .stats-grid-wrap {
    grid-template-columns: 1fr;
  }

  .section-label-row {
    margin-bottom: 50px;
  }

  .about-text .lead {
    font-size: 24px;
  }

  .shape-outline {
    display: none;
  }

  .service-card {
    min-height: auto;
  }

  .hero-title {
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-bottom: 38px;
  }

  .hero-title {
    font-size: 52px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 36px 26px 30px;
  }

  .section-title {
    font-size: 50px;
  }

  .stat-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}


.chantier-gallery {
  background: #f6f7f9;
  padding-top: 110px;
  padding-bottom: 130px;
}

.gallery-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.gallery-track-wrap {
  overflow: hidden;
  width: 100%;
}

.gallery-track {
  display: flex;
  transition: transform 0.55s ease;
}

.gallery-slide {
  min-width: 100%;
  flex: 0 0 100%;
}

.gallery-slide img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.08);
}

.gallery-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #d7d8dc;
  background: #fff;
  color: #111;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-arrow:hover {
  transform: translateY(-2px);
  background: #f1f2f4;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,0.22);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-dot.active {
  background: #de060e;
  transform: scale(1.15);
}

@media (max-width: 980px) {
  .gallery-slide img {
    height: 460px;
  }

  .gallery-arrow {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .chantier-gallery {
    padding-top: 85px;
    padding-bottom: 95px;
  }

  .gallery-slider {
    gap: 10px;
  }

  .gallery-slide img {
    height: 300px;
    border-radius: 18px;
  }

  .gallery-arrow {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }
}
/* =========================
   PAGE HISTOIRE
========================= */

.page-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #ddd;
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.20), rgba(0,0,0,.05));
}

.page-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 46px;
  z-index: 2;
}

.page-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
}

.page-hero-title {
  font-size: clamp(54px, 6vw, 94px);
  line-height: .92;
  letter-spacing: -0.07em;
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.page-hero-cta {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  text-decoration: none;
}

.page-hero-cta span:first-child {
  padding: 15px 24px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.page-hero-cta .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #de060e;
  color: #fff;
  font-size: 24px;
}

.history-section {
  padding: 110px 0 120px;
}

.section-head {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 78px;
  align-items: start;
  margin-bottom: 60px;
}

.history-card {
  background: var(--bg-soft);
  padding: 70px 60px;
}

.history-grid {
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.history-image {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  overflow: hidden;
  background: #ddd;
}

.history-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.history-right {
  min-width: 0;
}

.timeline {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  position: relative;
  margin-bottom: 54px;
  padding-top: 2px;
  flex-wrap: wrap;
}

.timeline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 34px;
  height: 1px;
  background: #d3d6dc;
  z-index: 0;
}

.timeline-item {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: #8b8d93;
  font-size: 18px;
  font-weight: 800;
  transition: .2s ease;
  min-width: 48px;
  text-align: center;
}

.timeline-item::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d0d2d7;
  margin: 10px auto 0;
  transition: .2s ease;
}

.timeline-item.active {
  color: #111;
}

.timeline-item.active::after {
  background: #de060e;
  transform: scale(1.12);
}

.history-content {
  max-width: 760px;
}

.history-title {
  margin: 0 0 26px;
  font-size: clamp(26px, 2.4vw, 54px);
  line-height: 1.22;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: #1b1c20;
}

.history-text {
  margin: 0;
  color: #676a72;
  font-size: 18px;
  line-height: 1.85;
  white-space: pre-line;
}

.fade-in {
  animation: fadeContent .35s ease;
}

@keyframes fadeContent {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .history-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .history-image {
    max-width: 760px;
  }
}

@media (max-width: 980px) {
  .page-hero {
    height: 320px;
  }

  .page-hero-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .history-card {
    padding: 36px 24px;
  }

  .timeline {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }

  .timeline::after {
    min-width: 900px;
  }

  .timeline-item {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .page-hero-title {
    font-size: 58px;
  }

  .history-title {
    font-size: 28px;
  }

  .history-text {
    font-size: 16px;
  }
}