/* =========================================================
   Centre Aloumi — feuille de style
   Esthétique : wellness naturel marocain (crème, olive, terracotta, or)
   ========================================================= */

:root {
  --cream:      #f7f1e6;
  --cream-deep: #efe6d4;
  --sand:       #e7d9bf;
  --olive:      #3c4a3a;
  --olive-soft: #5a6b54;
  --terracotta: #bd5d3a;
  --terracotta-dark: #9c462a;
  --gold:       #c39a4d;
  --espresso:   #2a241d;
  --espresso-soft: #5c5347;
  --line:       #d9ccb4;
  --white:      #fffdf8;

  --shadow-sm: 0 2px 10px rgba(42, 36, 29, 0.06);
  --shadow-md: 0 14px 40px -18px rgba(42, 36, 29, 0.35);
  --shadow-lg: 0 30px 70px -30px rgba(42, 36, 29, 0.45);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;

  --font-display: "Fraunces", "El Messiri", Georgia, serif;
  --font-body: "Tajawal", system-ui, sans-serif;
  --maxw: 1140px;
}

html[dir="rtl"] {
  --font-display: "El Messiri", "Fraunces", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Texture de fond : grain doux + halo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 600px at 85% -5%, rgba(195,154,77,0.14), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(60,74,58,0.10), transparent 55%),
    var(--cream);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--olive); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--terracotta);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--terracotta); opacity: 0.6; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* ---------- Motif zellige (séparateur décoratif) ---------- */
.zellige {
  height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='26' viewBox='0 0 48 26'%3E%3Cg fill='none' stroke='%23bd5d3a' stroke-opacity='0.45' stroke-width='1.2'%3E%3Cpath d='M24 1l11 12-11 12L13 13z'/%3E%3Cpath d='M0 13h13M35 13h13'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 48px 26px;
  opacity: 0.8;
  margin: 0 auto;
}

