/* Centre Massage & Hijama — styles communs aux 3 langues (fr, ar, en).
   Les marges/positions utilisent les propriétés logiques (inline-start/end)
   pour que la version arabe (dir="rtl") se retourne toute seule. */

:root {
  --bg: #ffffff;
  --bg-2: #f0f8f6;
  --card: #ffffff;
  --line: #d7e6e2;
  --text: #12303a;
  --muted: #5a737b;
  --brand: #0f9d7a;
  --brand-dark: #0c8467;
  --accent: #1b6fb5;
  --wa: #25d366;
  --radius: 16px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --track: 2px;
}
:root[lang="ar"] {
  --serif: "Amiri", "Times New Roman", serif;
  --sans: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --track: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* En-tête */
header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
.brand small { display: block; font: 500 11px/1 var(--sans); color: var(--muted); letter-spacing: var(--track); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: 13px; font-weight: 600; }
.langs a { text-decoration: none; padding: 5px 10px; border-radius: 999px; color: var(--muted); line-height: 1; }
.langs a:hover { color: var(--text); }
.langs a[aria-current="page"] { background: var(--bg-2); color: var(--brand); }
.langs a[lang="ar"] { font-family: "Cairo", "Segoe UI", sans-serif; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 8px 24px rgba(15,157,122,.25); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-wa { background: var(--wa); color: #08260f; }
.btn-wa:hover { box-shadow: 0 8px 24px rgba(37,211,102,.25); }
.btn svg { width: 18px; height: 18px; flex: none; }
.nav .btn { padding: 10px 18px; font-size: 14px; }

/* Héros */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero::before { content: ""; position: absolute; top: -20%; inset-inline-end: -10%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(27,111,181,.12), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brand); }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 6vw, 68px); line-height: 1.04; margin: 18px 0 20px; letter-spacing: -.5px; }
:root[lang="ar"] h1 { line-height: 1.35; letter-spacing: 0; font-weight: 700; }
h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: var(--muted); font-size: 14px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--brand); }
.hero-media { position: relative; padding-bottom: 40px; padding-inline-start: 40px; }
.hero-main { width: 100%; aspect-ratio: 11 / 13; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px rgba(18,48,58,.18); background: var(--bg-2); }
.hero-inset { position: absolute; inset-inline-start: 0; bottom: 0; width: 52%; margin: 0; background: #fff; padding: 8px; border-radius: 18px; box-shadow: 0 18px 40px rgba(18,48,58,.22); }
.hero-inset img { width: 100%; aspect-ratio: 13 / 10; object-fit: cover; border-radius: 12px; background: var(--bg-2); }
.hero-inset figcaption { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0 2px; font-weight: 600; font-size: 15px; color: var(--text); }
.hero-inset .ar { font-family: "Amiri", serif; font-size: 22px; color: var(--brand); line-height: 1; }

/* Sections */
section { padding: 88px 0; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { max-width: 640px; margin-bottom: 44px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; margin: 12px 0 14px; }
:root[lang="ar"] h2 { line-height: 1.4; font-weight: 700; }
.head p { color: var(--muted); margin: 0; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s, transform .2s; }
.svc:hover { border-color: rgba(15,157,122,.6); transform: translateY(-3px); }
.svc-img { margin: -26px -26px 20px; width: calc(100% + 52px); max-width: none; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-2); transition: transform .4s; }
.svc:hover .svc-img { transform: scale(1.04); }
.svc h3 { font-family: var(--serif); font-size: 25px; font-weight: 600; margin: 0 0 8px; }
:root[lang="ar"] .svc h3 { font-size: 23px; font-weight: 700; }
.svc p { color: var(--muted); font-size: 15px; margin: 0 0 18px; flex: 1; }
.svc .meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.svc .meta button { background: none; border: 0; color: var(--accent); font: 600 14px var(--sans); cursor: pointer; padding: 0; }
.svc .meta button:hover { text-decoration: underline; }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why div { border-top: 1px solid var(--brand); padding-top: 18px; }
.why h3 { font-size: 16px; margin: 0 0 6px; }
.why p { color: var(--muted); font-size: 14px; margin: 0; }

/* Réservation */
.booking { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.booking-intro { color: var(--muted); margin: 0; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 14px; }
.steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--brand); color: var(--accent); font-size: 13px; }
.steps span { color: var(--muted); font-size: 15px; padding-top: 4px; }
.steps strong { color: var(--text); font-weight: 600; }
form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 600; color: var(--muted); }
input, select, textarea { width: 100%; background: #f8fbfa; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 15px var(--sans); color-scheme: light; }
textarea { resize: vertical; min-height: 76px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,157,122,.18); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { background: #f8fbfa; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 8px 14px; font: 500 14px var(--sans); cursor: pointer; direction: ltr; }
.slot:hover { border-color: var(--brand); }
.slot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.slots-empty { color: var(--muted); font-size: 14px; }
.error { grid-column: 1 / -1; color: #c0392b; font-size: 14px; margin: 0; }
.error:empty { display: none; }
.send { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.send .btn { padding: 15px 18px; }
.note { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin: 0; text-align: center; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact a { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; display: grid; gap: 4px; }
.contact a:hover { border-color: var(--brand); }
.contact small { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: var(--track); }
.contact strong { font-size: 19px; font-weight: 600; }
.contact span { color: var(--muted); font-size: 14px; }

footer { padding: 32px 0 100px; color: var(--muted); font-size: 13px; text-align: center; }
footer a { color: var(--accent); text-decoration: none; }

/* Bouton WhatsApp flottant */
.fab { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(18,48,58,.25); }
.fab svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding: 56px 0 64px; }
  .hero-grid, .booking { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; width: 100%; margin: 8px auto 0; padding-bottom: 32px; padding-inline-start: 24px; }
  .hero-main { aspect-ratio: 4 / 3; }
  .services, .contact { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  form { grid-template-columns: 1fr; padding: 20px; }
  .send { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .nav .btn span { display: none; }
  .nav-end { gap: 8px; }
  .langs a { padding: 5px 8px; }
  .brand { font-size: 18px; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
