/* Moskee Arrahma · Tienen — feuille de style du site
   Couleurs tirées de l'emblème (vert du minaret, or du dôme) et du crème des
   briques de la salle de prière. */

/* ---------- Polices (hébergées sur le site : aucune requête vers Google) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/amiri-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/amiri-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------- Couleurs et mesures ---------- */
:root {
  --night: #07150e;
  --deep: #0c2218;
  --forest: #123425;
  --emerald: #1d5a3f;
  --sage: #8aa983;
  --sage-soft: #e3ebdd;
  --gold: #c9a14b;
  --gold-2: #e6c77f;
  --gold-deep: #9a7730;
  --cream: #f7f2e7;
  --paper: #fffdf8;
  --sand: #efe6d3;
  --line: #e4d9c2;
  --ink: #14201a;
  --ink-2: #39483f;
  --muted: #66746b;
  --on-dark: #f3eee2;
  --on-dark-2: rgba(243, 238, 226, .72);
  --on-dark-line: rgba(230, 199, 127, .18);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Amiri", "Geeza Pro", "Traditional Arabic", serif;

  --radius: 26px;
  --radius-m: 18px;
  --radius-s: 12px;
  --shadow: 0 40px 80px -40px rgba(7, 21, 14, .35), 0 2px 6px rgba(7, 21, 14, .04);
  --shadow-s: 0 14px 30px -18px rgba(7, 21, 14, .35);
  --gutter: clamp(16px, 4.5vw, 44px);
  --header-h: 78px;
  --ease: cubic-bezier(.22, .8, .2, 1);

  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23c9a14b' stroke-width='1'%3E%3Cpath d='M48 20l8.2 19.8L76 48l-19.8 8.2L48 76l-8.2-19.8L20 48l19.8-8.2z'/%3E%3Cpath d='M28.2 28.2h39.6v39.6H28.2z'/%3E%3Cpath d='M48 0v20M48 76v20M0 48h20M76 48h20M0 0l28.2 28.2M96 0L67.8 28.2M0 96l28.2-28.2M96 96L67.8 67.8'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-2); color: var(--night); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.ar { font-family: var(--font-ar); direction: rtl; unicode-bidi: isolate; letter-spacing: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: 999px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.num { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Mise en page ---------- */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--deep); color: var(--on-dark); isolation: isolate; }
.section--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--motif); background-size: 96px; opacity: .07;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
.section-head { display: grid; gap: 18px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; }
@media (max-width: 820px) { .section-head--row { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font: 700 .74rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--gold-2); }
.title-xl { font-size: clamp(2.7rem, 6.4vw, 5.6rem); line-height: .98; }
.title-l { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.title-m { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.title-s { font-size: 1.5rem; }
.title-l em, .title-xl em, .title-m em { font-style: italic; font-weight: 500; color: var(--gold-deep); }
.section--dark .title-l em, .on-dark em { color: var(--gold-2); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-2); line-height: 1.7; }
.section--dark .lead, .on-dark .lead { color: var(--on-dark-2); }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 1em; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--emerald); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); text-decoration: none; white-space: nowrap;
  font: 700 .95rem/1 var(--font-body); letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(7, 21, 14, .55); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--gold { --bg: linear-gradient(135deg, #e9cb84, #c9a14b 55%, #b48b38); --fg: var(--night); background: var(--bg); position: relative; overflow: hidden; isolation: isolate; }
.btn--gold:hover { box-shadow: 0 18px 34px -14px rgba(201, 161, 75, .7); }
/* Reflet qui traverse les boutons dorés au survol */
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .5) 48%, transparent 64%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn--gold:hover::after { transform: translateX(120%); }
@media (prefers-reduced-motion: reduce) { .btn--gold::after { display: none; } }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: rgba(20, 32, 26, .22); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--light { --bg: rgba(255, 255, 255, .08); --fg: var(--on-dark); --bd: rgba(243, 238, 226, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--light:hover { --bg: rgba(255, 255, 255, .16); --bd: rgba(243, 238, 226, .6); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--emerald); }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--gold-2); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--on-dark); transition: background-color .35s, box-shadow .35s, transform .4s var(--ease); will-change: transform;
}
.site-header::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: rgba(243, 238, 226, .12); transition: opacity .4s; }
/* Fond plein, sans flou d'arrière-plan : le flou, recalculé à chaque image
 * pendant le défilement, faisait scintiller l'en-tête dans certains
 * navigateurs (Safari surtout). */
.site-header.is-solid {
  background-color: #0a1e15;
  box-shadow: 0 18px 40px -28px rgba(7, 21, 14, .8);
}
.site-header.is-solid::after { background: rgba(230, 199, 127, .16); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; max-width: 1400px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: 47px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18)); }
.brand__txt { display: grid; line-height: 1; }
.brand__name { font: 600 1.42rem/1 var(--font-display); letter-spacing: .005em; }
.brand__sub { display: flex; gap: 8px; align-items: baseline; margin-top: 4px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; font-weight: 600; }
.brand__sub .ar { font-size: .95rem; letter-spacing: 0; text-transform: none; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; padding: 10px 11px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .93rem; opacity: .86; transition: opacity .2s, background .2s;
}
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-prayer {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(243, 238, 226, .22); font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.header-prayer b { font-weight: 800; }
.header-prayer .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 161, 75, .22); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(201, 161, 75, 0); } }
/* Sélecteur de langue FR / NL */
.langs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(243, 238, 226, .22); }
.langs a {
  min-width: 38px; padding: 7px 9px; border-radius: 999px; text-align: center; text-decoration: none;
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; line-height: 1.2; opacity: .72; transition: opacity .2s, background .2s;
}
.langs a:hover { opacity: 1; }
.langs a[aria-current] { opacity: 1; background: rgba(255, 255, 255, .14); }
.langs__nom { display: none; }
.langs--menu { justify-self: start; border-color: var(--on-dark-line); }
.langs--menu a { padding: 10px 18px; font-size: .9rem; letter-spacing: .02em; }
.langs--menu .langs__code { display: none; }
.langs--menu .langs__nom { display: inline; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(243, 238, 226, .3); background: transparent; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
/* Avec le sélecteur de langue et les libellés néerlandais, plus longs, la
 * navigation complète (sept liens, dont Décès) a besoin d’environ 1250 px, et d'environ 1480 px avec la
 * prière (« Maghrib · iqama 17:10 » pendant l'iqama). Les libellés ne passent
 * jamais à la ligne. */
@media (max-width: 1500px) { .header-prayer { display: none; } }
.nav a, .brand__name, .header-cta .btn { white-space: nowrap; }
@media (max-width: 1260px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
  .site-header .wrap { gap: 10px; }
  .header-cta { gap: 8px; }
  .header-cta .btn { padding: 0; width: 44px; min-height: 44px; }
  .header-cta .btn span { display: none; }
  .nav-toggle { width: 44px; height: 44px; }
  .brand { gap: 10px; }
  .brand img { width: 40px; height: 41px; }
  .brand__name { font-size: 1.25rem; }
  .brand__sub span:first-child { display: none; }
  /* Sur téléphone, l'en-tête ne montre que l'autre langue (les deux sont dans le menu). */
  .header-cta .langs { padding: 0; border: 0; }
  .header-cta .langs a[aria-current] { display: none; }
  .header-cta .langs a {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-width: 0; padding: 0;
    border: 1px solid rgba(243, 238, 226, .3); opacity: 1;
  }
}
@media (max-width: 370px) { .brand__name { font-size: 1.12rem; } }

/* Menu mobile */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--night); color: var(--on-dark);
  display: grid; grid-template-rows: auto 1fr auto; padding: 18px var(--gutter) 28px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
.menu::before { content: ""; position: absolute; inset: 0; background-image: var(--motif); background-size: 96px; opacity: .06; pointer-events: none; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu__top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.menu__top .nav-toggle { display: inline-flex; color: var(--on-dark); }
.menu__links { list-style: none; margin: 0; padding: 32px 0; display: grid; align-content: center; gap: 4px; position: relative; }
.menu__links a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font: 600 clamp(2rem, 9vw, 2.8rem)/1.1 var(--font-display); text-decoration: none; border-bottom: 1px solid var(--on-dark-line); transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu__links li:nth-child(2) a { transition-delay: .04s; } .menu__links li:nth-child(3) a { transition-delay: .08s; }
.menu__links li:nth-child(4) a { transition-delay: .12s; } .menu__links li:nth-child(5) a { transition-delay: .16s; }
.menu__links li:nth-child(6) a { transition-delay: .2s; } .menu__links li:nth-child(7) a { transition-delay: .24s; }
.menu__links .icon { width: 22px; height: 22px; color: var(--gold-2); }
.menu__foot { position: relative; display: grid; gap: 14px; }

/* ---------- Héros (accueil) ---------- */
.hero {
  position: relative; min-height: max(680px, 100svh); color: var(--on-dark); background: #0b1c18;
  display: grid; align-items: center; overflow: hidden; isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__canvas.is-ready { opacity: 1; }
.hero__canvas canvas { width: 100% !important; height: 100% !important; }
.hero__fallback {
  position: absolute; inset: 0; z-index: -3;
  background: linear-gradient(180deg, rgba(7, 21, 14, .35), rgba(7, 21, 14, .55)), url("../img/facade-cour.jpg") 50% 62% / cover no-repeat, #0f2a22;
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 21, 14, .78) 0%, rgba(7, 21, 14, .5) 32%, rgba(7, 21, 14, 0) 58%),
    linear-gradient(0deg, rgba(7, 21, 14, .7) 0%, rgba(7, 21, 14, 0) 30%),
    linear-gradient(180deg, rgba(7, 21, 14, .45) 0%, rgba(7, 21, 14, 0) 18%);
}
.hero .wrap { max-width: 1400px; padding-top: calc(var(--header-h) + 40px); padding-bottom: 150px; }
.hero__content { max-width: 640px; display: grid; gap: 26px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 12px; width: fit-content; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(243, 238, 226, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
}
.hero__tag .ar { font-size: 1.15rem; line-height: 1; padding: 4px 12px; border-radius: 999px; background: rgba(201, 161, 75, .18); color: var(--gold-2); }
.hero h1 { font-size: clamp(2.9rem, 5.3vw, 5.4rem); line-height: .97; font-weight: 600; text-shadow: 0 4px 40px rgba(0, 0, 0, .25); }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-2); }
.hero .lead { color: rgba(243, 238, 226, .82); max-width: 520px; }

