/* Hassanates : site public, identité « Le ciel vivant » (jetons : identite.css).
   Le ciel du moment (--sky-grad, posé par boot.js) ouvre les pages ; le reste est de l'encre sur pierre,
   des filets fins, des titres Changa, le jade pour agir. Pas de pastilles, pas de tuiles colorées. */
:root { --s-section: clamp(3rem, 2rem + 4vw, 6rem); }

main { display: block; min-height: 60vh; }
h1 em, h2 em { font-style: normal; color: inherit; opacity: 1; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--c-ink); color: #fff; padding: 12px 18px; border-radius: var(--r-md); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--c-bg); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--c-line); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-text); min-height: 44px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font: 800 1.22rem var(--f-title); letter-spacing: .005em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav a:not(.btn) { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--c-text); text-decoration: none; font-weight: 500; font-size: .93rem; }
.site-nav a:not(.btn):hover { color: var(--accent-fg); }
.site-nav a[aria-current="page"] { font-weight: 700; }
.site-nav a[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--jade); }
.header-tools { display: flex; gap: 4px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r-md); border: 0; background: transparent; color: var(--c-text); cursor: pointer; transition: transform .35s var(--spring), background-color .15s; }
.icon-btn:hover { background: var(--c-surface-2); }
.icon-btn:active { transform: scale(.88); }
.icon-btn svg { width: 20px; height: 20px; }
.burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .35s var(--spring), opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .site-nav { position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 8px; margin: 0;
    padding: 4px var(--gutter) 22px; background: var(--c-bg); box-shadow: 0 1px 0 var(--c-line), 0 30px 40px -30px rgb(0 0 0 / .25);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .35s var(--spring), visibility 0s .2s; }
  .menu-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .35s var(--spring); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { box-shadow: inset 0 1px 0 var(--c-line); }
  .site-nav a:not(.btn) { min-height: 54px; font: 600 1.15rem var(--f-title); padding: 0 2px; }
  .site-nav a[aria-current="page"]::after { left: auto; right: 2px; top: 50%; bottom: auto; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; }
  .nav-cta { min-height: 54px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--s-section); }
.section-tight { padding-block: 0 var(--s-section); }
.section-alt { background: var(--c-surface); }
.section-head { max-width: 700px; margin-bottom: 2rem; }
.lead { font-size: 1.1rem; color: var(--c-muted); max-width: 62ch; }

