/* Rawdat Dhikr — site vitrine et pages légales.
   La nuit indigo et l'or, comme l'application ; un ivoire doux en clair. */

:root {
  --bg: #F6F4EE;
  --bg-2: #ECE9F3;
  --surface: #FFFFFF;
  --line: rgba(18, 23, 53, 0.10);
  --line-strong: rgba(18, 23, 53, 0.18);
  --text: #121735;
  --text-dim: #3A4170;
  --text-mute: #6B7196;
  --primary: #2E3D9A;
  --primary-soft: #E3E6F6;
  --gold: #A8781A;
  --gold-bright: #F0C45C;
  --gold-soft: #F5E9CB;
  --hero-1: #26337E;
  --hero-2: #121B4D;
  --hero-3: #050A18;
  --on-gold: #0B1030;
  --shadow: 0 18px 50px -20px rgba(5, 10, 24, 0.4);
  --radius: 22px;
  --display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --arabic: "Amiri", "Noto Naskh Arabic", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050A18;
    --bg-2: #0A1230;
    --surface: #0E1738;
    --line: rgba(186, 198, 252, 0.10);
    --line-strong: rgba(186, 198, 252, 0.18);
    --text: #F2F5FF;
    --text-dim: rgba(220, 226, 255, 0.80);
    --text-mute: rgba(186, 198, 252, 0.58);
    --primary: #9DB0FF;
    --primary-soft: rgba(157, 176, 255, 0.13);
    --gold: #F0C45C;
    --gold-soft: rgba(240, 196, 92, 0.14);
    --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ─── Langues : un seul bloc visible ─────────────────────────────────────── */
[data-l]:not([data-l~="fr"]) { display: none; }
html[data-lang="en"] [data-l] { display: none; }
html[data-lang="en"] [data-l~="en"] { display: revert; }
html[data-lang="ar"] [data-l] { display: none; }
html[data-lang="ar"] [data-l~="ar"] { display: revert; }
html[data-lang="ar"] body { font-family: var(--arabic); font-size: 19px; }
.ar { font-family: var(--arabic); direction: rtl; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* ─── En-tête ────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-inline-end: auto; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand b { font: 700 19px/1 var(--display); letter-spacing: 0.6px; }
.brand small { display: block; font: 13px/1.2 var(--arabic); color: var(--gold); margin-top: 2px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.langs button {
  border: 0; background: transparent; color: var(--text-mute); cursor: pointer;
  font: 700 13px/1 var(--sans); padding: 8px 11px; border-radius: 999px;
}
.langs button[data-set="ar"] { font: 700 15px/1 var(--arabic); padding-block: 6px; }
.langs button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
@media (max-width: 760px) { .nav { display: none; } .brand small { display: none; } }

/* ─── Boutons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 12px 22px 12px 18px; border-radius: 16px; font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-play { background: var(--gold-bright); color: var(--on-gold); box-shadow: 0 10px 30px -10px rgba(240, 196, 92, .7); }
.btn-play svg { width: 26px; height: 26px; flex: none; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.15; }
.btn-play small { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; opacity: .75; }
.btn-play strong { font-size: 19px; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ─── Héros ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 600px at 18% 10%, rgba(240, 196, 92, .14), transparent 60%),
    linear-gradient(160deg, var(--hero-1), var(--hero-2) 55%, var(--hero-3));
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='-60 -60 120 120'%3E%3Cpath d='M0-44L12.6-30.4 31.1-31.1 30.4-12.6 44 0 30.4 12.6 31.1 31.1 12.6 30.4 0 44-12.6 30.4-31.1 31.1-30.4 12.6-44 0-30.4-12.6-31.1-31.1-12.6-30.4Z' fill='none' stroke='%23F0C45C' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 72px 0; }
.hero-text { padding-bottom: 72px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-bright); }
.kicker::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.hero h1 { font: 700 clamp(42px, 6.4vw, 76px)/1.05 var(--display); margin: 18px 0 6px; letter-spacing: 1px; }
.hero .arabic-title { font: 400 clamp(26px, 3.4vw, 38px)/1.6 var(--arabic); color: var(--gold-bright); margin: 0; }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,.84); max-width: 34em; margin: 18px 0 30px; }
html[data-lang="ar"] .hero p.lead { font-size: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: 14px; color: rgba(255,255,255,.72); }
.trust span::before { content: "✦ "; color: var(--gold-bright); }

.phone {
  width: 290px; border-radius: 42px; padding: 10px; background: #070C1E;
  border: 1px solid rgba(240,196,92,.35); box-shadow: 0 40px 80px -30px rgba(0,0,0,.65);
}
.phone img { border-radius: 33px; width: 100%; height: auto; background: #0E1738; }
.hero-visual { position: relative; align-self: stretch; min-height: 560px; }
/* deux téléphones posés l'un contre l'autre ; le bas déborde, coupé par le héros */
.hero-visual .phone { position: absolute; top: 8px; left: 50%; }
.hero-visual .phone.front { transform: translateX(-28%); z-index: 2; }
.hero-visual .phone.back { top: 64px; transform: translateX(-92%) rotate(-6deg) scale(.86); opacity: .92; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; text-align: center; }
  .hero-text { padding-bottom: 0; }
  .hero p.lead { margin-inline: auto; }
  .cta, .trust { justify-content: center; }
  .kicker::before { display: none; }
  .hero-visual { min-height: 420px; margin-top: 8px; }
  .hero-visual .phone { width: 220px; }
  .hero-visual .phone.front { transform: translateX(-30%); }
  .hero-visual .phone.back { transform: translateX(-88%) rotate(-6deg) scale(.86); }
}

/* ─── Sections ───────────────────────────────────────────────────────────── */
section.block { padding-block: 96px; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.sec-head h2 { font: 700 clamp(34px, 4.6vw, 50px)/1.08 var(--serif); margin: 10px 0 12px; }
html[data-lang="ar"] .sec-head h2, html[data-lang="ar"] h1, html[data-lang="ar"] h2, html[data-lang="ar"] h3 { font-family: var(--arabic); font-weight: 700; }
.sec-head p { color: var(--text-dim); margin: 0; }
.sec-head .kicker { color: var(--gold); }
.ornament { display: flex; align-items: center; gap: 14px; justify-content: center; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; flex: 0 1 90px; height: 1px; background: currentColor; opacity: .45; }

.verse {
  text-align: center; padding: 64px 24px; background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.verse .ar { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.9; margin: 14px 0 6px; }
.verse p { font: italic 600 clamp(19px, 2.2vw, 24px)/1.45 var(--serif); color: var(--text-dim); margin: 0 auto 8px; max-width: 30em; }
.verse cite { font: 700 12px/1 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-mute); font-style: normal; }

.practices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.practice {
  position: relative; padding: 30px 26px 26px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); overflow: hidden;
}
.practice::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tone); }
.practice .ar { color: var(--tone); font-size: 26px; line-height: 1.6; }
.practice h3 { font: 700 30px/1.1 var(--serif); margin: 0 0 4px; }
.practice .when { font-size: 14px; font-weight: 700; color: var(--tone); margin: 0 0 12px; }
.practice p { color: var(--text-dim); margin: 0; font-size: 16px; }
.t-gold { --tone: #A8781A; } .t-indigo { --tone: #3F4FB8; } .t-emerald { --tone: #13795B; } .t-rose { --tone: #A8456B; }
@media (prefers-color-scheme: dark) { .t-gold { --tone: #F0C45C; } .t-indigo { --tone: #9DB0FF; } .t-emerald { --tone: #4FD1A5; } .t-rose { --tone: #F09AB9; } }
.practices.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .practices.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .practices { grid-template-columns: 1fr; } .practices.four { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature .ic {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 16px;
}
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font: 700 24px/1.2 var(--serif); margin: 0 0 6px; }
.feature p { margin: 0; color: var(--text-dim); font-size: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.gallery {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 16px 30px;
  scrollbar-width: thin; justify-content: safe center;
}
.gallery figure { margin: 0; flex: none; scroll-snap-align: center; text-align: center; }
.gallery .phone { width: 240px; }
.gallery figcaption { margin-top: 14px; font: 700 20px/1.2 var(--serif); }
html[data-lang="ar"] .gallery figcaption { font-family: var(--arabic); }

.privacy-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 32px; border-radius: var(--radius); background: var(--primary-soft); border: 1px solid var(--line);
}
.privacy-band .ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--primary); }
.privacy-band h3 { font: 700 26px/1.2 var(--serif); margin: 0 0 4px; }
.privacy-band p { margin: 0; color: var(--text-dim); }
@media (max-width: 760px) { .privacy-band { grid-template-columns: 1fr; text-align: center; } .privacy-band .ic { margin-inline: auto; } }

.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--text-dim); }