.hero__panel {
  position: absolute; right: var(--gutter); bottom: 34px; z-index: 2; width: min(400px, calc(100% - 2 * var(--gutter)));
  padding: 22px 22px 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(14, 38, 28, .62), rgba(7, 21, 14, .5));
  border: 1px solid rgba(230, 199, 127, .2); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6);
}
.next { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.next__ring { position: relative; width: 84px; height: 84px; }
.next__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.next__ring circle { fill: none; stroke-width: 3; }
.next__ring .track { stroke: rgba(243, 238, 226, .12); }
.next__ring .prog { stroke: url(#grad-or); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.next__ring .ar { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.25rem; color: var(--gold-2); }
.next__label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--on-dark-2); }
.next__name { font: 600 2rem/1.05 var(--font-display); margin-top: 4px; }
.next__time { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; font-size: .95rem; color: var(--on-dark-2); }
.next__time b { font: 600 1.25rem/1 var(--font-display); color: var(--on-dark); }
.next__count { font-weight: 700; color: var(--gold-2); }
.daybar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--on-dark-line); }
.daybar button {
  display: grid; gap: 3px; justify-items: center; padding: 9px 2px; border-radius: 12px; border: 1px solid transparent; background: transparent;
  color: var(--on-dark-2); font-size: .72rem; font-weight: 700; letter-spacing: .02em; transition: background .25s, color .25s, border-color .25s;
}
.daybar button b { font: 600 1.06rem/1 var(--font-display); color: var(--on-dark); font-variant-numeric: lining-nums tabular-nums; }
.daybar button:hover { background: rgba(255, 255, 255, .06); color: var(--on-dark); }
.daybar button.is-next { border-color: rgba(230, 199, 127, .45); background: rgba(201, 161, 75, .12); color: var(--gold-2); }
.daybar button.is-past { opacity: .55; }
.daybar button[aria-pressed="true"] { background: var(--gold); color: var(--night); border-color: var(--gold); opacity: 1; }
.daybar button[aria-pressed="true"] b { color: var(--night); }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; font-size: .78rem; color: var(--on-dark-2); }
.panel-foot button { background: none; border: 0; padding: 4px 0; color: var(--gold-2); font-weight: 700; font-size: .78rem; display: inline-flex; gap: 6px; align-items: center; }
.panel-foot button[hidden] { display: none; }
.hero__caption {
  position: absolute; left: var(--gutter); bottom: 24px; z-index: 2; max-width: min(560px, calc(100% - 2 * var(--gutter)));
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 3px; align-items: center;
  font-size: .72rem; letter-spacing: .06em; color: rgba(243, 238, 226, .52);
}
.hero__caption::before { content: ""; grid-row: 1; width: 22px; height: 1px; background: var(--gold-2); opacity: .8; }
.hero__where { grid-column: 2; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 238, 226, .86); transition: opacity .6s var(--ease); }
.hero__note { grid-column: 2; }
.hero__replay {
  grid-column: 2; justify-self: start; margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--gold-2);
  font: inherit; font-weight: 700; letter-spacing: .08em; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.hero__replay::before { content: "↺"; font-size: .95rem; letter-spacing: 0; }
.hero__replay:hover { color: var(--on-dark); }
.hero__replay[hidden] { display: none; }

@media (max-width: 900px) {
  .hero { align-items: end; min-height: auto; background: var(--night); }
  .hero__canvas, .hero__fallback { bottom: auto; height: min(84svh, 760px); -webkit-mask-image: linear-gradient(#000 62%, transparent 96%); mask-image: linear-gradient(#000 62%, transparent 96%); }
  .hero__veil { background: linear-gradient(0deg, var(--night) 0%, rgba(7, 21, 14, .88) 34%, rgba(7, 21, 14, 0) 62%), linear-gradient(180deg, rgba(7, 21, 14, .5) 0%, rgba(7, 21, 14, 0) 18%); }
  .hero .wrap { padding-top: calc(var(--header-h) + min(50svh, 470px)); padding-bottom: 28px; }
  .hero__content { gap: 20px; }
  .hero__panel { position: relative; inset: auto; width: auto; margin: 0 var(--gutter) 22px; }
  .hero__caption { position: relative; left: auto; bottom: auto; margin: 0 var(--gutter) 34px; }
}
@media (max-width: 420px) {
  .daybar { gap: 2px; }
  .daybar button { font-size: .64rem; padding: 8px 0; }
  .daybar button b { font-size: .95rem; }
}

/* ---------- En-tête des pages intérieures ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--on-dark);
  background: radial-gradient(120% 120% at 85% 0%, #1f4a39 0%, #0c2218 55%) var(--deep);
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(64px, 9vw, 120px);
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--motif); background-size: 96px; opacity: .08; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); }
.page-hero__arch {
  position: absolute; z-index: -1; right: max(-80px, calc(50% - 760px)); bottom: -2px; width: min(520px, 46vw); aspect-ratio: 3 / 4;
  border: 1px solid rgba(230, 199, 127, .28); border-bottom: 0; border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(201, 161, 75, .1), rgba(201, 161, 75, 0) 70%);
}
.page-hero__arch::before { content: ""; position: absolute; inset: 26px 26px 0; border: 1px solid rgba(230, 199, 127, .18); border-bottom: 0; border-radius: inherit; }
.page-hero__arch .ar { position: absolute; inset: 22% 0 auto; text-align: center; font-size: clamp(3rem, 7vw, 6rem); color: rgba(230, 199, 127, .22); line-height: 1; }
/* Arche avec photo : la mosquée réelle derrière le titre de la page */
.page-hero__arch img {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
  filter: saturate(.92) contrast(1.03); animation: arche-photo 2.4s var(--ease) both;
}
@keyframes arche-photo { from { opacity: 0; transform: scale(1.08); } }
/* L'arche suit la hauteur de l'en-tête : son sommet arrondi reste visible sous le menu. */
.page-hero__arch:has(img) { height: min(calc(100% - var(--header-h) - 34px), 700px); width: auto; max-width: 46vw; border-color: rgba(230, 199, 127, .5); background: #10291e; overflow: hidden; box-shadow: 0 0 0 10px rgba(230, 199, 127, .05), 0 0 0 11px rgba(230, 199, 127, .14); }
.page-hero__arch:has(img)::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 34, 24, .05) 30%, rgba(12, 34, 24, .88) 100%), linear-gradient(90deg, rgba(12, 34, 24, .45), rgba(12, 34, 24, 0) 45%);
}
.page-hero__arch:has(img)::before { z-index: 2; inset: 16px 16px 0; border-color: rgba(243, 238, 226, .38); }
.page-hero__arch:has(img) .ar { z-index: 3; inset: auto 0 9%; color: rgba(243, 223, 170, .92); font-size: clamp(2.6rem, 5vw, 4.4rem); text-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
@media (prefers-reduced-motion: reduce) { .page-hero__arch img { animation: none; } }
.page-hero .wrap { display: grid; gap: 22px; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); max-width: 14ch; }
.page-hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-2); }
.page-hero .lead { max-width: 600px; color: var(--on-dark-2); }
.crumbs { display: flex; gap: 8px; font-size: .82rem; color: var(--on-dark-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }
/* Tablette : le texte passe devant la photo, on l'atténue pour qu'il reste lisible. */
@media (max-width: 1100px) { .page-hero__arch:has(img) { opacity: .55; } }
@media (max-width: 700px) {
  .page-hero__arch { opacity: .5; width: 70vw; right: -24vw; }
  .page-hero__arch:has(img) { opacity: .38; width: 64vw; height: auto; max-width: none; right: -18vw; }
  .page-hero__arch:has(img) .ar { display: none; }
}

/* ---------- Horaires de prière ---------- */
.prieres-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.dates { display: grid; gap: 6px; text-align: right; }
.dates__greg { font: 600 1.5rem/1.1 var(--font-display); }
.dates__greg::first-letter { text-transform: uppercase; }
.dates__hijri { color: var(--gold-2); font-weight: 600; font-size: .95rem; }
.dates__hijri .ar { font-size: 1.15rem; margin-left: 8px; display: inline-block; white-space: nowrap; }
@media (max-width: 860px) { .dates { text-align: left; } }

.dates__quand { justify-self: end; font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--gold); color: var(--night); }
@media (max-width: 860px) { .dates__quand { justify-self: start; } }