/* ---------- Accueil : la fenêtre de ciel ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: #0b0e0c; color: #f1f4f1; padding-block: clamp(1.6rem, 1rem + 4vw, 4.5rem) 0; }
.hero-grid { position: relative; display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 64px; } }
.hero h1 { font-size: clamp(2.6rem, 11vw, 5.4rem); line-height: .96; letter-spacing: -.035em; max-width: 13ch; margin-bottom: .4em; }
.hero-lead { font-size: 1.12rem; max-width: 42ch; margin-bottom: 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .btn { flex: 1 1 auto; padding-inline: 1em; }
@media (min-width: 900px) { .hero-copy { padding-bottom: 3rem; } }
.hero .offer-slot { margin-bottom: 1.2rem; max-width: 46ch; }
.hero .offer-note { background: transparent; padding: 0 0 0 14px; border-radius: 0; box-shadow: inset 3px 0 0 var(--brand); font-size: .95rem; color: inherit; }
.hero .offer-note .btn { display: none; }
.hero .btn-gold, .page-hero .btn-gold { background: var(--brand); color: var(--on-brand); }
.phone .sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero .btn-ghost { color: #f1f4f1; box-shadow: inset 0 0 0 1.5px rgb(241 244 241 / .55); }
.page-hero .btn-ghost { color: var(--on-sky); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--on-sky) 45%, transparent); }
.hero :focus-visible, .page-hero :focus-visible { outline-color: var(--on-sky); }
.page-hero :is(.badge-muted, .badge-ok) { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--on-sky) 40%, transparent); }

/* L'aperçu de l'appli : le seul ciel de la page, vivant, dans un téléphone dont le bas passe sous la section */
.phone { justify-self: center; width: min(100%, 300px); padding: 8px 8px 0; border-radius: 34px 34px 0 0; background: #23282a; box-shadow: 0 0 0 1px rgb(255 255 255 / .12); }
.phone-screen { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; height: clamp(270px, 74vw, 430px); border-radius: 26px 26px 0 0; background: var(--sky-grad); color: var(--on-sky); }
.phone-now { padding: 16px 16px 0; }
.phone-wait { margin: 0 0 16px; font-weight: 600; }
.hp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hp-city { margin: 0; font: 600 .9rem var(--f-body); }
.phone .hp-locate { min-height: 44px; padding: 0 2px; background: none; color: inherit; box-shadow: none; font: 600 .85rem var(--f-body); text-decoration: underline; text-underline-offset: 3px; }
.phone .hp-countdown { margin: 6px 0 14px; gap: 0; }
.phone .cd-label { color: inherit; font: 600 .9rem var(--f-body); }
.phone .cd-prayer { font: 800 2.7rem/1 var(--f-moment); letter-spacing: -.03em; }
.phone .cd-prayer .ar { color: inherit; font-size: 1.5rem; }
.phone .cd-prayer time { color: inherit; font: 700 1.3rem var(--f-moment); }
.phone .cd-words, .phone .cd-time { font: 600 1.05rem/1.3 var(--f-body); min-height: 0; letter-spacing: 0; }
.phone .hp-mini { margin: 0 -16px; padding: 12px 8px 14px; border: 0; background: var(--c-bg); color: var(--c-text); border-radius: 18px 18px 0 0; font-size: .75rem; }
.phone .hp-mini span { color: var(--c-muted); }
.phone .hp-mini b { font-size: .9rem; }
.hp-link { display: none; }
.cd-label { font-size: .9rem; color: rgb(241 244 241 / .7); font-weight: 500; }
.cd-prayer { font: 700 1.5rem var(--f-moment); }
.cd-prayer .ar { font: 700 1.4rem var(--f-kufi); color: var(--jade); margin-inline-end: 8px; }
.cd-prayer time { color: var(--jade); }
.cd-time { display: flex; align-items: baseline; font: 800 clamp(2.6rem, 11vw, 3.8rem)/1.05 var(--f-moment); font-variant-numeric: tabular-nums; }
.cd-time .dg { display: inline-block; width: .6em; text-align: center; }
.cd-time .sep { display: inline-block; width: .3em; text-align: center; opacity: .5; }
.cd-words { font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -.01em; min-height: 1.05em; }
.hp-mini { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; text-align: center; }
.hp-mini span { display: block; }
.hp-mini b { font-family: var(--f-moment); font-variant-numeric: tabular-nums; }

/* ---------- Accueil : le correcteur, puis trois portes ---------- */
.home-recite { padding-block: clamp(1.8rem, 1.4rem + 3vw, 4.5rem); }
.home-recite h2 { font-size: clamp(1.9rem, 7vw, 3rem); letter-spacing: -.03em; }
.home-links { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 800px) { .home-links { grid-template-columns: repeat(3, 1fr); gap: 0 32px; } }
.home-links a { display: grid; gap: 2px; padding: 12px 0; color: inherit; text-decoration: none; box-shadow: inset 0 1px 0 var(--c-line); }
.home-links b { font: 700 1.15rem var(--f-title); }
.home-links b::after { content: ' →'; color: var(--accent-fg); }
.home-links span { color: var(--c-muted); font-size: .95rem; }
@media (max-width: 799px) { .home-links span { display: none; } .footer-ar, .footer-brand p { display: none; } .footer-grid > :last-child { grid-column: 1 / -1; } .footer-grid > :last-child ul { display: flex; flex-wrap: wrap; gap: 0 18px; } }
.ds-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--accent-fg); text-decoration: none; }
.ds-link::after { content: '→'; transition: transform .35s var(--spring); }
.ds-link:hover::after { transform: translateX(4px); }
.compare-fold summary { min-height: 56px; display: flex; align-items: center; font: 700 1.2rem var(--f-title); cursor: pointer; box-shadow: inset 0 1px 0 var(--c-line); }

