html {
    scroll-behavior: smooth;
}

.site-body {
    --primary: #0f5745;
    --primary-dark: #0c4033;
    --accent: #d4a657;
    --accent-dark: #b88b3f;
    --light: #f8f6ef;
    --light-muted: #ebe4d9;
    --ink: #10211f;
    --ink-muted: rgba(16, 33, 31, 0.55);
    --surface: #ffffff;
    --surface-alt: #f2eee4;
    --shadow-soft: 0 18px 40px -24px rgba(16, 33, 31, 0.45);
    --shadow-strong: 0 24px 48px -18px rgba(12, 34, 31, 0.45);
    --radius-lg: 28px;
    --radius-md: 18px;
    --layout-max: 1140px;
    --transition: all 0.28s ease;
    --fs-base: clamp(15px, 1.45vw, 17px);
    font-family: "Poppins", "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--light);
    color: var(--ink);
    margin: 0;
}

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

body,
h1,
h2,
h3,
p,
ul,
li,
figure {
    margin: 0;
    padding: 0;
}

ul,
li {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

textarea {
    resize: vertical;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(15, 87, 69, 0.92), rgba(12, 40, 32, 0.96)), url("/img/hero-mosque.jpg") center/cover no-repeat;
    color: var(--light);
    isolation: isolate;
    overflow: hidden;
    border-bottom-left-radius: clamp(40px, 8vw, 80px);
    border-bottom-right-radius: clamp(40px, 8vw, 80px);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(212, 166, 87, 0.45), transparent 60%), radial-gradient(ellipse at bottom left, rgba(15, 87, 69, 0.55), transparent 65%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem clamp(1rem, 4vw, 2.8rem);
    max-width: var(--layout-max);
    width: 100%;
    margin: clamp(1rem, 4vw, 2.5rem) auto 0;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.85rem, 2vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 0.06em;
}

.brand img {
    width: clamp(60px, 8vw, 96px);
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(15, 87, 69, 0.4));
}

.brand span {
    font-size: clamp(1.05rem, 2.2vw, 1.4rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--light);
    line-height: 1.3;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    transition: var(--transition);
}

.nav__toggle:hover {
    background: rgba(255, 255, 255, 0.24);
}

.nav__toggle-line {
    width: 20px;
    height: 2px;
    background: var(--light);
    border-radius: 999px;
    transition: var(--transition);
}

.nav__toggle-line + .nav__toggle-line {
    margin-top: 5px;
}

.nav__toggle.is-open .nav__toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle.is-open .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle.is-open .nav__toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav__links {
    position: fixed;
    inset: 0;
    z-index: 9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: rgba(12, 40, 32, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: var(--transition);
}

.nav__links a {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 500;
    color: var(--light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.55rem 1.1rem;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 34px -24px rgba(0, 0, 0, 0.65);
    transition: var(--transition);
}

.nav__links a:hover {
    background: rgba(212, 166, 87, 0.22);
    color: var(--accent);
}

.nav__links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hero__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2.2rem, 6vw, 5rem);
    align-items: center;
    padding: clamp(4rem, 6vw, 6rem) clamp(1.5rem, 6vw, 4.5rem) clamp(7rem, 10vw, 9rem);
    max-width: var(--layout-max);
    width: 100%;
    margin: auto;
    position: relative;
    z-index: 2;
}

.hero__text h1 {
    font-family: "Playfair Display", "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero__text p {
    color: rgba(249, 247, 239, 0.88);
    font-size: var(--fs-base);
    line-height: 1.7;
    margin-bottom: 1.6rem;
    max-width: 540px;
}

.hero__text > * + * {
    margin-top: 1rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.8rem 0 0;
    padding: 0;
}

.hero__tags li {
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.95rem 2.6rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    transition: var(--transition);
}

.cta-button--primary {
    background: var(--accent);
    color: var(--ink);
    box-shadow: 0 18px 32px -18px rgba(212, 166, 87, 0.65);
}

.cta-button--primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 20px 38px -16px rgba(212, 166, 87, 0.7);
    transform: translateY(-2px);
}