/* La journée sur 24 heures */
.ciel { position: relative; padding-top: 40px; margin-bottom: clamp(26px, 3.6vw, 40px); }
.ciel__bande { position: relative; height: 40px; }
.ciel__bande::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: rgba(243, 238, 226, .12); }
.ciel__jour { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: rgba(243, 238, 226, .3); }
.ciel__passe { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--gold-2); box-shadow: 0 0 10px rgba(230, 199, 127, .45); }
.ciel__graduations i { position: absolute; top: 50%; width: 1px; height: 9px; margin: -4.5px 0 0 -.5px; background: rgba(243, 238, 226, .2); }
.ciel__point { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--deep); border: 1.5px solid var(--gold-2); }
.ciel__point.is-past { background: var(--gold-2); }
.ciel__point.is-next { width: 16px; height: 16px; margin: -8px 0 0 -8px; box-shadow: 0 0 0 5px rgba(230, 199, 127, .14), 0 0 18px rgba(230, 199, 127, .5); }
.ciel__now { position: absolute; top: 24px; height: 36px; width: 1px; margin-left: -.5px; background: linear-gradient(180deg, rgba(230, 199, 127, .1), var(--gold-2)); pointer-events: none; z-index: 1; }
.ciel__astre { position: absolute; left: 50%; top: 36px; width: 22px; height: 22px; border-radius: 50%; transform: translate(-50%, -50%); }
.ciel__astre.is-soleil { background: #fff3d2; box-shadow: 0 0 0 4px rgba(230, 199, 127, .25), 0 0 22px 6px rgba(255, 226, 160, .45); }
.ciel__astre.is-lune { background: var(--deep); box-shadow: 0 0 0 1px rgba(238, 241, 243, .3), 0 0 20px 4px rgba(190, 210, 235, .25); }
.ciel__astre.is-lune::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; box-shadow: inset -5px -2px 0 0 #eef1f3; transform: rotate(-18deg); }
.ciel__pastille {
  position: absolute; top: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  background: rgba(10, 29, 21, .92); border: 1px solid rgba(230, 199, 127, .45); color: var(--gold-2); font: 800 .64rem/1 var(--font-body); letter-spacing: .16em;
}
.ciel__pastille b { color: var(--on-dark); font-size: .74rem; letter-spacing: .04em; }
.ciel__pastille i, .vedette__label i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); animation: ciel-pouls 2.2s infinite; }
@keyframes ciel-pouls { 0% { box-shadow: 0 0 0 0 rgba(230, 199, 127, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(230, 199, 127, 0); } }
.ciel__noms { position: relative; height: 46px; margin-top: 12px; }
.ciel__noms.a-deux-rangs { height: 88px; }
.ciel__nom { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 3px; white-space: nowrap; }
.ciel__nom::before { content: ""; position: absolute; top: -21px; left: 50%; width: 1px; height: 17px; background: rgba(243, 238, 226, .2); }
.ciel__nom.is-bas { top: 42px; }
.ciel__nom.is-bas::before { top: -63px; height: 59px; }
.ciel__nom.is-debut { transform: none; justify-items: start; }
.ciel__nom.is-debut::before { left: 0; }
.ciel__nom.is-fin { transform: translateX(-100%); justify-items: end; }
.ciel__nom.is-fin::before { left: auto; right: 0; }
.ciel__nom b { font: 800 .64rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }
.ciel__nom .num { font: 600 1.08rem/1 var(--font-display); color: var(--on-dark); font-variant-numeric: lining-nums tabular-nums; }
.ciel__nom.is-next b, .ciel__nom.is-next .num { color: var(--gold-2); }
.ciel__nom.is-next::before { background: var(--gold-2); }
@media (max-width: 640px) {
  .ciel { padding-top: 34px; }
  .ciel__noms { display: none; }
  .ciel__now { top: 22px; height: 32px; }
  .ciel__astre { top: 32px; transform: translate(-50%, -50%) scale(.85); }
}

/* La prochaine prière, en vedette, et la liste du jour */
.prieres-corps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 2.2vw, 26px); align-items: stretch; }
@media (max-width: 980px) { .prieres-corps { grid-template-columns: minmax(0, 1fr); } }
.vedette {
  position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(26px, 3vw, 38px); border-radius: var(--radius);
  border: 1px solid rgba(230, 199, 127, .42);
  background: radial-gradient(120% 90% at 100% 0%, rgba(230, 199, 127, .2), transparent 60%), linear-gradient(170deg, rgba(201, 161, 75, .14), rgba(255, 255, 255, .02) 70%), var(--deep);
  box-shadow: 0 40px 80px -42px rgba(201, 161, 75, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.vedette::before { content: ""; position: absolute; inset: 0; background: var(--motif) center / 96px; opacity: .05; pointer-events: none; }
.vedette > * { position: relative; }
.vedette p { margin: 0; }
.vedette__haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.vedette__label { display: flex; align-items: center; gap: 10px; padding-top: 6px; font: 800 .68rem/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.vedette__ic { flex: none; width: 58px; height: 58px; color: var(--gold-2); filter: drop-shadow(0 0 18px rgba(230, 199, 127, .35)); }
.vedette__ic svg { width: 100%; height: 100%; display: block; }
.vedette__corps { margin-top: clamp(18px, 2.6vw, 30px); }
.vedette__titre { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.vedette__ar { font: 400 clamp(1.8rem, 2.8vw, 2.3rem)/1.2 var(--font-ar); color: var(--gold-2); }
.vedette__nom { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font: 600 clamp(1.9rem, 2.8vw, 2.4rem)/1.05 var(--font-display); }
.vedette__nom span { font: 600 .84rem var(--font-body); color: var(--on-dark-2); }
.vedette__heure {
  margin-top: 6px !important; font: 500 clamp(4.4rem, 7.6vw, 6.4rem)/.95 var(--font-display); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums;
  background: linear-gradient(180deg, #fff4d6, var(--gold-2) 62%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vedette__ligne { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.vedette__compte { font-size: 1rem; color: var(--on-dark-2); }
.vedette__compte b { color: var(--on-dark); font-weight: 800; font-variant-numeric: tabular-nums; }
.vedette__info { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--on-dark-line); background: rgba(255, 255, 255, .05); font-size: .84rem; font-weight: 600; }
.vedette__info b { color: var(--gold-2); font-weight: 800; }
.vedette__barre { margin-top: 16px; height: 4px; border-radius: 999px; background: rgba(243, 238, 226, .1); overflow: hidden; }
.vedette__barre i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 0 12px rgba(230, 199, 127, .6); transition: width 1s linear; }
.vedette__bornes { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: .74rem; color: var(--on-dark-2); }
.vedette__bornes b { color: var(--on-dark); font-weight: 700; }

.plist-wrap { border-radius: var(--radius); border: 1px solid rgba(243, 238, 226, .1); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); padding: 8px clamp(8px, 1.4vw, 16px) 12px; }
.plist__tete, .prow { display: grid; grid-template-columns: 42px minmax(0, 1fr) 6.6rem 5.4rem; align-items: center; gap: 14px; }
.plist__tete { padding: 12px 14px 8px; font: 800 .62rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-2); }
.plist__tete span:nth-child(n+3) { text-align: right; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.prow { position: relative; padding: 12px 14px; border-radius: 14px; transition: background .3s, opacity .3s, box-shadow .3s; }
.prow + .prow::before { content: ""; position: absolute; top: -2.5px; left: 14px; right: 14px; height: 1px; background: rgba(243, 238, 226, .07); }
.prow.is-next::before, .prow.is-now::before, .prow.is-next + .prow::before, .prow.is-now + .prow::before { display: none; }
.prow__ic { width: 40px; height: 40px; color: var(--gold-2); }
.prow__ic svg { width: 100%; height: 100%; display: block; }
.prow__nom { display: grid; gap: 3px; min-width: 0; }
.prow__titre { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.prow__titre b { font-weight: 700; font-size: 1.02rem; }
.prow__titre .ar { font-size: 1.15rem; color: var(--on-dark-2); }
.prow__sous { font-size: .76rem; color: var(--on-dark-2); }
.prow__etat { justify-self: start; margin-top: 3px; font: 800 .6rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--gold); color: var(--night); }
.prow__etat:empty { display: none; }
.prow__adhan { text-align: right; font: 600 2.1rem/1 var(--font-display); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.prow__iqama { display: grid; justify-items: end; gap: 3px; }
.prow__iqama b { font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.prow__iqama small { font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
.plist__vide { color: rgba(243, 238, 226, .3); }
.prow.is-past { opacity: .48; }
.prow.is-next, .prow.is-now { background: linear-gradient(90deg, rgba(201, 161, 75, .22), rgba(201, 161, 75, .04)); box-shadow: inset 0 0 0 1px rgba(230, 199, 127, .42); }
.prow.is-next::after, .prow.is-now::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-2); }
.prow.is-next .prow__adhan, .prow.is-now .prow__iqama b { color: var(--gold-2); }
.prow--shuruq .prow__adhan { font-size: 1.7rem; color: var(--on-dark-2); }
@media (max-width: 560px) {
  .plist-wrap { padding: 4px 6px 8px; }
  .plist__tete, .prow { grid-template-columns: 30px minmax(0, 1fr) auto 3.3rem; gap: 10px; }
  .plist__tete { padding: 12px 8px 6px; }
  .prow { padding: 11px 8px; }
  .prow + .prow::before { left: 8px; right: 8px; }
  .prow__ic { width: 30px; height: 30px; }
  .prow__adhan { font-size: 1.65rem; }
  .prow--shuruq .prow__adhan { font-size: 1.4rem; }
  .prow__sous { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ciel__pastille i, .vedette__label i { animation: none; } }

.prieres-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--on-dark-line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; border: 1px solid var(--on-dark-line); background: rgba(255, 255, 255, .04); }
.chip b { color: var(--gold-2); font-weight: 800; }
.chip .icon { color: var(--gold-2); }
.chip--light { border-color: var(--line); background: var(--paper); }
.chip--light b, .chip--light .icon { color: var(--gold-deep); }

/* Tableau du mois */
.mois { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mois__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.mois__nav { display: flex; align-items: center; gap: 8px; }
.mois__nav h3 { font-size: 1.7rem; min-width: 9.5ch; text-align: center; text-transform: capitalize; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: inline-grid; place-items: center; transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--sand); border-color: var(--gold); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mois table { width: 100%; border-collapse: collapse; min-width: 640px; font-variant-numeric: lining-nums tabular-nums; }
.mois th, .mois td { padding: 11px 14px; text-align: center; border-bottom: 1px solid #efe7d6; font-size: .95rem; }
.mois thead th { position: sticky; top: 0; background: var(--sand); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 800; }
.mois thead th .ar { display: block; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--gold-deep); font-weight: 400; margin-top: 3px; }
.mois td:first-child, .mois th:first-child { text-align: left; }
.mois td:first-child { font-weight: 700; white-space: nowrap; }
.mois td:first-child small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.mois tbody tr:hover { background: #fbf7ee; }
.mois tr.is-friday td { background: rgba(138, 169, 131, .1); }
.mois tr.is-today td { background: linear-gradient(90deg, rgba(201, 161, 75, .2), rgba(201, 161, 75, .08)); font-weight: 700; }
.mois tr.is-today td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.mois td.shuruq { color: var(--muted); }
.mois .iq { display: block; font-size: .74rem; color: var(--muted); font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 22px; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* ---------- Dons ---------- */
.don-band { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
@media (max-width: 940px) { .don-band { grid-template-columns: 1fr; } }
.quote {
  position: relative; padding: 28px 30px 26px 30px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line);
}
.quote::before { content: "“"; position: absolute; top: -18px; left: 22px; font: 600 5rem/1 var(--font-display); color: var(--gold); }
.quote p { font: 500 1.35rem/1.4 var(--font-display); font-style: italic; color: var(--ink); }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: .84rem; color: var(--muted); font-weight: 600; }
.section--dark .quote { background: rgba(255, 255, 255, .04); border-color: var(--on-dark-line); }
.section--dark .quote p { color: var(--on-dark); }
.section--dark .quote cite { color: var(--on-dark-2); }

.give {
  position: relative; padding: clamp(24px, 3.4vw, 38px); border-radius: calc(var(--radius) + 6px); background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.give::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: inherit; background: linear-gradient(90deg, var(--emerald), var(--gold), var(--emerald)); clip-path: inset(0 round calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0 0); }
.give h3 { font-size: 2rem; }
.give__lede { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--sand); margin-top: 22px; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 10px; border-radius: 999px; font-weight: 700; font-size: .92rem; cursor: pointer; transition: color .25s, background .25s, box-shadow .25s; color: var(--ink-2); }
.seg input:checked + label { background: var(--paper); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(7, 21, 14, .35); }
.seg input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(2, 1fr); } }
.amounts input { position: absolute; opacity: 0; pointer-events: none; }
.amounts label {
  display: grid; place-items: center; height: 62px; border-radius: var(--radius-s); border: 1px solid var(--line); background: #fff; cursor: pointer;
  font: 600 1.55rem/1 var(--font-display); font-variant-numeric: lining-nums; transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.amounts label:hover { border-color: var(--gold); }
.amounts input:checked + label { border-color: transparent; background: linear-gradient(160deg, #237452 0%, var(--emerald) 48%, #154630 100%); color: #fff; box-shadow: 0 14px 26px -16px rgba(29, 90, 63, .95), inset 0 0 0 1px rgba(230, 199, 127, .55); }
.amounts input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.amount-other { position: relative; margin-top: 10px; }
.amount-other input { width: 100%; height: 56px; padding: 0 56px 0 20px; border-radius: var(--radius-s); border: 1px solid var(--line); background: #fff; font: 600 1.3rem var(--font-display); font-variant-numeric: lining-nums; }
.amount-other input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(29, 90, 63, .12); }
.amount-other span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.give__impact { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--sage-soft); color: var(--forest); font-size: .9rem; line-height: 1.5; }
.give__impact .icon { margin-top: 2px; color: var(--emerald); }
.give__methods { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; font-size: .78rem; color: var(--muted); }
.give__methods span { padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .8rem; color: var(--muted); }

.iban {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; padding: 16px 18px; border-radius: var(--radius-s);
  border: 1px dashed rgba(154, 119, 48, .5); background: rgba(201, 161, 75, .07);
}
.iban__lbl { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--gold-deep); }
.iban__num { font: 600 1.35rem/1.1 var(--font-display); font-variant-numeric: lining-nums; letter-spacing: .04em; }
.copy { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 700; font-size: .82rem; }
.copy.is-done { background: var(--emerald); color: #fff; border-color: var(--emerald); }

/* Page don */
.don-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 980px) { .don-layout { grid-template-columns: 1fr; } }
.don-layout .give { box-shadow: var(--shadow); }
.steps { display: grid; gap: 30px; }
.step { display: grid; gap: 14px; }
.step__head { display: flex; align-items: center; gap: 12px; }
.step__num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--gold-2); font: 700 .85rem var(--font-body); }
.step__head h3 { font-size: 1.5rem; }
.side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.virement { padding: 26px; border-radius: var(--radius); background: var(--deep); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.virement::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--motif); background-size: 80px; opacity: .07; }
.virement h3 { font-size: 1.75rem; }
.virement .iban { border-color: rgba(230, 199, 127, .35); background: rgba(255, 255, 255, .04); margin-top: 16px; }
.virement .iban__lbl { color: var(--gold-2); }
.virement .copy { background: transparent; color: var(--on-dark); border-color: var(--on-dark-line); }
.qr { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; margin-top: 18px; }
.qr__img { width: 132px; height: 132px; padding: 9px; border-radius: 14px; background: #fff; }
.qr__img img, .qr__img svg { width: 100%; height: 100%; image-rendering: pixelated; }
.qr p { font-size: .88rem; color: var(--on-dark-2); }
.qr strong { color: var(--on-dark); }
.kv { display: grid; gap: 8px; margin-top: 16px; font-size: .88rem; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--on-dark-line); }
.kv dt { color: var(--on-dark-2); } .kv dd { margin: 0; font-weight: 700; text-align: right; }
.trust { display: grid; gap: 14px; padding: 22px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.trust li { display: flex; gap: 12px; font-size: .92rem; }
.trust .icon { color: var(--emerald); margin-top: 3px; }
.trust ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius-s); background: var(--sand); }
.summary strong { font: 600 1.7rem/1 var(--font-display); font-variant-numeric: lining-nums; }
.summary small { display: block; color: var(--muted); font-size: .8rem; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; align-content: start; }
.field label, .field .lbl { font-size: .84rem; font-weight: 700; color: var(--ink-2); }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--radius-s); border: 1px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314201a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(29, 90, 63, .12); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b4472f; }
.field input[type="file"] { padding: 12px; min-height: 0; }
.hint { font-size: .8rem; color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--emerald); flex: none; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
/* Cases et boutons radio masqués (remplacés par leur étiquette) : sans taille, ils
 * hériteraient du « width: 100% » des champs et élargiraient la page sur téléphone. */