.cta-band { position: relative; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: clamp(24px, 4vw, 44px) 0; box-shadow: inset 0 1px 0 var(--c-line), inset 0 -1px 0 var(--c-line); }
.cta-band h2 { color: inherit; }
.cta-band p { max-width: 60ch; margin: 0; color: var(--c-muted); }
.cta-band .btn { background: var(--jade); color: var(--on-jade); }

/* ---------- Pages intérieures : bandeau du ciel du moment ---------- */
.page-hero { position: relative; padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(1.8rem, 1rem + 2.4vw, 3rem); background: var(--sky-grad); color: var(--on-sky); overflow: hidden; }
.page-hero a { color: inherit; }
.page-hero .ar-mark { display: none; }
.page-hero h1 { max-width: 20ch; position: relative; font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: -.025em; line-height: 1; }
.page-hero .lead { position: relative; color: inherit; opacity: .85; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1rem; padding: 0; font-size: .86rem; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; opacity: .55; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; }

/* ---------- Horaires : une règle, pas des tuiles ---------- */
.times-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); background: var(--c-surface); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 640px) { .times-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .times-grid { grid-template-columns: repeat(6, 1fr); } }
.t-cell { position: relative; display: grid; gap: 2px; padding: 22px 12px 18px; text-align: center; box-shadow: inset -1px -1px 0 var(--c-line); }
.t-cell.is-sun { color: var(--c-muted); }
.t-cell.is-next { color: var(--c-text); background: color-mix(in srgb, var(--jade) 10%, var(--c-surface)); }
.t-cell.is-next::before { content: ''; position: absolute; left: 50%; top: 0; width: 26px; height: 5px; margin-left: -13px; border-radius: 0 0 3px 3px; background: var(--jade); }
.t-ar { font: 700 1.15rem/1.3 var(--f-kufi); color: var(--c-muted); }
.t-name { font-weight: 600; font-size: .9rem; }
.is-next .t-name { color: var(--accent-fg); }
.t-time { font: 800 clamp(1.4rem, 4vw, 1.9rem)/1.1 var(--f-moment); font-variant-numeric: tabular-nums; }
.t-iqama { font-size: .8rem; color: var(--c-muted); }
.t-flag { position: absolute; top: 8px; left: 0; right: 0; font-size: .8125rem; font-weight: 700; color: var(--accent-fg); white-space: nowrap; }
.times-meta { margin-top: 14px; color: var(--c-muted); font-size: .92rem; }
.countdown-card { display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--r-xl); color: #f1f4f1; background: var(--c-ink); }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 18px; }
.toolbar .field { margin: 0; flex: 1 1 220px; }
.month-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.month-title { margin: 0; min-width: 9ch; text-align: center; text-transform: capitalize; font-size: 1.2rem; }
.month-table { background: var(--c-surface); border-radius: var(--r-lg); max-height: 70vh; overflow: auto; }
.month-table th, .month-table td { padding: 10px 12px; white-space: nowrap; }
.month-table thead th { position: sticky; top: 0; background: var(--c-surface-2); z-index: 1; }
.month-table tbody th { font-weight: 600; text-transform: capitalize; }
.month-table tr.is-friday { background: color-mix(in srgb, var(--jade) 7%, transparent); }
.month-table tr.is-today { background: color-mix(in srgb, var(--jade) 20%, transparent); font-weight: 700; }

.city-results { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: var(--r-md); border: 1.5px solid var(--c-line);
  background: transparent; color: var(--c-text); text-decoration: none; font: 500 .92rem var(--f-body); cursor: pointer; transition: border-color .15s, transform .35s var(--spring); }
.chip:hover { border-color: var(--c-text); }
.chip:active { transform: scale(.94); }
.chip small { color: var(--c-muted); }
.city-index { columns: 2 180px; column-gap: 24px; }
.city-index section { break-inside: avoid; margin-bottom: 14px; }
.city-index h3 { font-size: 1.15rem; color: var(--accent-fg); margin: 0 0 4px; }
.city-index ul { list-style: none; margin: 0; padding: 0; }
.city-index a { display: inline-flex; align-items: center; min-height: 36px; color: var(--c-text); }
.city-index a:hover { color: var(--accent-fg); }
.nearby { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }

