/*
 * Warda — feuille de style.
 * Palette « rose de Kelâa » : prune, rose ancien, blush, lait d'amande ; or d'argan en décor seulement.
 * Contrastes mesurés (WCAG) : encre/lait 15,1 · gris prune/lait 6,3 · gris prune/blush 5,3
 * · rose/lait 5,8 · rose/blush 4,9 · blanc/rose 6,2 · blush/prune 11,7 · rose clair/prune 7,3
 * · argan/prune 6,6 · argan/lait 3,0 (décor uniquement, jamais de texte).
 */
:root {
  --milk: #FBF5F1;
  --blush: #F3E0DC;
  --blush-deep: #EBCFC9;
  --ink: #2E1A24;
  --muted: #6B5560;
  --rose: #A23E5C;
  --rose-deep: #7A2944;
  --rose-light: #E8A3B4;
  --plum: #3B1E2C;
  --argan: #B8863B;
  --argan-light: #D4A55A;
  --wa: #1F7A4D;
  --line: rgba(46, 26, 36, 0.14);

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Jost", "Segoe UI", system-ui, sans-serif;

  --wrap: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="ar"] {
  --display: "El Messiri", "Tajawal", serif;
  --body: "Tajawal", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-size: 1.125rem; line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--rose); color: #fff; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-style: italic; }
h3 { font-size: 1.45rem; font-weight: 600; }
html[lang="ar"] h1, html[lang="ar"] h2 { font-style: normal; line-height: 1.35; }
html[lang="ar"] h3 { font-size: 1.25rem; line-height: 1.5; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; text-wrap: pretty; }
.num { font-variant-numeric: lining-nums tabular-nums; }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-head { margin-block-end: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { margin-block-end: 0.75rem; }
.section-blush { background: var(--blush); }
.section-blush .lead { color: var(--muted); }
.section-plum { background: var(--plum); color: var(--blush); }
.section-plum .lead { color: var(--blush); opacity: 0.86; }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
.section-plum :focus-visible, .site-footer :focus-visible { outline-color: var(--rose-light); }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--milk); padding: 0.75rem 1rem; border-radius: 999px;
}
.skip:focus { top: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.7rem 1.6rem; border: 0; border-radius: 999px;
  font: 500 1rem/1.2 var(--body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: var(--rose-deep); }
.btn-small { min-height: 2.75rem; padding: 0.55rem 1.2rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn svg, .wa-icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem;
  color: var(--rose); font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 85% / 100% 1px;
}
.link-arrow svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 200ms var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--milk) 92%, transparent);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid transparent;
  transition: border-color 200ms;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; min-height: 2.75rem; }
.brand-mark { width: 1.9rem; height: 1.9rem; fill: none; stroke: var(--rose); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font: italic 600 1.85rem/1 "Cormorant Garamond", serif; letter-spacing: 0.01em; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  text-decoration: none; font-size: 0.97rem; color: var(--muted);
  background: linear-gradient(var(--rose), var(--rose)) no-repeat 50% 80% / 0 1px;
  transition: background-size 250ms var(--ease), color 200ms;
}
.nav ul a:hover, .nav ul a[aria-current="true"] { color: var(--ink); background-size: 100% 1px; }

.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem; }
.lang button {
  min-width: 2.75rem; min-height: 2.25rem; border: 0; border-radius: 999px; background: none;
  font: 500 0.85rem/1 var(--body); color: var(--muted); cursor: pointer;
}
.lang button[lang="ar"] { font-family: "Tajawal", sans-serif; font-size: 0.95rem; }
.lang button[aria-pressed="true"] { background: var(--plum); color: var(--blush); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 7px; width: 2.75rem; height: 2.75rem;
    border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 1.1rem; height: 1.5px; background: var(--ink); transition: transform 250ms var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1.25rem var(--pad) 2rem; background: var(--milk); border-block-end: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { font: italic 500 1.6rem/1.3 var(--display); color: var(--ink); width: 100%; padding-block: 0.3rem; background: none; }
  html[lang="ar"] .nav ul a { font-style: normal; font-size: 1.35rem; }
  .lang { align-self: flex-start; }
}

