/* Ruen Spa – Thai Massage · feuille de style
   Couleurs et typo : Design System Ruen Spa */

@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Noto Serif Thai"; src: url("../fonts/noto-serif-thai-thai-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --sand: #e8dcc4;
  --teal-900: #123f36;
  --teal-700: #2a6b5c;
  --gold: #c49a45;
  --ink: #291912;
  --surface: #f7f2e8;
  --surface-raised: #fffdf8;
  --text: var(--ink);
  --text-muted: #6b5b4b;
  --accent-text: #7f5f2a;
  --accent-light: #d9b76a;
  --line: #d9ccb1;

  --display: "Marcellus", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --thai: "Noto Serif Thai", serif;

  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 40px; --space-6: 64px;
  --section: clamp(72px, 10vw, 128px);
  --wrap: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 var(--space-3); }
h1, h2, h3 { margin: 0; font-weight: 400; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; transform: translateY(-200%); background: var(--teal-900); color: var(--surface); padding: 8px 14px; z-index: 100; }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Typo ---------- */
.eyebrow {
  font: 500 12px/16px var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: var(--space-3);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow-light { color: var(--accent-light); }
.h1 { font: 400 clamp(32px, 4.4vw, 46px)/1.15 var(--display); }
.h2 { font: 400 clamp(22px, 2.3vw, 26px)/1.25 var(--display); }
.h3 { font: 400 20px/1.3 var(--display); margin-bottom: var(--space-2); }
.muted { color: var(--text-muted); }
.small { font-size: 14px; line-height: 1.6; }
.credit { font-size: 12px; letter-spacing: .04em; color: var(--text-muted); margin: var(--space-3) 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 14px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: 17px 28px; border-radius: 4px; text-decoration: none; cursor: pointer;
  background: var(--teal-700); color: var(--surface); border: 1px solid var(--teal-700);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { background: var(--teal-900); border-color: var(--teal-900); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d4ab57; border-color: #d4ab57; }
.btn-ghost { background: transparent; color: var(--surface); border-color: rgba(247,242,232,.55); }
.btn-ghost:hover { background: rgba(247,242,232,.12); border-color: var(--surface); }
.btn-small { padding: 12px 18px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--surface); transition: background .35s, color .35s, box-shadow .35s;
}
.site-header.scrolled { background: rgba(247,242,232,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--space-4); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: auto; transition: filter .35s; filter: brightness(1.25) saturate(.8); }
.site-header.scrolled .brand img { filter: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 400 21px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; font-family: "Marcellus", serif; }
.brand-sub { font: 500 9px/1 "Jost", sans-serif; letter-spacing: .26em; text-transform: uppercase; opacity: .8; margin-top: 5px; }
.nav { display: flex; gap: clamp(16px, 2.2vw, 32px); margin-inline-start: auto; }
.nav a { font-size: 14px; letter-spacing: .06em; text-decoration: none; padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s; }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid currentColor; border-radius: 4px; overflow: hidden; opacity: .9; }
.lang button { background: none; border: 0; color: inherit; font: 500 12px/1 var(--sans); padding: 8px 9px; cursor: pointer; letter-spacing: .06em; }
.lang button[aria-pressed="true"] { background: currentColor; }
.lang button[aria-pressed="true"] { color: var(--teal-900); background: var(--surface); }
.site-header.scrolled .lang button[aria-pressed="true"] { background: var(--teal-900); color: var(--surface); }
.site-header:not(.scrolled) .header-actions .btn-small { background: transparent; border-color: rgba(247,242,232,.6); }
.menu-toggle { display: none; background: none; border: 0; color: inherit; width: 40px; height: 40px; cursor: pointer; position: relative; }
.bars, .bars::before, .bars::after { position: absolute; left: 9px; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.bars { top: 19px; } .bars::before { content: ""; left: 0; top: -7px; } .bars::after { content: ""; left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--surface); overflow: hidden; background: var(--teal-900); }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 55% 50%; animation: drift 24s ease-out both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-veil { position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,38,32,.55) 0%, rgba(14,38,32,.25) 35%, rgba(14,38,32,.70) 100%),
    radial-gradient(ellipse at 50% 55%, rgba(14,38,32,.15), rgba(14,38,32,.55) 75%);
}
.hero-content { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: calc(var(--header-h) + 24px); padding-bottom: 64px; }
.hero-logo { width: clamp(150px, 18vw, 220px); height: auto; margin-bottom: var(--space-5); opacity: 0; animation: rise 1.4s .2s ease-out forwards; }
.hero .eyebrow { justify-content: center; opacity: 0; animation: rise 1.2s .5s ease-out forwards; }
.hero .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.hero-title { font: 400 clamp(38px, 6.2vw, 72px)/1.08 var(--display); max-width: 16ch; text-wrap: balance; opacity: 0; animation: rise 1.2s .7s ease-out forwards; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); font-weight: 300; margin: var(--space-4) 0 var(--space-5); max-width: 40ch; opacity: 0; animation: rise 1.2s .9s ease-out forwards; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; opacity: 0; animation: rise 1.2s 1.1s ease-out forwards; }
.hero-credit { position: absolute; bottom: 14px; inset-inline-end: 20px; color: rgba(247,242,232,.65); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p:last-child { margin-top: var(--space-3); }

/* Maison */
.maison-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.maison-word { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; background: var(--teal-900); color: var(--sand);
  display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.maison-word::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(196,154,69,.55); border-radius: 999px 999px 0 0; }
.maison-word::after { content: ""; position: absolute; inset: 0; background: url("../img/ruen-spa-mark.png") center 18% / 40% no-repeat; opacity: .16; }
.thai { font: 400 clamp(64px, 9vw, 112px)/1.1 var(--thai); color: var(--gold); position: relative; }
.translit { font: 400 13px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; margin-top: var(--space-3); opacity: .85; position: relative; }
.translit em { font-style: normal; }
.maison-text p { color: var(--text); max-width: 56ch; }
.maison-text .h1 { margin-bottom: var(--space-4); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); }
.pillar { padding: var(--space-5) clamp(16px, 3vw, 40px) 0; border-inline-start: 1px solid var(--line); }
.pillar:first-child { border-inline-start: 0; padding-inline-start: 0; }
.pillar p { color: var(--text-muted); font-size: 16px; }
.pillar-num { display: block; font: 400 15px/1 var(--display); color: var(--accent-text); margin-bottom: var(--space-4); letter-spacing: .1em; }

