/* =========================================================
   Auberge Camping Oasis Mharech — feuille de style
   Palette : ocre, terracotta, sable doré, vert palmeraie, bleu oasis
   ========================================================= */

:root {
  --sand-50:  #FBF6EC;
  --sand-100: #F5EBD8;
  --sand-200: #EBD9B6;
  --sand-300: #E9C27D;
  --ochre:    #D98E4A;
  --sun:      #E0A13A;
  --terracotta: #B5542D;
  --terracotta-dark: #8E3D1E;
  --earth:    #5E3424;
  --night:    #1E1A2B;
  --palm:     #3F6B3A;
  --palm-light: #6E9A5B;
  --oasis:    #2E7D8C;
  --oasis-light: #5FB3BF;
  --whatsapp: #1FAF54;

  --bg: var(--sand-50);
  --surface: #FFFFFF;
  --text: #2B1E17;
  --muted: #6F5A4B;
  --line: rgba(94, 52, 36, .14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(94, 52, 36, .35);
  --shadow-sm: 0 6px 18px -8px rgba(94, 52, 36, .3);
  --header-h: 74px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-family: "Tajawal", var(--font-body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- Typo ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: "Tajawal", var(--font-display); font-weight: 700; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--terracotta); margin: 0 0 .8rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section__title { font-size: clamp(2rem, 4vw, 3rem); color: var(--earth); }
.section__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--terracotta); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.btn--primary { background: linear-gradient(135deg, var(--terracotta), var(--ochre)); }
.btn--primary:hover { background: linear-gradient(135deg, var(--terracotta-dark), var(--terracotta)); }
.btn--whatsapp { --btn-bg: var(--whatsapp); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--terracotta); border-color: currentColor; }
.btn--ghost:hover { --btn-bg: var(--terracotta); --btn-fg: #fff; border-color: var(--terracotta); }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .35s, box-shadow .35s, color .35s;
  color: #fff;
}
.header.is-scrolled {
  background: rgba(251, 246, 236, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line); color: var(--text);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { font-family: var(--font-display); font-size: 1.2rem; }
.logo__text small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }

.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .92rem; position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; inset: auto 0 -2px; height: 2px; background: var(--sun);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
/* Sous-menu Galerie */
.nav__dd { position: relative; display: flex; align-items: center; }
.nav__dd > a { padding-right: 14px; }
.nav__dd > a + .nav__sub::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav__dd > a { background: no-repeat right 2px center / 8px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23999' stroke-width='1.6'/%3E%3C/svg%3E"); }
.nav__sub {
  position: absolute; top: calc(100% + 12px); left: -14px; min-width: 190px;
  background: var(--surface); color: var(--text); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s var(--ease); z-index: 60;
}
.nav__dd:hover .nav__sub, .nav__dd:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { padding: 9px 12px !important; border-radius: 8px; font-size: .9rem; white-space: nowrap; }
.nav__sub a::after { display: none; }
.nav__sub a:hover { background: var(--sand-100); color: var(--terracotta); }
html[dir="rtl"] .nav__sub { left: auto; right: -14px; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px; opacity: .9; }
.lang__btn { background: none; border: 0; color: inherit; font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.lang__btn.is-active { background: var(--sun); color: var(--night); }

.cart-toggle {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid currentColor; background: none; color: inherit;
  display: grid; place-items: center;
}
.cart-toggle svg { width: 20px; height: 20px; }
.cart-toggle__count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--terracotta); color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 700;
  display: grid; place-items: center; transform: scale(0); transition: transform .3s var(--ease);
}
.cart-toggle__count.has-items { transform: scale(1); }
.cart-toggle.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }

.burger { display: none; width: 42px; height: 42px; background: none; border: 0; color: inherit; flex-direction: column; justify-content: center; gap: 5px; padding: 0 9px; }
.burger span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 0;
  isolation: isolate;
}
.hero__sky {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, #1E1A2B 0%, #3B2A44 30%, #8E3D1E 62%, #D98E4A 78%, #E9C27D 100%);
}
.hero__stars {
  position: absolute; inset: 0 0 45%;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 25% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 40% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 70% 25%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 10%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 92% 35%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 5% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 45%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 62% 42%, #fff 50%, transparent 51%);
  opacity: .8; animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .4; } }