/* ---------- Ouverture ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 6rem) var(--section); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 5.6rem); font-style: italic; letter-spacing: -0.01em; line-height: 0.98; margin-block-end: 1.75rem; }
html[lang="ar"] .hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.3; }
.hero .lead { font-size: 1.2rem; margin-block-end: 2.25rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero-note { margin-block-start: 1.5rem; font-size: 0.93rem; color: var(--muted); }

.hero-media { position: relative; isolation: isolate; aspect-ratio: 4 / 5; width: 100%; max-width: 30rem; justify-self: end; }
.photo { background-color: var(--blush-deep); background-size: cover; background-position: center; }
.petal {
  position: absolute; inset: 0;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  animation: bloom 1.1s var(--ease) both;
}
.dot {
  position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%;
  inset-inline-start: -12%; bottom: 4%;
  box-shadow: 0 0 0 0.6rem var(--milk);
}
.hero-line {
  position: absolute; width: 112%; inset-inline-start: -6%; top: -5%; z-index: -1;
  fill: none; stroke: var(--argan); stroke-width: 0.5; opacity: 0.7;
}
@keyframes bloom { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 19rem; justify-self: center; margin-inline-start: 2.5rem; }
}

/* ---------- Le rituel ---------- */
.rituel-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.rituel-head { position: sticky; top: 7rem; }
.rituel-head h2 { margin-block-end: 1rem; }
.rituel-photo { margin-block-start: 2rem; aspect-ratio: 4 / 3; border-radius: 999px 999px 1.5rem 1.5rem; max-width: 26rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; align-items: baseline;
  padding-block: 1.75rem; border-block-end: 1px solid rgba(122, 41, 68, 0.22);
}
.steps li:first-child { padding-block-start: 0; }
.step-n { font: italic 500 3.4rem/1 "Cormorant Garamond", serif; color: var(--rose); }
.steps h3 { margin-block-end: 0.35rem; }
.steps p { margin: 0; color: var(--muted); }

@media (max-width: 820px) {
  .rituel-grid { grid-template-columns: 1fr; }
  .rituel-head { position: static; }
  .steps li { grid-template-columns: 4rem 1fr; }
  .step-n { font-size: 2.6rem; }
}

/* ---------- Soins & tarifs ---------- */
#soins .wrap { max-width: 56rem; }
#soins .section-head, #soins .chips { text-align: center; justify-content: center; }
#soins .lead { margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block-end: 2.5rem; }
.chip {
  min-height: 2.75rem; padding: 0.5rem 1.25rem; border: 1px solid var(--line); border-radius: 999px;
  background: none; color: var(--ink); font: 500 0.98rem/1 var(--body); cursor: pointer;
  transition: background-color 200ms, border-color 200ms, color 200ms;
}
.chip:hover { border-color: var(--rose); }
.chip[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: #fff; }
.prices { list-style: none; margin: 0; padding: 0; }
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 2rem; align-items: center;
  padding-block: 1.5rem; border-block-end: 1px solid var(--line);
}
.price-row:first-child { border-block-start: 1px solid var(--line); }
.price-head { display: flex; align-items: baseline; gap: 0.75rem; margin: 0 0 0.3rem; }
.price-name { font: 600 1.55rem/1.2 var(--display); }
html[lang="ar"] .price-name { font-size: 1.3rem; line-height: 1.5; }
.leader { flex: 1; min-width: 1.5rem; border-block-end: 1.5px dotted rgba(107, 85, 96, 0.55); transform: translateY(-0.3rem); }
.price-val { font-weight: 500; color: var(--rose); white-space: nowrap; }
.price-meta { margin: 0; color: var(--muted); font-size: 0.98rem; }
.book-link {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 1.1rem;
  border: 1px solid var(--rose); border-radius: 999px; color: var(--rose);
  font-weight: 500; font-size: 0.93rem; text-decoration: none;
  transition: background-color 200ms, color 200ms;
}
.book-link:hover { background: var(--rose); color: #fff; }
@media (max-width: 600px) {
  .price-row { grid-template-columns: 1fr; }
  .book-link { justify-self: start; }
}

/* ---------- La maison ---------- */
.mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: end;
}
.tile { margin: 0; }
.tile .photo { width: 100%; }
.tile-wide { grid-column: span 2; }
.tile-wide .photo { aspect-ratio: 16 / 10; border-radius: 1.5rem; }
.tile-round .photo { aspect-ratio: 1; border-radius: 50%; }
.tile-tall .photo { aspect-ratio: 3 / 4; border-radius: 999px 999px 1.25rem 1.25rem; }
.tile-petal .photo { aspect-ratio: 4 / 5; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; }
.tile figcaption { margin-block-start: 0.8rem; font: italic 500 1.15rem/1.35 "Cormorant Garamond", serif; color: var(--blush); }
html[lang="ar"] .tile figcaption { font: 400 1rem/1.6 var(--body); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (max-width: 820px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: 1 / -1; }
}

