/* =========================================================================
   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); }
button.mcta { border: 0; width: 100%; font-family: var(--font-body); cursor: pointer; }

/* ---------- Fenetre de reservation (demo front-end) ---------- */
.book-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.book-modal[hidden] { display: none; }
.book-backdrop { position: absolute; inset: 0; background: rgba(20, 15, 12, 0.55); backdrop-filter: blur(3px); animation: bkFade 0.2s ease; }
.book-dialog {
  position: relative; z-index: 1; width: 100%; max-width: 440px; max-height: 92vh;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 26px 22px 22px; animation: bkPop 0.24s cubic-bezier(0.2, 0.8, 0.25, 1);
}
@keyframes bkFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bkPop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.book-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
  border: 0; border-radius: 999px; background: var(--surface-soft); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.book-close:hover { background: var(--line); }
.book-head { margin-bottom: 18px; padding-right: 30px; }
.book-h2 { font-size: 27px; color: var(--primary); }
.book-salon { color: var(--muted); font-size: 14px; margin-top: 2px; }
.book-field { margin-bottom: 16px; }
.book-label {
  display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.4px;
  color: var(--muted); margin-bottom: 7px; text-transform: uppercase;
}
.book-select, .book-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
}
.book-select:focus, .book-input:focus { outline: none; border-color: var(--accent); }
.book-dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.book-date {
  flex: 0 0 auto; min-width: 58px; padding: 9px 6px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-align: center; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.book-date:hover { border-color: var(--accent); }
.book-date.is-active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.bd-day { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; opacity: 0.85; }
.bd-num { display: block; font-family: var(--font-title); font-size: 22px; font-weight: 600; line-height: 1.15; }
.bd-mon { display: block; font-size: 11px; opacity: 0.85; }
.book-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.book-slot {
  padding: 10px 4px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--surface); font-family: var(--font-body); font-size: 14px;
  color: var(--ink); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.book-slot:hover:not(:disabled) { border-color: var(--accent); }
.book-slot.is-active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.book-slot:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.book-slots-empty { grid-column: 1 / -1; color: var(--muted); font-size: 14px; text-align: center; padding: 10px 4px; }
.book-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book-submit { width: 100%; margin-top: 6px; }
.book-submit:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.book-submit:disabled:hover { background: var(--primary); }
.book-legal { text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px; line-height: 1.5; }

/* Confirmation */
.book-done { text-align: center; padding: 14px 6px 8px; }
.book-check {
  width: 66px; height: 66px; margin: 4px auto 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 34px; animation: bkPop 0.3s ease;
}
.book-done h2 { font-size: 27px; color: var(--primary); margin-bottom: 10px; }
.book-done > p { color: var(--ink); font-size: 15px; }
.book-recap { background: var(--surface-soft); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; text-align: left; }
.book-recap div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14.5px; }
.br-k { color: var(--muted); }
.br-v { font-weight: 500; text-align: right; }
body.book-open { overflow: hidden; }
@media (max-width: 380px) { .book-slots { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 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; }
}
