@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@200;300;400;500&display=swap');

/* ============================================================
   SERVICES — style vert moderne (aligné sur l'accueil)
   ============================================================ */

body {
  background: var(--surface);
  font-family: 'Jost', 'DM Sans', sans-serif;
  color: var(--text);
  min-height: 100vh;
}

/* ── HERO ── */
.services-hero {
  background: var(--grad-green);
  padding: 25px 40px 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}

.services-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 50% 110%, rgba(200,169,122,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 16% 14%, rgba(61,122,90,0.45) 0%, transparent 60%);
  pointer-events: none;
}

.services-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--beige-light);
  margin-bottom: 12px;
  padding: 6px 14px;
  border: 1px solid rgba(226,208,176,0.25);
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  position: relative;
}
.services-hero .eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--beige);
  box-shadow: 0 0 12px var(--beige);
}

.services-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.02;
  letter-spacing: 0.01em;
  position: relative;
}

.services-hero h1 em {
  font-style: italic;
  background: var(--grad-beige);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-hero p {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  letter-spacing: 0.04em;
  position: relative;
}

/* ── CATEGORY NAV (pills sticky) ── */
.category-nav-wrapper {
  background: rgba(251,250,246,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.category-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 40px;
  scrollbar-width: none;
  max-width: 1180px;
  margin: 0 auto;
}
.category-nav::-webkit-scrollbar { display: none; }

.cat-btn {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 11px 24px;
  border-radius: 100px;
  font-family: 'Jost', sans-serif;
  font-size: var(--fs-btn);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--t);
  flex-shrink: 0;
}
.cat-btn:hover {
  color: var(--green);
  border-color: var(--green-light);
  transform: translateY(-2px);
}
.cat-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 14px 30px -16px rgba(26,58,42,0.7);
}

/* ── SERVICES CONTENT ── */
.services-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 40px 110px;
}

.category-section {
  display: none;
  animation: svcFadeUp 0.55s var(--ease) forwards;
}
.category-section.active,
.category-section.visible {
  display: block;
}
.category-section.active ~ .category-section.active { display: none; }

@keyframes svcFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.section-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 30px 0 15px;
}
.section-label-left {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex: 1;
}
.section-label h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  color: var(--green);
  letter-spacing: 0.01em;
}
.section-label .count {
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  color: var(--green-light);
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--beige-pale);
  border-radius: 100px;
}
.accordion-arrow { display: none; }

.section-desc {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  margin: -24px 0 40px;
  line-height: 1.8;
  max-width: 520px;
}

/* ── GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* ── SERVICE CARD (minimaliste avec image) ── */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--t), box-shadow var(--t);
}
.service-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-soft);
}

/* Petite image en bandeau */
.service-thumb {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t);
}
.service-card:hover .service-thumb img { transform: scale(1.04); }

.service-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

/* Badge "Service" — superposé sur l'image */
.service-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-family: 'Jost', sans-serif;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--green);
  padding: 5px 12px 5px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 16px -10px rgba(26,58,42,0.6);
}
.service-tag svg { flex-shrink: 0; }

.service-top { flex: 1; }
.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 10px;
}
.service-description {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

.service-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.service-meta { display: flex; flex-direction: column; gap: 3px; }
.service-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--green);
  line-height: 1;
}
.service-duration {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
}

.btn-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 11px 20px;
  background: var(--green);
  color: var(--white);
  border-radius: 100px;
  font-family: 'Jost', sans-serif;
  font-size: var(--fs-btn);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background var(--t);
  white-space: nowrap;
}
.btn-book:hover { background: var(--green-light); }

/* ── BOUTON INFO (icône "i" sur la carte) ── */
.service-info-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--green);
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 16px -10px rgba(26,58,42,0.6);
  transition: transform var(--t), background var(--t), color var(--t);
}
.service-info-btn:hover {
  background: var(--green);
  color: var(--white);
  transform: scale(1.08);
}
.service-info-btn svg { display: block; }

/* ── MODAL D'INFORMATION ── */
.service-info-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.service-info-modal.open { display: flex; }

.service-info-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,58,42,0.55);
  backdrop-filter: blur(4px);
  animation: svcInfoFade 0.25s var(--ease);
}

.service-info-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 34px 34px;
  text-align: center;
  box-shadow: 0 30px 70px -20px rgba(26,58,42,0.5);
  animation: svcInfoPop 0.3s var(--ease);
}

@keyframes svcInfoFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes svcInfoPop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.service-info-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--beige-pale);
  color: var(--green);
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.service-info-close:hover { background: var(--green); color: var(--white); }

.service-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--beige-pale);
  color: var(--green);
}

.service-info-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 14px;
}
.service-info-modal-text {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  white-space: pre-line;
}

/* ── PRÉSENTATION (image + texte) ── */
.presentation-section { margin-bottom: 20px; }

.headspa-presentation {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 70px;
}

.headspa-img-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 500px;
  box-shadow: var(--shadow-card);
}
.headspa-img-placeholder {
  position: absolute;
  inset: 0;
  background: var(--grad-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.headspa-img-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}
.headspa-img-wrap:hover .headspa-img-placeholder img { transform: scale(1.05); }

.headspa-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--grad-beige);
  color: var(--green-deep);
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 100px;
  font-family: 'Jost', sans-serif;
  z-index: 2;
  box-shadow: 0 12px 26px -14px rgba(200,169,122,0.9);
}

.headspa-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.headspa-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-label);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--green-light);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  margin-bottom: 22px;
}
.headspa-tag::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--beige);
  flex-shrink: 0;
}
.headspa-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 300;
  color: var(--green);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.headspa-content h2 em {
  font-style: italic;
  color: var(--beige);
}
.headspa-description {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 28px;
  max-width: 440px;
}
.headspa-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 44px;
}
.headspa-benefits li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-small);
  color: var(--text);
  font-weight: 300;
}
.headspa-benefits li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--grad-beige);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.headspa-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  background: var(--green);
  font-family: 'Jost', sans-serif;
  font-size: var(--fs-btn);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  width: fit-content;
  padding: 15px 30px;
  border-radius: 100px;
  box-shadow: 0 16px 36px -18px rgba(26,58,42,0.7);
  transition: transform var(--t), background var(--t);
}
.headspa-cta:hover { background: var(--green-light); transform: translateY(-3px); }
.headspa-cta svg { transition: transform var(--t); }
.headspa-cta:hover svg { transform: translateX(5px); }

#categoryNav a { text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .services-hero { padding: 64px 24px 60px; border-radius: 0; }
  .category-nav { padding: 14px 16px; }
  .services-body { padding: 40px 18px 80px; }
  .services-grid { grid-template-columns: 1fr; gap: 18px; }
  .service-card { padding: 30px 26px; }
  .section-label { margin: 40px 0 28px; }

  .headspa-presentation {
    flex-direction: column;
    gap: 0;
    padding: 24px 0;
    width: 100%;
  }
  .headspa-img-wrap {
    width: 100%;
    flex: none;
    height: 280px;
    order: -1;
    margin-bottom: 28px;
  }
  .headspa-content { flex: none; width: 100%; }
  .headspa-description { max-width: 100%; }

  .category-nav-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-nav-wrapper::-webkit-scrollbar { display: none; }
}