.hero__sun {
  position: absolute; width: clamp(160px, 22vw, 300px); aspect-ratio: 1; border-radius: 50%;
  right: 12%; bottom: 26%;
  background: radial-gradient(circle, #FFD58A 0%, #E0A13A 45%, rgba(224,161,58,0) 70%);
  filter: blur(2px); animation: rise 12s ease-in-out infinite alternate;
}
@keyframes rise { to { transform: translateY(-18px); } }
.hero__dunes { position: absolute; inset: auto 0 0; width: 100%; height: 48%; }
/* Photo réelle en fond du hero (remplace l'illustration) */
.hero__sky--photo {
  background:
    linear-gradient(180deg, rgba(30,26,43,.72) 0%, rgba(30,26,43,.38) 45%, rgba(94,52,36,.55) 82%, var(--sand-50) 100%),
    url("images/hero.jpg") center 60% / cover no-repeat, #8E3D1E;
}
.hero__sky--photo .hero__sun, .hero__sky--photo .hero__dunes, .hero__sky--photo .hero__stars { display: none; }

.hero__content { max-width: 820px; text-align: center; margin-block: auto; }
.hero__content .eyebrow { color: var(--sand-300); }
.hero__content .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero__title {
  font-size: clamp(2.4rem, 6.4vw, 4.8rem); font-weight: 700; letter-spacing: -.01em;
  text-shadow: 0 4px 30px rgba(30, 26, 43, .45);
}
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 620px; margin: 0 auto 2rem; opacity: .92; }
.hero__jib {
  display: inline-block; margin: -1rem auto 1.8rem; padding: .6rem 1.1rem; border-radius: 14px; line-height: 1.5;
  background: rgba(30, 26, 43, .45); border: 1px solid rgba(233, 194, 125, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 1.15rem; font-weight: 600; color: var(--sand-100); max-width: 640px;
}
.hero__jib strong { color: var(--sand-300); letter-spacing: .02em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Recherche ---------- */
.search {
  position: relative; z-index: 2; margin-top: 56px; margin-bottom: -56px;
  background: var(--surface); color: var(--text);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; display: grid; gap: 12px;
  grid-template-columns: 1.3fr 1.3fr .8fr .8fr .8fr auto; align-items: end;
}
.search__field { display: flex; flex-direction: column; gap: 4px; }
.search__field label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.search__field input, .search__field select {
  border: 1px solid var(--line); background: var(--sand-50); border-radius: var(--radius-sm);
  padding: .7rem .8rem; min-width: 0; width: 100%;
}
.search__field input:focus, .search__field select:focus,
.contact__form input:focus, .contact__form textarea:focus, .cart input:focus {
  outline: 2px solid var(--oasis-light); border-color: transparent;
}
.search__submit { height: 46px; }
.search__note { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--terracotta); min-height: 0; }
.search__note:empty { display: none; }

/* ---------- Présentation ---------- */
.about { padding-top: calc(clamp(64px, 9vw, 120px) + 56px); }
.about__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__text p { color: var(--muted); font-size: 1.05rem; }
.about__features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about__features li {
  display: flex; align-items: center; gap: 10px; background: var(--surface);
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-weight: 600; font-size: .92rem;
}
.about__features span { font-size: 1.3rem; }

.gps-card {
  background: linear-gradient(160deg, var(--night), #3B2A44);
  color: var(--sand-100); border-radius: var(--radius); padding: 36px 30px;
  box-shadow: var(--shadow); text-align: center; position: relative; overflow: hidden;
}
.gps-card::after {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(224,161,58,.35), transparent 70%);
}
.gps-card__compass { width: 110px; margin: 0 auto 16px; color: var(--sand-300); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gps-card h3 { font-size: 1rem; letter-spacing: .15em; text-transform: uppercase; font-family: var(--font-body); color: var(--sand-300); }
.gps-card__coords { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0; color: #fff; }
.gps-card__decimal { font-size: .9rem; opacity: .7; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.gps-card__place { font-size: .9rem; margin: 0 0 22px; }
.gps-card__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.gps-card .btn--ghost { --btn-fg: var(--sand-300); }
.gps-card .btn--ghost:hover { --btn-bg: var(--sand-300); --btn-fg: var(--night); border-color: var(--sand-300); }

/* ---------- Hébergements ---------- */
.rooms { background: linear-gradient(180deg, var(--sand-100), var(--sand-50)); }
.rooms__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.room {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.room:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.room--featured { outline: 2px solid var(--sun); }
.room__visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.room__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.room__visual--pise {
  background:
    radial-gradient(circle at 50% 120%, transparent 38%, #8E3D1E 39%, #8E3D1E 41%, transparent 42%),
    linear-gradient(180deg, #E9C27D 0%, #D98E4A 55%, #B5542D 100%);
}
.room__visual--pise::before { /* arche en pisé */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 42%; height: 72%; transform: translateX(-50%);
  background: linear-gradient(180deg, #5E3424, #3B2A44); border-radius: 999px 999px 0 0; box-shadow: 0 0 0 14px #C9773E;
}
.room__visual--bivouac {
  background:
    radial-gradient(1px 1px at 20% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 15%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 45% 30%, #fff 50%, transparent 51%),
    linear-gradient(180deg, #1E1A2B 0%, #3B2A44 55%, #B5542D 100%);
}
.room__visual--bivouac::before { /* tente */
  content: ""; position: absolute; left: 50%; bottom: 14%; width: 62%; height: 46%; transform: translateX(-50%);
  background: linear-gradient(90deg, #5E3424, #8E3D1E); clip-path: polygon(0 100%, 18% 20%, 50% 0, 82% 20%, 100% 100%);
}
.room__visual--bivouac::after { content: ""; position: absolute; inset: auto 0 0; height: 18%; background: #D98E4A; }
.room__visual--camping {
  background:
    radial-gradient(circle at 78% 26%, #FFD58A 0 9%, transparent 10%),
    linear-gradient(180deg, #5FB3BF 0%, #A7D3D2 45%, #E9C27D 70%, #D98E4A 100%);
}
.room__visual--camping::before { /* palmiers */
  content: ""; position: absolute; inset: auto 0 0; height: 60%;
  background:
    radial-gradient(ellipse 18% 22% at 22% 30%, #3F6B3A 60%, transparent 61%),
    radial-gradient(ellipse 14% 18% at 60% 38%, #6E9A5B 60%, transparent 61%),
    linear-gradient(90deg, transparent 21%, #5E3424 21% 23%, transparent 23% 59%, #5E3424 59% 60.5%, transparent 60.5%);
}
.room__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(251, 246, 236, .92); color: var(--terracotta-dark);
  padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
html[dir="rtl"] .room__tag { left: auto; right: 14px; }
.room__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.room__body h3 { font-size: 1.4rem; color: var(--earth); }
.room__body p { color: var(--muted); margin: 0 0 14px; }
.room__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; flex: 1; }
.room__list li { display: flex; gap: 8px; font-size: .92rem; }
.room__list li::before { content: "✦"; color: var(--ochre); }
.room__price { font-size: .9rem; color: var(--earth); margin: -8px 0 16px !important; }
.room__price strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--terracotta); }
.room__price small { display: block; color: var(--muted); font-size: .78rem; }

/* ---------- Galerie ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--earth);
  padding: .55rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .88rem;
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--ochre); }
.filter.is-active { background: var(--earth); color: var(--sand-100); border-color: var(--earth); }

.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 16px; }
.g-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  border: 0; padding: 0; text-align: left; color: #fff;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.g-item--tall { grid-row: span 2; }
.g-item--wide { grid-column: span 2; }
.g-item.is-hidden { display: none; }
.g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item:hover img, .g-item:hover .g-art { transform: scale(1.06); }
.g-art { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.g-item figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 18px 16px; font-size: .88rem; line-height: 1.4;
  background: linear-gradient(0deg, rgba(30,26,43,.85), transparent);
  transform: translateY(30%); opacity: .0; transition: all .4s var(--ease);
}
.g-item:hover figcaption, .g-item:focus-visible figcaption { transform: none; opacity: 1; }
.g-item__cat {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: rgba(30,26,43,.6); backdrop-filter: blur(6px);
  padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* Illustrations de remplacement (affichées tant que les vraies photos ne sont pas dans /images) */
.art-dunes   { background: radial-gradient(ellipse 80% 40% at 30% 100%, #E9C27D 60%, transparent 61%), radial-gradient(ellipse 70% 45% at 85% 100%, #D98E4A 60%, transparent 61%), linear-gradient(180deg, #5FB3BF 0%, #A7D3D2 40%, #8E3D1E 41%, #B5542D 60%, #D98E4A 100%); }
.art-piste   { background: linear-gradient(100deg, transparent 46%, #F5EBD8 47% 53%, transparent 54%), linear-gradient(180deg, #7FC0C8 0%, #F5EBD8 38%, #5E3424 39%, #8E3D1E 52%, #D98E4A 100%); }
.art-entree  { background: radial-gradient(1px 1px at 20% 20%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 60% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 80% 30%, #fff 50%, transparent 51%), radial-gradient(ellipse 22% 38% at 50% 100%, #2B1E17 70%, transparent 71%), linear-gradient(180deg, #1E1A2B 0%, #1E1A2B 50%, #8E3D1E 51%, #B5542D 100%); }
.art-pool-n  { background: radial-gradient(ellipse 70% 25% at 50% 80%, #5FB3BF 60%, transparent 61%), radial-gradient(circle at 20% 30%, rgba(224,161,58,.6) 0 3%, transparent 4%), radial-gradient(circle at 75% 25%, rgba(224,161,58,.6) 0 3%, transparent 4%), linear-gradient(180deg, #1E1A2B 0%, #2E3A4B 60%, #3F6B3A 100%); }
.art-pool-d  { background: radial-gradient(ellipse 80% 28% at 50% 82%, #2E7D8C 60%, transparent 61%), linear-gradient(180deg, #7FC0C8 0%, #F5EBD8 35%, #8E3D1E 36%, #B5542D 55%, #E9C27D 56%, #EBD9B6 100%); }
.art-salle   { background: radial-gradient(ellipse 30% 45% at 25% 100%, #5E3424 70%, transparent 71%), radial-gradient(ellipse 30% 45% at 75% 100%, #5E3424 70%, transparent 71%), radial-gradient(circle at 50% 30%, #E0A13A 0 6%, transparent 18%), linear-gradient(180deg, #8E3D1E, #B5542D 60%, #D98E4A); }
.art-terrasse{ background: radial-gradient(ellipse 14% 30% at 18% 100%, #F5EBD8 70%, transparent 71%), radial-gradient(ellipse 14% 30% at 50% 100%, #F5EBD8 70%, transparent 71%), radial-gradient(ellipse 14% 30% at 82% 100%, #F5EBD8 70%, transparent 71%), linear-gradient(180deg, #D98E4A 0%, #B5542D 45%, #8E3D1E 100%); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 16, 28, .94);
  display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; padding: 20px;
  animation: fade .3s ease;
}
@keyframes fade { from { opacity: 0; } }
.lightbox__figure { margin: 0; max-width: 1000px; justify-self: center; width: 100%; }
.lightbox__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
.lightbox__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lightbox figcaption { color: var(--sand-100); text-align: center; margin-top: 16px; font-size: 1rem; }
.lightbox__close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; }
.lightbox__nav { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; }
.lightbox__nav:hover { background: var(--terracotta); }

/* ---------- Boutique ---------- */
.shop { background: var(--earth); color: var(--sand-100); position: relative; }
.shop::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, var(--sand-300) 0 2px, transparent 2px 22px), repeating-linear-gradient(-45deg, var(--sand-300) 0 2px, transparent 2px 22px);
}
.shop .section__title { color: #fff; }
.shop .section__lead { color: var(--sand-200); }
.shop .eyebrow { color: var(--sand-300); }
.shop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.product {
  background: rgba(251, 246, 236, .06); border: 1px solid rgba(233, 194, 125, .25);
  border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), background .35s;
}
.product:hover { transform: translateY(-5px); background: rgba(251, 246, 236, .1); }
.product__icon { font-size: 2.2rem; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: rgba(224,161,58,.15); margin-bottom: 16px; }
.product h3 { font-size: 1.2rem; color: #fff; }
.product p { font-size: .9rem; color: var(--sand-200); margin: 0 0 16px; flex: 1; }
.product__price { font-family: var(--font-display); font-size: 1.5rem; color: var(--sand-300); margin-bottom: 14px; }
.product__price small { font-family: var(--font-body); font-size: .78rem; color: var(--sand-200); }
.product__actions { display: flex; gap: 8px; align-items: center; }
.qty { display: flex; align-items: center; border: 1px solid rgba(233,194,125,.4); border-radius: 999px; }
.qty button { background: none; border: 0; color: var(--sand-100); width: 32px; height: 36px; font-size: 1.1rem; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.product .btn { flex: 1; padding-inline: .8rem; }
.shop__note { text-align: center; color: var(--sand-200); font-size: .85rem; margin: 28px 0 0; position: relative; }

/* Panier */
.cart-overlay { position: fixed; inset: 0; background: rgba(30, 26, 43, .5); z-index: 90; animation: fade .3s; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(420px, 100%);
  background: var(--sand-50); box-shadow: -20px 0 50px rgba(0,0,0,.2);
  display: flex; flex-direction: column; transform: translateX(105%); transition: transform .45s var(--ease);
}
.cart.is-open { transform: none; }
html[dir="rtl"] .cart { right: auto; left: 0; transform: translateX(-105%); }
html[dir="rtl"] .cart.is-open { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart__head h3 { margin: 0; color: var(--earth); }
.cart__close { background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--muted); }
.cart__items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart__empty { text-align: center; color: var(--muted); padding: 40px 0; }
.cart-line { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cart-line__icon { font-size: 1.6rem; }
.cart-line__name { font-weight: 700; font-size: .95rem; }
.cart-line__meta { font-size: .82rem; color: var(--muted); }
.cart-line .qty { border-color: var(--line); }
.cart-line .qty button { color: var(--earth); }
.cart__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.cart__total strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--terracotta); }
.cart__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cart input { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .65rem .8rem; background: var(--sand-50); margin-bottom: 4px; }
.cart__clear { background: none; border: 0; color: var(--muted); font-size: .85rem; text-decoration: underline; margin-top: 4px; }

/* ---------- Avis ---------- */
.reviews__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  position: relative; display: flex; flex-direction: column;
}
.review::before { content: "“"; position: absolute; top: 4px; right: 22px; font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--sand-200); }
.review__stars { color: var(--sun); letter-spacing: 2px; margin-bottom: 12px; }
.review__text { color: var(--text); margin: 0 0 20px; flex: 1; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--oasis), var(--palm)); }
.review__name { font-weight: 700; }
.review__meta { font-size: .82rem; color: var(--muted); }
.review__badge { align-self: flex-start; margin-bottom: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--oasis); background: rgba(46,125,140,.1); padding: 3px 8px; border-radius: 6px; }
.reviews__cta { text-align: center; margin-top: 36px; }
.reviews__track:has(.rating) { display: block; max-width: 760px; margin-inline: auto; }
.rating { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(24px, 4vw, 40px); display: grid; gap: 28px; }
.rating__score { display: flex; align-items: center; gap: 20px; }
.rating__badge { flex: none; width: 76px; height: 76px; border-radius: 16px 16px 16px 4px; background: #003B95; color: #fff; display: grid; place-items: center; font-size: 1.9rem; font-weight: 700; }
.rating__label { font-family: var(--font-display); font-size: 1.6rem; color: var(--earth); line-height: 1.1; }
.rating__meta { color: var(--muted); font-size: .9rem; }
.rating__bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.rating__bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .9rem; }
.rating__bars b { color: var(--earth); }
.rating__bar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--sand-100); overflow: hidden; }
.rating__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--terracotta), var(--ochre)); border-radius: 8px; }
@media (max-width: 600px) { .rating__bars { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--sand-50), var(--sand-100)); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { margin: 22px 0; display: grid; gap: 12px; }
.contact__list div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.contact__list dt { font-weight: 700; color: var(--earth); }
.contact__list dd { margin: 0; color: var(--muted); }
.contact__list a { color: var(--oasis); font-weight: 700; text-decoration: none; }
.contact__routes { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 16 / 10; background: var(--sand-200); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map--maroc { aspect-ratio: auto; background: #CFE6EA; margin-top: 18px; }
.map--sat { aspect-ratio: 4 / 3; position: relative; z-index: 0; }
.map__hint { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.sat-pin { width: 22px; height: 22px; border-radius: 50%; background: var(--terracotta); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(181,84,45,.35); }
.maroc-map { display: block; width: 100%; height: auto; --map-sea: #CFE6EA; --map-land: #F7EEDD; --map-land2: #ECE4D6; }
.mm-ville { font: 600 15px var(--font-body); fill: var(--earth); }
.mm-titre { font: 700 15px var(--font-body); fill: #fff; }
.mm-gps { font: 500 11px var(--font-body); fill: var(--sand-300); }
.mm-legende { font: 500 12px var(--font-body); fill: var(--muted); }

.contact__form { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); }
.contact__form h3 { color: var(--earth); font-size: 1.5rem; }
.form-row { margin-bottom: 16px; }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact__form label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact__form input, .contact__form textarea {
  width: 100%; border: 1px solid var(--line); background: var(--sand-50);
  border-radius: var(--radius-sm); padding: .75rem .9rem; resize: vertical;
}
.contact__form .is-invalid { border-color: var(--terracotta); background: #FBEDE6; }
.form-status { margin: 12px 0 0; font-size: .9rem; text-align: center; }
.form-status.is-error { color: var(--terracotta); }
.form-status.is-ok { color: var(--palm); }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--sand-200); padding: 48px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.footer__brand { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }
.footer p { margin: 4px 0 0; font-size: .9rem; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { text-decoration: none; font-weight: 600; font-size: .9rem; }
.footer__links a:hover { color: var(--sun); }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid rgba(235, 217, 182, .15); padding-top: 18px; font-size: .8rem !important; opacity: .7; }

/* ---------- WhatsApp flottant & toast ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px rgba(31, 175, 84, .6); animation: pulse 2.6s infinite;
}
.wa-float svg { width: 30px; height: 30px; }
html[dir="rtl"] .wa-float { right: auto; left: 20px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31,175,84,.5); } 50% { box-shadow: 0 0 0 14px rgba(31,175,84,0); } }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 140%);
  background: var(--night); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  transition: transform .4s var(--ease); pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .search { grid-template-columns: 1fr 1fr 1fr; }
  .search__submit { grid-column: span 3; }
  .shop__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0;
    background: var(--sand-50); color: var(--text); padding: 8px 16px 20px;
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .4s var(--ease); z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__dd { display: block; }
  .nav__dd > a { display: block; background: none; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none;
    padding: 0 0 6px 18px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .nav__sub a { padding: 10px 4px !important; font-size: .9rem; color: var(--muted); border-bottom: 1px dashed var(--line); border-radius: 0; }
  html[dir="rtl"] .nav__sub { padding: 0 18px 6px 0; }
  .header.menu-open { background: var(--sand-50); color: var(--text); }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .rooms__grid, .reviews__track { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .g-item--wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .header__actions > .booking-link { display: none; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__text strong { font-size: 1.05rem; }
  .lang__btn { padding: 4px 5px; font-size: .68rem; }
  .header__inner { gap: 8px; }
  .header__actions { gap: 6px; }
  .cart-toggle, .burger { width: 36px; height: 36px; }
  .logo { gap: 6px; }
  .logo__text strong { font-size: .95rem; }
  .logo__text small { font-size: .58rem; letter-spacing: .12em; }
  .btn { white-space: normal; text-align: center; }
  .search { grid-template-columns: 1fr 1fr; }
  .search__field:first-child, .search__field:nth-child(2) { grid-column: span 1; }
  .search__field--sm:last-of-type { grid-column: span 2; }
  .search__submit { grid-column: span 2; }
  .hero__ctas .btn { width: 100%; }
  .about__features { grid-template-columns: 1fr; }
  .shop__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .g-item--tall { grid-row: span 1; }
  .g-item--wide { grid-column: span 1; }
  .g-item figcaption { opacity: 1; transform: none; }
  .form-row--2 { grid-template-columns: 1fr; }
  .contact__list div { grid-template-columns: 1fr; gap: 2px; }
  .footer__inner { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; padding: 60px 12px; }
  .lightbox__nav { position: absolute; bottom: 20px; }
  .lightbox__nav--prev { left: 30%; }
  .lightbox__nav--next { right: 30%; }
}
@media (max-width: 400px) {
  .logo__text { display: none; }
}
@media (max-width: 600px) {
  .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .search__field input[type="date"] { font-size: .85rem; padding-inline: .5rem; }
}

/* ---------- Effets d'ambiance : étoiles filantes et rafales de sable (effets.js) ---------- */
.fx-sky {
  position: absolute; inset: 0 0 auto; width: 100%; height: 62%;
  pointer-events: none;
  /* les étoiles s'effacent vers l'horizon */
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.fx-sand {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 40;
  opacity: 0; transition: opacity .6s ease;
}
.fx-sand.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .fx-sky, .fx-sand { display: none; } }
