/* ================================================================
   SERVICE DETAIL PAGES — styles partagés (activites / aide-seniors / nounous / coordination-sante)
   ================================================================ */

/* ── Intro 2 colonnes ─────────────────────────────────────────── */
.svc-intro .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.svc-intro-lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 22px;
}

.svc-intro-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.svc-intro-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: .93rem;
  color: var(--ink);
  font-weight: 500;
}

.svc-intro-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

.svc-intro-stats {
  display: flex;
  gap: 32px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.si-stat .n {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.si-stat .l {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Colonne visuelle ──────────────────────────────────────────── */
.svc-intro-visual {
  position: relative;
}

.svc-intro-photo {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 18px 50px rgba(28,74,58,.16);
}

.svc-intro-photo-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}

.svc-intro-photo:hover .svc-intro-photo-bg {
  transform: scale(1.04);
}

.svc-intro-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--coral);
  color: #fff;
  border-radius: 18px;
  padding: 16px 22px;
  box-shadow: 0 12px 32px rgba(223,130,102,.38);
  text-align: center;
  min-width: 116px;
}

.svc-intro-badge .badge-big {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.svc-intro-badge .badge-small {
  font-size: .78rem;
  opacity: .92;
  display: block;
  margin-top: 3px;
}

/* ── Grille de fonctionnalités ─────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feat-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(28,74,58,.07);
  transition: transform .3s ease, box-shadow .3s ease;
}

.feat-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 42px rgba(28,74,58,.13);
}

.feat-photo {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--green-soft);
}

.feat-photo-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .55s ease;
}

.feat-card:hover .feat-photo-bg {
  transform: scale(1.07);
}

.feat-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,74,58,.42) 0%, transparent 55%);
}

.feat-icon {
  position: absolute;
  bottom: -18px;
  left: 20px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 5px 15px rgba(0,0,0,.18);
}

.feat-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
  stroke: #fff;
}
.feat-icon i {
  font-size: 1.25rem;
  color: #fff;
  line-height: 1;
}

.feat-body {
  padding: 32px 20px 24px;
}

.feat-body h3 {
  font-size: 1.07rem;
  color: var(--green-dark);
  margin-bottom: 9px;
}

.feat-body p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* variantes couleur des icônes */
.fi-coral { background: var(--coral); }
.fi-green { background: var(--green-dark); }
.fi-teal  { background: var(--teal); }
.fi-soft  { background: var(--teal-soft); }

/* ── Galerie photo (fond sombre) ───────────────────────────────── */
.svc-gallery {
  background: var(--green-dark);
  padding: 84px 0;
}

.svc-gallery .sec-head {
  margin-bottom: 40px;
}

.svc-gallery .sec-head h2 {
  color: #fff;
}

.svc-gallery .sec-tag {
  background: rgba(255,255,255,.12);
  color: var(--coral-soft);
  border: none;
}

.svc-gallery .sec-head > p {
  color: rgba(255,255,255,.72);
}

/* ── Mosaïque 4 photos ─────────────────────────────────────────── */
.gallery-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 14px;
  border-radius: 20px;
  overflow: hidden;
}

.gm-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gm-item-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}

.gm-item:hover .gm-item-bg {
  transform: scale(1.07);
}

.gm-item .gm-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}

.gm-item:hover .gm-caption {
  opacity: 1;
  transform: translateY(0);
}

.gm-item:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.gm-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.gm-item:nth-child(3) { grid-column: 3; grid-row: 1; }
.gm-item:nth-child(4) { grid-column: 2 / 4; grid-row: 2; }

/* ── Citation / témoignage ─────────────────────────────────────── */
.svc-quote {
  background: var(--cream-2);
}

.svc-quote-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.sq-icon {
  width: 54px;
  height: 54px;
  background: var(--green-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--green-dark);
}

.sq-icon svg { width: 28px; height: 28px; }

.svc-quote-inner blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--green-dark);
  line-height: 1.6;
  margin-bottom: 28px;
}

.sq-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.sq-av {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .88rem;
  flex-shrink: 0;
}

.sq-meta .name {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}

.sq-meta .role {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .svc-intro .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .svc-intro-visual {
    max-width: 520px;
  }

  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }

  .gm-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .gm-item:nth-child(2) { grid-column: 1;     grid-row: 2; }
  .gm-item:nth-child(3) { grid-column: 2;     grid-row: 2; }
  .gm-item:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }
}

@media (max-width: 768px) {
  .svc-intro-badge {
    right: 10px;
    bottom: -12px;
  }

  .svc-intro-stats {
    gap: 22px;
  }

  .feat-grid {
    grid-template-columns: 1fr;
  }

  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 160px 160px;
  }

  .svc-gallery { padding: 60px 0; }

  .svc-quote-inner blockquote { font-size: 1.15rem; }
}
