/* =========================================
   SERVICE — Grille 2×2 plein écran
   Titre + bouton en overlay, surbrillance au hover
   ========================================= */

body.service-page {
  background: #c8202e;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  min-height: calc(100vh - 144px);
  height: 100%;
  overflow: hidden;
  background: #c8202e;
}

.service-cell {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.5s ease;
  isolation: isolate;
  min-height: 400px;
}

.service-cell .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

/* Scrim : voile centré (derrière le titre) + bas, pour garder le texte blanc lisible
   même au-dessus des zones pâles de l'image (écran, logo, vêtement clair) */
.service-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(62% 52% at 50% 48%,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.30) 58%,
      transparent 100%),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.22) 0%,
      transparent 32%,
      transparent 58%,
      rgba(0, 0, 0, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Glow effect on hover */
.service-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0);
  transition: box-shadow 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

/* Cell content (title + button) */
.cell-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  pointer-events: none;
}

.cell-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 28px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 6px 22px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  line-height: 1.1;
}
.cell-title em { font-style: italic; font-weight: 500; }

.cell-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0a0a0a;
  color: #fff;
  padding: 13px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid #0a0a0a;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.cell-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}

/* === HOVER STATES === */
/* Dim others when hovering the grid */
.service-grid:hover .service-cell {
  filter: brightness(0.42) saturate(0.55);
}
.service-grid .service-cell:hover {
  filter: brightness(1.08) saturate(1.1);
  z-index: 4;
}
.service-grid .service-cell:hover .bg {
  transform: scale(1.06);
}
.service-grid .service-cell:hover::after {
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.22), 0 25px 60px rgba(0, 0, 0, 0.5);
}
.service-grid .service-cell:hover .cell-btn {
  background: #c8202e;
  border-color: #c8202e;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.service-grid .service-cell:hover .cell-btn svg {
  transform: translateX(4px);
}

/* Backgrounds per cell */
.service-cell.cell-boutique .bg { background-image: url('../services/boutique-corpo.webp'); }
.service-cell.cell-vetements .bg { background-image: url('../services/vetements-perso.webp'); }
.service-cell.cell-promo .bg { background-image: url('../services/articles-promo.webp'); }
.service-cell.cell-kiosque .bg { background-image: url('../services/kiosque-events.webp'); }

/* Borders between cells */
.service-cell:nth-child(1) { border-right: 1px solid rgba(0,0,0,0.15); border-bottom: 1px solid rgba(0,0,0,0.15); }
.service-cell:nth-child(2) { border-bottom: 1px solid rgba(0,0,0,0.15); }
.service-cell:nth-child(3) { border-right: 1px solid rgba(0,0,0,0.15); }

/* Page intro at top */
.service-page-intro {
  background: #c8202e;
  color: #fff;
  text-align: center;
  padding: 60px 32px 50px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.service-page-intro .eyebrow {
  display: inline-block;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 20px;
}
.service-page-intro h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  color: #fff;
}
.service-page-intro h1 em { font-style: italic; font-weight: 500; }
.service-page-intro p {
  font-size: 17px;
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
}

/* === Variante contenue (sur la page d'accueil) === */
.home-services {
  background: #fafaf8;
  padding: 110px 0 80px;
}
.home-services-header {
  max-width: 1100px;
  margin: 0 auto 70px;
  padding: 0 32px;
  text-align: center;
}
.home-services-header .section-title {
  margin-left: auto;
  margin-right: auto;
}
.home-services-header .section-intro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.service-grid--contained {
  min-height: auto;
  height: auto;
  max-width: 1400px;
  margin: 0 auto;
}
.service-grid--contained .service-cell {
  min-height: 340px;
  aspect-ratio: 4/3;
}
.home-services-cta {
  text-align: center;
  margin-top: 60px;
  padding: 0 32px;
}
@media (max-width: 900px) {
  .service-grid--contained {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(260px, auto));
  }
  .service-grid--contained .service-cell {
    min-height: 260px;
    aspect-ratio: 16/9;
  }
}
@media (max-width: 768px) {
  .home-services { padding: 70px 0 50px; }
  .home-services-header { margin-bottom: 50px; padding: 0 22px; }
  .home-services-cta { margin-top: 40px; }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    min-height: auto;
  }
  .service-cell {
    aspect-ratio: 1 / 1;
    min-height: 0;
    max-height: 80vh;
  }
  .service-cell:nth-child(1),
  .service-cell:nth-child(2),
  .service-cell:nth-child(3) {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.18);
  }
  .service-grid:hover .service-cell {
    filter: none;
  }
  .cell-content {
    padding: 24px 18px;
    justify-content: flex-end;
  }
  .cell-title {
    font-size: clamp(1.3rem, 6vw, 2rem);
    margin-bottom: 18px;
    line-height: 1.1;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }
  .cell-title em {
    display: block;
    margin-top: 4px;
  }
  .cell-btn {
    padding: 12px 22px;
    font-size: 12px;
  }
  /* Stronger scrim on mobile to ensure readability */
  .service-cell::before {
    background:
      radial-gradient(70% 55% at 50% 48%,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.35) 60%,
        transparent 100%),
      linear-gradient(180deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.75) 100%);
  }
}

@media (max-width: 768px) {
  .service-page-intro { padding: 40px 22px 36px; }
  .service-page-intro h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .service-page-intro p { font-size: 15px; }
  .service-page-intro .eyebrow { font-size: 11px; padding: 5px 12px; margin-bottom: 16px; }
}

@media (max-width: 480px) {
  .service-cell { aspect-ratio: 4 / 3; }
  .cell-title { font-size: clamp(1.2rem, 7vw, 1.8rem); margin-bottom: 16px; }
}