.pick input, .tiles input, .methods input, .seg input, .amounts input, .switch input { width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; }
.pick label { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pick label:hover { border-color: var(--gold); }
.pick input:checked + label { background: var(--forest); color: #fff; border-color: var(--forest); }
.pick input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-s); font-size: .94rem; line-height: 1.5; }
.form-status.is-ok { display: flex; background: var(--sage-soft); color: var(--forest); }
.form-status.is-err { display: flex; background: #f8e5df; color: #7a2c1b; }
.form-status .icon { margin-top: 3px; }
.card-form { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- Grilles de contenu ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) {
  .feature { padding: 12px; gap: 10px; }
  .feature__ic { width: 36px; height: 36px; border-radius: 10px; }
  .feature__ic .icon { width: 18px; height: 18px; }
  .feature strong { font-size: .88rem; line-height: 1.25; }
  .feature span { display: none; }
}
.feature { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: transform .35s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-2px); border-color: var(--gold); }
.feature__ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--sage-soft); color: var(--emerald); }
.feature__ic .icon { width: 22px; height: 22px; }
.feature strong { display: block; font-size: .98rem; hyphens: auto; overflow-wrap: break-word; }
.feature > div { min-width: 0; }
.feature span { font-size: .84rem; color: var(--muted); }

.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(420px, 52vw, 600px); }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-m); background: var(--sand); }
.mosaic figure:first-child { grid-row: span 2; border-radius: 999px 999px var(--radius-m) var(--radius-m); }
.mosaic figure:first-child img { object-position: 50% 78%; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(7, 21, 14, .6); color: #fff; font-size: .76rem; font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 520px) { .mosaic { height: 460px; grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; } .mosaic figure:first-child { grid-row: auto; grid-column: span 2; } }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  position: relative; padding: 64px 26px 30px; text-align: center; border-radius: 999px 999px var(--radius-m) var(--radius-m);
  background: linear-gradient(180deg, var(--paper), var(--cream)); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar::before { content: ""; position: absolute; inset: 10px 10px auto; height: 70%; border: 1px solid rgba(201, 161, 75, .3); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.pillar .ar { display: block; font-size: 2.3rem; line-height: 1; color: var(--gold-deep); margin-bottom: 14px; }
.pillar h3 { font-size: 1.8rem; }
.pillar p { margin-top: 10px; color: var(--muted); font-size: .94rem; }
.section--dark .pillar { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); border-color: var(--on-dark-line); }
.section--dark .pillar p { color: var(--on-dark-2); }
.section--dark .pillar .ar { color: var(--gold-2); }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 940px) { .cards3 { grid-template-columns: 1fr; } }
.icard {
  position: relative; display: grid; align-content: start; gap: 14px; padding: 30px 28px 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.icard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.icard__ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--forest); color: var(--gold-2); }
.icard__ic .icon { width: 26px; height: 26px; }
.icard h3 { font-size: 1.85rem; margin-top: 8px; }
.icard p { color: var(--muted); }
.icard .link-arrow { margin-top: 8px; }
.icard--accent { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }
.icard--accent p { color: var(--on-dark-2); }
.icard--accent .icard__ic { background: var(--gold); color: var(--night); }
.icard--accent .link-arrow { color: var(--gold-2); }

.wa {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; padding: clamp(28px, 5vw, 60px); border-radius: calc(var(--radius) + 8px);
  background: radial-gradient(120% 140% at 100% 0%, #1f6b4a 0%, #123425 55%, #0c2218 100%); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate;
}
.wa::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(230, 199, 127, .2); box-shadow: 0 0 0 40px rgba(230, 199, 127, .04), 0 0 0 80px rgba(230, 199, 127, .03); z-index: -1; }
.wa ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.wa li { display: flex; gap: 10px; align-items: center; color: var(--on-dark-2); }
.wa li .icon { color: var(--gold-2); }
.wa__actions { display: grid; gap: 12px; justify-items: start; }
@media (max-width: 860px) { .wa { grid-template-columns: 1fr; } }

.visit { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; }
@media (max-width: 900px) { .visit { grid-template-columns: minmax(0, 1fr); } }
.info-list { display: grid; gap: 12px; }
.info { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: border-color .3s, transform .35s var(--ease); }
a.info:hover { border-color: var(--gold); transform: translateX(3px); }
.info__ic { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--emerald); }
.info small { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.info strong { font-size: 1.04rem; overflow-wrap: anywhere; }
.info > div { min-width: 0; }
.map {
  position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden; background: #dfe5d8; border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; isolation: isolate;
}
.map::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(255, 255, 255, .9) 49.6% 50.4%, transparent 50.4%) 0 0 / 120px 120px,
    linear-gradient(0deg, transparent 49.6%, rgba(255, 255, 255, .9) 49.6% 50.4%, transparent 50.4%) 0 0 / 120px 120px,
    linear-gradient(32deg, transparent 48%, #fff 48% 52%, transparent 52%) 0 0 / 100% 100%,
    radial-gradient(circle at 30% 70%, #cfdcc6 0 80px, transparent 81px),
    radial-gradient(circle at 80% 20%, #cfdcc6 0 60px, transparent 61px), #e8ece2;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__pin { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--forest); display: grid; place-items: center; box-shadow: 0 16px 30px -10px rgba(7, 21, 14, .6); }
.map__pin img { width: 40px; transform: rotate(45deg); }
.map__card { padding: 22px; display: grid; gap: 12px; justify-items: center; }
.map__card p { font-size: .82rem; color: var(--muted); max-width: 36ch; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); transition: border-color .3s; }
.faq details[open] { border-color: var(--gold); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-display); color: var(--gold-deep); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); }

/* Missions */
.mission-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.mission-row + .mission-row { margin-top: clamp(64px, 9vw, 120px); }
.mission-row:nth-child(even) .mission-row__media { order: 2; }
@media (max-width: 900px) { .mission-row { grid-template-columns: 1fr; } .mission-row:nth-child(even) .mission-row__media { order: 0; } }
.mission-row__media { position: relative; aspect-ratio: 4 / 4.4; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--sand); }
.mission-row__media img { width: 100%; height: 100%; object-fit: cover; }
.mission-row__media::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, .55); border-radius: inherit; pointer-events: none; }
.mission-row__num { font: 500 italic 1.2rem var(--font-display); color: var(--gold-deep); }
.mission-row h3 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 10px 0 18px; }
.mission-row p + p { margin-top: 1em; }
.mission-row .muted { color: var(--ink-2); }
.transparency { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .transparency { grid-template-columns: 1fr; } }
.stat { padding: 28px; border-radius: var(--radius); border: 1px solid var(--on-dark-line); background: rgba(255, 255, 255, .03); }
.stat b { display: block; font: 600 3.4rem/1 var(--font-display); color: var(--gold-2); }
.stat p { margin-top: 10px; color: var(--on-dark-2); }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list-check li { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.list-check .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--sage-soft); color: var(--emerald); stroke-width: 2.2; }
.list-check strong { display: block; }
.list-check span { color: var(--muted); font-size: .95rem; }

.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-m); background: rgba(201, 161, 75, .1); border: 1px solid rgba(201, 161, 75, .35); color: var(--ink-2); font-size: .94rem; }
.notice .icon { color: var(--gold-deep); margin-top: 3px; }
.section--dark .notice { background: rgba(201, 161, 75, .08); color: var(--on-dark-2); }
.section--dark .notice .icon { color: var(--gold-2); }

/* Annonces Mawaqit */
.annonce { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px 24px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); }
.annonce__ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--night); }
.annonce h3 { font-size: 1.4rem; }
.annonce p { margin-top: 6px; color: var(--ink-2); white-space: pre-line; font-size: .95rem; }
.annonce .ar { display: block; margin-top: 10px; font-size: 1.15rem; line-height: 1.8; color: var(--ink-2); text-align: right; }

/* Bandeau d'appel final */
.cta-final { position: relative; text-align: center; padding: clamp(56px, 8vw, 100px) var(--gutter); border-radius: calc(var(--radius) + 10px); background: var(--forest); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.cta-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--motif); background-size: 110px; opacity: .1; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); }
.cta-final .ar { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--gold-2); line-height: 1.2; }
.cta-final h2 { margin: 14px auto 18px; max-width: 22ch; }
.cta-final p { max-width: 560px; margin: 0 auto 30px; color: var(--on-dark-2); }
.cta-final .btn-row { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; background: var(--night); color: var(--on-dark-2); padding: clamp(64px, 8vw, 100px) 0 30px; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--motif); background-size: 96px; opacity: .045; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand .brand { color: var(--on-dark); }
.footer-brand p { max-width: 34ch; font-size: .95rem; }
.site-footer h4 { font: 800 .74rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--on-dark); }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--on-dark-line); transition: background .25s, color .25s, border-color .25s; }
.socials a:hover { background: var(--gold); color: var(--night); border-color: var(--gold); }
.socials .icon { width: 18px; height: 18px; }
.footer-iban { margin-top: 6px; font-size: .9rem; }
.footer-iban b { display: block; color: var(--on-dark); font: 600 1.15rem var(--font-display); font-variant-numeric: lining-nums; letter-spacing: .04em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--on-dark-line); font-size: .82rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom .credit { color: var(--on-dark); font-weight: 700; border-bottom: 1px solid rgba(230, 199, 127, .45); transition: color .2s, border-color .2s; }
.footer-bottom .credit:hover { color: var(--gold-2); border-color: var(--gold-2); }
.footer-verse { margin-top: 56px; text-align: center; }
.footer-verse .ar { font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--gold-2); line-height: 1.6; display: block; }
.footer-verse p { margin-top: 8px; font: italic 500 1.12rem var(--font-display); }
.footer-verse small { display: block; margin-top: 4px; font-size: .78rem; opacity: .7; }

