.hero {
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  min-height: 42rem;
  background-size: cover;
  background-position: center top 0px;
  position: relative;
}

.hero .centered {
  position: absolute;
  top: 20%;
}

.hero .centered h1 {
  font-size: 4rem;
  font-weight: 800;
  max-width: 60%;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 2rem;
}

.hero .centered p {
  font-size: 1.2rem;
  max-width: 70%;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 2rem;
}

.hero .actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

/* Boutons de base */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Bouton principal */
.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-light, #2c3d7a);
  border-color: var(--primary-light, #2c3d7a);
}

/* Bouton secondaire */
.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: var(--primary-color, #051650);
  color: #fff;
}

.services,
.last-works,
.properties {
  padding: 4rem 0;
}

.section-header {
  max-width: 60%;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .title {
  text-transform: uppercase;
  font-weight: 300;
  font-size: 1rem;
  color: var(--accent-color);
}

.section-header .subtitle {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.service-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.service-card h3 {
  color: var(--primary-color, #051650);
  font-size: 1rem;
  padding: 0.5rem;
  padding-bottom: 0;
}

.service-card p {
  color: #333;
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.5rem;
}

.last-works {
  background-color: #f9f9f9;
  padding: 3rem 0;
}

.realisations-grid {
  display: flex;
  align-self: start;
  justify-content: start;
  gap: 1rem;
}

.realisations-grid .realisation-card {
  width: calc(100% / 4 - 1rem);
  cursor: pointer;
  transition: all 0.3s ease;
}

.realisations-grid .realisation-card:hover {
  transform: scale(1.05);
}

.realisations-grid .realisation-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.realisations-grid .realisation-card h3 {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.realisations-grid .realisation-card p {
  font-size: 0.8rem;
  font-weight: 200;
  color: gray;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}
.lightbox-slider {
  position: relative;
  width: 90%;
  max-width: 900px;
}
.lightbox-slide {
  display: none;
  text-align: center;
}
.lightbox-slide.active {
  display: block;
}
.lightbox img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}
.slide-info {
  color: #fff;
  margin-top: 1rem;
}

/* Bouton de fermeture */
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background-color: transparent;
  color: white;
  font-size: 2.5rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

/* Flèches de navigation */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  font-size: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  min-width: 50px;
  aspect-ratio: 1/1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.properties .container {
  display: flex;
  align-items: start;
  justify-content: start;
  gap: 2rem;
}

.properties .container .left {
  width: 40%;
}

.properties .container .left h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.properties .container .left p {
  font-weight: 300;
  font-size: 0.9rem;
}

.properties .container .left .actions {
  margin-top: 3rem;
}

.properties .container .left .actions a {
  color: var(--accent-color);
}

.properties .container .right {
  width: 60%;
}

.testimonials {
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  min-height: 20rem;
  background-size: cover;
  background-position: center center 0px;
  position: relative;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  padding-top: 2rem;
}

.cta-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-right: auto;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background-color: white;
  color: var(--primary-color);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: var(--accent-color);
  color: white;
}

@media only screen and (max-width: 997px) {
  .hero .centered {
    top: 10%;
  }

  .hero .centered h1 {
    font-size: 3rem;
    max-width: 90%;
  }

  .hero .centered p {
    font-size: 1rem;
    max-width: 90%;
  }

  .hero .actions {
    gap: 1rem;
    margin-top: 3rem;
  }

  /* Boutons de base */
  .btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .services,
  .last-works,
  .properties {
    padding: 4rem 0;
  }

  .section-header {
    max-width: 90%;
  }

  .section-header .title {
    font-size: 0.9rem;
  }

  .section-header .subtitle {
    font-size: 1.6rem;
  }

  .services-grid {
    max-width: 90%;
    margin: 0 auto;
  }

  .service-card p {
    font-size: 0.8rem;
  }

  .realisations-grid {
    flex-wrap: wrap;
    max-width: 90%;
    margin: 0 auto;
  }

  .realisations-grid .realisation-card {
    width: calc(100% / 2 - 1rem);
  }

  .realisations-grid .realisation-card:hover {
    transform: scale(1.05);
  }

  .realisations-grid .realisation-card img {
    height: 150px;
  }

  .lightbox-slider {
    width: 100%;
  }

  .properties .container {
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 2rem;
    flex-direction: column;
  }

  .properties .container .left {
    width: 100%;
  }

  .properties .container .left h2 {
    font-size: 1.6rem;
  }

  .properties .container .left p {
    font-weight: 300;
    font-size: 0.9rem;
  }

  .properties .container .left .actions {
    margin-top: 1rem;
  }

  .properties .container .right {
    width: 100%;
  }

  .properties .container .right .card-property {
    padding: 0rem;
    margin: 0 1rem;
  }

  .testimonials {
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    min-height: 20rem;
    background-size: cover;
    background-position: center center 0px;
    position: relative;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .cta-description {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 0.8rem 1rem;
  }
}

@media only screen and (max-width: 560px) {
  .hero .centered {
    top: 7.5%;
  }

  .hero .centered h1 {
    font-size: 2.2rem;
    max-width: 95%;
  }

  .hero .centered p {
    font-size: 0.9rem;
    max-width: 95%;
  }

  .hero .actions {
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
  }

  .hero .actions a {
    width: 100%;
    text-align: center;
  }

  .section-header {
    max-width: 95%;
  }

  .section-header .title {
    font-size: 0.9rem;
  }

  .section-header .subtitle {
    font-size: 1.4rem;
  }

  .services-grid {
    max-width: 80%;
  }

  .realisations-grid {
    max-width: 80%;
  }

  .realisations-grid .realisation-card {
    width: 100%;
  }

  .realisations-grid .realisation-card img {
    height: 170px;
  }

  .properties .container .left h2 {
    font-size: 1.4rem;
  }

  .cta-title {
    font-size: 1.4rem;
  }
}
