:root {
    --majorelle: #1b2f7a;
    --majorelle-deep: #101c4d;
    --terracotta: #b8482c;
    --saffron: #e3a72f;
    --mint: #1f6f5c;
    --sand: #f6efe2;
    --sand-2: #efe3cc;
    --ink: #1d1a16;
    --muted: #6b6255;
    --line: rgba(29, 26, 22, .12);
    --radius: 18px;
    --shadow: 0 18px 40px -22px rgba(16, 28, 77, .45);
    --font-head: 'Cairo', 'Tajawal', sans-serif;
    --font-body: 'Tajawal', 'Cairo', sans-serif;
    --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23e3a72f' stroke-width='1.4' opacity='.55'%3E%3Cpath d='M40 6l9 19 19-6-6 19 19 9-19 9 6 19-19-6-9 19-9-19-19 6 6-19-19-9 19-9-6-19 19 6z'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--sand);
}
.lang-fr { line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--majorelle); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .6em; color: var(--majorelle-deep); }
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
::selection { background: var(--saffron); color: var(--ink); }

.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.narrow { width: min(820px, 92vw); }
.center { text-align: center; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tinted { background: var(--majorelle-deep); color: #eae6f5; position: relative; overflow: hidden; }
.section--tinted::before { content: ""; position: absolute; inset: 0; background: var(--zellige); opacity: .25; }
.section--tinted > * { position: relative; }
.section--tinted h2, .section--tinted h3 { color: #fff; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section__head p { margin: 0; color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.kicker { font-family: var(--font-head); font-weight: 700; color: var(--terracotta); letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; margin: 0 0 .8rem; display: inline-flex; align-items: center; gap: .6rem; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--terracotta); }
.note { font-size: .9rem; color: var(--muted); margin: 0 0 1.5rem; }
.skip-link { position: absolute; inset-inline-start: 0; top: -100px; background: var(--saffron); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { top: 0; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
    font-family: var(--font-head); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: 0 10px 24px -12px rgba(184, 72, 44, .8); }
.btn--primary:hover { background: #9e3a21; }
.btn--ghost { border-color: var(--majorelle); color: var(--majorelle); background: transparent; }
.btn--ghost:hover { background: var(--majorelle); color: #fff; }
.btn--block { width: 100%; }
.link-arrow { font-family: var(--font-head); font-weight: 700; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; transition: gap .2s ease; }
.link-arrow::after { content: "←"; }
[dir="ltr"] .link-arrow::after { content: "→"; }
.link-arrow:hover { gap: .8rem; }

/* Topbar + header */
.topbar { background: var(--ink); color: #f2e6cf; font-size: .85rem; padding: .45rem 0; text-align: center; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 239, 226, .88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand__star { width: 42px; height: 42px; fill: var(--terracotta); transition: transform .6s ease; }
.brand__star circle { fill: var(--sand); }
.brand:hover .brand__star { transform: rotate(45deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 900; color: var(--majorelle-deep); }
.brand__text small { font-size: .78rem; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav ul { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: .5rem .8rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; transition: background-color .2s ease, color .2s ease; }
.main-nav ul a:hover { background: var(--sand-2); }
.main-nav ul a.is-active { background: var(--majorelle); color: #fff; }
.lang-switch { font-family: var(--font-head); font-weight: 700; padding: .45rem 1rem; border: 2px solid var(--saffron); border-radius: 999px; text-decoration: none; color: var(--ink); transition: background-color .2s ease; }
.lang-switch:hover { background: var(--saffron); }
.nav-toggle { display: none; }
.nav-burger { display: none; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; }
.nav-burger span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem); }
.hero__pattern { position: absolute; inset: 0; background: var(--zellige); opacity: .5; mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-block: 1.8rem 2.5rem; }
.hero__stats { display: flex; gap: 2.5rem; margin: 0; flex-wrap: wrap; }
.hero__stats div { border-inline-start: 3px solid var(--saffron); padding-inline-start: .9rem; }
.hero__stats dt { font-family: var(--font-head); font-size: 2rem; font-weight: 900; color: var(--terracotta); line-height: 1; }
.hero__stats dd { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.hero__visual { position: relative; min-height: 520px; }
.arch { border-radius: 999px 999px 18px 18px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; background: var(--sand-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--big { position: absolute; inset-inline-end: 0; top: 0; width: 78%; height: 100%; }
.arch--small { position: absolute; inset-inline-start: 0; bottom: -10px; width: 44%; height: 58%; border-color: var(--saffron); }
.arch--wide { border-radius: 300px 300px 18px 18px; height: clamp(240px, 40vw, 440px); margin-block: 2rem; }
.arch--tall { height: 560px; }

/* Event cards */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem; }
.event-card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 200px 200px 0 0; margin: .8rem .8rem 0; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.event-card:hover .event-card__media img { transform: scale(1.06); }
.badge { display: inline-block; background: var(--saffron); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: .78rem; padding: .25rem .8rem; border-radius: 999px; }
.event-card__media .badge { position: absolute; bottom: .8rem; inset-inline-start: .8rem; }
.event-card__body { padding: 1.1rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.event-card__meta { margin: 0; font-size: .85rem; color: var(--terracotta); font-weight: 700; }
.event-card__title { margin: 0; font-size: 1.15rem; }
.event-card__title a { color: var(--majorelle-deep); text-decoration: none; }
.event-card__summary { margin: 0 0 .6rem; color: var(--muted); font-size: .95rem; flex: 1; }

/* Steps / chips */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 1.8rem; backdrop-filter: blur(14px); }
.steps__num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--saffron); color: var(--ink); font-family: var(--font-head); font-weight: 900; margin-bottom: 1rem; }
.steps p { margin: 0; color: #cfcbe4; }
.city-chips { display: flex; flex-wrap: wrap; gap: .8rem; }
.chip { padding: .75rem 1.4rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--majorelle-deep); font-family: var(--font-head); font-weight: 700; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.chip:hover { background: var(--terracotta); color: #fff; transform: translateY(-2px); }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.6rem; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.2rem 1.4rem 1.5rem; }
.post-card__body h3 a { color: var(--majorelle-deep); text-decoration: none; }
.post-card__body p { color: var(--muted); margin: 0 0 .8rem; font-size: .95rem; }
.post-card__meta { font-size: .82rem; color: var(--terracotta) !important; font-weight: 700; margin: 0 0 .4rem; }
.post-page { padding-block: 3rem 1rem; }

/* Page head */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1rem; position: relative; border-bottom: 1px solid var(--line); background: linear-gradient(var(--sand-2), var(--sand)); }
.page-head::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 10px; background: var(--zellige); background-size: 20px 20px; opacity: .7; }

/* Filters */
.filters { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; background: #fff; padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 1rem; }
.filters label { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; font-size: .9rem; flex: 1 1 200px; }
.filters select { font: inherit; padding: .7rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--sand); }
.empty { padding: 3rem; text-align: center; background: #fff; border-radius: var(--radius); }

/* Event page */
.event-hero { position: relative; min-height: 460px; display: flex; align-items: end; color: #fff; }
.event-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(16, 28, 77, .95) 10%, rgba(16, 28, 77, .2) 80%); }
.event-hero__text { position: relative; padding-block: 3rem; }
.event-hero__text h1 { color: #fff; margin-top: .8rem; max-width: 22ch; }
.event-hero__text .lead { color: #e1def0; }
.crumb { display: inline-block; color: #fff; margin-bottom: 1rem; margin-inline-end: 1rem; font-weight: 700; }
.crumb--dark { color: var(--majorelle); }
.event-layout { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; padding-block: 3rem; align-items: start; }
.info-card { position: sticky; top: 100px; background: #fff; border-radius: var(--radius); padding: 1.6rem; border-top: 6px solid var(--terracotta); box-shadow: var(--shadow); }
.info-card dl { margin: 0 0 1.4rem; }
.info-card dl div { padding-block: .7rem; border-bottom: 1px dashed var(--line); }
.info-card dt { font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.info-card dd { margin: 0; font-weight: 500; }
.info-card__note { font-size: .82rem; color: var(--muted); margin: .9rem 0 0; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.8rem; color: var(--terracotta); }
.prose ul { padding-inline-start: 1.3rem; }
.prose li { margin-bottom: .4rem; }

/* FAQ */
.faq__item { background: #fff; border-radius: 14px; border: 1px solid var(--line); margin-bottom: .8rem; transition: box-shadow .2s ease; }
.faq__item[open] { box-shadow: var(--shadow); }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-family: var(--font-head); font-weight: 700; display: flex; gap: .9rem; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__num { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sand-2); color: var(--terracotta); font-size: .9rem; }
.faq__item p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); padding-inline-start: 4.3rem; }

/* About / contact */
.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: start; }
.contact-card { background: #fff; border-radius: 300px 300px var(--radius) var(--radius); padding: 4rem 2rem 2.5rem; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: var(--zellige); opacity: .35; }
.contact-card > * { position: relative; }
.contact-card__icon { width: 54px; height: 54px; color: var(--terracotta); margin: 0 auto 1rem; }
.contact-card__label { margin: 0; color: var(--muted); font-weight: 700; }
.contact-card__email { display: inline-block; font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; margin-block: .3rem 1rem; direction: ltr; word-break: break-all; }
.warn { margin-top: 1.5rem; padding: 1rem 1.3rem; background: #fff6e0; border-inline-start: 4px solid var(--saffron); border-radius: 10px; font-size: .95rem; }

/* Footer */
.site-footer { background: var(--ink); color: #d9d1c2; margin-top: 3rem; }
.zellige-band { height: 22px; background-color: var(--terracotta); background-image: var(--zellige); background-size: 22px 22px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #f2e6cf; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.disclaimer { margin-block: 3rem 2.5rem; padding: 1.5rem 1.8rem; border: 1px solid rgba(227, 167, 47, .45); border-radius: var(--radius); background: rgba(227, 167, 47, .07); }
.disclaimer h2 { color: var(--saffron); font-size: 1.1rem; margin-bottom: .4rem; }
.disclaimer p { margin: 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; color: #fff; margin: 0 0 .4rem; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .1); margin: 2.5rem 0 0; padding-block: 1.4rem; font-size: .85rem; }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 1rem; inset-inline: 1rem; z-index: 80; max-width: 720px; margin-inline: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); padding: 1rem 1.3rem; display: flex; gap: 1rem; align-items: center; border-inline-start: 6px solid var(--majorelle); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .9rem; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease var(--d, 0ms), transform .7s ease var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 1080px) {
    .nav-burger { display: flex; }
    .main-nav { position: absolute; top: 100%; inset-inline: 0; background: var(--sand); flex-direction: column; align-items: stretch; padding: 1rem 4vw 1.5rem; gap: 1rem; border-bottom: 1px solid var(--line); display: none; }
    .main-nav ul { flex-direction: column; }
    .nav-toggle:checked ~ .main-nav { display: flex; }
    .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .lang-switch { text-align: center; }
}
@media (max-width: 900px) {
    .hero__grid, .event-layout, .about-grid { grid-template-columns: 1fr; }
    .hero__visual { min-height: 380px; }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .info-card { position: static; }
    .arch--tall { height: 380px; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .brand__text small { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .cookie-banner { flex-direction: column; align-items: stretch; }
    .hero__stats { gap: 1.4rem; }
    .faq__item p { padding-inline-start: 1.3rem; }
}
