/* =========================
   SERVICES GRID STYLE
========================= */

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  max-width: 900px;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  font-weight: 700;
}

.services-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;

  scroll-snap-type: x mandatory;
}

/* scrollbar clean */
.services-grid::-webkit-scrollbar {
  height: 6px;
}
.services-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
}

/* CARD */
.service-card {
  flex: 0 0 260px; /* largeur fixe */
  aspect-ratio: 0.8 / 1;

  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0f0f13;

  scroll-snap-align: start;

  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.service-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

.service-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transition: 0.4s ease;
}

.service-card:hover .service-bg {
  transform: scale(1.05);
  opacity: 0.8;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
}

/* LABEL */
.service-label {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  z-index: 2;
}

.service-card-content {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
}

.service-card h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #fff;
}

/* TABLETTE */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* PETITE TABLETTE */
@media (max-width: 820px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

    .service-card {
    flex: 0 0 75%;
  }


  .service-card h3 {
    font-size: 1.25rem;
  }

  .service-label {
    top: 14px;
    right: 14px;
    font-size: 0.68rem;
  }

  .service-card-content {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }
}

/* =========================
   SERVICE MODAL
========================= */

body.modal-open {
  overflow: hidden;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-modal.is-active,
.service-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.service-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(640px, calc(100% - 32px));
  padding: 32px 28px;
  border-radius: 24px;
  background: rgba(13, 13, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
}

.service-modal.is-active .service-modal-dialog,
.service-modal.is-open .service-modal-dialog {
  transform: translateY(0) scale(1);
}

.service-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.service-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.05);
}

.service-modal-content {
  color: #fff;
}

.service-modal-kicker {
  margin-bottom: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.service-modal-content h3 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.1;
  color: #fff;
}

.service-modal-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}



.mobile-nav-wrap {
  position: relative;
  z-index: 1002;
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  z-index: 1003;
}