/* ===== ألوان مراكش — Warm Moroccan Couture ===== */
:root {
  --noir: #120E0D;
  --char: #1E1816;
  --char-2: #2A211E;
  --sand: #F4EBD9;
  --sand-2: #E8DCC2;
  --sand-3: #D9C9A6;
  --terra: #B85C38;
  --terra-deep: #8B3A2B;
  --ochre: #D49B44;
  --gold: #E5A93C;
  --blue: #1C39BB;
  --blue-soft: #3452D8;
  --ink: #1A120F;
  --f-display: 'Amiri', 'Traditional Arabic', serif;
  --f-body: 'Cairo', 'Segoe UI', sans-serif;
  --f-latin: 'Bodoni Moda', 'Didot', serif;
  --f-mono: 'Space Mono', monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--noir);
  color: var(--sand);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none), (max-width: 900px) { body { cursor: auto; } .cursor-dot { display: none; } }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
::selection { background: var(--blue); color: var(--sand); }

.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }
@media (min-width: 1024px) { .container { width: min(var(--container), 100% - 6rem); } }

.latin { font-family: var(--f-latin); font-feature-settings: "lnum"; direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; direction: ltr; unicode-bidi: isolate; }
.sub { font-style: italic; unicode-bidi: plaintext; }

/* ===== Per-language typography ===== */
html[lang="fr"], html[lang="en"] { --f-display: 'Bodoni Moda', 'Didot', serif; --f-body: 'Instrument Sans', 'Helvetica Neue', sans-serif; }
html[lang="zgh"] { --f-display: 'Noto Sans Tifinagh', 'Bodoni Moda', serif; --f-body: 'Noto Sans Tifinagh', 'Instrument Sans', sans-serif; }
html[lang="fr"] .hero__title, html[lang="en"] .hero__title { font-weight: 400; letter-spacing: -.01em; line-height: 1.02; font-size: clamp(2.8rem, 6.6vw, 5.6rem); }
html[lang="fr"] .section__title, html[lang="en"] .section__title { font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }
html[lang="fr"] .museum__name, html[lang="en"] .museum__name,
html[lang="fr"] .bento__title, html[lang="en"] .bento__title,
html[lang="fr"] .ticket__name, html[lang="en"] .ticket__name,
html[lang="fr"] .tl__card h3, html[lang="en"] .tl__card h3,
html[lang="fr"] .swatch__name, html[lang="en"] .swatch__name { font-weight: 400; }
html[lang="fr"] .brand__ar, html[lang="en"] .brand__ar { font-weight: 400; font-size: 1.1rem; letter-spacing: .01em; }
html[lang="zgh"] .hero__title { font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1.15; }
html[lang="zgh"] .brand__ar { font-size: 1.05rem; }
html[lang="zgh"] .mobile-menu a { font-size: 1.5rem; }
html[lang="zgh"] body, html[lang="fr"] body, html[lang="en"] body { line-height: 1.65; }
html[dir="ltr"] .hero__title .mask:nth-child(2) .mask__in { font-style: italic; }
html[dir="ltr"] .marquee__track { animation-name: marquee-ltr; }
@keyframes marquee-ltr { to { transform: translateX(-50%); } }
html[dir="ltr"] .tl__card:hover { transform: translateX(6px); }
html[dir="ltr"] .footer__links a:hover { transform: translateX(4px); }
html[dir="ltr"] .btn--ghost svg { transform: scaleX(-1); }
html[dir="ltr"] .btn--ghost:hover svg { transform: scaleX(-1) translateX(-4px); }

