/* =========================================================================
   Design system — mini-site salon de coiffure (ProductFusion)
   Style "elegant feminin/mixte". Tout est pilote par 3 variables de marque
   (--primary / --accent / --bg) injectees par salon dans <head>.
   ========================================================================= */

:root {
  /* Fallbacks si un salon n'a pas de palette (ecrases par le <style> inline). */
  --primary: #8a6d5c;
  --accent: #c98a6b;
  --bg: #faf6f2;

  /* Tokens derives. */
  --ink: #2b2521;
  --muted: #7a6f66;
  --surface: #ffffff;
  --surface-soft: #f4ece5;
  --line: #e7ddd3;
  --white: #fff;

  --font-title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(43, 37, 33, 0.25);
  --shadow-sm: 0 4px 14px -8px rgba(43, 37, 33, 0.3);
  --maxw: 900px;
  --pad: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  padding-bottom: 74px; /* place pour la barre CTA mobile */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.1; letter-spacing: 0.2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  letter-spacing: 0.3px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: var(--white); border-color: rgba(255, 255, 255, 0.6); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Header collant ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-title); font-weight: 700; font-size: 21px;
  color: var(--ink); letter-spacing: 0.3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 82vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(20, 15, 12, 0.82) 0%,
    rgba(20, 15, 12, 0.35) 45%,
    rgba(20, 15, 12, 0.15) 100%);
}
.hero-content {
  position: relative; z-index: 2; color: var(--white);
  padding: 40px var(--pad) 46px; width: 100%; max-width: var(--maxw); margin: 0 auto;
}
.hero h1 { font-size: clamp(38px, 12vw, 66px); margin: 10px 0 6px; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35); }
.hero-sub { font-size: 17px; font-weight: 300; opacity: 0.95; max-width: 30ch; margin-bottom: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.rating-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 400;
}
.stars { color: #ffcf6b; letter-spacing: 1px; }
.rating-num { font-weight: 600; }
.rating-count { opacity: 0.9; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 54px var(--pad); }
.section-title {
  font-size: clamp(28px, 8vw, 40px); color: var(--primary);
  text-align: center; margin-bottom: 30px; position: relative;
}
.section-title::after {
  content: ""; display: block; width: 54px; height: 2px;
  background: var(--accent); margin: 14px auto 0; border-radius: 2px;
}
.section-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }

.about { text-align: center; padding-top: 46px; padding-bottom: 12px; }
.lead { font-family: var(--font-title); font-size: clamp(20px, 5.5vw, 27px); color: var(--ink); font-weight: 500; max-width: 40ch; margin: 0 auto; line-height: 1.35; }

/* ---------- Prestations (leaders pointilles) ---------- */
.price-list { list-style: none; max-width: 560px; margin: 0 auto; }
.price-item {
  display: flex; align-items: baseline; gap: 8px;
  padding: 15px 4px; border-bottom: 1px solid var(--line);
}
.price-name { font-weight: 400; font-size: 16.5px; }
.price-dots { flex: 1; border-bottom: 1.5px dotted var(--line); transform: translateY(-4px); }
.price-value { font-weight: 500; color: var(--primary); white-space: nowrap; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-item { overflow: hidden; border-radius: var(--radius); aspect-ratio: 1 / 1; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Avis ---------- */
.reviews { text-align: center; background: var(--surface-soft); max-width: none; }
.reviews > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.review-hero { display: inline-flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.review-score { font-family: var(--font-title); font-size: 64px; font-weight: 700; color: var(--primary); line-height: 1; }
.review-meta { text-align: left; }
.stars-lg { font-size: 22px; display: block; }
.review-count { color: var(--muted); font-size: 14px; }

/* ---------- Infos pratiques ---------- */
.infos-grid { display: grid; gap: 18px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 22px; color: var(--primary); margin-bottom: 12px; }
.info-card h3.mt { margin-top: 20px; }
.hours { list-style: none; }
.hours li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.hours li:last-child { border-bottom: 0; }
.hours-day { color: var(--muted); }
.hours-time { font-weight: 500; }
.address { font-style: normal; font-size: 15.5px; margin-bottom: 10px; }
.link-inline { color: var(--accent); font-weight: 500; }
.link-inline.strong { font-size: 20px; font-family: var(--font-title); }
.link-inline:hover { text-decoration: underline; }

.map { margin-top: 22px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e9e0d8; text-align: center; padding: 46px var(--pad) 40px; }
.footer-brand { font-family: var(--font-title); font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.footer-addr { color: #b6a79b; font-size: 14px; margin-bottom: 18px; }
.social { display: flex; justify-content: center; gap: 20px; margin-bottom: 22px; }
.social a { font-size: 14px; letter-spacing: 0.5px; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.social a:hover { border-color: var(--accent); color: var(--white); }
.legal { font-size: 12.5px; color: #9c8f84; line-height: 1.9; }
.legal a { color: #b6a79b; text-decoration: underline; }
.credit { color: #7f746b; }
.credit a { color: var(--accent); }

/* ---------- Barre CTA mobile ---------- */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 0;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -6px 20px -10px rgba(43, 37, 33, 0.3);
}
.mcta { padding: 16px; text-align: center; font-weight: 500; font-size: 15px; letter-spacing: 0.3px; }
.mcta-call { color: var(--primary); }
.mcta-book { background: var(--primary); color: var(--white); }

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .infos-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
  .hero { min-height: 78vh; }
}
