:root { --green: #0a6b4d; --green-dark: #064733; --gold: #b8860b; --bg: #f6f5ee; --card: #fff; --text: #10241c; --muted: #5f6f66; --border: #e6e3d6; --soft: #e2f2ea; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg: #0b1411; --card: #13201b; --text: #e8f0ec; --muted: #9bada4; --border: #24362f; --green: #3cc790; --gold: #e6b64a; --soft: #14302a; color-scheme: dark; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Arabic', sans-serif; }
a { color: var(--green); }
img { max-width: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 5vw, 48px); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; }
.brand img { border-radius: 10px; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; margin-inline: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.top nav a:hover { color: var(--green); }
.langs { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--card); }
.langs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; cursor: pointer; }
.langs button[aria-pressed='true'] { background: var(--green); color: #fff; }
@media (prefers-color-scheme: dark) { .langs button[aria-pressed='true'] { color: #04281c; } }

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 32px) 56px; }

/* Bandeau d'accueil */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: clamp(32px, 7vw, 80px) 0 40px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; margin: 0 0 12px; }
.hero h1 { font-size: clamp(32px, 5.6vw, 56px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
.hero h1 em { color: var(--green); font-style: normal; }
.lead { color: var(--muted); font-size: 19px; max-width: 56ch; margin: 0 0 24px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 14px; font-weight: 700; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: var(--gold); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--gold) 35%, transparent); }
.btn.ghost { border: 1.5px solid var(--green); color: var(--green); }
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); color: var(--green); font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; }