.cta-button--ghost {
    background: transparent;
    color: var(--light);
    border-color: rgba(255, 255, 255, 0.35);
}

.cta-button--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.cta-button--accent {
    background: var(--ink);
    color: var(--light);
}

.cta-button--accent:hover {
    background: var(--primary-dark);
}

.hero__visual {
    position: relative;
    display: grid;
    gap: 2rem;
    justify-items: center;
}

.hero__media {
    width: clamp(240px, 40vw, 360px);
    aspect-ratio: 4 / 5;
    position: relative;
    border-radius: clamp(26px, 3vw, 38px);
    background: linear-gradient(135deg, rgba(15, 87, 69, 0.12), rgba(14, 46, 38, 0.24)), var(--hero-media-image, none);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(212, 166, 87, 0.18);
    pointer-events: none;
}

.hero__card--focus {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--radius-lg);
    padding: clamp(1.8rem, 4vw, 2.6rem);
    max-width: clamp(280px, 60vw, 360px);
    text-align: left;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    display: grid;
    gap: 1.2rem;
}

.hero__card--focus h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.hero__card--focus p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.hero__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
}

.section {
    padding: clamp(4rem, 8vw, 6.5rem) clamp(1.5rem, 6vw, 4.5rem);
    max-width: calc(var(--layout-max) + 4rem);
    margin: 0 auto;
    display: grid;
    gap: clamp(2.5rem, 5vw, 3.5rem);
}

.section--light {
    color: var(--ink);
}

.section--dark {
    background: radial-gradient(circle at top, rgba(15, 87, 69, 0.58), rgba(15, 32, 28, 1));
    border-radius: clamp(28px, 3vw, 40px);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-strong);
}

.section--support {
    background: var(--surface-alt);
    border-radius: clamp(30px, 3vw, 44px);
    box-shadow: var(--shadow-soft);
}

.section__header {
    display: grid;
    gap: 1rem;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.section__header h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: 0.015em;
}

.section__header p {
    color: var(--ink-muted);
    line-height: 1.7;
}

.section--dark .section__header p {
    color: rgba(255, 255, 255, 0.78);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.6rem, 3vw, 2.4rem);
}

.card-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.activity-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: clamp(26px, 2.4vw, 34px);
    overflow: hidden;
    box-shadow: 0 16px 38px -22px rgba(0, 0, 0, 0.65);
    display: grid;
    grid-template-rows: auto 1fr;
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px -18px rgba(0, 0, 0, 0.6);
}

.activity-card__media {
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    padding: 4rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

.activity-card__content {
    padding: 2.2rem 2.4rem;
    display: grid;
    gap: 1rem;
}

.activity-card__content h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.activity-card__content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.project {
    position: relative;
    overflow: hidden;
}

.project::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(212, 166, 87, 0.12), transparent 55%);
    pointer-events: none;
}

.project__layout {
    display: grid;
    gap: clamp(2rem, 5vw, 3.8rem);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
}

.project__media {
    min-height: clamp(220px, 32vw, 340px);
    border-radius: clamp(26px, 3vw, 38px);
    background: linear-gradient(135deg, rgba(15, 31, 27, 0.18), rgba(16, 58, 49, 0.25)), url("/img/concept-projet.png") center/cover no-repeat;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.project__media::after {
    content: "Visuel de la salle de prière";
    position: absolute;
    bottom: 1.2rem;
    left: 1.6rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.project__content {
    display: grid;
    gap: 1.2rem;
}

.project__content p {
    color: var(--ink-muted);
    line-height: 1.7;
}

.project__list {
    display: grid;
    gap: 1rem;
    padding-left: 0;
}

.project__list li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--ink-muted);
    line-height: 1.65;
}

.project__list li::before {
    content: "";
    position: absolute;
    top: 0.65rem;
    left: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--accent);
}

.donation__layout {
    display: grid;
    gap: clamp(2rem, 6vw, 4rem);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
}

.donation__intro {
    display: grid;
    gap: 1rem;
    text-align: left;
}

.donation__intro p {
    color: var(--ink-muted);
    line-height: 1.7;
}

