/* Oasis Parc — palette tirée du logo (sable, brun, palme) */
:root {
  --sand-50: #FBF7F0;
  --sand-100: #F4ECDF;
  --sand-200: #E9DCC6;
  --sand-300: #D9C5A4;
  --brown-900: #33200F;
  --brown-800: #452C18;
  --brown-700: #5E3D22;
  --brown-500: #8A5B35;
  --palm: #4D6A3A;
  --sun: #D98A34;
  --wa: #1F9E57;

  --bg: var(--sand-50);
  --bg-alt: var(--sand-100);
  --text: var(--brown-900);
  --muted: #6E5642;
  --line: rgba(69, 44, 24, .14);
  --card: #FFFDF9;

  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(51, 32, 15, .06), 0 8px 24px rgba(51, 32, 15, .08);
  --wrap: 1160px;
  --header-h: 68px;
}

html[lang="ar"] {
  --f-display: "Amiri", "Cormorant Garamond", serif;
  --f-body: "Tajawal", "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-size: 1.06rem; line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
html[lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--brown-800); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--palm); margin-bottom: .6em; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--brown-700); max-width: 40ch; margin-inline: auto; }
.note { font-size: .88rem; color: var(--muted); }
.center { text-align: center; margin-top: 28px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brown-800); color: var(--sand-50); box-shadow: 0 6px 16px rgba(69, 44, 24, .25); }
.btn-primary:hover { background: var(--brown-700); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(31, 158, 87, .25); }
.btn-ghost { background: rgba(255, 253, 249, .7); border-color: var(--brown-700); color: var(--brown-800); }
.btn-ghost:hover { background: var(--card); }
.btn-block { width: 100%; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(251, 247, 240, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand-name { font-family: "Cormorant Garamond", serif; font-weight: 700; font-style: italic; font-size: 1.5rem; color: var(--brown-800); }
.nav { display: none; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; background: var(--sand-200); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; min-width: 38px; height: 34px; border-radius: 999px; font-size: .82rem; font-weight: 700; cursor: pointer; color: var(--muted); }
.lang button[lang="ar"] { font-size: 1rem; }
.lang button[aria-pressed="true"] { background: var(--card); color: var(--brown-800); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.burger { width: 44px; height: 44px; border: 0; background: none; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--brown-800); border-radius: 2px; transition: transform .2s, opacity .2s; }
.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); }

@media (max-width: 979px) {
  .nav.open {
    display: flex; flex-direction: column; position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--sand-50); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: var(--shadow);
  }
  .nav.open a { padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
}
@media (min-width: 980px) {
  .nav { display: flex; gap: 4px; margin-inline-start: 20px; }
  .nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--brown-700); }
  .nav a:hover { background: var(--sand-200); }
  .burger { display: none; }
}