/* ---------- Mosquées ---------- */
.mosque-layout { display: grid; gap: 20px; }
@media (min-width: 960px) { .mosque-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
  .map-wrap { position: sticky; top: 80px; } }
.map { height: clamp(300px, 55vh, 560px); border-radius: var(--r-lg); background: var(--c-surface-2); z-index: 0; }
.mosque-list { list-style: none; margin: 0; padding: 0; display: grid; background: var(--c-surface); border-radius: var(--r-lg); overflow: hidden; }
.mosque-item { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; box-shadow: inset 0 -1px 0 var(--c-line); transition: background-color .15s; }
.mosque-item:hover { background: var(--c-surface-2); }
.mosque-item.is-active { box-shadow: inset 4px 0 0 var(--jade); }
.mosque-item .arch-icon { width: 44px; height: 44px; margin: 0; }
.mosque-item .arch-icon svg { width: 24px; height: 24px; }
.mosque-item h3 { margin: 0 0 2px; font-size: 1.05rem; }
.mosque-item h3 a { color: var(--c-text); text-decoration: none; }
.mosque-item h3 a::after { content: ''; position: absolute; inset: 0; }
.mosque-item p { margin: 0; color: var(--c-muted); font-size: .92rem; }
.mosque-item .row { margin-top: 6px; gap: 6px; }
.mosque-item > div { min-width: 0; }
.mosque-item h3, .mosque-item p { overflow-wrap: anywhere; }
.arch-icon { display: grid; place-items: center; border-radius: var(--r-md); background: var(--c-surface-2); color: var(--c-text); flex: none; }
.pin { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c-ink); border: 2px solid var(--jade); }
.pin span { color: var(--jade); font-size: 12px; transform: rotate(45deg); }
.pin.is-me { background: var(--jade); border-color: var(--c-ink); }
.empty { padding: 28px; border-radius: var(--r-lg); background: var(--c-surface); color: var(--c-muted); }