/* ---------- Visite 3D ---------- */
.wrap--wide { max-width: 1480px; }
.page-hero--visite { padding-bottom: clamp(48px, 6vw, 80px); }
/* Le cadre commence sous le haut de page, sans le chevaucher : la photo en
 * arche et son mot arabe restent entiers. */
.tour { position: relative; padding: clamp(20px, 2.4vw, 32px) 0 clamp(36px, 5vw, 60px); background: linear-gradient(180deg, var(--deep) 0 40%, var(--paper) 40% 100%); }
.tour__frame {
  position: relative; height: min(82vh, 820px); min-height: 560px;
  border-radius: var(--radius); overflow: hidden; background: var(--paper);
  box-shadow: 0 60px 100px -60px rgba(7, 21, 14, .7), 0 0 0 1px rgba(201, 161, 75, .28);
}
.tour__frame { scroll-margin-top: calc(var(--header-h) + 14px); }
.tour__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.tour__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; margin-top: 18px; font-size: .92rem; color: var(--muted); }
.tour__bar p { display: flex; gap: 10px; align-items: flex-start; max-width: 780px; }
.tour__bar .icon { flex: none; }
.tour__bar p .icon { margin-top: 3px; color: var(--gold-deep); }

.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.etape {
  display: grid; align-content: start; gap: 10px; height: 100%; padding: 12px 12px 24px; text-decoration: none; color: inherit;
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.etape:hover { transform: translateY(-4px); border-color: rgba(201, 161, 75, .6); box-shadow: var(--shadow-s); }
.etape figure { margin: 0 0 8px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--radius) - 10px); background: var(--sand); }
.etape img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.etape:hover img { transform: scale(1.04); }
.etape__num, .etape h3, .etape p { padding-inline: 10px; }
.etape__num { font: 600 1rem/1 var(--font-display); letter-spacing: .1em; color: var(--gold-deep); }
.etape h3 { font: 600 1.6rem/1.1 var(--font-display); }
.etape p { color: var(--muted); font-size: .96rem; }

.visit-notes { display: grid; gap: 12px; }
.link-plain { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Accueil : invitation à la visite */
.teaser { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.teaser__media {
  position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--radius); background: var(--deep);
  box-shadow: var(--shadow); text-decoration: none; color: var(--on-dark); isolation: isolate;
}
.teaser__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.teaser__media:hover img { transform: scale(1.035); }
.teaser__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 21, 14, 0) 45%, rgba(7, 21, 14, .78)); }
.teaser__play {
  position: absolute; left: 24px; bottom: 22px; z-index: 1; display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; letter-spacing: .02em;
}
.teaser__play span:first-child {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, #e9cb84, #c9a14b 55%, #b48b38); color: var(--night); box-shadow: 0 14px 30px -12px rgba(201, 161, 75, .8);
  transition: transform .4s var(--ease);
}
.teaser__media:hover .teaser__play span:first-child { transform: scale(1.08); }
.teaser__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: etape; }
.teaser__list li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); counter-increment: etape; }
.teaser__list li::before { content: "0" counter(etape); font: 600 1rem/1 var(--font-display); color: var(--gold-deep); min-width: 24px; }
.teaser__list a { text-decoration: none; font-weight: 600; }
.teaser__list a:hover { color: var(--emerald); }

@media (max-width: 900px) {
  .etapes { grid-template-columns: repeat(2, 1fr); }
  .tour__frame { height: 86svh; min-height: 520px; }
  .teaser { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .etapes { grid-template-columns: 1fr; }
  .tour__frame { border-radius: var(--radius-m); }
}

/* ---------- Formulaire de don (page Don) ----------
 * Une carte en deux volets : à gauche le récapitulatif, sombre, qui suit les
 * choix en direct ; à droite trois étapes (montant, coordonnées, paiement).
 * Sans JavaScript, les trois étapes s'affichent l'une sous l'autre. */
.page-hero--don { --chevauchement: clamp(90px, 11vw, 150px); padding-bottom: calc(clamp(64px, 9vw, 120px) + var(--chevauchement)); }
/* Le formulaire remonte sur l'en-tête : l'arche s'arrête au-dessus de lui,
 * refermée par un bas arrondi, au lieu de passer dessous (le formulaire
 * coupait la photo et le mot arabe). */
.page-hero--don .page-hero__arch:has(img) { bottom: calc(var(--chevauchement) + 28px); border-bottom: 1px solid rgba(230, 199, 127, .5); border-radius: 999px 999px 28px 28px; }
.page-hero--don .page-hero__arch:has(img)::before { inset: 16px; border-bottom: 1px solid rgba(243, 238, 226, .38); border-radius: 999px 999px 16px 16px; }
@media (min-width: 701px) { .page-hero--don .page-hero__arch:has(img) { height: min(calc(100% - var(--header-h) - 62px - var(--chevauchement)), 620px); } }
.hero-points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .88rem; color: var(--on-dark-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--gold-2); }
.don-section { padding-top: 0; }
.donate {
  position: relative; z-index: 2; margin-top: calc(-1 * clamp(90px, 11vw, 150px));
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  border-radius: calc(var(--radius) + 12px); background: var(--paper); overflow: hidden;
  box-shadow: 0 80px 120px -70px rgba(7, 21, 14, .6), 0 30px 60px -40px rgba(7, 21, 14, .25), 0 0 0 1px rgba(201, 161, 75, .24);
}
.donate__aside {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 24px;
  padding: clamp(28px, 3.6vw, 48px); color: var(--on-dark);
  background: radial-gradient(130% 90% at 0% 0%, #215c42 0%, #123425 46%, #0a1d14 100%);
}
.donate__aside::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--motif); background-size: 88px; opacity: .07; mask-image: linear-gradient(180deg, #000, transparent 80%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); }
.donate__aside::after {
  content: ""; position: absolute; z-index: -1; right: -70px; bottom: -50px; width: 280px; height: 360px;
  border: 1px solid rgba(230, 199, 127, .2); border-bottom: 0; border-radius: 999px 999px 0 0;
  box-shadow: inset 0 0 0 22px rgba(230, 199, 127, .03), inset 0 0 0 23px rgba(230, 199, 127, .1);
}
.donate__total {
  display: flex; align-items: flex-start; gap: 4px; margin-top: 16px; white-space: nowrap;
  font: 600 clamp(4.2rem, 7.4vw, 6.6rem)/.88 var(--font-display); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.025em;
  background: linear-gradient(180deg, #fff7df 0%, #ecd08e 55%, #c9a14b 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.donate__eur { font-size: .46em; margin-top: .12em; letter-spacing: 0; }
.donate__freq { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }
.donate__freq::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 161, 75, .2); }
.donate__impact { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius-m); background: rgba(255, 255, 255, .05); border: 1px solid var(--on-dark-line); font-size: .9rem; line-height: 1.55; color: var(--on-dark-2); }
.donate__impact .icon { margin-top: 3px; color: var(--gold-2); }
.donate__recap { margin: 0; display: grid; }
.donate__recap div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--on-dark-line); font-size: .9rem; }
.donate__recap div:first-child { border-top: 1px solid var(--on-dark-line); }
.donate__recap dt { color: var(--on-dark-2); }
.donate__recap dd { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-align: right; min-width: 0; }
.donate__recap dd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 18ch; }
.donate__recap img { width: 30px; height: 22px; border-radius: 4px; }
.donate__hadith { margin: auto 0 0; padding-top: 8px; }
.donate__hadith .ar { display: block; font-size: 1.35rem; line-height: 1.7; color: var(--gold-2); text-align: right; }
.donate__hadith blockquote { margin: 6px 0 0; font: italic 500 1.3rem/1.38 var(--font-display); color: var(--on-dark); }
.donate__hadith figcaption { margin-top: 8px; font-size: .78rem; letter-spacing: .03em; color: var(--on-dark-2); }
.donate__trust { list-style: none; margin: 0; padding: 18px 0 0; display: grid; gap: 9px; border-top: 1px solid var(--on-dark-line); font-size: .84rem; color: var(--on-dark-2); }
.donate__trust li { display: flex; align-items: center; gap: 10px; }
.donate__trust .icon { color: var(--gold-2); }