/* Téléphone d'illustration */
.phone { justify-self: center; width: min(300px, 80vw); aspect-ratio: 9 / 18.5; border-radius: 40px; background: linear-gradient(160deg, #0b7a56, #04382a); padding: 10px; box-shadow: 0 30px 60px rgba(4, 56, 42, .35); position: relative; }
.phone::before { content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 88px; height: 22px; background: #04201a; border-radius: 14px; z-index: 2; }
.screen { height: 100%; background: var(--bg); border-radius: 31px; padding: 44px 14px 14px; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.s-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.s-head img { border-radius: 7px; }
.s-card.main { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; border-radius: 18px; padding: 14px; display: grid; gap: 6px; }
.s-card small { opacity: .85; font-size: 12px; }
.s-card strong { font-size: 30px; line-height: 1.1; }
.s-card strong span { font-size: 14px; font-weight: 600; opacity: .85; }
.bar { height: 8px; background: rgba(255,255,255,.25); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #f4d27a; border-radius: 6px; }
.s-row { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; font-size: 13px; }
.s-row i { color: var(--green); margin-inline-end: 4px; }
.s-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.s-tiles i { background: var(--card); border: 1px solid var(--border); border-radius: 12px; display: grid; place-items: center; height: 46px; color: var(--gold); font-size: 22px; }

/* Sections */
.block { padding: 48px 0 8px; }
.block h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 24px; letter-spacing: -.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.grid article { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px; transition: transform .15s, box-shadow .15s; }
.grid article:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.grid article i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--soft); color: var(--green); font-size: 24px; margin-bottom: 12px; }
.grid h3 { margin: 0 0 6px; font-size: 18px; }
.grid p { margin: 0; color: var(--muted); }

.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.steps .n { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; }
@media (prefers-color-scheme: dark) { .steps .n { color: #04281c; } }
.steps h3 { margin: 0 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); }

.trust { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; background: var(--green-dark); color: #fff; border-radius: 24px; padding: clamp(24px, 5vw, 44px); margin-top: 48px; }
.trust h2 { color: #fff; margin: 0 0 8px; }
.trust p { margin: 0; color: rgba(255,255,255,.85); }
.trust ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.trust li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.trust li i { color: #f4d27a; font-size: 20px; }

.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--green); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 14px; color: var(--muted); }

.download { text-align: center; background: linear-gradient(160deg, #0b7a56, #04382a); color: #fff; border-radius: 24px; padding: 44px 20px; margin-top: 48px; }
.download h2 { margin: 0 0 8px; color: #fff; }
.download p { margin: 0 0 14px; color: rgba(255,255,255,.9); }
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 16px 0 20px; }
.stores span { display: inline-flex; align-items: center; gap: 8px; background: #000; color: #fff; padding: 11px 20px; border-radius: 12px; font-weight: 700; }
.stores i { font-size: 22px; }
.stores small { font-weight: 600; color: #f4d27a; }
.download a { color: #f4d27a; }
.muted { color: var(--muted); }
.download .muted { color: rgba(255,255,255,.8); }

footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px clamp(16px, 5vw, 48px); border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .hero, .trust { grid-template-columns: 1fr; }
  .phone { order: -1; width: min(240px, 70vw); }
  .top nav { display: none; }
  .langs { margin-inline-start: auto; }
}

/* Arabe : lecture de droite à gauche */
[dir='rtl'] .cta, [dir='rtl'] .chips { direction: rtl; }
[dir='rtl'] .eyebrow { letter-spacing: 0; }

/* Pages de texte (confidentialité, conditions, aide) */
.doc { max-width: 760px; margin: 0 auto; padding: 32px clamp(16px, 5vw, 24px) 56px; }
.doc h1 { font-size: 32px; margin: 0 0 6px; }
.doc h2 { margin: 32px 0 8px; font-size: 20px; color: var(--green); }
.doc h3 { margin: 18px 0 4px; font-size: 16px; }
.doc .meta { color: var(--muted); margin-bottom: 24px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

/* Décor inspiré du modèle Ibadah : motif géométrique, mosquée, calligraphie, ornements */
.hero-band { display: none; }
.hero { isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); z-index: -1; background: linear-gradient(180deg, rgba(4, 56, 42, .9), rgba(10, 107, 77, .8)), url('/img/pattern.jpg') center / cover; }
.top + main { position: relative; }
.hero { position: relative; margin-bottom: 8px; padding-bottom: 56px; }
.hero-text { color: #fff; }
.hero .eyebrow { color: #f4d27a; }
.hero h1 { color: #fff; }
.hero h1 em { color: #f4d27a; }
.hero .lead { color: rgba(255, 255, 255, .9); }
.hero .btn.ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.hero .chips li { background: rgba(255, 255, 255, .14); color: #fff; }
.hero-mosque { position: absolute; inset-inline-end: -2%; bottom: 0; z-index: -1; width: min(62%, 640px); opacity: .55; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.hero-calli { position: absolute; inset-inline-start: 38%; top: 6%; width: 120px; opacity: .22; pointer-events: none; }
.hero-text, .phone { position: relative; z-index: 1; }
.block { position: relative; }
img.orn { display: block; margin: 0 auto 6px; width: 34px; height: auto; }
.block h2 { text-align: center; }
.card-pic { position: absolute; inset-inline-end: 18px; top: 16px; width: 52px; height: auto; }
.grid article { position: relative; }
.verse { text-align: center; margin: 56px 0 0; padding: 40px 20px; border-radius: 24px; background: linear-gradient(rgba(4, 56, 42, .92), rgba(4, 56, 42, .92)), url('/img/pattern.jpg') center / cover; color: #fff; }
.verse .ar { font-family: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', serif; font-size: clamp(26px, 4.4vw, 40px); line-height: 1.9; margin: 0 0 8px; color: #f4d27a; }
.verse .tr { margin: 0 0 4px; font-size: 18px; }
.verse .ref { margin: 0; color: rgba(255, 255, 255, .7); font-size: 14px; }
.trust { background: linear-gradient(rgba(4, 56, 42, .93), rgba(4, 56, 42, .93)), url('/img/pattern.jpg') center / cover; }
.download { background: linear-gradient(rgba(4, 56, 42, .86), rgba(10, 107, 77, .86)), url('/img/pattern.jpg') center / cover; }
@media (max-width: 860px) { .hero-mosque { width: 90%; opacity: .35; } .hero-calli { display: none; } }