/* ===== Language switcher ===== */
.lang-switch { display: inline-flex; gap: .15rem; padding: .25rem; border-radius: 999px; border: 1px solid rgba(244,235,217,.15); background: rgba(30,24,22,.55); }
.lang-switch__item { min-width: 34px; height: 30px; display: inline-grid; place-items: center; border-radius: 999px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; color: var(--sand-2); transition: background-color .35s, color .35s; }
.lang-switch__item[lang="zgh"] { font-family: 'Noto Sans Tifinagh', sans-serif; font-size: .9rem; }
.lang-switch__item:hover { background: rgba(244,235,217,.1); color: var(--sand); }
.lang-switch__item.is-active { background: var(--ochre); color: var(--noir); }
.mobile-menu__langs { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1.5rem; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.mobile-menu.is-open .mobile-menu__langs { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .07s); }
.mobile-menu__langs .chip { font-family: var(--f-body); }
.hero__coords { margin-inline-start: 1rem; color: rgba(244,235,217,.45); padding-inline-start: 1rem; border-inline-start: 1px solid rgba(244,235,217,.2); }
@media (max-width: 640px) { .hero__coords { display: none; } }

/* ===== Palette swatches ===== */
.swatches { display: flex; flex-direction: column; gap: .6rem; }
@media (min-width: 900px) { .swatches { flex-direction: row; height: 480px; } }
.swatch {
  position: relative; flex: 1; min-height: 150px; border-radius: 22px; background: var(--c); color: var(--ink);
  padding: 1.6rem 1.8rem; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; cursor: pointer;
  transition: flex .8s var(--ease), transform .6s var(--ease); isolation: isolate;
}
.swatch::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 120%, rgba(0,0,0,.28), transparent 60%); opacity: .8; }
.swatch:hover, .swatch:focus-visible { flex: 2.2; outline: none; }
.swatch__hex { position: absolute; top: 1.4rem; inset-inline-start: 1.8rem; color: inherit; opacity: .7; }
.swatch__name { font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 2.3rem); font-weight: 700; line-height: 1.2; }
.swatch__note { margin-top: .6rem; font-size: .95rem; line-height: 1.7; max-width: 30ch; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease) .15s, transform .6s var(--ease) .15s; }
.swatch:hover .swatch__note, .swatch:focus-visible .swatch__note { opacity: .95; transform: none; }
@media (max-width: 899px) { .swatch__note { opacity: .95; transform: none; } }

/* grain + cursor */
.grain {
  position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain { 0%,100%{transform:translate(0,0)} 10%{transform:translate(-5%,-10%)} 30%{transform:translate(3%,-15%)} 50%{transform:translate(12%,9%)} 70%{transform:translate(9%,4%)} 90%{transform:translate(-1%,7%)} }

.cursor-dot {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ochre); pointer-events: none; z-index: 1000; border: 1px solid transparent;
  transition: width .3s var(--ease), height .3s var(--ease), background-color .3s, border-color .3s;
}
.cursor-dot.is-hover { width: 40px; height: 40px; background: rgba(212,155,68,.15); border-color: var(--ochre); }

/* ===== Buttons / chips / badges ===== */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.8rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); border-radius: inherit; }
.btn:hover::after { transform: scaleX(1); transform-origin: left; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terra); color: var(--sand); }
.btn--primary::after { background: var(--blue); }
.btn--outline { border: 1px solid rgba(244,235,217,.35); color: var(--sand); }
.btn--outline::after { background: var(--sand); }
.btn--outline:hover { color: var(--noir); border-color: var(--sand); }
.btn--ghost { border: 1px solid rgba(244,235,217,.2); padding: .6rem 1.2rem; font-size: .85rem; }
.btn--ghost::after { background: var(--terra); }
.btn--ghost svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn--ghost:hover svg { transform: translateX(-4px); }
.btn--sm { padding: .7rem 1.3rem; font-size: .85rem; }

.chip {
  padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid rgba(244,235,217,.2); font-size: .85rem; font-weight: 600;
  transition: background-color .35s, color .35s, border-color .35s, transform .35s var(--ease);
}
.chip:hover { border-color: var(--ochre); transform: translateY(-2px); }
.chip.is-active { background: var(--sand); color: var(--noir); border-color: var(--sand); }