.donate__main { position: relative; display: flex; flex-direction: column; gap: 26px; min-width: 0; padding: clamp(24px, 3.6vw, 48px); }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stepper button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 0 0 14px; border: 0; border-bottom: 2px solid var(--line); background: none;
  text-align: left; font-size: .88rem; font-weight: 700; color: var(--muted); transition: color .3s, border-color .4s var(--ease);
}
.stepper button > span {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: .78rem; font-weight: 800; transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.stepper button:hover { color: var(--ink); }
.stepper button[aria-current="step"] { color: var(--ink); border-color: var(--emerald); }
.stepper button[aria-current="step"] > span { background: var(--emerald); border-color: var(--emerald); color: #fff; box-shadow: 0 0 0 5px rgba(29, 90, 63, .12); }
.stepper button.is-done { color: var(--ink-2); border-color: var(--gold); }
.stepper button.is-done > span { background: var(--gold); border-color: var(--gold); color: var(--night); }
.no-js .stepper { display: none; }

.donate__step { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.js .donate__step:not(.is-active) { display: none; }
.no-js .donate__step + .donate__step { padding-top: 26px; border-top: 1px solid var(--line); }
.donate__step.is-active { animation: etape-avant .55s var(--ease) both; }
.donate[data-sens="arriere"] .donate__step.is-active { animation-name: etape-arriere; }
@keyframes etape-avant { from { opacity: 0; transform: translateX(26px); } }
@keyframes etape-arriere { from { opacity: 0; transform: translateX(-26px); } }
@media (prefers-reduced-motion: reduce) { .donate__step.is-active { animation: none; } }
.donate__title { font-size: clamp(1.9rem, 3vw, 2.6rem); outline: none; }
.donate__title em { font-style: italic; font-weight: 500; color: var(--gold-deep); }
.donate__sub { margin-top: -8px; color: var(--muted); font-size: .95rem; }

/* Fréquence : la pastille glisse d'une option à l'autre */
@supports selector(:has(*)) {
  .seg--glisse { isolation: isolate; }
  .seg--glisse::before {
    content: ""; position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px;
    background: var(--paper); box-shadow: 0 8px 18px -8px rgba(7, 21, 14, .4); transition: transform .5s var(--ease);
  }
  .seg--glisse:has(input:nth-of-type(2):checked)::before { transform: translateX(100%); }
  .seg--glisse input:checked + label { background: transparent; box-shadow: none; }
}
.seg--glisse { margin-top: 0; }
.seg--glisse label { padding-block: 14px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles input { position: absolute; opacity: 0; pointer-events: none; }
.tiles label {
  position: relative; display: flex; align-items: baseline; justify-content: center; gap: 3px; padding: 22px 8px 20px;
  border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font: 600 2.05rem/1 var(--font-display); font-variant-numeric: lining-nums;
  transition: border-color .25s, background .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}
.tiles label small { font: 600 1.3rem var(--font-display); color: var(--muted); transition: color .3s; }
.tiles label:hover { border-color: var(--gold); transform: translateY(-2px); }
.tiles input:checked + label {
  border-color: transparent; color: #fff; background: linear-gradient(160deg, #237452 0%, var(--emerald) 48%, #154630 100%);
  box-shadow: 0 18px 30px -18px rgba(29, 90, 63, .95), inset 0 0 0 1px rgba(230, 199, 127, .55);
}
.tiles input:checked + label small { color: rgba(255, 255, 255, .75); }
.tiles label::after {
  content: ""; position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; border-radius: 50%; transform: scale(0); transition: transform .35s var(--ease);
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%2307150e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tiles input:checked + label::after { transform: scale(1); }
.tiles input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.tile__badge {
  position: absolute; top: -9px; left: 50%; transform: translate(-50%, 4px); padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--gold); color: var(--night); font: 800 .58rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transition: opacity .3s, transform .4s var(--ease); pointer-events: none;
}
.donate[data-frequence="mensuel"] .tile__badge { opacity: 1; transform: translate(-50%, 0); }
.amount-free { position: relative; }
.amount-free input {
  width: 100%; height: 64px; padding: 0 64px 0 22px; border-radius: 16px; border: 1px solid var(--line); background: #fff;
  font: 600 1.5rem var(--font-display); font-variant-numeric: lining-nums; transition: border-color .2s, box-shadow .2s, background .2s;
}
.amount-free input::placeholder { font: 500 1.05rem var(--font-body); color: var(--muted); }
.amount-free input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(29, 90, 63, .12); }
.amount-free input.is-on { border-color: var(--emerald); background: #f6faf5; }
.amount-free > span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 600 1.4rem var(--font-display); color: var(--muted); pointer-events: none; }
.donate__err { display: none; gap: 10px; align-items: center; color: #8a3320; font-size: .9rem; font-weight: 600; }
.donate__err.is-on { display: flex; }

/* Moyens de paiement */
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.methods input { position: absolute; opacity: 0; pointer-events: none; }
.methods label {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; transition: border-color .25s, box-shadow .3s, transform .3s var(--ease);
}
.methods label:hover { border-color: var(--gold); transform: translateY(-2px); }
.methods img { width: 48px; height: 36px; flex: none; border-radius: 7px; box-shadow: 0 3px 8px -2px rgba(7, 21, 14, .18); }
.methods span { display: grid; min-width: 0; line-height: 1.3; }
.methods b { font-size: .96rem; }
.methods small { font-size: .78rem; color: var(--muted); }
.methods label::after { content: ""; flex: none; width: 20px; height: 20px; margin-left: auto; border-radius: 50%; border: 1.5px solid #d6c9ad; background: #fff; transition: border-color .25s, background .25s; }
.methods input:checked + label { border-color: var(--emerald); box-shadow: 0 0 0 1px var(--emerald), 0 16px 28px -20px rgba(29, 90, 63, .9); }
.methods input:checked + label::after { border-color: var(--emerald); background: radial-gradient(circle, var(--emerald) 0 4.5px, #fff 5px); }
.methods input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.donate__alt { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-s); background: rgba(201, 161, 75, .09); border: 1px dashed rgba(154, 119, 48, .45); font-size: .9rem; color: var(--ink-2); }
.donate__alt .icon { margin-top: 2px; color: var(--gold-deep); }
.donate__alt a { font-weight: 700; color: var(--emerald); }

/* Interrupteur (don anonyme) */
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; font-size: .92rem; color: var(--ink-2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #ddd2bb; transition: background .3s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(7, 21, 14, .25); transition: transform .4s var(--ease); }
.switch input:checked + .switch__ui { background: var(--emerald); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--gold); outline-offset: 2px; }

.donate__nav { display: flex; gap: 10px; margin-top: auto; }
.donate__nav .btn { min-height: 60px; }
.donate__nav .btn--gold { flex: 1; font-size: 1rem; }
.donate__nav [hidden] { display: none; }
.donate__secure { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: -8px; font-size: .8rem; color: var(--muted); text-align: center; }
.donate__secure .logos { display: inline-flex; gap: 5px; }
.donate__secure .logos img { width: 32px; height: 24px; }
.donate__secure > span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 980px) {
  .donate { grid-template-columns: 1fr; }
  .donate__aside { gap: 18px; padding-bottom: 26px; }
  .donate__aside::after { width: 200px; height: 240px; right: -40px; bottom: -80px; }
  .donate__aside-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 18px; }
  .donate__total { font-size: clamp(3.6rem, 16vw, 5rem); margin-top: 8px; }
  .donate__recap, .donate__hadith, .donate__trust { display: none; }
}
@media (max-width: 560px) {
  .tiles label { padding: 18px 4px 16px; font-size: 1.75rem; }
  .methods { grid-template-columns: 1fr; }
  .stepper button { flex-direction: column; align-items: flex-start; gap: 6px; font-size: .8rem; }
  .donate__nav {
    position: sticky; bottom: 0; z-index: 5; margin: 0 calc(-1 * clamp(24px, 3.6vw, 48px)) calc(-1 * clamp(24px, 3.6vw, 48px));
    padding: 12px clamp(24px, 3.6vw, 48px) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 248, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .donate__nav .btn { min-height: 54px; }
  .donate__secure { order: 1; margin-top: 0; }
}

/* Autres façons de donner */
.ways { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 18px; }
.ways .virement { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 36px; align-items: center; padding: clamp(26px, 3.6vw, 44px); }
.ways .virement h3 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
.ways .qr { grid-template-columns: 1fr; justify-items: center; gap: 12px; margin: 0; text-align: center; }
.ways .qr__img { width: 196px; height: 196px; padding: 14px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(230, 199, 127, .4), 0 0 0 8px rgba(230, 199, 127, .07); }
.ways .qr p { max-width: 24ch; font-size: .84rem; }
.ways__side { display: grid; gap: 18px; }
.way {
  display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
a.way:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-s); }
.way__ic { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: var(--sage-soft); color: var(--emerald); }
.way__ic .icon { width: 24px; height: 24px; }
.way h3 { font-size: 1.6rem; margin-top: 4px; }
.way p { color: var(--muted); font-size: .95rem; }
@media (max-width: 980px) { .ways { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ways .virement { grid-template-columns: 1fr; } }

/* ---------- Partenaires ---------- */
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 262px)); justify-content: center; gap: 16px; }
.partner {
  position: relative; height: 100%; min-height: 236px; display: grid; justify-items: center; align-content: center; gap: 12px; padding: 26px 20px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center; text-decoration: none; color: inherit;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.partner::before { content: ""; position: absolute; inset: 10px; border-radius: calc(var(--radius) - 8px); border: 1px solid rgba(201, 161, 75, .18); pointer-events: none; }
a.partner:hover, .partner:hover { transform: translateY(-4px); box-shadow: var(--shadow-s); border-color: rgba(201, 161, 75, .6); }
.partner img { width: min(100%, 170px); height: 116px; object-fit: contain; }
.partner strong { font: 600 1.4rem/1.1 var(--font-display); }
.partner small { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.partner--cta { background: linear-gradient(180deg, rgba(201, 161, 75, .08), rgba(201, 161, 75, .02)); border: 1px dashed rgba(154, 119, 48, .55); }
.partner--cta::before { display: none; }
.partner__plus { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(154, 119, 48, .4); color: var(--gold-deep); font: 400 2.4rem/1 var(--font-display); transition: background .3s, color .3s, transform .5s var(--ease); }
.partner--cta:hover .partner__plus { background: var(--gold); color: var(--night); transform: rotate(90deg); }
.partner--cta span:last-child { color: var(--emerald); font-weight: 700; font-size: .9rem; }
/* Bandeau compact (accueil) */
.partners-band {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px 48px; align-items: center; margin-top: 18px;
  padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
}
.partners-band h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-top: 10px; }
.partners-band h3 em { font-style: italic; font-weight: 500; color: var(--gold-deep); }
.partners-band p { margin-top: 10px; color: var(--muted); }
.partners-band .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.partners-band .partner { min-height: 200px; }
.partners-band .partner img { width: min(100%, 150px); height: 96px; }
@media (max-width: 900px) { .partners-band { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .partners, .partners-band .partners { grid-template-columns: 1fr 1fr; gap: 10px; } .partner { min-height: 190px; padding: 20px 12px; } .partner img { width: min(100%, 130px); height: 84px; } .partner strong { font-size: 1.15rem; } }
/* Pied de page */
.footer-partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 48px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.footer-partners ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-partners li a, .footer-partners li span { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--on-dark-line); color: var(--on-dark); letter-spacing: .02em; text-transform: none; font-weight: 600; font-size: .86rem; }
.footer-partners img { width: 32px; height: 32px; border-radius: 50%; background: #fff; object-fit: cover; }
.footer-partners > a { color: var(--gold-2); text-transform: none; letter-spacing: 0; font-weight: 700; font-size: .86rem; }

/* ---------- Accueil : un appel à la réflexion ---------- */
.appel__carte {
  --r: clamp(24px, 3vw, 36px);
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  padding: clamp(36px, 6vw, 88px) clamp(24px, 6vw, 92px); border-radius: var(--r);
  background: radial-gradient(80% 110% at 0% 0%, rgba(201, 161, 75, .2), transparent 58%), radial-gradient(60% 80% at 100% 100%, rgba(29, 90, 63, .55), transparent 70%), var(--forest);
  color: var(--on-dark); box-shadow: 0 60px 110px -70px rgba(7, 21, 14, .8);
}
.appel__carte::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--motif); background-size: 96px; opacity: .07; }
.appel__carte::after { content: ""; position: absolute; inset: 12px; border-radius: calc(var(--r) - 12px); border: 1px solid rgba(230, 199, 127, .2); pointer-events: none; }
.appel__tete { display: grid; gap: 22px; justify-items: start; }
.appel__orn { width: 56px; height: 56px; color: var(--gold-2); }
.appel__text { font-size: clamp(2.1rem, 3.7vw, 3.4rem); line-height: 1.08; font-weight: 500; color: var(--on-dark); max-width: 15ch; text-wrap: balance; }
.appel__text em { font-style: italic; color: var(--gold-2); }
.appel__corps { display: grid; gap: 18px; padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid rgba(230, 199, 127, .24); color: var(--on-dark-2); font-size: 1.06rem; line-height: 1.75; }
.appel__corps p { margin: 0; }
.appel__corps .appel__sign { margin-top: 8px; font: italic 500 clamp(1.35rem, 2.1vw, 1.65rem)/1.3 var(--font-display); color: var(--gold-2); }
@media (max-width: 900px) {
  .appel__carte { grid-template-columns: minmax(0, 1fr); }
  .appel__text { max-width: 18ch; }
  .appel__corps { padding: 26px 0 0; border-left: 0; border-top: 1px solid rgba(230, 199, 127, .24); }
}
@media (max-width: 520px) { .appel__carte::after { inset: 8px; border-radius: calc(var(--r) - 8px); } .appel__corps { font-size: 1rem; } }

/* Unissons nos forces : le texte et ses boutons, puis quatre engagements */
.unir { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(64px, 8vw, 112px); }
.unir__tete { display: grid; gap: 18px; justify-items: start; }
.unir__tete .btn-row { margin-top: 10px; }
.unir__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.unir__liste li { display: grid; gap: 10px; align-content: start; padding: 30px 30px 32px 0; border-bottom: 1px solid var(--line); }
.unir__liste li:nth-child(even) { padding: 30px 0 32px 30px; border-left: 1px solid var(--line); }
.unir__liste li:nth-child(-n+2) { padding-top: 6px; }
.unir__liste li:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 6px; }
.unir__haut { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.unir__ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); color: var(--gold-deep); transition: background .35s, color .35s, border-color .35s; }
.unir__ic .icon { width: 23px; height: 23px; }
.unir__num { font: italic 500 1.5rem/1 var(--font-display); color: rgba(154, 119, 48, .55); }
.unir__liste strong { font: 600 1.5rem/1.15 var(--font-display); }
.unir__txt { color: var(--muted); font-size: .96rem; line-height: 1.6; }
.unir__liste li:hover .unir__ic { background: var(--forest); border-color: var(--forest); color: var(--gold-2); }
@media (max-width: 960px) { .unir { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .unir__liste { grid-template-columns: minmax(0, 1fr); }
  .unir__liste li, .unir__liste li:nth-child(even) { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .unir__liste li:first-child { padding-top: 4px; }
  .unir__liste li:last-child { border-bottom: 0; padding-bottom: 0; }
  .unir__liste li { grid-template-columns: 46px minmax(0, 1fr); gap: 4px 16px; }
  .unir__haut { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin: 0; }
  .unir__liste strong, .unir__txt { grid-column: 2; }
  .unir__liste strong { font-size: 1.3rem; }
  .unir__ic { width: 46px; height: 46px; }
  .unir__num { display: none; }
}

/* ---------- Chiffre clé (bénévolat) ---------- */
.keyfig { display: flex; align-items: center; gap: 22px; margin-top: 30px; padding: 22px 26px; border-radius: var(--radius); background: var(--forest); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.keyfig::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--motif); background-size: 80px; opacity: .08; }
.keyfig b { font: 600 4.6rem/.9 var(--font-display); background: linear-gradient(180deg, #fff3cf, #c9a14b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.keyfig strong { display: block; font: 600 1.4rem/1.15 var(--font-display); }
.keyfig span { color: var(--on-dark-2); font-size: .92rem; }

/* ---------- Politique de cookies ---------- */
.bref { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bref li { display: grid; gap: 8px; align-content: start; padding: 22px 20px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); }
.bref b { font: 600 2.6rem/1 var(--font-display); color: var(--emerald); font-variant-numeric: lining-nums; }
.bref span { font-size: .88rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) { .bref { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose .list-check { margin-top: 1.2em; }
.prose .list-check a, .prose p a { color: var(--emerald); font-weight: 600; }
.cookie-table { width: 100%; min-width: 560px; border-collapse: collapse; border-radius: var(--radius-m); overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: .93rem; }
.cookie-table th, .cookie-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cookie-table thead th { background: var(--sand); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--ink-2); }
.cookie-table tbody th { font-weight: 700; }
.cookie-table tbody tr:last-child > * { border-bottom: 0; }
.cookie-table td:nth-child(2) { color: var(--muted); }
.cookie-table .non { display: inline-flex; margin-right: 6px; padding: 3px 10px; border-radius: 999px; background: var(--sage-soft); color: var(--forest); font-size: .78rem; font-weight: 800; }
.cookie-table code { font-size: .86em; }

/* ---------- Page « merci » ---------- */
.merci-sceau { width: 104px; height: 104px; margin-bottom: 8px; color: var(--gold-2); }
.merci-sceau circle { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 302; stroke-dashoffset: 302; animation: trace 1.4s var(--ease) .2s forwards; }
.merci-sceau path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: trace .8s var(--ease) 1.1s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .merci-sceau circle, .merci-sceau path { animation: none; stroke-dashoffset: 0; } }

/* ---------- Collecte en cours : le nouveau tapis ----------
 * Une cagnotte en direct (assets/js/collecte.js) : la jauge, la carte de la
 * page tapis/, le bandeau de l'accueil, la pastille de la page de don, la
 * liste des donateurs et la comparaison avant / après. Les chiffres en
 * direct (.c-live) n'apparaissent qu'une fois reçus. */
[data-cagnotte]:not(.is-prete) .c-live { visibility: hidden; }
.point-live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(201, 161, 75, .22); animation: pulse 2.4s infinite; }
.eyebrow--live::before { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(201, 161, 75, .22); animation: pulse 2.4s infinite; }
@media (prefers-reduced-motion: reduce) { .point-live, .eyebrow--live::before { animation: none; } }
.btn.is-done { --bg: var(--emerald); --fg: #fff; --bd: var(--emerald); }

/* Jauge : la part réunie, en or (--p, de 0 à 100) ; « vous » : la part du don en cours (--v). */
.jauge { position: relative; display: block; height: 12px; border-radius: 999px; background: rgba(20, 32, 26, .1); overflow: hidden; }
.page-hero .jauge, .section--dark .jauge, .donate__aside .jauge { background: rgba(243, 238, 226, .13); }
.jauge__plein {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 1%); border-radius: inherit; overflow: hidden;
  background: linear-gradient(90deg, #b48b38, #e6c77f); transition: width 1.6s var(--ease);
}
.jauge__plein::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); transform: translateX(-100%); animation: jauge-reflet 3.6s 1.8s infinite; }
@keyframes jauge-reflet { 55%, 100% { transform: translateX(100%); } }
.jauge__vous {
  position: absolute; top: 0; bottom: 0; left: calc(var(--p, 0) * 1%); width: calc(var(--v, 0) * 1%);
  background: repeating-linear-gradient(-45deg, rgba(243, 223, 170, .85) 0 5px, rgba(243, 223, 170, .45) 5px 10px);
  transition: left 1.2s var(--ease), width .45s var(--ease);
}
.is-atteinte .jauge__plein { background: linear-gradient(90deg, #2c7a55, #4c9a6f 45%, #e6c77f); }
@media (prefers-reduced-motion: reduce) { .jauge__plein, .jauge__vous { transition: none; } .jauge__plein::after { display: none; } }

/* Page de la collecte : le texte et la cagnotte à gauche, l'arche du nouveau
 * tapis à droite, centrée sur eux (elle disparaît sous 900 px). */
.page-hero--collecte h1 { max-width: 15ch; }
.collecte-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; column-gap: clamp(36px, 6vw, 96px); }
.collecte-hero__texte { display: grid; gap: 22px; min-width: 0; }
.lead__chiffre { color: var(--gold-2); font-weight: 700; white-space: nowrap; }
.collecte-hero__arche {
  position: relative; justify-self: end; width: 100%; max-width: 440px; aspect-ratio: 3 / 4; margin: 0 6px 0 0;
  border: 1px solid rgba(230, 199, 127, .5); border-radius: 999px 999px 28px 28px; overflow: hidden; isolation: isolate; background: #10291e;
  box-shadow: 0 0 0 10px rgba(230, 199, 127, .05), 0 0 0 11px rgba(230, 199, 127, .14), 0 60px 100px -60px rgba(0, 0, 0, .85);
}
.collecte-hero__arche img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: arche-photo 2.4s var(--ease) both; }
.collecte-hero__arche::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(12, 34, 24, 0) 46%, rgba(12, 34, 24, .86) 100%); }
.collecte-hero__arche::before { content: ""; position: absolute; inset: 14px; z-index: 2; pointer-events: none; border: 1px solid rgba(243, 238, 226, .38); border-radius: 999px 999px 16px 16px; }
.collecte-hero__arche .ar { position: absolute; inset: auto 0 8%; z-index: 3; text-align: center; font-size: clamp(2.1rem, 3.4vw, 3.2rem); line-height: 1.2; color: rgba(243, 223, 170, .95); text-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
@media (prefers-reduced-motion: reduce) { .collecte-hero__arche img { animation: none; } }
@media (max-width: 900px) { .collecte-hero { grid-template-columns: minmax(0, 1fr); } .collecte-hero__arche { display: none; } }
.cagnotte {
  display: grid; gap: 14px; max-width: 590px; margin-top: 6px; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius);
  background: rgba(8, 26, 18, .82); border: 1px solid rgba(230, 199, 127, .3); box-shadow: 0 34px 70px -44px rgba(0, 0, 0, .75);
}
.cagnotte__haut { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.cagnotte__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; }
.cagnotte__total b {
  font: 600 clamp(2.7rem, 6.4vw, 4rem)/.95 var(--font-display); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff7df 0%, #ecd08e 55%, #c9a14b 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cagnotte__total span { font-weight: 600; color: var(--on-dark-2); }
.cagnotte__pct { margin: 0; padding: 7px 13px; border-radius: 999px; background: rgba(230, 199, 127, .13); color: var(--gold-2); font-weight: 800; font-size: .95rem; line-height: 1; }
.cagnotte .jauge { height: 14px; }
.cagnotte__phrase { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 0; font-size: .95rem; color: var(--on-dark-2); }
.cagnotte__phrase strong { color: var(--on-dark); }
.is-atteinte .cagnotte__phrase strong, .is-atteinte .collecte-carte__bas [data-c="phrase"] { color: var(--gold-2); }
.cagnotte__direct { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: .8rem; line-height: 1.5; color: var(--on-dark-2); }
.cagnotte__direct .point-live { transform: translateY(-1px); }
.cagnotte__direct [data-c="depuis"]:not(:empty)::before { content: " · "; }
.cagnotte__test { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(180, 71, 47, .28); color: #ffd9cf; font-size: .82rem; font-weight: 700; }
.cagnotte .btn-row { margin-top: 4px; }
@media (max-width: 560px) { .cagnotte .btn-row .btn { flex: 1 1 100%; } }

/* Récapitulatif du formulaire : la cagnotte après le don */
.apres { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--radius-m); background: rgba(255, 255, 255, .04); border: 1px solid var(--on-dark-line); }
.apres p { margin: 0; font-size: .86rem; font-weight: 600; color: var(--on-dark-2); }

/* Avant / après : le curseur découvre le tapis actuel, à gauche */
.avant-apres {
  --pos: 50%; position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  box-shadow: var(--shadow); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; background: #e6e5df;
}
.avant-apres img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.avant-apres__img { position: absolute; inset: 0; }
.avant-apres__avant { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.avant-apres::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 1; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 14px rgba(0, 0, 0, .25); pointer-events: none; }
.avant-apres__poignee {
  position: absolute; top: 50%; left: var(--pos); z-index: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: #fff; color: var(--deep); box-shadow: 0 10px 26px -8px rgba(7, 21, 14, .55); pointer-events: none;
}
.avant-apres__poignee .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.avant-apres:has(input:focus-visible) .avant-apres__poignee { outline: 3px solid var(--gold); outline-offset: 3px; }
.avant-apres input { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.avant-apres__etiquette { position: absolute; top: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(7, 21, 14, .74); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.avant-apres__etiquette--avant { left: 14px; }
.avant-apres__etiquette--apres { right: 14px; background: rgba(201, 161, 75, .95); color: var(--night); }
.avant-apres figcaption { position: absolute; inset: auto 0 0; z-index: 2; padding: 26px 16px 10px; font-size: .74rem; color: rgba(255, 255, 255, .9); background: linear-gradient(180deg, transparent, rgba(7, 21, 14, .55)); pointer-events: none; }

/* Les donateurs */
.donateurs-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .donateurs-grille { grid-template-columns: minmax(0, 1fr); } }
.donateurs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.donateur { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); }
.donateur__ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(160deg, #237452 0%, var(--emerald) 50%, #154630 100%); color: var(--gold-2); font: 600 1.25rem/1 var(--font-display); }
.donateur.is-anonyme .donateur__ic { background: var(--sand); color: var(--gold-deep); }
.donateur__ic .icon { width: 18px; height: 18px; }
.donateur__qui { display: grid; min-width: 0; line-height: 1.35; }
.donateur__qui b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donateur__qui small { font-size: .8rem; color: var(--muted); }
.donateur__montant { margin-left: auto; padding-left: 8px; font: 600 1.45rem/1 var(--font-display); font-variant-numeric: lining-nums; color: var(--forest); white-space: nowrap; }
.donateur.is-nouveau { animation: don-nouveau 2s var(--ease); }
@keyframes don-nouveau { 0% { opacity: 0; transform: translateY(-10px); box-shadow: 0 0 0 4px rgba(201, 161, 75, .55); } 35% { opacity: 1; transform: none; box-shadow: 0 0 0 4px rgba(201, 161, 75, .55); } }
@media (prefers-reduced-motion: reduce) { .donateur.is-nouveau { animation: none; } }
.donateur--vide { justify-content: center; padding: 26px; border-style: dashed; background: transparent; color: var(--muted); font-size: .95rem; text-align: center; }
[data-c-plus] { margin-top: 16px; }

/* L'affiche à partager */
.affiche { position: sticky; top: calc(var(--header-h) + 20px); display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 22px; align-items: start; padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.affiche__img { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 30px -18px rgba(7, 21, 14, .55); }
.affiche__img img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.affiche__img:hover img { transform: scale(1.04); }
.affiche h3 { font-size: 1.6rem; }
.affiche p { margin: 8px 0 0; color: var(--ink-2); font-size: .95rem; }
.affiche .btn-row { grid-column: 1 / -1; }
.affiche .btn-row .btn { flex: 1 1 auto; }
@media (max-width: 960px) { .affiche { position: static; } }
@media (max-width: 460px) { .affiche { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px; } }

/* Accueil : le bandeau de la collecte, entre la 3D et les horaires */
.collecte-band { position: relative; background: var(--deep); padding-top: clamp(28px, 4vw, 52px); }
.collecte-carte {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr) minmax(0, 1fr); border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: var(--paper); color: var(--ink); text-decoration: none;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(201, 161, 75, .4); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.collecte-carte:hover { transform: translateY(-3px); box-shadow: 0 46px 90px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(201, 161, 75, .8); }
.collecte-carte__img { position: relative; min-height: 230px; overflow: hidden; }
.collecte-carte__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collecte-carte:hover .collecte-carte__img img { transform: scale(1.04); }
.collecte-carte__txt { display: grid; align-content: center; gap: 12px; padding: clamp(22px, 3vw, 38px); }
.collecte-carte__titre { font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.08; }
.collecte-carte__titre em { font-style: italic; font-weight: 500; color: var(--gold-deep); }
.collecte-carte__texte { color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.collecte-carte__jauge { display: grid; align-content: center; gap: 12px; padding: clamp(22px, 3vw, 38px); background: var(--sand); border-left: 1px solid var(--line); }
.collecte-carte__chiffres { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.collecte-carte__chiffres b { font: 600 clamp(2.3rem, 3.4vw, 2.9rem)/1 var(--font-display); font-variant-numeric: lining-nums tabular-nums; color: var(--forest); }
.collecte-carte__chiffres span { font-size: .9rem; font-weight: 600; color: var(--muted); }
.collecte-carte__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.collecte-carte__bas [data-c="pourcentage"] { color: var(--gold-deep); }
.collecte-carte .btn { justify-self: start; margin-top: 4px; }
@media (max-width: 1060px) {
  .collecte-carte { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .collecte-carte__jauge { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .collecte-carte { grid-template-columns: minmax(0, 1fr); }
  .collecte-carte__img { min-height: 0; aspect-ratio: 16 / 8; }
}

/* Accueil, carte de don : le lien vers la collecte */
.give__collecte { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 16px; border-radius: var(--radius-s); background: var(--deep); color: var(--on-dark); text-decoration: none; font-size: .9rem; }
.give__collecte b { color: var(--gold-2); }
.give__collecte .icon { margin-left: auto; color: var(--gold-2); transition: transform .3s var(--ease); }
.give__collecte:hover .icon { transform: translateX(3px); }

/* Page de don : la pastille de la collecte */
.collecte-pill {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-self: start; gap: 8px 14px; margin-top: 4px; padding: 9px 9px 9px 18px;
  border-radius: 999px; border: 1px solid rgba(230, 199, 127, .42); background: rgba(230, 199, 127, .08); color: var(--on-dark); text-decoration: none; font-size: .9rem;
  transition: background .3s, border-color .3s;
}
.collecte-pill:hover { background: rgba(230, 199, 127, .16); border-color: rgba(230, 199, 127, .75); }
.collecte-pill__txt b { color: var(--gold-2); }
.collecte-pill__pct { font-weight: 800; color: var(--gold-2); }
.collecte-pill__go { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--gold); color: var(--night); font-weight: 700; font-size: .84rem; }
@media (max-width: 600px) { .collecte-pill { border-radius: var(--radius-m); padding: 14px 16px; } }

/* Page merci : la cagnotte après un don pour la collecte */
.merci-collecte { display: grid; gap: 12px; max-width: 540px; margin-top: 4px; padding: 20px 22px; border-radius: var(--radius-m); background: rgba(255, 255, 255, .05); border: 1px solid var(--on-dark-line); }
.merci-collecte__haut { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; }
.merci-collecte__haut b { margin-left: auto; color: var(--gold-2); }
.merci-collecte__bas { margin: 0; font-size: .9rem; color: var(--on-dark-2); }
.merci-collecte__bas b { font: 600 1.35rem var(--font-display); color: var(--on-dark); }

/* Menu mobile : la collecte */
.menu__collecte { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-m); border: 1px solid rgba(230, 199, 127, .35); background: rgba(230, 199, 127, .07); text-decoration: none; }
.menu__collecte > span:nth-child(2) { display: grid; gap: 2px; font-size: .9rem; color: var(--on-dark-2); line-height: 1.4; }
.menu__collecte b { color: var(--gold-2); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.menu__collecte .icon { margin-left: auto; color: var(--gold-2); }

/* ---------- Pages Décès, FAQ et Transparence ---------- */
.btn--xl { min-height: 68px; padding: 0 30px; font-size: 1.05rem; }
.btn--xl b { font-weight: 800; letter-spacing: .02em; margin-left: 6px; }
.page-hero--deces .lead { max-width: 680px; }
.deces__ar { justify-self: start; margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.6; color: var(--gold-2); text-align: left; }
.appel { display: grid; gap: 12px; justify-items: start; margin-top: 8px; }
.appel__liens { margin: 0; font-size: .92rem; color: var(--on-dark-2); }
.appel__liens a { color: var(--on-dark); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(230, 199, 127, .5); text-underline-offset: 3px; }
@media (max-width: 560px) {
  .appel { justify-items: stretch; }
  .btn--xl { width: 100%; padding: 14px 18px; white-space: normal; text-align: center; flex-wrap: wrap; line-height: 1.3; }
}
.gestes { list-style: none; counter-reset: geste; margin: 0; padding: 0; display: grid; gap: 12px; }
.gestes li { counter-increment: geste; position: relative; padding: 16px 18px 16px 64px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); line-height: 1.55; }
.gestes li::before { content: counter(geste); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: var(--gold-2); font: 700 .9rem/1 var(--font-body); }
.gestes a, .bloc a:not(.btn):not(.link-arrow), .faq-page a:not(.btn), .transparence a { color: var(--emerald); font-weight: 700; }
.deces-cote { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) { .deces-cote { position: static; } }
.bloc { display: grid; gap: 12px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.bloc h3 { font-size: 1.7rem; }
.bloc .btn-row { margin-top: 6px; }
.bloc--sombre { background: radial-gradient(130% 90% at 0% 0%, #215c42 0%, #123425 46%, #0a1d14 100%); color: var(--on-dark); border-color: rgba(230, 199, 127, .25); }
.bloc--sombre .eyebrow { color: var(--gold-2); }
.bloc--sombre .title-m em { color: var(--gold-2); }
.bloc--sombre p { color: var(--on-dark-2); }
.bloc--sombre .btn { white-space: normal; text-align: center; }
.bloc__note { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--on-dark-line); font-size: .86rem; }
.bloc__liste { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 10px; }
.bloc__liste li { display: flex; align-items: center; gap: 12px; }
.bloc__liste .icon { color: var(--gold-deep); }
.faq-sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.faq-sommaire a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--on-dark-line); background: rgba(255, 255, 255, .05); color: var(--on-dark); font-size: .86rem; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s; }
.faq-sommaire a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(230, 199, 127, .5); }
.faq-theme { margin: 48px 0 16px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.faq-theme:first-child { margin-top: 0; }
.faq-page details > div > * + * { margin-top: 10px; }
.faq-page details ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.faq-page details p { margin: 0; }
.faq-page details:target, .faq-page details[open]:focus-within { border-color: var(--gold); }
.faq__lien { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px !important; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 .78rem var(--font-body); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.faq__lien:hover { color: var(--ink); border-color: var(--gold); }
.faq__lien.is-done { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.faq__lien .icon { width: 14px; height: 14px; }
.transparence { margin: 0; display: grid; gap: 12px; }
.transparence > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 10px 28px; padding: 22px 24px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); }
.transparence dt { display: flex; gap: 12px; align-items: flex-start; font-weight: 800; color: var(--ink); }
.transparence dt .icon { flex: none; margin-top: 2px; color: var(--gold-deep); }
.transparence dd { margin: 0; color: var(--ink-2); line-height: 1.65; }
.transparence dd a { display: inline-block; }
@media (max-width: 640px) { .transparence > div { grid-template-columns: minmax(0, 1fr); } }
.form-delai { margin: 0; font-size: .86rem; color: var(--muted); }
.footer-delai { margin: 16px 0 0; font-size: .82rem; line-height: 1.55; }
.footer-maj { opacity: .7; }

/* ---------- Apparition au défilement ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Impression (calendrier) ---------- */
@media print {
  .site-header, .site-footer, .page-hero, .no-print, .menu { display: none !important; }
  body { background: #fff; }
  .section { padding: 0; }
  .mois { box-shadow: none; border: 0; }
  .mois table { min-width: 0; font-size: 11px; }
  .mois th, .mois td { padding: 4px 6px; }
  .print-title { display: block !important; font: 600 22px var(--font-display); margin-bottom: 8px; }
}
.print-title { display: none; }