.mosque-head { display: grid; gap: 18px; }
@media (min-width: 900px) { .mosque-head { grid-template-columns: 1fr auto; align-items: end; } }
.mosque-name-ar { font: 700 1.6rem var(--f-kufi); margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.panel { background: var(--c-surface); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); }
.panel h2 { font-size: 1.35rem; }
.panels { display: grid; gap: 12px; }
@media (min-width: 900px) { .panels-2 { grid-template-columns: 1fr 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.services li { display: flex; align-items: center; gap: 10px; min-height: 48px; box-shadow: inset 0 -1px 0 var(--c-line); font-size: .94rem; }
.services .ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--c-surface-2); color: var(--c-text); flex: none; font-size: .9rem; }
.notice { padding: 14px 18px; border-radius: var(--r-md); background: var(--c-surface); box-shadow: inset 4px 0 0 var(--jade); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li { padding: 16px 0; box-shadow: inset 0 -1px 0 var(--c-line); }
.feed h3 { margin: 0 0 4px; font-size: 1.08rem; }
.feed p { margin: 0; }

/* ---------- Offres ---------- */
.plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px 22px 22px; background: var(--c-surface); border-radius: var(--r-lg); }
.plan h3 { margin: 0; font-size: 1.35rem; }
.plan .price { font: 800 2.2rem/1.05 var(--f-moment); }
.plan .period { color: var(--c-muted); font-size: .9rem; }
.plan .note { font-size: .88rem; color: var(--accent-fg); font-weight: 600; }
.plan .btn { margin-top: auto; }
.plan.featured { box-shadow: inset 0 0 0 2px var(--c-text); }
.plan.mosque { box-shadow: inset 0 0 0 2px var(--jade); }
.ribbon { position: absolute; top: 12px; right: 16px; color: var(--accent-fg); font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.yes { color: var(--c-ok); font-weight: 700; }
.no { color: var(--c-muted); }

/* ---------- Contenus éditoriaux ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4rem; }
.prose li { margin-bottom: .35rem; }
.feature-grid { display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.feature { padding: 22px 0; box-shadow: inset 0 1px 0 var(--c-line); }
.feature h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.feature p { margin: 0; color: var(--c-muted); }
.feature .num { display: block; font: 800 1.9rem/1 var(--f-moment); color: var(--accent-fg); }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 56px; min-height: 60px; box-shadow: inset 0 -1px 0 var(--c-line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 12px; width: 40px; font: 800 1.7rem/1 var(--f-moment); color: var(--accent-fg); }

/* Démonstration du correcteur */
.demo-recite { padding: 26px 22px; border-radius: var(--r-lg); background: var(--c-surface); }
.demo-recite .quran { text-align: center; margin: 0 0 12px; }
.w-ok { color: var(--c-ok-fg); }
.plan .is-soon { cursor: default; color: var(--c-muted); }
.w-err { color: var(--c-mistake); text-decoration: underline wavy; text-underline-offset: 8px; }
.w-skip { color: var(--c-skip); }
.w-wait { opacity: .4; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; font-size: .85rem; color: var(--c-muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Écran TV (aperçu sur la page mosquée gratuite) */
.tv { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); padding: 4%; color: #fff; background: #0b1430; outline: 8px solid var(--c-ink); outline-offset: -2px;
  display: grid; grid-template-rows: auto 1fr auto; gap: 4%; font-size: clamp(.55rem, 1.6vw, .95rem); }
.tv-top { display: flex; justify-content: space-between; align-items: baseline; }
.tv-clock { font: 800 3.2em/1 var(--f-moment); color: var(--k-nuit); }
.tv-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2%; align-self: end; }
.tv-row div { text-align: center; padding: 6% 2%; border-radius: 6px; background: rgb(255 255 255 / .08); }
.tv-row div.on { background: var(--k-midi); color: var(--c-ink); }
.tv-row b { display: block; font: 700 1.4em var(--f-moment); }

/* FAQ et formulaires */
.faq details { box-shadow: inset 0 -1px 0 var(--c-line); }
.faq summary { cursor: pointer; list-style: none; min-height: 56px; padding: 18px 44px 18px 0; position: relative; font: 700 1.1rem/1.3 var(--f-title); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: currentColor; transition: transform .45s var(--spring); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details > div { padding: 0 0 18px; color: var(--c-muted); max-width: 70ch; }
.form-card { max-width: 640px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); color: #dfe5df; background: var(--c-ink); padding-block: 36px 20px; }
:root[data-theme="dark"] .site-footer { background: #111513; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #111513; } }
.footer-ornament { display: none; }
.footer-grid { display: grid; gap: 22px 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 800px) { .footer-brand { grid-column: auto; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #f1f4f1; text-decoration: none; }
.site-footer a:hover { color: var(--jade); }
.site-footer :focus-visible { outline-color: #fff; }
.footer-title { font: 700 .95rem var(--f-title); color: rgb(241 244 241 / .6); margin-bottom: 8px; }
.brand-light { color: #fff; }
.footer-ar { font: 700 2.2rem/1.3 var(--f-kufi); color: var(--jade); margin: 8px 0 0; }
.footer-brand p { color: rgb(241 244 241 / .75); max-width: 30ch; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 32px; padding-top: 18px; font-size: .85rem; color: rgb(241 244 241 / .65); }
.footer-bottom p { margin: 0; }

/* ---------- Mouvement ---------- */
.rise { animation: rise .7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Leaflet : accorder les contrôles au thème */
.leaflet-container { font: inherit; }
.leaflet-popup-content-wrapper { border-radius: var(--r-md); }
.leaflet-div-icon { background: transparent; border: 0; }
main > .container > .breadcrumb { padding-top: 18px; }

/* ---------- Annuaire (recherche de mosquées) ---------- */
.toolbar .field-country { flex: 0 1 180px; }
.badge-muted { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c-line); color: var(--c-muted); font-weight: 500; }
.load-more { margin: 14px 0 0; text-align: center; }
.source-note { margin-top: 14px; font-size: .88rem; }
.directory-notice p { margin: 0 0 8px; }
.directory-notice p:last-child { margin-bottom: 0; font-size: .88rem; }
.year-csv { margin: 12px 0 0; }