/* ---------- Avis ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.review { margin: 0; padding: 1.75rem; background: var(--blush); border-radius: 1.5rem; }
.review p { font: italic 500 1.3rem/1.4 var(--display); }
.review cite { font-style: normal; color: var(--muted); }

/* ---------- Questions ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-list details { border-block-end: 1px solid var(--line); }
.faq-list details:first-child { border-block-start: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 3.5rem; padding-block: 1rem; cursor: pointer; list-style: none;
  font: 600 1.3rem/1.3 var(--display);
}
html[lang="ar"] .faq-list summary { font-size: 1.15rem; line-height: 1.6; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 0.85rem; height: 0.85rem;
  background: linear-gradient(var(--rose), var(--rose)) center / 100% 1.5px no-repeat,
              linear-gradient(var(--rose), var(--rose)) center / 1.5px 100% no-repeat;
  transition: transform 250ms var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); max-width: 38rem; padding-block-end: 0.5rem; }
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Rendez-vous ---------- */
.rdv-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.rdv-info h2 { margin-block-end: 1rem; }
.rdv-info h3 { font-size: 1.25rem; margin-block: 2rem 0.6rem; }
.rdv-info p { color: var(--muted); }
.hours { margin: 0; max-width: 22rem; }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.35rem; border-block-end: 1px dotted rgba(107, 85, 96, 0.4); }
.hours dt { color: var(--ink); }
.hours dd { margin: 0; color: var(--muted); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--rose); }
[dir="rtl"] .contact-list a { justify-content: flex-end; }

.rdv-form {
  background: var(--milk); border-radius: 2rem; padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 1px 0 rgba(122, 41, 68, 0.08), 0 30px 60px -40px rgba(59, 30, 44, 0.45);
}
.field { margin: 0 0 1.25rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; margin-block-end: 0.45rem; font-weight: 500; font-size: 0.97rem; padding: 0; }
.optional { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="date"], select, textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 1rem;
  border: 1px solid rgba(46, 26, 36, 0.28); border-radius: 0.9rem;
  background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--body);
  accent-color: var(--rose);
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--rose); outline-offset: 1px; border-color: var(--rose); }
[aria-invalid="true"] { border-color: #B42318; }
.error { margin: 0.35rem 0 0; min-height: 0; color: #B42318; font-size: 0.92rem; font-weight: 500; }
.error:empty { display: none; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: 0.5rem; }
.slots input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot {
  display: grid; place-items: center; min-height: 2.75rem; margin: 0 !important;
  border: 1px solid rgba(46, 26, 36, 0.22); border-radius: 999px; background: #fff;
  font-weight: 500; cursor: pointer; transition: background-color 150ms, border-color 150ms, color 150ms;
}
.slot:hover { border-color: var(--rose); }
.slots input:checked + .slot { background: var(--rose); border-color: var(--rose); color: #fff; }
.slots input:focus-visible + .slot { outline: 3px solid var(--rose); outline-offset: 2px; }
.slots-empty { grid-column: 1 / -1; margin: 0; padding: 0.75rem 1rem; border: 1px dashed rgba(107, 85, 96, 0.5); border-radius: 0.9rem; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 820px) { .rdv-grid { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--plum); color: var(--blush); padding-block: 3.5rem 6rem; font-size: 0.93rem; }
.footer-row p { margin: 0 0 0.6rem; }
.footer-brand { font: italic 600 2.2rem/1 "Cormorant Garamond", serif; margin-block-end: 1rem !important; }
.site-footer a { color: var(--rose-light); }
.credits { opacity: 0.9; }

/* ---------- WhatsApp flottant ---------- */
.wa-float {
  position: fixed; z-index: 40; inset-inline-end: 1.25rem; bottom: 4.5rem;
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 10px 30px -10px rgba(31, 122, 77, 0.6);
  transition: transform 200ms var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