.badge {
  display: inline-block; padding: .3rem .85rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: rgba(212,155,68,.14); color: var(--ochre); border: 1px solid rgba(212,155,68,.35);
}
.section--sand .badge { background: rgba(28,57,187,.08); color: var(--blue); border-color: rgba(28,57,187,.25); }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--ochre); }
.eyebrow .latin { font-size: .8rem; letter-spacing: .1em; font-family: var(--f-body); font-weight: 600; direction: inherit; unicode-bidi: plaintext; }
.hero .eyebrow .latin { font-family: var(--f-latin); letter-spacing: .28em; text-transform: uppercase; font-weight: 400; direction: ltr; }
html[lang="fr"] .eyebrow .latin, html[lang="en"] .eyebrow .latin { font-family: var(--f-latin); letter-spacing: .28em; text-transform: uppercase; font-weight: 400; }
.eyebrow--dark { color: var(--terra-deep); }
.star { width: 14px; height: 14px; flex: none; }
.li-star { width: 11px; height: 11px; flex: none; color: var(--ochre); }

/* ===== Nav ===== */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 90; padding: 1.1rem 0;
  transition: padding .5s var(--ease), background-color .5s, border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { padding: .6rem 0; background: rgba(18,14,13,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: rgba(184,92,56,.22); }
.nav__inner { width: min(var(--container), 100% - 3rem); margin-inline: auto; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .75rem; margin-inline-end: auto; }
.logo-mark { width: 40px; height: 40px; border-radius: 10px; transition: transform .6s var(--ease); }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-mark--lg { width: 56px; height: 56px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__ar { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; }
.brand__latin { font-family: var(--f-latin); font-size: .62rem; letter-spacing: .3em; color: var(--ochre); }
.nav__links { display: none; gap: 1.4rem; font-size: .88rem; font-weight: 600; }
.nav__links a { position: relative; padding: .3rem 0; opacity: .85; transition: opacity .3s; }
.nav__links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--ochre); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: none; }
.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
@media (min-width: 1024px) { .nav__links { display: inline-flex; } .burger { display: none; } }
@media (min-width: 1280px) { .nav__cta { display: inline-flex; } }
.burger span { display: block; width: 26px; height: 2px; background: var(--sand); transition: transform .45s var(--ease); }
.burger.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; top: 0; background: var(--noir); display: flex; flex-direction: column; justify-content: center;
  padding: 0 2rem; gap: .5rem; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); z-index: -1;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu a { font-family: var(--f-display); font-size: 2rem; font-weight: 700; padding: .6rem 0; border-bottom: 1px solid rgba(244,235,217,.1); opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: 0s; }
.mobile-menu.is-open a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .07s); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 8rem 0 5rem; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(184,92,56,.35), transparent 70%),
    radial-gradient(45% 45% at 15% 80%, rgba(28,57,187,.35), transparent 70%),
    var(--noir);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: repeating-linear-gradient(90deg, rgba(244,235,217,.08) 0 1px, transparent 1px 88px);
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}
.hero__inner { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 5rem; } }

.hero__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: 1.15; margin: 1.5rem 0 1.75rem; }
.hero__title .mask:nth-child(2) .mask__in { color: var(--ochre); font-style: italic; }
.mask { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.mask__in { display: block; transform: translateY(115%); animation: rise 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { transform: translateY(0); } }

.reveal-up { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero__sub { font-size: clamp(1rem, 1.3vw, 1.2rem); color: var(--sand-2); max-width: 34rem; line-height: 2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(244,235,217,.12); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__value { font-size: 2rem; color: var(--sand); line-height: 1; text-align: start; }
.stat__label { font-size: .75rem; color: var(--ochre); margin-bottom: .4rem; }

.hero__visual { position: relative; perspective: 1200px; }
.arch {
  position: relative; aspect-ratio: 4 / 5; max-height: 72vh; margin-inline: auto; overflow: hidden;
  border-radius: 999px 999px 28px 28px; transform-style: preserve-3d; transition: transform .2s ease-out;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), inset 0 0 0 1px rgba(244,235,217,.15);
  clip-path: inset(0 0 0 0 round 999px 999px 28px 28px);
  animation: archIn 1.6s var(--ease) forwards; animation-delay: .35s;
  clip-path: inset(100% 0 0 0 round 999px 999px 28px 28px);
}
@keyframes archIn { to { clip-path: inset(0 0 0 0 round 999px 999px 28px 28px); } }
.arch__img { width: 100%; height: 100%; object-fit: cover; will-change: transform; transform: scale(1.15); }
.arch__glow { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,14,13,.55), transparent 45%); }

