/* ==========================================================================
   18. Prestations
   ========================================================================== */

.prestations-section {
  position: relative;
  overflow: hidden;

  padding-block: clamp(90px, 10vw, 150px);

  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(231, 111, 29, 0.11),
      transparent 22%
    ),
    radial-gradient(
      circle at 90% 85%,
      rgba(181, 58, 37, 0.08),
      transparent 24%
    ),
    #0b1016;
}

.prestations-section::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);

  background-size: 60px 60px;

  mask-image: linear-gradient(
    180deg,
    transparent,
    #000 20%,
    #000 80%,
    transparent
  );
}

.prestations-header {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.prestations-title {
  max-width: 960px;
}

.prestations-description {
  max-width: 790px;
}

.prestations-grid {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;

  margin-top: 62px;
}

.prestation-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.025)
  );

  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);

  transition:
    transform var(--transition-slow),
    border-color var(--transition-base),
    box-shadow var(--transition-slow);
}

.prestation-card:hover {
  border-color: rgba(255, 127, 47, 0.4);

  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.42),
    0 0 44px rgba(231, 111, 29, 0.08);

  transform: translateY(-10px);
}

.prestation-card-image {
  position: relative;

  height: 240px;
  overflow: hidden;
}

.prestation-card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 600ms ease;
}

.prestation-card:hover .prestation-card-image img {
  filter: saturate(1.1);
  transform: scale(1.08);
}

.prestation-card-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(8, 11, 15, 0.06) 20%,
    rgba(8, 11, 15, 0.95) 100%
  );
}

.prestation-card-number {
  position: absolute;
  top: 18px;
  right: 18px;

  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;

  color: rgba(255, 255, 255, 0.78);
  background: rgba(7, 10, 14, 0.58);

  font-size: 0.73rem;
  font-weight: 800;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.prestation-card-content {
  position: relative;

  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 0 24px 26px;
}

.prestation-card-icon {
  display: grid;
  place-items: center;

  width: 52px;
  height: 52px;

  margin-top: -26px;

  border: 1px solid rgba(255, 132, 56, 0.38);
  border-radius: 16px;

  color: var(--color-fire-light);
  background: linear-gradient(145deg, #1e252d, #11171e);

  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.prestation-card-icon svg {
  width: 27px;
  height: 27px;
}

.prestation-card h3 {
  margin: 22px 0 0;

  color: #ffffff;

  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.3;
}

.prestation-card p {
  margin: 13px 0 0;

  color: rgba(255, 255, 255, 0.57);

  font-size: 0.9rem;
  line-height: 1.7;
}

.prestation-card-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  width: fit-content;
  margin-top: auto;
  padding-top: 24px;

  color: var(--color-fire-light);

  font-size: 0.82rem;
  font-weight: 800;

  transition:
    gap var(--transition-base),
    color var(--transition-base);
}

.prestation-card-link svg {
  width: 17px;
  height: 17px;
}

.prestation-card-link:hover {
  gap: 14px;
  color: #ffffff;
}

.prestations-material {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;

  margin-top: 30px;
  padding: 30px 34px;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.025)
  );

  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.prestations-material::before {
  content: "";

  position: absolute;
  top: -130px;
  right: 8%;

  width: 280px;
  height: 280px;

  border-radius: 50%;

  pointer-events: none;

  background: rgba(231, 111, 29, 0.16);
  filter: blur(80px);
}

.prestations-material > * {
  position: relative;
  z-index: 1;
}

.prestations-material-icon {
  display: grid;
  place-items: center;

  width: 68px;
  height: 68px;

  border: 1px solid rgba(255, 132, 56, 0.35);
  border-radius: 20px;

  color: var(--color-fire-light);
  background: rgba(231, 111, 29, 0.1);
}

.prestations-material-icon svg {
  width: 34px;
  height: 34px;
}

.prestations-material-content > span {
  color: var(--color-fire-light);

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.prestations-material h3 {
  margin: 7px 0 0;

  color: #ffffff;

  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 800;
}

.prestations-material p {
  max-width: 760px;
  margin: 9px 0 0;

  color: rgba(255, 255, 255, 0.58);

  font-size: 0.92rem;
  line-height: 1.7;
}

/* ==========================================================================
   Prestations responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .prestations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .prestations-material {
    grid-template-columns: auto 1fr;
  }

  .prestations-material .btn {
    grid-column: 1 / -1;

    width: 100%;
  }
}

@media (max-width: 767px) {
  .prestations-section {
    padding-block: 72px;
  }

  .prestations-grid {
    grid-template-columns: 1fr;
    gap: 18px;

    margin-top: 42px;
  }

  .prestation-card-image {
    height: 230px;
  }

  .prestations-material {
    grid-template-columns: 1fr;
    gap: 18px;

    padding: 24px 20px;
  }

  .prestations-material-icon {
    width: 58px;
    height: 58px;
  }
}