.donation__card {
    background: var(--surface);
    border-radius: clamp(26px, 3vw, 38px);
    padding: clamp(2rem, 3vw, 2.8rem);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1.4rem;
}

.donation-list {
    display: grid;
    gap: 1rem;
    font-size: 0.98rem;
}

.donation-list div {
    display: grid;
    grid-template-columns: minmax(120px, auto) 1fr;
    gap: 0.75rem;
    align-items: baseline;
}

.donation-list dt {
    font-weight: 600;
    color: var(--primary);
}

.donation-list dd {
    color: var(--ink-muted);
}

.asbl__content {
    display: grid;
    gap: 1.2rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

.activities .activity-card__media {
    padding: 3.5rem 1.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
}

.activities .activity-card__content p {
    color: rgba(255, 255, 255, 0.82);
}

.contact__layout {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
}

.contact__form-card,
.contact__directory {
    background: var(--surface);
    border-radius: clamp(26px, 3vw, 36px);
    padding: clamp(2rem, 3vw, 2.6rem);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1.2rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form label {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 87, 69, 0.18);
    background: var(--surface-alt);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 87, 69, 0.15);
}

.directory-list {
    display: grid;
    gap: 1rem;
}

.directory-list li {
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(15, 87, 69, 0.18);
    display: grid;
    gap: 0.35rem;
}

.directory-list li:last-child {
    border-bottom: none;
}

.directory-list__name {
    font-weight: 600;
}

.directory-list__role {
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.contact__directory a {
    color: var(--primary-dark);
    font-weight: 500;
}

.contact__directory a:hover {
    color: var(--accent);
}

.site-footer {
    display: grid;
    gap: clamp(1.8rem, 3vw, 2.4rem);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: center;
    padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, rgba(15, 87, 69, 0.95), rgba(12, 38, 31, 0.96));
    color: rgba(255, 255, 255, 0.85);
    border-radius: clamp(30px, 3vw, 44px) clamp(30px, 3vw, 44px) 0 0;
    box-shadow: var(--shadow-strong);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer__title {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-size: 1.4rem;
}

.site-footer__nav,
.site-footer__social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.site-footer__nav a:hover,
.site-footer__social a:hover {
    color: var(--accent);
}

.site-footer__legal {
    padding: 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(16, 33, 31, 0.55);
}

.scroll-top {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1.5rem, 4vw, 3rem);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--ink);
    font-size: 1.6rem;
    font-weight: 600;
    box-shadow: 0 18px 30px -18px rgba(15, 87, 69, 0.6);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: var(--transition);
    display: grid;
    place-items: center;
}

.scroll-top span {
    transform: translateY(-2px);
}

.scroll-top:is(:hover, :focus-visible) {
    box-shadow: 0 22px 36px -16px rgba(15, 87, 69, 0.65);
    transform: translateY(0);
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (min-width: 720px) {
    .nav__links {
        position: static;
        inset: auto;
        flex-direction: row;
        gap: 1.5rem;
        background: transparent;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .nav__toggle {
        display: none;
    }
}

@media (max-width: 720px) {
    .nav__links {
        padding: clamp(5rem, 20vh, 7rem) clamp(1.5rem, 8vw, 3rem);
        align-items: stretch;
        text-align: center;
    }

    .nav__links a {
        width: min(320px, 100%);
        margin-inline: auto;
        justify-content: center;
        font-size: clamp(1.1rem, 3.6vw, 1.4rem);
        padding: clamp(0.9rem, 3.4vw, 1.1rem) clamp(1.8rem, 8vw, 2.6rem);
        border-radius: 28px;
        background: rgba(255, 255, 255, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.24);
        box-shadow: 0 20px 42px -26px rgba(0, 0, 0, 0.7);
    }

    .top-nav {
        border-radius: 24px;
        margin-top: 1rem;
    }

    .hero__content {
        padding-top: clamp(6rem, 12vw, 8rem);
    }

    .hero__visual {
        justify-items: stretch;
    }

    .hero__media {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .support-card {
        padding: clamp(2.2rem, 2.8vw, 3.2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}