.final {
  text-align: center; color: #fff; padding-block: 88px;
  background: radial-gradient(800px 400px at 50% 0%, rgba(240,196,92,.16), transparent 70%), linear-gradient(180deg, var(--hero-2), var(--hero-3));
}
.final img { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 22px; box-shadow: 0 20px 50px -18px rgba(0,0,0,.6); }
.final h2 { font: 700 clamp(34px, 4.6vw, 50px)/1.1 var(--serif); margin: 0 0 10px; }
.final p { color: rgba(255,255,255,.8); margin: 0 auto 30px; max-width: 32em; }

/* ─── Pages légales ──────────────────────────────────────────────────────── */
.doc-hero { padding: 64px 0 32px; text-align: center; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.doc-hero h1 { font: 700 clamp(38px, 5vw, 56px)/1.1 var(--serif); margin: 10px 0 8px; }
.doc-hero p { color: var(--text-mute); margin: 0; font-size: 15px; }
.doc { padding-block: 48px 88px; }
.doc h2 { font: 700 28px/1.2 var(--serif); margin: 44px 0 10px; padding-top: 6px; }
.doc h2 .n { color: var(--gold); margin-inline-end: 8px; }
.doc h3 { font-size: 18px; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--text-dim); }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--gold); }
.summary {
  padding: 22px 24px; border-radius: 18px; background: var(--primary-soft); border: 1px solid var(--line);
}
.summary strong { color: var(--text); }
.summary ul { margin: 8px 0 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; background: var(--surface); border: 1px solid var(--line); color: var(--text-dim); }
.toc a:hover { color: var(--primary); border-color: var(--primary); }
table.perm { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
table.perm th, table.perm td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.perm th { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .8px; }
table.perm td { color: var(--text-dim); }
table.perm code { font-size: 13px; color: var(--text); }
.contact-card {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0;
}
.contact-card a {
  display: block; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--text);
}
.contact-card a:hover { border-color: var(--primary); }
.contact-card b { display: block; font: 700 22px/1.2 var(--serif); margin-bottom: 4px; }
.contact-card span { color: var(--text-mute); font-size: 15px; word-break: break-word; }
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; } }

/* ─── Pied de page ───────────────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.site nav a { color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 600; }
footer.site nav a:hover { color: var(--primary); }
footer.site small { color: var(--text-mute); font-size: 14px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }
