/* Buddha Spa Meknès — charte reprise du site d'origine */

:root {
  --terracotta: #AE614D;
  --rose: #FE0467;
  --gold: #C5925F;
  --orange: #CB5438;
  --blue: #0E619C;
  --heading: #54595F;
  --text: #7A7A7A;
  --line: #e6e0dc;
  --bg: #ffffff;

  --f-text: "Roboto", system-ui, sans-serif;
  --f-alt: "Open Sans", system-ui, sans-serif;
  --f-title: "Viga", "Roboto", sans-serif;
  --f-deco: "Uncial Antiqua", serif;

  --wrap: 1140px;
  --radius-photo: 50px 6px 6px 6px;
  --shadow-photo: 0 20px 30px rgba(12, 23, 52, .1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.7 var(--f-text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.ico { flex: none; vertical-align: middle; }

/* ── Bandeau du haut ─────────────────────────────────────────── */
.topbar { background: var(--terracotta); color: #fff; font-size: 13px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.topbar__info { gap: 22px; flex-wrap: wrap; }
.topbar__info li { display: flex; align-items: center; gap: 7px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { text-decoration: none; opacity: .8; }
.topbar__social { gap: 18px; }

/* ── En-tête ─────────────────────────────────────────────────── */
.header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.header__in { display: flex; align-items: center; justify-content: space-between; min-height: 104px; }
.header__logo img { width: 86px; height: auto; }
.header__burger, .nav__close {
  display: none; background: none; border: 0; padding: 6px; color: var(--terracotta); cursor: pointer;
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: block; padding: 10px 13px;
  color: var(--terracotta);
  font: 500 13px/1 var(--f-text);
  text-transform: uppercase; letter-spacing: .02em;
}
.nav a:hover { color: var(--rose); text-decoration: none; }
.nav a.is-current { color: var(--rose); }

/* ── Texte riche ─────────────────────────────────────────────── */
.prose { font-size: 15px; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--f-title); font-weight: 400; color: var(--heading);
  line-height: 1.25; margin: 1.6em 0 .6em;
}
.prose h2 { font-size: 27px; }
.prose h3 { font-size: 23px; }
.prose h4 { font-size: 19px; }
.prose p { margin: 0 0 1em; }
.prose strong, .prose b { color: #5b5b5b; font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: 0 0 .7em; }
.prose li p { margin: 0; }
.prose li::marker { color: var(--terracotta); }
.prose a { font-weight: 600; }

/* ── Boutons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 34px; border-radius: 40px; border: 2px solid transparent;
  font: 500 14px/1 var(--f-text); cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { text-decoration: none; }
.btn--fill { background: var(--orange); color: #fff; }
.btn--fill:hover { background: var(--terracotta); }
.btn--line { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--line:hover { background: var(--blue); color: #fff; }
.btn--square { border-radius: 0; background: var(--terracotta); color: #fff; padding: 13px 60px; font-weight: 400; }
.btn--square:hover { background: var(--orange); }

/* ── Accueil ─────────────────────────────────────────────────── */
.hero { padding: 80px 0; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 0; max-width: 1280px; }
.hero__media { position: relative; padding-left: 20px; }
.hero__photo { width: 100%; }
.hero__text { position: relative; margin-left: 43px; padding-right: 20px; }
.prose--hero { font: 400 16px/1.6 var(--f-alt); }
.prose--hero h2 { font: 600 34px/1.25 var(--f-text); color: var(--gold); margin: 0 0 18px; }
.prose--hero strong { color: #5b5b5b; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; }

.deco { position: absolute; z-index: 2; pointer-events: none; }
.deco--burst { width: 12%; top: -3%; left: 92%; }
.deco--wave  { width: 34%; top: 5%;  left: 12%; }
.deco--leaf  { width: 19%; top: 68%; left: 74%; }
.deco--spark { width: 20%; top: -3%; left: -8%; }
.deco--spark-sm { width: 6%; top: 17%; left: -5%; }

/* ── Pages de contenu ────────────────────────────────────────── */
.article { padding: 70px 0 90px; }
.article__in { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.article__aside { position: sticky; top: 130px; }
.article__body > * + * { margin-top: 34px; }
.photo { margin: 0 0 0; }
.article__body > .photo + .photo { margin-top: 14px; }
.article__body > .prose + .photo, .article__body > .photo + .prose { margin-top: 34px; }
.photo img { width: 100%; border-radius: var(--radius-photo); box-shadow: var(--shadow-photo); }

.notfound { text-align: center; padding: 60px 20px; }
.notfound h1 { font: 400 32px/1.3 var(--f-title); color: var(--heading); }

/* ── Contact ─────────────────────────────────────────────────── */
.contact { padding: 80px 0 100px; }
.contact__in { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact form { display: grid; gap: 16px; max-width: 430px; }
.contact label { display: grid; gap: 6px; color: var(--terracotta); font-size: 14px; }
.contact input, .contact textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 0;
  font: inherit; color: #444; background: #fff;
}
.contact input:focus, .contact textarea:focus { outline: 2px solid rgba(174, 97, 77, .35); border-color: var(--terracotta); }
.contact .btn { justify-self: start; margin-top: 4px; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__info { list-style: none; margin: 44px 0 0 60px; padding: 0; display: grid; gap: 10px; font-size: 14px; color: #555; }
.contact__info li { display: flex; gap: 10px; align-items: flex-start; }
.contact__info .ico { color: var(--terracotta); margin-top: 3px; }
.contact__info a { color: inherit; font-weight: 400; }
.contact__photo { margin: 0; }
.contact__photo img { width: 100%; }

.notice { padding: 14px 16px; margin: 0 0 20px; font-size: 14px; max-width: 430px; }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }
.notice--ok { background: #eef7ef; color: #2d6a35; border-left: 3px solid #4a9a55; }
.notice--error { background: #fbeeec; color: #8c3221; border-left: 3px solid var(--orange); }

/* ── Pied de page ────────────────────────────────────────────── */
.footer { background: var(--terracotta); color: #fff; padding: 80px 0 30px; }
.footer__in { display: grid; justify-items: center; gap: 40px; }
.footer__logo { width: 230px; }
.footer__copy { justify-self: end; margin: 0; font: 400 14px/1.4 var(--f-deco); }

/* ── Tablette et mobile ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .header__burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: #fff;
    padding: 70px 24px 24px; transform: translateX(100%); transition: transform .25s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.12); z-index: 60; overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__close { display: inline-flex; position: absolute; top: 16px; right: 16px; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 15px 4px; border-bottom: 1px solid #f1ece9; font-size: 14px; }

  .hero { padding: 60px 0; }
  .hero__in, .article__in, .contact__in { grid-template-columns: 1fr; }
  .hero__media { padding: 0; max-width: 560px; }
  .hero__text { margin: 48px 0 0; padding: 0; }
  .article__aside { position: static; }
  .contact__info { margin-left: 0; }
}

@media (max-width: 640px) {
  .topbar__in { flex-direction: column; justify-content: center; padding-top: 8px; padding-bottom: 8px; gap: 6px; }
  .topbar__info { justify-content: center; gap: 4px 16px; text-align: center; }
  .header__in { min-height: 84px; }
  .header__logo img { width: 68px; }
  .prose--hero h2 { font-size: 28px; }
  .prose h2 { font-size: 23px; }
  .prose h3 { font-size: 20px; }
  .article { padding: 40px 0 60px; }
  .article__in { gap: 34px; }
  .footer { padding: 56px 0 26px; }
  .footer__copy { justify-self: center; text-align: center; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav { transition: none; }
}