/* Soins */
.soins { background: var(--sand); }
.soins::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(127,95,42,.14) 1px, transparent 1px); background-size: 22px 22px; }
.soins .wrap { position: relative; }
.menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.menu-item { background: var(--surface-raised); padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; }
.menu-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: var(--space-3); }
.tag { flex: none; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); border: 1px solid var(--line); padding: 6px 9px; border-radius: 999px; }
.tag[lang="th"] { font-family: var(--thai); letter-spacing: 0; font-size: 13px; text-transform: none; }
.menu-desc { color: var(--text-muted); font-size: 16px; flex: 1; }
.prices { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.prices li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; font-size: 15px; }
.prices i { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.prices b { font: 500 18px/1 var(--sans); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.prices b::after { content: " MAD"; font-size: 11px; letter-spacing: .1em; font-weight: 500; }
.menu-soon { background: var(--teal-900); color: var(--sand); position: relative; overflow: hidden; }
.menu-soon::after { content: ""; position: absolute; width: 220px; height: 110px; inset-inline-end: -30px; bottom: -10px; background: url("../img/ruen-spa-mark.png") center / contain no-repeat; opacity: .12; }
.menu-soon .h2 { margin-bottom: var(--space-3); }
.menu-soon p:not(.eyebrow) { color: rgba(232,220,196,.88); font-size: 16px; flex: 1; }
.menu-soon .btn { align-self: flex-start; position: relative; z-index: 1; }

/* Lieu */
.lieu { background: var(--teal-900); color: var(--sand); }
.lieu .section-head p:not(.eyebrow) { color: rgba(232,220,196,.85); }
.gallery { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-flow: dense; grid-auto-rows: clamp(150px, 17vw, 230px); gap: 14px; padding: 0 clamp(16px, 4vw, 40px); max-width: calc(var(--wrap) + 160px); margin: 0 auto; }
.g { margin: 0; position: relative; overflow: hidden; grid-column: span 3; }
.g-tall { grid-row: span 2; grid-column: span 4; }
.g-tall:nth-child(4) { grid-column: 4 / span 4; }
.g:nth-child(1) { border-radius: 999px 999px 0 0; }
.g:nth-child(4) { border-radius: 999px 999px 0 0; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.g:hover img { transform: scale(1.04); }
.g figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px; font: 400 17px/1.2 var(--display);
  background: linear-gradient(transparent, rgba(14,38,32,.85)); color: var(--surface); }
.espaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4) clamp(24px, 3vw, 48px); margin-top: clamp(40px, 6vw, 72px); }
.espace { border-top: 1px solid rgba(196,154,69,.45); padding-top: 18px; }
.espace .h3 { color: var(--surface); margin: 0 0 8px; }
.espace p { margin: 0; color: rgba(232,220,196,.82); font-size: 15.5px; line-height: 1.65; max-width: 42ch; }
@media (max-width: 900px) { .espaces { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .espaces { grid-template-columns: 1fr; } }
.lieu .credit { color: rgba(232,220,196,.6); margin-top: var(--space-4); }

/* Rituel */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.steps li { position: relative; padding-top: var(--space-5); }
.steps li::before { content: ""; position: absolute; top: 18px; inset-inline-start: 46px; inset-inline-end: -20px; height: 1px; background: var(--line); }
.steps li:last-child::before { display: none; }
.step-n { position: absolute; top: 0; inset-inline-start: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; font: 400 15px/1 var(--display); color: var(--accent-text); background: var(--surface); }
.steps p { color: var(--text-muted); font-size: 16px; }

/* Cadeaux */
.cadeaux { background: var(--surface-raised); border-top: 1px solid var(--line); }
.cadeaux-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.cadeaux-intro .h1 { margin-bottom: var(--space-4); }
.cadeaux-intro p { color: var(--text-muted); margin-bottom: var(--space-5); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); padding: var(--space-4); position: relative; }
.card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(196,154,69,.35); pointer-events: none; }
.card-k { font: 500 12px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--space-3); }
.card-v { font: 400 38px/1 var(--display); margin-bottom: var(--space-3); }
.card-v small { font: 500 13px/1 var(--sans); letter-spacing: .1em; color: var(--text-muted); }
.card-d { font-size: 15px; color: var(--text-muted); margin: 0; }
.card-dark { grid-column: span 2; background: var(--teal-700); border-color: var(--teal-700); color: var(--surface); }
.card-dark .card-k { color: var(--sand); }
.card-dark .card-d { color: rgba(247,242,232,.9); }