/* ===================== NAVBAR ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,241,230,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--olive), var(--olive-soft));
  color: var(--cream); font-family: var(--font-display); font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.brand__name { font-family: var(--font-display); font-size: 1.12rem; color: var(--olive); line-height: 1.1; }
.brand__name small { display: block; font-family: var(--font-body); font-size: 0.72rem; color: var(--espresso-soft); letter-spacing: 0.04em; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { text-decoration: none; color: var(--espresso-soft); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav__links a:hover { color: var(--terracotta); }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: var(--white);
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer; font-family: var(--font-body);
  padding: 7px 14px; font-size: 0.85rem; font-weight: 700; color: var(--espresso-soft);
}
.lang-toggle button.active { background: var(--olive); color: var(--cream); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ===================== HERO ===================== */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); letter-spacing: -0.01em; margin: 18px 0; }
.hero h1 .accent { color: var(--terracotta); font-style: italic; }
.hero p.lead { font-size: 1.13rem; color: var(--espresso-soft); max-width: 46ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--terracotta); color: var(--white); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--terracotta-dark); }
.btn--ghost { background: transparent; color: var(--olive); border-color: var(--olive); }
.btn--ghost:hover { background: var(--olive); color: var(--cream); }
.btn--wa { background: #1fa556; color: #fff; box-shadow: 0 14px 34px -16px rgba(31,165,86,0.8); }
.btn--wa:hover { background: #178a48; }
.btn--block { width: 100%; justify-content: center; }

.hero__visual { position: relative; margin-bottom: 46px; } /* espace réservé pour le badge sous la photo */
.hero__img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--sand), var(--cream-deep));
}
.hero__badge {
  position: absolute; inset-inline-start: 8px; bottom: -46px; /* sous la photo, pas dessus */
  max-width: calc(100% - 16px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px;
}
.hero__badge > div { display: flex; flex-direction: column; line-height: 1.18; }
.hero__badge b { font-family: var(--font-display); color: var(--olive); font-size: 1.45rem; }
.hero__badge span { font-size: 0.8rem; color: var(--espresso-soft); }
.hero__badge .ico { width: 38px; height: 38px; flex: none; border-radius: 10px; background: rgba(195,154,77,0.18); display: grid; place-items: center; color: var(--gold); }

/* ===================== SECTIONS ===================== */
.section { padding: clamp(54px, 8vw, 96px) 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section__head h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 14px 0 12px; }
.section__head p { color: var(--espresso-soft); }
.section--alt { background:
  linear-gradient(var(--cream-deep), var(--cream-deep)) padding-box; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.card h3 { font-size: 1.4rem; color: var(--olive); }
.card .price { font-family: var(--font-display); font-size: 1.55rem; color: var(--terracotta); white-space: nowrap; }
.card .price small { font-size: 0.8rem; font-family: var(--font-body); color: var(--espresso-soft); }
.card .desc { color: var(--espresso-soft); margin: 12px 0 18px; flex: 1; }
.card .meta { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--espresso-soft); }
.card .meta::before { content: "⏱"; }
.card__cta { margin-top: 18px; }

/* Horaires */
.hours { max-width: 560px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.hours__row { display: flex; align-items: center; justify-content: space-between; padding: 15px 24px; border-bottom: 1px solid var(--line); }
.hours__row:last-child { border-bottom: 0; }
.hours__row.today { background: rgba(195,154,77,0.12); }
.hours__day { font-weight: 700; color: var(--espresso); }
.hours__day .tag { font-size: 0.7rem; color: var(--terracotta); font-weight: 700; margin-inline-start: 8px; }
.hours__time { color: var(--espresso-soft); font-variant-numeric: tabular-nums; }
.hours__time.closed { color: var(--terracotta); opacity: 0.85; }

/* Réservation */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.booking__form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 7px; color: var(--espresso); }
.field select, .field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--espresso);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--cream); transition: border-color .2s, box-shadow .2s;
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: none; border-color: var(--olive-soft); box-shadow: 0 0 0 3px rgba(60,74,58,0.12);
}
.booking__aside p { color: var(--espresso-soft); margin-bottom: 16px; }
.steps { list-style: none; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--olive); color: var(--cream); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.steps b { color: var(--espresso); display: block; }
.steps span { color: var(--espresso-soft); font-size: 0.92rem; }

/* Localisation */
.location { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: stretch; }
.location__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px; box-shadow: var(--shadow-sm); }
.location__card h3 { font-size: 1.5rem; margin-bottom: 18px; }
.info-line { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.info-line:last-of-type { border-bottom: 0; }
.info-line .ico { width: 40px; height: 40px; border-radius: 11px; background: rgba(60,74,58,0.1); display: grid; place-items: center; flex: none; }
.info-line b { display: block; color: var(--espresso); }
.info-line a, .info-line span { color: var(--espresso-soft); text-decoration: none; }
.info-line a:hover { color: var(--terracotta); }
.map-wrap { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 340px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ===================== FOOTER ===================== */
.footer { background: var(--olive); color: var(--cream); padding: 54px 0 28px; margin-top: clamp(40px,6vw,80px); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.footer .brand__name { color: var(--cream); }
.footer .brand__name small { color: rgba(247,241,230,0.7); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: rgba(247,241,230,0.85); text-decoration: none; }
.footer__links a:hover { color: var(--gold); }
.footer__bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(247,241,230,0.18); font-size: 0.85rem; color: rgba(247,241,230,0.7); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer__bottom a { color: rgba(247,241,230,0.7); }

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #1fa556; color: #fff;
  display: grid; place-items: center; box-shadow: 0 16px 36px -10px rgba(31,165,86,0.7);
  text-decoration: none; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ===================== ANIMATIONS ===================== */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.in { animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero__grid, .booking, .location { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 420px; margin-inline: auto; }
  .hero__badge { inset-inline-start: 8px; bottom: -40px; } /* sous la photo */
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; inset-inline: 0;
    background: var(--cream); padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
}

/* ===================== UTILITAIRES ===================== */
.hidden { display: none !important; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
[dir="rtl"] body { line-height: 1.85; }
