/* Pages détail soins — aligné sur le design system du site (site.css) */

:root {
  --bg: #faf8f5;
  --bg-alt: #f2ede6;
  --surface: #fff;
  --ink: #2d231c;
  --muted: #5c4a3d;
  --ink-soft: #8a7566;
  --accent: #7a9e7e;
  --accent-light: #a8c5ac;
  --gold: #b8956b;
  --gold-soft: #d4b896;
  --border: #e8dfd4;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

/* ─── En-tête (même logique que la page Contact) ─── */
.page-service .service-page {
  max-width: min(1000px, 100% - 2rem);
  margin: 0 auto;
  padding: 28px 0 48px;
}

.page-service .service-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 520px) {
  .page-service .service-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .page-service .service-topbar-actions {
    justify-content: center;
  }
}

.page-service .service-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.page-service .service-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.page-service .service-brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.page-service .service-brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.page-service .service-brand-text em {
  font-style: italic;
  color: var(--gold);
}

.page-service .service-back {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.page-service .service-back:hover {
  color: var(--ink);
}

.page-service .service-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.page-service .service-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.page-service .service-toplink {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.page-service .service-toplink:hover {
  color: var(--ink);
}

.page-service .service-toplink:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.page-service .service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}

.page-service .service-cta:hover {
  background: var(--gold-soft);
}

.page-service .service-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-service .service-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.page-service .service-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.15rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.page-service .service-footer-links a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.page-service .service-footer-links a:hover {
  color: var(--gold);
}

.page-service .service-footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.page-service .service-footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(45, 35, 28, 0.06);
}

.hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.hero-content {
  padding: 1.25rem 1.2rem 1.35rem;
  display: grid;
  gap: 1rem;
}

.pill {
  display: inline-flex;
  align-self: start;
  border: 1px solid var(--accent-light);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0.1rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.meta {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.9375rem;
}

.hero-content > p {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 68ch;
}

.cta {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.page-service .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}

.page-service .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-service .btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(184, 149, 107, 0.35);
}

.page-service .btn-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.page-service .btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.page-service .btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sections {
  margin-top: 0.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.05rem;
  box-shadow: 0 4px 18px rgba(45, 35, 28, 0.05);
}

.card h2 {
  margin: 0.1rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.card ul {
  margin: 0.1rem 0 0.1rem 1rem;
  padding: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 920px) {
  .sections {
    grid-template-columns: 1fr;
  }

  .hero-content > p {
    font-size: 0.98rem;
  }
}

.related {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.related-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 240px);
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-soft) transparent;
}

.related-track::-webkit-scrollbar {
  height: 8px;
}

.related-track::-webkit-scrollbar-thumb {
  background: var(--gold-soft);
  border-radius: 999px;
}

.related-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  scroll-snap-align: start;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.related-card-body {
  padding: 0.65rem 0.75rem 0.85rem;
}

.related-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.related-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(45, 35, 28, 0.1);
}

.related-card.is-current {
  opacity: 0.65;
  pointer-events: none;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.before-after-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .before-after-grid {
    grid-template-columns: 1fr;
  }
}

/* Bouton WhatsApp flottant (pages détails) */
.elizb-whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.elizb-whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.elizb-whatsapp-float span {
  position: absolute;
  left: -9999px;
}
