/* =====================================================================
   Musées du Maroc / متاحف المغرب — pure CSS, RTL-first (logical properties)
   Palette: terracotta, sand, royal blue, gold, Moroccan green
   ===================================================================== */

:root {
    --terracotta: #B5502A;
    --terracotta-dark: #8E3B1E;
    --sand: #F3E6CC;
    --sand-2: #E8D3A9;
    --cream: #FBF6EC;
    --royal: #1C3F94;
    --royal-dark: #12285F;
    --gold: #C9A04A;
    --gold-light: #E6C77E;
    --green: #14674A;
    --ink: #2B1D14;
    --muted: #6B5646;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(43, 29, 20, .12);
    --shadow-lg: 0 20px 50px rgba(18, 40, 95, .22);
    --font-body: 'Cairo', 'Tajawal', system-ui, sans-serif;
    --font-display: 'Reem Kufi', 'Cairo', serif;
    --container: 1200px;
    --header-h: 76px;
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink);
    background-color: var(--cream);
    background-image: url('../img/zellige-light.svg');
    background-size: 96px 96px;
    -webkit-font-smoothing: antialiased;
}
.lang-fr body, body.lang-fr { line-height: 1.7; }

img { max-width: 100%; display: block; }
a { color: var(--royal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracotta); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.35; margin: 0 0 .6em; color: var(--royal-dark); font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - 2.5rem, 860px); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -60px; background: var(--gold); color: var(--ink); padding: .5rem 1rem; z-index: 1000; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
    font-family: var(--font-body); font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: transform .2s, background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 6px 18px rgba(181, 80, 42, .35); }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--royal-dark); }