/* Réserver */
.reserver { background: linear-gradient(rgba(18,63,54,.94), rgba(18,63,54,.94)), url("../img/repos-1000.webp") center / cover; color: var(--sand); }
.reserver-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.reserver-intro .h1 { margin-bottom: var(--space-4); color: var(--surface); }
.reserver-intro p:not(.eyebrow) { color: rgba(232,220,196,.88); }
.contact-lines { list-style: none; padding: 0; margin: var(--space-5) 0 0; border-top: 1px solid rgba(232,220,196,.2); }
.contact-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(232,220,196,.2); font-size: 15px; }
.contact-lines span { color: rgba(232,220,196,.7); }
.contact-lines a { color: var(--surface); text-decoration: none; }
.contact-lines a:hover { color: var(--accent-light); }
.book-form { background: var(--surface); color: var(--ink); padding: clamp(24px, 4vw, 44px); border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; flex: 1; }
.field-row { display: flex; gap: 16px; }
.field label { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--surface-raised);
  border: 1px solid var(--line); border-radius: 4px; padding: 13px 14px; width: 100%; min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(42,107,92,.15); }
.form-error { color: #8a2c1c; font-size: 14px; }
.form-hint { font-size: 13px; color: var(--text-muted); margin: 14px 0 0; text-align: center; }

/* Infos */
.infos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
.info-block { border-top: 1px solid var(--gold); padding-top: var(--space-4); }
.info-block p, .rules { font-size: 16px; color: var(--text); }
.rules { padding-inline-start: 18px; margin: 0; }
.rules li { margin-bottom: 8px; color: var(--text-muted); }
.link { color: var(--accent-text); text-decoration: none; font-size: 15px; border-bottom: 1px solid currentColor; }

/* Footer */
.site-footer { background: #0e2620; color: var(--sand); padding: var(--space-6) 0 var(--space-5); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-5); align-items: center; }
.footer-logo { width: 110px; height: auto; }
.footer-quote { font: 400 24px/1.3 var(--display); color: var(--surface); }
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); }
.footer-meta { text-align: end; color: rgba(232,220,196,.7); }
.footer-meta p { margin: 0 0 4px; }

/* WhatsApp flottant */
.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal-700); color: var(--surface); box-shadow: 0 10px 30px -8px rgba(0,0,0,.45);
  transform: translateY(120px); transition: transform .4s, background .25s; }
.wa-float.show { transform: none; }
.wa-float:hover { background: var(--teal-900); }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; background: var(--surface); color: var(--ink);
    padding: 8px clamp(16px, 4vw, 40px) 24px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s; margin: 0; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }
  .menu-toggle { display: block; }
  .header-actions { margin-inline-start: auto; }
  .infos-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps li:nth-child(2)::before { display: none; }
}
@media (max-width: 860px) {
  .maison-grid, .cadeaux-grid, .reserver-grid { grid-template-columns: 1fr; }
  .maison-word { max-width: 340px; width: 100%; margin: 0 auto; }
  .pillars { grid-template-columns: 1fr; border-top: 0; }
  .pillar { border-inline-start: 0; border-top: 1px solid var(--line); padding: var(--space-4) 0; }
  .menu { grid-template-columns: 1fr; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .g, .g-tall { flex: 0 0 78%; height: 380px; scroll-snap-align: center; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-meta { text-align: center; }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .brand-sub { display: none; }
  .brand img { width: 44px; }
  .brand-name { font-size: 18px; }
  .header-actions .btn-small { display: none; }
  .hero-cta .btn { width: 100%; }
  .hero-credit { inset-inline-end: 0; left: 0; text-align: center; }
  .steps, .infos-grid, .cards { grid-template-columns: 1fr; }
  .steps li::before { display: none; }
  .card-dark { grid-column: auto; }
  .field-row { flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-logo, .hero .eyebrow, .hero-title, .hero-lead, .hero-cta, .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