.quote-card {
  position: absolute; bottom: 8%; inset-inline-start: -6%; max-width: 280px; padding: 1.25rem 1.5rem;
  background: rgba(30,24,22,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212,155,68,.3); border-radius: 18px; transform: translateZ(60px);
  opacity: 0; animation: fadeUp 1s var(--ease) forwards; animation-delay: 1.3s;
}
.quote-card blockquote { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.7; }
.quote-card figcaption { font-size: .75rem; color: var(--ochre); margin-top: .5rem; }
@media (max-width: 640px) { .quote-card { position: static; margin-top: 1.25rem; max-width: none; } }
.hero__caption { position: absolute; top: 38%; inset-inline-start: -1.6rem; transform: rotate(90deg) translateX(50%); transform-origin: center; color: rgba(244,235,217,.5); white-space: nowrap; display: none; }
@media (min-width: 1280px) { .hero__caption { display: block; } }
html[dir="ltr"] .hero__caption { transform: rotate(-90deg) translateX(-50%); }

.scroll-hint { position: absolute; bottom: 2rem; inset-inline-start: 50%; transform: translateX(50%); display: flex; flex-direction: column; align-items: center; gap: .6rem; color: rgba(244,235,217,.5); opacity: 0; animation: fadeUp 1s var(--ease) 1.8s forwards; }
.scroll-hint__line { width: 1px; height: 48px; background: linear-gradient(var(--ochre), transparent); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ===== Marquee ===== */
.marquee { border-block: 1px solid rgba(184,92,56,.3); background: var(--char); padding: 1.1rem 0; overflow: hidden; }
.marquee__track { display: flex; align-items: center; gap: 2.5rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--f-display); font-size: 1.25rem; white-space: nowrap; color: var(--sand-2); }
.marquee__star { width: 14px; height: 14px; color: var(--terra); flex: none; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ===== Sections ===== */
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; }
.section--sand { background: var(--sand); color: var(--ink); }
.section--sand::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(139,58,43,.12) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, black, transparent 40%); }
.section--dark { background: var(--noir); }
.section__head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.3; margin: 1rem 0 .9rem; }
.section__sub { font-size: 1.05rem; line-height: 1.9; opacity: .8; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Museums ===== */
.museum-list { display: grid; gap: clamp(3rem, 6vw, 5.5rem); }
.museum { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .museum { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .museum--flip .museum__media { order: 2; }
}
.museum__media { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 5 / 4; transform-style: preserve-3d; transition: transform .25s ease-out; box-shadow: 0 40px 80px -40px rgba(26,18,15,.55); }
.museum__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.museum:hover .museum__media img { transform: scale(1.06); }
.museum__year { position: absolute; bottom: 1.2rem; inset-inline-start: 1.4rem; font-size: 3.2rem; line-height: 1; color: var(--sand); text-shadow: 0 10px 30px rgba(0,0,0,.5); }
.museum__body { position: relative; padding-top: 1rem; }
.museum__num { position: absolute; top: -2.2rem; inset-inline-end: 0; font-size: 6rem; line-height: 1; color: rgba(139,58,43,.12); font-style: italic; }
.museum__name { font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; margin: 1rem 0 .2rem; line-height: 1.3; }
.museum__latin { font-size: .95rem; color: var(--terra-deep); font-style: italic; text-align: start; }
.museum__arch { font-size: .85rem; color: rgba(26,18,15,.6); margin-top: .5rem; }
.museum__desc { margin-top: 1.2rem; line-height: 1.95; color: rgba(26,18,15,.85); }
.museum__features { display: grid; gap: .5rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(139,58,43,.18); }
.museum__features li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 600; }
.accent-terra .li-star, .accent-terra .museum__latin { color: var(--terra); }
.accent-blue .li-star, .accent-blue .museum__latin { color: var(--blue); }
.accent-ochre .li-star, .accent-ochre .museum__latin { color: #A87424; }
.accent-deep .li-star, .accent-deep .museum__latin { color: var(--terra-deep); }

/* ===== Bento ===== */
.bento { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 240px; } }
.bento__card { position: relative; overflow: hidden; border-radius: 22px; background: var(--char); border: 1px solid rgba(244,235,217,.08); min-height: 260px; isolation: isolate; transition: transform .6s var(--ease), border-color .5s; }
.bento__card:hover { transform: translateY(-5px); border-color: rgba(212,155,68,.4); }
@media (min-width: 900px) {
  .bento__card--wide-tall { grid-column: span 8; grid-row: span 2; }
  .bento__card--small { grid-column: span 4; grid-row: span 1; }
  .bento__card--full { grid-column: span 12; grid-row: span 1; }
}
.bento__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.bento__card:hover .bento__img { transform: scale(1.06); }
.bento__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(18,14,13,.95) 20%, rgba(18,14,13,.35) 60%, transparent); }
.bento__pattern { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(circle at 20% 50%, rgba(28,57,187,.35), transparent 40%),
    repeating-linear-gradient(45deg, rgba(212,155,68,.08) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(184,92,56,.1) 0 2px, transparent 2px 22px); }