.btn-outline { border-color: var(--royal); color: var(--royal); background: transparent; }
.btn-outline:hover { background: var(--royal); color: #fff; }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--royal-dark); color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; }
.brand:hover { color: var(--gold-light); }
.brand img { width: 44px; height: 44px; transition: transform .6s; }
.brand:hover img { transform: rotate(45deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-size: 1.35rem; }
.brand-text small { font-size: .78rem; color: var(--gold-light); letter-spacing: .03em; }

.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.main-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: .5rem .85rem; color: #fff; border-radius: 8px; font-weight: 600; position: relative; }
.main-nav ul a::after { content: ''; position: absolute; inset-inline: .85rem; bottom: .2rem; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.main-nav ul a:hover::after, .main-nav ul a.active::after { transform: scaleX(1); }
.main-nav ul a.active { color: var(--gold-light); }
.lang-switch { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-light); font-weight: 700; font-size: .95rem; }
.lang-switch:hover { background: var(--gold); color: var(--royal-dark); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle .bar { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

.zellige-band { height: 12px; background: url('../img/zellige-band.svg') repeat-x center / auto 12px; }

/* ---------------- Hero slider ---------------- */
.hero-slider { position: relative; height: min(82vh, 720px); min-height: 480px; overflow: hidden; background: var(--royal-dark); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide-img, .museum-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.slide.is-active .slide-img { transform: scale(1); }
.slide-overlay { position: absolute; inset: 0; background:
    linear-gradient(to top, rgba(18,40,95,.92) 0%, rgba(18,40,95,.45) 45%, rgba(0,0,0,.15) 100%); }
.slide-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 5.5rem; color: #fff; }
.kicker { display: inline-block; align-self: flex-start; background: var(--terracotta); color: #fff; padding: .25rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 700; margin-bottom: 1rem; }
.slide-title { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3.4rem); max-width: 22ch; text-shadow: 0 3px 18px rgba(0,0,0,.35); }
.slide-text { max-width: 60ch; font-size: 1.12rem; color: rgba(255,255,255,.92); }
.slide-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.slide .slide-content > * { opacity: 0; transform: translateY(18px); transition: opacity .7s .3s, transform .7s .3s; }
.slide.is-active .slide-content > * { opacity: 1; transform: none; }

.slider-arrow { position: absolute; top: 50%; z-index: 5; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.5); background: rgba(18,40,95,.45); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.slider-arrow:hover { background: var(--terracotta); }
.slider-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.slider-arrow.prev { inset-inline-start: 1.25rem; }
.slider-arrow.next { inset-inline-end: 1.25rem; }
[dir="rtl"] .slider-arrow svg, [dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .arrow.back { transform: none; }
[dir="ltr"] .arrow.back { transform: scaleX(-1); }
.arrow { display: inline-block; }
.slider-dots { position: absolute; bottom: 2rem; inset-inline: 0; z-index: 5; display: flex; justify-content: center; gap: .6rem; }
.dot { width: 14px; height: 14px; padding: 0; border: 2px solid #fff; background: transparent; transform: rotate(45deg); cursor: pointer; transition: background .2s, transform .2s; }
.dot.is-active { background: var(--gold); border-color: var(--gold); transform: rotate(45deg) scale(1.2); }

/* ---------------- Sections ---------------- */
.section { padding: 5rem 0; }
.section-sand { background: linear-gradient(var(--sand), var(--sand)), url('../img/zellige-light.svg'); background-blend-mode: multiply; }
.section-head { text-align: center; margin-bottom: 2.75rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section-title.small { font-size: 1.55rem; margin-top: 2rem; }
.section-sub { color: var(--muted); max-width: 60ch; margin-inline: auto; font-size: 1.08rem; }
.section-sub.wide { max-width: 85ch; }

.ornament { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: -.2rem 0 1.4rem; }
.ornament::before, .ornament::after { content: ''; height: 2px; width: 70px; background: var(--gold); border-radius: 2px; }
.ornament span { width: 16px; height: 16px; background: var(--terracotta); transform: rotate(45deg); box-shadow: 0 0 0 4px var(--cream), 0 0 0 6px var(--gold); }
.ornament.start { justify-content: flex-start; }
.ornament.start::before { display: none; }

.intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.intro-text .section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.intro-lead { font-family: var(--font-display); color: var(--terracotta); font-size: 1.3rem; margin-top: -.6rem; }
.intro-text p { font-size: 1.08rem; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.stats li { display: flex; align-items: center; gap: 1.25rem; background: #fff; border-radius: var(--radius); padding: 1.1rem 1.5rem; box-shadow: var(--shadow); border-inline-start: 6px solid var(--terracotta); }
.stats li:nth-child(2) { border-color: var(--royal); }
.stats li:nth-child(3) { border-color: var(--green); }
.stats strong { font-family: var(--font-display); font-size: 2.4rem; color: var(--royal-dark); min-width: 3ch; text-align: center; }
.stats span { font-weight: 600; color: var(--muted); }

/* ---------------- Cards ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; padding: 12px 12px 0; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
    border-radius: 50% 50% 8px 8px / 26% 26% 8px 8px; /* Moroccan arch */ border: 3px solid var(--sand-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.07); }
.badge { position: absolute; bottom: .8rem; inset-inline-start: .8rem; background: var(--royal-dark); color: #fff; padding: .15rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 700; border: 1px solid var(--gold); }
.card-body { padding: 1.2rem .6rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { color: var(--terracotta); font-weight: 700; font-size: .88rem; }
.card-title { font-size: 1.3rem; margin: .25rem 0 .5rem; }
.card-title a { color: var(--royal-dark); }
.card-title a:hover { color: var(--terracotta); }
.card-text { color: var(--muted); font-size: .98rem; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--sand-2); padding-top: .8rem; font-size: .92rem; }
.card-year { color: var(--muted); }
.card-link { font-weight: 700; }

/* ---------------- Marrakech guide ---------------- */
.mk-guide { background: #fff url('../img/zellige-light.svg'); }
.mk-list { display: grid; gap: 3rem; }
.mk-item { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.5rem; align-items: center; background: var(--cream); border-radius: calc(var(--radius) * 1.5); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--sand-2); }
.mk-item.reverse .mk-media { order: 2; }
.mk-media { position: relative; display: block; aspect-ratio: 9 / 7; border-radius: 50% 50% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); overflow: hidden; border: 4px solid var(--gold); }
.mk-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mk-item:hover .mk-media img { transform: scale(1.05); }
.mk-num { position: absolute; top: 1rem; inset-inline-start: 1rem; width: 46px; height: 46px; display: grid; place-items: center; background: var(--terracotta); color: #fff; font-family: var(--font-display); font-size: 1.3rem; transform: rotate(45deg); box-shadow: 0 0 0 3px #fff; }
.mk-title { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-top: .3rem; }
.mk-title a { color: var(--royal-dark); }
.mk-body h4 { font-size: 1.05rem; color: var(--terracotta); margin: 1rem 0 .3rem; }
.mk-hours { background: var(--sand); padding: .5rem 1rem; border-radius: 8px; font-size: .95rem; }
.mk-route { margin-top: 3rem; background: var(--royal-dark) url('../img/zellige-dark.svg'); color: #fff; padding: 2rem 2.25rem; border-radius: calc(var(--radius) * 1.5); border-inline-start: 8px solid var(--gold); }
.mk-route h3 { color: var(--gold-light); }
.mk-route p { margin: 0; font-size: 1.05rem; }

/* ---------------- Cities ---------------- */
.city-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.city-tile { position: relative; padding: 2rem 1.5rem; border-radius: var(--radius); color: #fff; text-align: center; overflow: hidden;
    background: var(--terracotta) url('../img/zellige-dark.svg'); box-shadow: var(--shadow); transition: transform .3s; }
.city-tile:nth-child(4n+2) { background-color: var(--royal); }
.city-tile:nth-child(4n+3) { background-color: var(--green); }
.city-tile:nth-child(4n+4) { background-color: var(--royal-dark); }
.city-tile:hover { transform: translateY(-4px); color: #fff; }
.city-name { display: block; font-family: var(--font-display); font-size: 1.7rem; }
.city-count { font-size: .95rem; opacity: .9; }

/* ---------------- Page hero ---------------- */
.page-hero { background: var(--royal-dark) url('../img/zellige-dark.svg'); color: #fff; padding: 4rem 0 3.5rem; text-align: center; position: relative; }
.page-hero::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 26px; background: var(--cream);
    -webkit-mask: radial-gradient(18px 22px at 50% 100%, #000 98%, transparent) 0 0 / 40px 26px repeat-x;
            mask: radial-gradient(18px 22px at 50% 100%, #000 98%, transparent) 0 0 / 40px 26px repeat-x; }
.page-title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-sub { color: rgba(255,255,255,.88); max-width: 70ch; margin: 0 auto; font-size: 1.08rem; }

/* ---------------- Catalog ---------------- */
.filter-bar { display: grid; grid-template-columns: 1fr 220px auto; gap: .75rem; background: #fff; padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.25rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem 1rem; border: 2px solid var(--sand-2); border-radius: 10px; background: var(--cream); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(28,63,148,.15); background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chip { padding: .35rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--sand-2); color: var(--ink); font-weight: 600; font-size: .95rem; }
.chip:hover { border-color: var(--terracotta); color: var(--terracotta); }
.chip.active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.chip small { opacity: .75; }
.results-count { color: var(--muted); margin-bottom: 1.5rem; }
.empty { text-align: center; padding: 3rem 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.empty img { margin: 0 auto 1rem; opacity: .8; }

/* ---------------- Museum page ---------------- */
.museum-hero { position: relative; min-height: 520px; height: 64vh; overflow: hidden; background: var(--royal-dark); }
.museum-hero > img { transform: none; }
.museum-hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 3.5rem; color: #fff; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .92rem; margin-bottom: 1rem; color: rgba(255,255,255,.8); }
.breadcrumbs a { color: var(--gold-light); }
.museum-layout { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: start; }
.prose p { font-size: 1.08rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; color: var(--royal-dark); }
.museum-content .prose p:first-child::first-letter { font-family: var(--font-display); color: var(--terracotta); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--sand); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.08); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; }
.map-wrap iframe { display: block; width: 100%; height: 360px; border: 0; }

.info-card { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-lg); border-top: 6px solid var(--terracotta); overflow: hidden; }
.info-card h2 { font-size: 1.35rem; }
.info-card dl { margin: 0 0 1rem; }
.info-card dl > div { padding: .65rem 0; border-bottom: 1px dashed var(--sand-2); }
.info-card dt { font-weight: 700; color: var(--terracotta); font-size: .9rem; }
.info-card dd { margin: 0; }
.note { font-size: .88rem; color: var(--muted); background: var(--sand); padding: .7rem .9rem; border-radius: 8px; }
.info-actions { display: grid; gap: .6rem; margin: 1rem 0; }
.back-link { font-weight: 700; display: inline-flex; gap: .4rem; }

/* ---------------- Lightbox ---------------- */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(10, 18, 40, .92); display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 1rem; inset-inline-end: 1.25rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--terracotta); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }

/* ---------------- Contact ---------------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.contact-form { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--royal-dark); }
[aria-invalid="true"] { border-color: #B3261E; background: #FFF5F4; }
.field-error { color: #B3261E; font-size: .9rem; margin: .35rem 0 0; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.25rem; font-weight: 600; }
.alert-success { background: #E7F4EE; color: var(--green); border: 1px solid #A9D8C2; }
.alert-error { background: #FDECEA; color: #B3261E; border: 1px solid #F5B7B1; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg { flex: 0 0 42px; width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: var(--sand); fill: none; stroke: var(--terracotta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list strong { display: block; color: var(--royal-dark); }
.contact-info { position: relative; }
.arch-deco { height: 110px; margin: 1rem -1.75rem -1.75rem; background: var(--royal) url('../img/zellige-dark.svg');
    -webkit-mask: radial-gradient(60% 120% at 50% 100%, #000 60%, transparent 61%); mask: radial-gradient(60% 120% at 50% 100%, #000 60%, transparent 61%); }

/* ---------------- FAQ & legal ---------------- */
.faq-list { display: grid; gap: .9rem; }
.faq-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-inline-start: 5px solid var(--gold); overflow: hidden; }
.faq-item[open] { border-color: var(--terracotta); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--sand); color: var(--terracotta); font-size: 1.4rem; font-weight: 700; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary h3 { margin: 0; font-size: 1.12rem; font-family: var(--font-body); font-weight: 700; }
.faq-item p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--muted); }
.faq-cta { margin-top: 2.5rem; }
.legal h2 { font-size: 1.3rem; border-inline-start: 4px solid var(--terracotta); padding-inline-start: .8rem; }
.updated { color: var(--muted); font-size: .92rem; margin-top: 2rem; border-top: 1px dashed var(--sand-2); padding-top: 1rem; }

/* ---------------- 404 ---------------- */
.nf-code { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--terracotta); text-shadow: 6px 6px 0 var(--sand-2); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink) url('../img/zellige-dark.svg'); color: rgba(255,255,255,.82); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.site-footer h3 { color: var(--gold-light); font-size: 1.15rem; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--gold-light); }
.footer-contact span { color: var(--gold-light); font-weight: 600; }
.footer-about { margin-top: 1rem; }
.footer-disclaimer { font-size: .88rem; opacity: .75; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.1rem 0; font-size: .9rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---------------- Cookie bar ---------------- */
.cookie-bar { position: fixed; inset-inline: 1rem; bottom: 1rem; z-index: 400; max-width: 720px; margin-inline: auto; background: #fff; color: var(--ink);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; border-top: 4px solid var(--gold); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: .95rem; flex: 1; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .museum-layout, .contact-layout { grid-template-columns: 1fr; }
    .info-card { position: static; }
}
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: .75rem; padding: 1rem 1.25rem 1.5rem;
        background: var(--royal-dark); border-top: 1px solid rgba(255,255,255,.1); display: none; }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; }
    .lang-switch { align-self: flex-start; }
    .intro-grid, .mk-item { grid-template-columns: 1fr; }
    .mk-item.reverse .mk-media { order: 0; }
    .filter-bar { grid-template-columns: 1fr; }
    .slider-arrow { display: none; }
    .section { padding: 3.5rem 0; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .form-row, .gallery { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cookie-bar { flex-direction: column; align-items: stretch; }
    .brand-text small { display: none; }
    .hero-slider { min-height: 560px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
