/* Maison Selma — palette : prune, rose poudré, ivoire */
:root {
  --plum: #3b2530;
  --rose: #93505a;
  --ivory: #f7f2ee;
  --ink: #2a1a22;
  --soft: rgba(42, 26, 34, .7);
  --line: rgba(59, 37, 48, .14);
  --serif: "Bodoni Moda", Didot, Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; margin: 0; letter-spacing: -.01em; }
h1 em, h2 em { color: var(--rose); }
h2 { font-size: clamp(34px, 7.4vw, 62px); }
p { margin: 0; }
section[id] { scroll-margin-top: 64px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--pad); }
.eyebrow { font-size: 12.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--rose); margin-bottom: 16px; }
.muted { color: var(--soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 500 16px/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--plum); color: var(--ivory); }
.btn-main:hover { background: #2a1a22; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-light { background: var(--ivory); color: var(--plum); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; background: var(--plum); color: var(--ivory); }

.demo-bar { background: var(--plum); color: var(--ivory); font-size: 12.5px; text-align: center; padding: 7px 16px; letter-spacing: .03em; }

.header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--pad);
  background: rgba(247, 242, 238, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { font: 400 23px/1 var(--serif); text-decoration: none; letter-spacing: .01em; }
.logo em { color: var(--rose); }
.nav { display: none; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; opacity: .78; transition: opacity .2s; }
.nav a:hover { opacity: 1; }

/* Accueil */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - 96px); display: flex; align-items: flex-end; color: #fff; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 30%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 26, 34, .38) 0%, rgba(42, 26, 34, .7) 34%, rgba(42, 26, 34, .92) 85%); }
.hero-content { position: relative; padding: 0 var(--pad) calc(162px + env(safe-area-inset-bottom)); max-width: 760px; }
.hero .eyebrow { color: #f1cfd3; }
.hero h1 { font-size: clamp(40px, 10.6vw, 84px); margin-bottom: 18px; }
.hero h1 em { color: #f1cfd3; }
.hero-sub { font-size: 18px; opacity: .92; margin-bottom: 26px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-actions .btn { flex: 1 1 240px; }
.hero-actions .btn-main { background: var(--ivory); color: var(--plum); }
.hero-open { display: flex; align-items: center; gap: 10px; font-size: 14.5px; opacity: .92; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #8fd6a0; box-shadow: 0 0 0 4px rgba(143, 214, 160, .25); }
.dot.closed { background: #f0b3a6; box-shadow: 0 0 0 4px rgba(240, 179, 166, .25); }

/* Prestations */
.services { padding-block: clamp(72px, 12vw, 140px); }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head h2 { margin-bottom: 12px; }
.service-grid { display: grid; gap: 18px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.service-body { padding: 24px 22px 14px; }
.service-body h3 { font-size: 32px; margin-bottom: 10px; }
.prices { list-style: none; margin: 0; padding: 0; }
.prices li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.prices span { font-size: 16.5px; }
.prices b { font-weight: 500; font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.prices a {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14.5px; font-weight: 500; color: var(--plum); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rose);
}
.prices a:hover { color: var(--rose); }

/* Avant / après */
.ba { background: var(--plum); color: var(--ivory); padding-block: clamp(72px, 12vw, 140px); }
.ba .eyebrow { color: #e6b8be; }
.ba h2 em { color: #e6b8be; }
.ba .muted { color: rgba(247, 242, 238, .74); margin-top: 14px; }
.ba-grid { display: grid; gap: 36px; align-items: center; }
.ba-frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 9 / 11; max-width: 560px; width: 100%; justify-self: center; touch-action: pan-y; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); filter: saturate(.35) brightness(.86) contrast(.92); }
.ba-tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(42, 26, 34, .7); color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.ba-tag-before { left: 16px; }
.ba-tag-after { right: 16px; }
.ba-frame::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 2; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--plum);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); pointer-events: none;
}
.ba-handle svg { width: 22px; height: 22px; }
.ba-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible + .ba-handle, .ba-frame:focus-within .ba-handle { outline: 3px solid #e6b8be; outline-offset: 3px; }

/* Galerie */
.gallery { padding-block: clamp(72px, 12vw, 140px) 0; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.g-big { grid-column: span 2; aspect-ratio: 4 / 3 !important; }

/* Équipe */
.team { padding-block: clamp(72px, 12vw, 140px); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.member { margin: 0; }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; filter: grayscale(.15); }
.member figcaption { display: grid; gap: 2px; }
.member b { font: 400 22px/1.1 var(--serif); }
.member span { font-size: 14px; color: var(--soft); }
.member i { justify-self: start; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: rgba(168, 100, 109, .14); color: var(--plum); }

/* Infos */
.infos { padding-bottom: clamp(72px, 12vw, 140px); }
.infos-grid { display: grid; gap: 36px; }
.infos h2 { margin-bottom: 24px; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.hours th, .hours td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { font-weight: 500; color: var(--plum); }
.hours tr.today th::after { content: " · aujourd'hui"; font-size: 13px; color: var(--rose); }
.address { margin-bottom: 26px; }
.map { position: relative; min-height: 320px; border-radius: var(--radius); overflow: hidden; background: #ebe2dc; display: grid; place-items: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.6); }
.map-fallback { font-weight: 500; color: var(--plum); }

/* Appel final */
.final { background: var(--plum); color: var(--ivory); text-align: center; padding: clamp(90px, 14vw, 150px) var(--pad); }
.final h2 em { color: #e6b8be; }
.final-content { max-width: 560px; margin: 0 auto; }
.final h2 { margin-bottom: 12px; }
.final p { opacity: .85; margin-bottom: 28px; }

.footer { padding: 36px var(--pad) 190px; font-size: 14px; text-align: center; display: grid; gap: 6px; }
.credit a { font-family: "Instrument Serif", var(--serif); font-style: italic; font-size: 17px; }

/* Bouton WhatsApp flottant */
.wa-float { position: fixed; z-index: 50; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 66px); /* au-dessus du badge Netlify */ display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wa-circle { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.wa-circle svg { width: 30px; height: 30px; }
.wa-circle::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: wa-pulse 2.4s ease-out infinite; }
.wa-float:hover .wa-circle { transform: scale(1.08); }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

.anim .reveal, .anim .hero-in { opacity: 0; }
.anim .wa-float { opacity: 0; transform: translateY(20px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-circle::before { animation: none; }
}

@media (min-width: 768px) {
  .nav { display: flex; }
  .hero { min-height: calc(100vh - 106px); align-items: center; }
  .hero-shade { background: linear-gradient(90deg, rgba(42, 26, 34, .9) 0%, rgba(42, 26, 34, .72) 42%, rgba(42, 26, 34, .15) 75%); }
  .hero-content { padding-bottom: 0; }
  .hero-actions .btn { flex: none; }
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .service-card img { aspect-ratio: 4 / 3; }
  .ba-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .gallery-grid { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
  .g-big { grid-column: auto; grid-row: span 2; aspect-ratio: auto !important; }
  .team-grid { gap: 24px; }
  .member b { font-size: 28px; }
  .infos-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: stretch; }
  .map { min-height: 460px; }
  .footer { padding-bottom: 48px; }
}
@media (max-width: 420px) {
  .hero-actions .btn { padding: 0 16px; font-size: 15px; letter-spacing: 0; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-grid .member:last-child { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
}

/* Bouton flottant effacé quand il passerait sur un bouton, un lien ou un texte */
.wa-float > * { transition: opacity .25s ease, transform .25s ease; }
.wa-float.is-hidden { pointer-events: none; }
.wa-float.is-hidden > * { opacity: 0; }

.wa-float.is-hidden > *, .wa-float.is-hidden .wa-label { opacity: 0 !important; }

/* Cible tactile du logo : au moins 24 px de haut */
.logo { display: inline-block; padding-block: 4px; }