.bento__content { position: absolute; inset-inline: 0; bottom: 0; padding: 1.6rem 1.8rem; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.bento__card--full .bento__content { position: relative; padding: 2.2rem; max-width: 46rem; }
.bento__title { font-family: var(--f-display); font-size: clamp(1.25rem, 1.8vw, 1.7rem); font-weight: 700; line-height: 1.35; }
.bento__card--wide-tall .bento__title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.bento__desc { font-size: .92rem; color: var(--sand-2); line-height: 1.85; max-width: 38rem; }
.bento__card--small .bento__desc { display: none; }
@media (min-width: 900px) { .bento__card--small .bento__desc { display: block; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; } }

/* ===== Timeline ===== */
.tl { position: relative; padding-inline-start: 2.5rem; display: grid; gap: 2.4rem; max-width: 62rem; }
.tl__rail { position: absolute; top: 0; bottom: 0; inset-inline-start: .6rem; width: 2px; background: rgba(139,58,43,.18); }
.tl__progress { display: block; width: 100%; height: 100%; background: linear-gradient(var(--terra), var(--blue)); transform: scaleY(0); transform-origin: top; transition: transform .1s linear; }
.tl__item { position: relative; display: grid; gap: .6rem 2rem; }
@media (min-width: 720px) { .tl__item { grid-template-columns: 8rem 1fr; align-items: start; } }
.tl__dot { position: absolute; inset-inline-start: calc(-2.5rem + .6rem - 6px); top: .9rem; width: 14px; height: 14px; border-radius: 50%; background: var(--sand); border: 3px solid var(--terra); box-shadow: 0 0 0 6px rgba(184,92,56,.12); }
.tl__year { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--terra-deep); text-align: start; font-style: italic; }
.tl__card { background: rgba(255,255,255,.55); border: 1px solid rgba(139,58,43,.14); border-radius: 18px; padding: 1.3rem 1.6rem; backdrop-filter: blur(8px); transition: transform .5s var(--ease), box-shadow .5s; }
.tl__card:hover { transform: translateX(-6px); box-shadow: 0 30px 60px -40px rgba(26,18,15,.4); }
.tl__card h3 { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; margin-bottom: .4rem; }
.tl__card p { color: rgba(26,18,15,.8); line-height: 1.9; font-size: .95rem; }

