.home-hero {
  min-height: calc(100vh - 92px);
  padding: 78px 6%;

  display: grid;
  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(420px, 1.05fr);

  align-items: center;
  gap: clamp(48px, 7vw, 110px);

  background-image:
    linear-gradient(
      90deg,
      rgba(245, 243, 238, 0.98) 0%,
      rgba(245, 243, 238, 0.92) 48%,
      rgba(245, 243, 238, 0.72) 100%
    ),
    url("/images/ui/fond-accueil.png");

  background-size: cover;
  background-position: center;
}

.home-hero-copy {
  max-width: 760px;
}

.home-hero h1 {
  margin-bottom: 28px;
}

/* Carrousel */

.home-feature {
  --slide-accent: #B86F52;

  position: relative;

  min-height: 600px;

  display: block;
  overflow: hidden;

  background-color: var(--soft);
  box-shadow: var(--shadow);

  text-decoration: none;
}

.home-feature img {
  width: 100%;
  height: 100%;
  min-height: 600px;

  object-fit: cover;

  opacity: 1;

  transition:
    transform 1.1s ease,
    opacity 0.35s ease;
}

.home-feature:hover img {
  transform: scale(1.025);
}

/* Cartouche ardoise translucide */

.home-feature-caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;

  width: min(460px, calc(100% - 48px));
  padding: 24px 28px 22px 32px;

  overflow: hidden;

  background-color: rgba(90, 94, 107, 0.76);
  border: 1px solid rgba(245, 243, 238, 0.25);

  box-shadow: 0 16px 38px rgba(37, 39, 45, 0.22);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: var(--white);

  transition:
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Languette colorée */

.home-feature-caption::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 7px;
  height: 100%;

  background-color: var(--slide-accent);

  transition: background-color 0.4s ease;
}

.home-feature-caption span {
  display: block;
  margin-bottom: 8px;

  color: rgba(245, 243, 238, 0.78);

  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-feature-caption strong {
  display: block;

  color: var(--white);

  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}

.home-feature-caption p {
  margin: 8px 0 0;

  color: rgba(255, 255, 255, 0.8);

  font-size: 12px;
  line-height: 1.55;
}

.home-feature:hover .home-feature-caption {
  background-color: rgba(90, 94, 107, 0.86);

  box-shadow: 0 20px 44px rgba(37, 39, 45, 0.28);

  transform: translateY(-4px);
}

/* Introduction */

.home-intro {
  padding-block: 100px;

  display: grid;
  grid-template-columns: 0.28fr 1fr;
  gap: 70px;
}

.section-index {
  color: var(--sand);

  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(50px, 8vw, 120px);
  font-weight: 600;
  line-height: 0.8;

  opacity: 0.55;
}

.home-intro > div:last-child {
  max-width: 930px;
}

.home-intro p:not(.eyebrow) {
  max-width: 830px;
}

/* Services */

.services-section {
  padding: 96px 0;

  background-color: var(--soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  min-height: 330px;
  padding: 30px;

  background-color: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.service-card:hover {
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);

  transform: translateY(-4px);
}

.service-card > span {
  display: block;
  margin-bottom: 50px;

  color: var(--accent);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.service-card h3 {
  margin-bottom: 16px;

  font-size: 22px;
}

.service-card p {
  margin-bottom: 0;

  font-size: 14px;
  line-height: 1.8;
}

/* Projets */

.featured-section {
  padding-block: 100px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  overflow: hidden;

  background-color: var(--white);
  border: 1px solid var(--line);

  box-shadow: 0 10px 30px rgba(37, 39, 45, 0.05);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.project-card:hover {
  box-shadow: 0 16px 38px rgba(37, 39, 45, 0.1);

  transform: translateY(-3px);
}

.project-card a {
  display: block;

  color: inherit;
  text-decoration: none;
}

.project-card-media {
  position: relative;

  height: 420px;

  overflow: hidden;
}

.project-card-media img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.45s ease;
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-badge {
  position: absolute;
  top: 18px;
  left: 18px;

  padding: 9px 12px;

  background-color: rgba(245, 243, 238, 0.94);
  color: var(--slate);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card-copy {
  padding: 26px;
}

.project-card-copy p {
  margin-bottom: 4px;

  color: var(--accent);

  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.project-card-copy h3 {
  margin-bottom: 8px;

  font-size: 28px;
}

.project-card-copy span {
  color: var(--slate);

  font-size: 13px;
}

/* Zone d’intervention */

.area-section {
  padding: 100px 0;

  background-color: var(--soft);
}

.area-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.area-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.area-cards article {
  padding: 32px;

  background-color: var(--bg);
  border-top: 3px solid var(--sand);
}

.area-cards h3 {
  margin-bottom: 16px;

  font-size: 21px;
}

.area-cards p {
  margin-bottom: 0;

  font-size: 14px;
  line-height: 1.8;
}

/* Expérience */

.experience-section {
  padding-block: 100px;

  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.experience-section > div:last-child {
  max-width: 760px;
}

/* Transition des textes du cartouche */

.home-feature-caption span,
.home-feature-caption strong,
.home-feature-caption p {
  transition: color 0.3s ease;
}


/* Au passage de la souris :
   languette blanc cassé et textes couleur tuile */

.home-feature:hover .home-feature-caption::before {
  background-color: #F5F3EE;
}


@media (max-width: 1100px) {

  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-feature,
  .home-feature img {
    min-height: 520px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area-layout,
  .experience-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }

}

@media (max-width: 720px) {

  .home-hero {
    min-height: auto;
    padding: 58px 5% 70px;
  }

  .home-feature,
  .home-feature img {
    min-height: 380px;
  }

  .home-feature-caption {
    left: 14px;
    bottom: 14px;

    width: calc(100% - 28px);
    padding: 18px 18px 17px 23px;
  }

  .home-feature-caption::before {
    width: 5px;
  }

  .home-feature-caption strong {
    font-size: 20px;
  }

  .home-intro {
    padding-block: 75px;

    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-index {
    font-size: 58px;
  }

  .service-grid,
  .featured-grid,
  .area-cards {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .project-card-media {
    height: 320px;
  }

}