h1{
  font-family: "Ridley";
}


body {
      margin: 0;
      background-color: #f4f4f4;
      font-family: "Montserrat";
      height: 100vh;
    }

    .grid-container {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 20px;
      max-width: 1600px;
      margin: auto;
      padding-top: 20px;
    }

    .image-box, .image-box-services {
      position: relative;
      width: 100%;
      aspect-ratio: 1 / 1;
      overflow: hidden;
      background-color: #ccc;
      border-radius: 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .image-box img, .image-box-services img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .image-box:hover img, .image-box-services:hover img {
      transform: scale(1.1);
    }

    .image-box::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 50%;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
      z-index: 1;
    }

    .image-title {
      position: absolute;
      bottom: 0;
      left: 0;
      padding-bottom: 10px;
      width: 100%;
      color: white;
      font-weight: 400;
      font-size: 17px;
      text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
      text-align: center;
      z-index: 2;
      pointer-events: none;
      text-transform: uppercase;
    }

    @media (max-width: 768px) {
      .grid-container {
        grid-template-columns: 1fr;
      }
    }

    @keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.9); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.fade-out {
  animation: fadeOut 0.4s forwards;
}

.fade-in {
  animation: fadeIn 0.4s forwards;
}

.zoom-in {
  animation: zoomIn 0.4s forwards;
}


/* Overlay foncé et boutons CTA sur les blocs liés */

.image-box-services .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
  z-index: 1;
}

.image-box-services:hover .overlay {
  background: rgba(0, 0, 0, 0.6); /* plus sombre au survol */
}

.cta-buttons {
  position: absolute;
  bottom: 20%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(0px);
  transition: all 0.3s ease;
  z-index: 3;
  pointer-events: none;
}

.image-box-services:hover .cta-buttons {
  opacity: 1;
  transform: translateY(-40px);
  pointer-events: auto;
}

.cta-primary{
  margin: 5px 0;
  padding: 10px 20px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  color: white;
  text-align: center;
  background-color: #112b5a;
  width: fit-content;
  transition: transform 0.5s ease;
}

.cta-primary:hover {
      transform: scale(1.1);
    }

.cta-secondary {
  color: white;
}