/* Accueil */
.hero { position: relative; min-height: min(92svh, 820px); display: grid; align-items: center; overflow: hidden; text-align: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--sand-100) center / cover no-repeat; }
.hero-scene { width: 100%; height: 100%; }
.hero.has-photo .hero-scene { display: none; }
.hero.has-photo .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251, 247, 240, .82), rgba(251, 247, 240, .55) 55%, rgba(51, 32, 15, .35)); }
.hero-inner { padding-block: 48px 150px; }
.hero-logo { width: clamp(120px, 22vw, 180px); height: auto; aspect-ratio: 1; object-fit: cover; margin: 0 auto 20px; border-radius: 50%; box-shadow: 0 10px 30px rgba(69, 44, 24, .22); }
.hero h1 { color: var(--brown-800); max-width: 16ch; margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* Sections */
.section { padding-block: clamp(64px, 10vw, 112px); }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head.left { text-align: start; margin-bottom: 24px; }

.about { display: grid; gap: 40px; align-items: center; }
.about-text p { color: var(--brown-700); font-size: 1.08rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-family: var(--f-display); font-size: 1.35rem; color: var(--brown-800); line-height: 1.2; }
.facts span { font-size: .9rem; color: var(--muted); line-height: 1.45; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--sand-100); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--brown-700); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Menu */
.menu-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: none; justify-content: flex-start; }
.menu-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .menu-tabs { justify-content: center; flex-wrap: wrap; } }
.menu-tabs button {
  flex: none; border: 1.5px solid var(--line); background: var(--card); color: var(--brown-700);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; min-height: 44px;
}
.menu-tabs button[aria-selected="true"] { background: var(--brown-800); border-color: var(--brown-800); color: var(--sand-50); }
.menu-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px; max-width: 760px; margin-inline: auto; box-shadow: var(--shadow); }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item .name { font-weight: 700; }
.menu-item .price { font-weight: 700; color: var(--brown-500); white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-item .desc { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; }
#menu-note { text-align: center; margin-top: 16px; }

/* Galerie */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.g-item { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 0; padding: 0; background: var(--sand-200); cursor: pointer; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-ph { cursor: default; display: grid; place-items: center; text-align: center; padding: 14px;
  background: linear-gradient(160deg, var(--sand-200), var(--sand-300)); color: var(--brown-700); }
.g-ph svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; margin: 0 auto 8px; opacity: .7; }
.g-ph span { font-size: .85rem; font-weight: 600; line-height: 1.35; }

/* Événements */
.events { display: grid; gap: 40px; }
@media (min-width: 900px) { .events { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.events-text p { color: var(--brown-700); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--palm) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); display: grid; gap: 14px; }
@media (min-width: 720px) { .form { padding: 32px; } }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-weight: 700; font-size: .9rem; }
.field :is(input, select, textarea) {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--sand-300); background: var(--sand-50); font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 88px; }
.field :is(input, select, textarea):focus { border-color: var(--brown-500); outline: none; box-shadow: 0 0 0 3px rgba(217, 138, 52, .25); }
.field .invalid { border-color: #B3412E; }
.form-error { color: #B3412E; font-weight: 600; font-size: .92rem; margin: 0; }
.form .note { margin: 0; text-align: center; }

/* Infos */
.infos { display: grid; gap: 32px; }
@media (min-width: 900px) { .infos { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: stretch; } }
.info-list { margin: 0; display: grid; gap: 18px; }
.info-list dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--palm); }
html[lang="ar"] .info-list dt { letter-spacing: 0; font-size: .95rem; }
.info-list dd { margin: 2px 0 0; font-size: 1.08rem; font-weight: 600; }
.info-list a { text-decoration: none; border-bottom: 1.5px solid var(--sand-300); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; font-weight: 500; }
.hours .today { font-weight: 800; color: var(--brown-800); }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brown-800); color: var(--sand-50); }
.socials svg { width: 22px; height: 22px; fill: currentColor; }
.map { min-height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--sand-200) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 40h80M40 0v80' stroke='%23d9c5a4' stroke-width='1'/%3E%3C/svg%3E"); display: grid; place-items: center; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-load { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--card); padding: 14px 22px; border-radius: 999px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
.map-load svg { width: 20px; height: 20px; fill: var(--sun); }

/* Pied de page */
.site-footer { background: var(--brown-900); color: var(--sand-200); padding-block: 36px 110px; }
@media (min-width: 720px) { .site-footer { padding-bottom: 36px; } }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { border-radius: 50%; }
.footer-brand strong { display: block; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.4rem; color: var(--sand-50); }
.footer-brand span { font-size: .88rem; }
.copy { margin: 0; font-size: .85rem; opacity: .8; }

/* Barre d'actions mobile */
.fab {
  position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px; border-radius: 999px;
  background: rgba(251, 247, 240, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 30px rgba(51, 32, 15, .2);
  transform: translateY(140%); transition: transform .25s ease;
}
.fab.show { transform: none; }
.fab .btn { min-height: 46px; }
@media (min-width: 720px) { .fab { display: none; } }

/* Visionneuse */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(28, 17, 8, .92); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-content: center; padding: 56px 16px; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 78vh; border-radius: 10px; margin: 0 auto; }
.lightbox figcaption { color: var(--sand-100); text-align: center; margin-top: 12px; }
.lb-close, .lb-nav { position: fixed; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-close { top: 14px; inset-inline-end: 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 12px; }
.lb-next { inset-inline-end: 12px; }
html[dir="rtl"] .lb-prev, html[dir="rtl"] .lb-next { transform: translateY(-50%) scaleX(-1); }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .g-item img, .fab { transition: none; }
}

/* Photos des cartes « Nos espaces » */
.card { padding: 0; overflow: hidden; }
.card-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card h3, .card p { padding-inline: 22px; }
.card h3 { margin-top: 20px; }
.card p { padding-bottom: 24px; }
.insta-link { margin-top: 12px; }
.hero-bg { transition: background-image .4s ease; }

/* Accueil avec photo : voile sombre, texte clair */
.hero.has-photo .hero-bg::after { background: linear-gradient(180deg, rgba(38, 24, 12, .55) 0%, rgba(38, 24, 12, .38) 45%, rgba(38, 24, 12, .7) 100%); }
.hero.has-photo :is(h1, .lead) { color: var(--sand-50); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero.has-photo .eyebrow { color: #E9D3A6; }
.hero.has-photo .hero-inner { padding-bottom: 72px; }
.hero.has-photo .btn-primary { background: var(--sand-50); color: var(--brown-800); }
.hero.has-photo .btn-ghost { background: rgba(255, 255, 255, .12); color: var(--sand-50); border-color: rgba(251, 247, 240, .7); }