/* ===== Visiting ===== */
.visiting { background: radial-gradient(70% 60% at 100% 0%, rgba(28,57,187,.22), transparent 60%), var(--noir); }
.tabs { position: relative; display: inline-flex; gap: .25rem; padding: .35rem; border-radius: 999px; background: var(--char); border: 1px solid rgba(244,235,217,.1); margin-bottom: 2.5rem; flex-wrap: wrap; }
.tab { position: relative; z-index: 1; padding: .7rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--sand-2); transition: color .35s; }
.tab.is-active { color: var(--noir); }
.tab__indicator { position: absolute; top: .35rem; height: calc(100% - .7rem); background: var(--sand); border-radius: 999px; transition: transform .55s var(--ease), width .55s var(--ease); left: 0; }
.panel { display: none; }
.panel.is-active { display: block; animation: fadeUp .7s var(--ease); }

.hours { display: grid; gap: 2rem; }
@media (min-width: 900px) { .hours { grid-template-columns: 1.2fr .8fr; } }
.hours__table { width: 100%; border-collapse: collapse; }
.hours__table th, .hours__table td { padding: 1.2rem .5rem; border-bottom: 1px solid rgba(244,235,217,.1); text-align: start; }
.hours__table th { font-weight: 600; font-size: 1.05rem; }
.hours__table td { font-size: 1.4rem; color: var(--ochre); text-align: end; }
.hours__note { background: var(--char); border: 1px solid rgba(212,155,68,.25); border-radius: 22px; padding: 1.8rem; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.clock { font-size: 3.2rem; line-height: 1; color: var(--sand); margin-top: .5rem; }

.currency { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem; font-size: .9rem; }
.tickets { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .tickets { grid-template-columns: repeat(3, 1fr); } }
.ticket { position: relative; padding: 2rem; border-radius: 22px; background: var(--char); border: 1px solid rgba(244,235,217,.1); display: flex; flex-direction: column; gap: .6rem; transition: transform .5s var(--ease), border-color .5s; }
.ticket:hover { transform: translateY(-6px); border-color: rgba(212,155,68,.45); }
.ticket--hot { background: linear-gradient(160deg, rgba(28,57,187,.35), var(--char) 60%); border-color: rgba(28,57,187,.6); }
.ticket__flag { position: absolute; top: 1.2rem; inset-inline-start: 1.2rem; background: var(--ochre); color: var(--noir); font-size: .7rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.ticket__latin { font-size: .8rem; color: var(--ochre); letter-spacing: .1em; text-transform: uppercase; text-align: start; }
.ticket__name { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; }
.ticket__price { font-size: 2.6rem; line-height: 1; margin: .6rem 0 1rem; text-align: start; }
.ticket__cur { font-size: 1rem; color: var(--sand-2); }
.ticket__list { display: grid; gap: .45rem; margin-bottom: 1.4rem; font-size: .9rem; color: var(--sand-2); }
.ticket__list li { display: flex; align-items: center; gap: .55rem; }
.ticket .btn { margin-top: auto; align-self: flex-start; }
.tickets__note { margin-top: 1.5rem; color: rgba(244,235,217,.5); font-size: .85rem; }

.location { display: grid; gap: 2rem; }
@media (min-width: 900px) { .location { grid-template-columns: .9fr 1.1fr; } }
.location__info { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.location__addr { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.6; }
.location__tips { display: grid; gap: .6rem; color: var(--sand-2); }
.location__tips li { display: flex; align-items: center; gap: .6rem; }
.location__map { border-radius: 22px; overflow: hidden; border: 1px solid rgba(244,235,217,.1); aspect-ratio: 16 / 10; }
.location__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.9) invert(.92) hue-rotate(180deg) contrast(.9); }

/* ===== Gallery ===== */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.masonry { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; grid-auto-flow: dense; }
@media (min-width: 900px) { .masonry { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; } }
.shot { position: relative; border-radius: 16px; overflow: hidden; padding: 0; text-align: start; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.shot--tall { grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s; }
.shot:hover img { transform: scale(1.06); filter: saturate(1.15); }
.shot__cap { position: absolute; inset-inline: 0; bottom: 0; padding: 2rem 1.1rem .9rem; font-weight: 600; font-size: .9rem; background: linear-gradient(to top, rgba(18,14,13,.85), transparent); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.shot:hover .shot__cap { opacity: 1; transform: none; }
.shot.is-hidden { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(18,14,13,.94); display: grid; place-items: center; padding: 2rem; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { max-width: min(1100px, 100%); transform: scale(.94); transition: transform .6s var(--ease); }
.lightbox.is-open figure { transform: none; }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 14px; }
.lightbox figcaption { text-align: center; margin-top: 1rem; font-family: var(--f-display); font-size: 1.2rem; color: var(--sand-2); }
.lightbox__close { position: absolute; top: 1.2rem; inset-inline-start: 1.5rem; font-size: 2.4rem; line-height: 1; color: var(--sand); width: 48px; height: 48px; }

/* ===== Footer ===== */
.footer { background: #0A0706; border-top: 1px solid rgba(184,92,56,.3); padding: 3rem 0 2rem; overflow: hidden; }
.footer__statement { overflow: hidden; white-space: nowrap; margin-bottom: 4rem; }
.footer__track { display: inline-block; font-family: var(--f-latin); font-size: clamp(3rem, 9vw, 8rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(244,235,217,.25); direction: ltr; animation: marquee 60s linear infinite reverse; padding-inline-end: 2rem; }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1fr 1.3fr .6fr .8fr; gap: 3rem; } }
.footer__brand { display: flex; gap: 1rem; align-items: center; }
.footer__name { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; }
.footer__tag { font-size: .85rem; color: var(--ochre); }
.footer__note { font-size: .92rem; color: var(--sand-2); line-height: 1.9; }
.footer__links { display: grid; gap: .6rem; align-content: start; }
.footer__links a { font-weight: 600; opacity: .8; transition: opacity .3s, transform .3s var(--ease); display: inline-block; }
.footer__links a:hover { opacity: 1; transform: translateX(-4px); color: var(--ochre); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(244,235,217,.08); color: rgba(244,235,217,.5); font-size: .8rem; }

/* ===== Inner pages (about / faq / contact / 404) ===== */
.main--page { padding-top: 6.5rem; background: radial-gradient(70% 40% at 100% 0%, rgba(184,92,56,.18), transparent 60%), var(--noir); }
.page { padding-bottom: clamp(4rem, 8vw, 7rem); }
.page__head { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); max-width: 60rem; }
.crumbs { display: flex; gap: .6rem; align-items: center; font-size: .8rem; color: rgba(244,235,217,.55); margin-bottom: 1.6rem; }
.crumbs a { color: var(--ochre); }
.crumbs a:hover { text-decoration: underline; }
.page__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.15; margin: 1rem 0 1rem; }
html[lang="fr"] .page__title, html[lang="en"] .page__title { font-weight: 400; line-height: 1.05; }
.page__lead { font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--sand-2); max-width: 40rem; line-height: 1.85; }
.page__grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .page__grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 5rem; align-items: start; } }
.page__aside { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 1.4rem; padding: 1.8rem; border-radius: 22px; background: var(--char); border: 1px solid rgba(244,235,217,.1); }
.prose { max-width: 46rem; margin-bottom: 2.6rem; }
.prose h2 { font-family: var(--f-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; margin-bottom: .8rem; color: var(--sand); }
html[lang="fr"] .prose h2, html[lang="en"] .prose h2 { font-weight: 400; }
.prose p { color: var(--sand-2); line-height: 1.95; margin-bottom: 1rem; font-size: 1.02rem; }
.facts { display: grid; gap: 0; }
.facts__row { display: grid; gap: .2rem; padding: .9rem 0; border-bottom: 1px solid rgba(244,235,217,.1); }
.facts__row dt { font-size: .75rem; color: var(--ochre); letter-spacing: .04em; }
.facts__row dd { font-weight: 600; }
.facts__row a { color: var(--sand); text-decoration: underline; text-decoration-color: rgba(212,155,68,.5); }
.aside__h { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; }
.aside__p { font-size: .92rem; color: var(--sand-2); line-height: 1.8; }
.location__map--sm { aspect-ratio: 4 / 3; }

/* FAQ */
.faq { max-width: 52rem; display: grid; gap: .8rem; }
.faq__item { background: var(--char); border: 1px solid rgba(244,235,217,.1); border-radius: 18px; overflow: hidden; transition: border-color .4s; }
.faq__item[open] { border-color: rgba(212,155,68,.45); }
.faq__q { list-style: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq__q::-webkit-details-marker { display: none; }
.faq__num { color: var(--ochre); font-size: 1.1rem; }
.faq__icon { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(244,235,217,.25); position: relative; transition: transform .5s var(--ease), background-color .4s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; background: var(--sand); transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq__item[open] .faq__icon { background: var(--ochre); border-color: var(--ochre); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--noir); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 1.5rem 1.4rem calc(1.5rem + 2.3rem + 1.2rem); color: var(--sand-2); line-height: 1.9; animation: fadeUp .5s var(--ease); }
html[dir="ltr"] .faq__a { padding: 0 1.5rem 1.4rem calc(1.5rem + 2.3rem + 1.2rem); }
html[dir="rtl"] .faq__a { padding: 0 calc(1.5rem + 2.3rem + 1.2rem) 1.4rem 1.5rem; }
@media (max-width: 640px) { .faq__a, html[dir="ltr"] .faq__a, html[dir="rtl"] .faq__a { padding: 0 1.5rem 1.3rem; } }
.page__body--narrow { max-width: 50rem; }
.page__updated { margin-top: 1.2rem; color: rgba(244,235,217,.5); }
.prose__list { display: grid; gap: .5rem; margin: .4rem 0 1rem; color: var(--sand-2); }
.prose__list li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.8; }
.prose__list .li-star { margin-top: .55rem; }
.page__foot { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* Contact */
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.6rem 1.8rem; border-radius: 22px; background: linear-gradient(160deg, rgba(28,57,187,.35), var(--char) 60%); border: 1px solid rgba(28,57,187,.5); margin-bottom: 2rem; }
.contact-card__email { font-size: clamp(1.2rem, 2vw, 1.7rem); color: var(--sand); text-decoration: underline; text-decoration-color: rgba(212,155,68,.5); text-underline-offset: 6px; }
.contact-card__note { font-size: .8rem; color: rgba(244,235,217,.6); }
.facts__row dd[dir="ltr"] { unicode-bidi: isolate; }
.form { display: grid; gap: 1.1rem; padding: 1.8rem; border-radius: 22px; background: var(--char); border: 1px solid rgba(244,235,217,.1); }
.form__h { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; font-size: .85rem; color: var(--sand-2); }
.field input, .field select, .field textarea { width: 100%; padding: .85rem 1rem; border-radius: 12px; background: rgba(18,14,13,.6); border: 1px solid rgba(244,235,217,.15); color: var(--sand); font: inherit; font-size: 1rem; transition: border-color .3s, box-shadow .3s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(212,155,68,.18); }
.field select option { background: var(--char); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.form__privacy { font-size: .78rem; color: rgba(244,235,217,.55); max-width: 30rem; }
.notice { padding: .9rem 1.1rem; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.notice--ok { background: rgba(62,107,72,.35); border: 1px solid rgba(62,107,72,.8); }
.notice--err { background: rgba(139,58,43,.35); border: 1px solid rgba(184,92,56,.8); }

/* 404 */
.page--404 { min-height: 60vh; display: grid; align-items: center; text-align: center; }
.page--404 .container { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.page__code { font-size: clamp(6rem, 18vw, 12rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(244,235,217,.35); }
.nav__links a.is-current { opacity: 1; color: var(--ochre); }
.mobile-menu__pages { display: flex; flex-wrap: wrap; gap: 1.2rem; padding-top: 1.2rem; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.mobile-menu.is-open .mobile-menu__pages { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .07s); }
.mobile-menu__pages a { font-family: var(--f-body); font-size: 1rem; font-weight: 600; color: var(--ochre); border: 0; padding: 0; opacity: 1; transform: none; }
.footer__links--pages a { color: var(--ochre); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .mask__in, .reveal-up, .quote-card, .scroll-hint { opacity: 1; transform: none; }
  .arch { clip-path: none; }
}
