/* Feuille de style du site Muslim Waqt.
   Couleurs et polices de la charte : nuit, émeraude, or, ivoire ; Montserrat + Scheherazade New. */

/* ── Polices hébergées avec le site (aucun appel à un service extérieur) ── */
@font-face { font-family: 'Montserrat'; src: url('fonts/montserrat-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Scheherazade New'; src: url('fonts/scheherazade-new-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Scheherazade New'; src: url('fonts/scheherazade-new-arabic-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --nuit: #04140F;
  --nuit-2: #06261C;
  --emeraude: #0F6B45;
  --vert: #006C35;
  --vert-fonce: #00522A;
  --vert-doux: #E6F2EC;
  --or: #E6B84E;
  --or-clair: #F3DFA4;
  --or-fonce: #8A6410; /* or lisible sur fond clair */
  --ivoire: #FBF6EA;
  --carte: #FFFFFF;
  --texte: #1B2A22;
  --gris: #5C6961;
  --bord: #E6E0CF;
  --largeur: 1120px;
  --police: 'Montserrat', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivoire); color: var(--texte); font-family: var(--police); font-size: 17px; line-height: 1.6; }
html[lang='ar'] body { font-family: 'Scheherazade New', 'Geeza Pro', 'Segoe UI', Tahoma, sans-serif; font-size: 21px; line-height: 1.75; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
section[id] { scroll-margin-top: 84px; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 6px; }

/* ── Logo et nom de la marque ── */
.embleme { width: 44px; height: 44px; flex: none; }
.marque { font-family: 'Montserrat', sans-serif; font-weight: 800; letter-spacing: .5px; white-space: nowrap; color: #fff; font-size: 20px; line-height: 1; }
.marque .lettre { display: inline-block; height: .74em; width: .77em; vertical-align: baseline; }
.marque .or { background: linear-gradient(180deg, #FFE9A8, #E6B84E 55%, #A8741A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slogan { font-size: 12.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--or-clair); }
html[lang='ar'] .slogan { letter-spacing: 0; font-size: 19px; font-weight: 700; }

/* ── Barre du haut ── */
.barre { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 12px max(20px, calc((100% - var(--largeur)) / 2)); background: rgba(4, 20, 15, .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(230, 184, 78, .22); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.menu { display: flex; gap: 26px; margin-inline-start: auto; }
.menu a { color: #E9EFEA; text-decoration: none; font-size: .88em; font-weight: 500; }
.menu a:hover { color: var(--or); }
.langues { display: flex; gap: 4px; align-items: center; font-family: 'Montserrat', 'Scheherazade New', sans-serif; font-size: 13px; line-height: 1.4; }
.langues a, .langues .actif { padding: 5px 10px; border-radius: 999px; text-decoration: none; color: #C9D3CD; }
.langues a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.langues .actif { background: var(--or); color: var(--nuit); font-weight: 700; }
.langues [lang='ar'] { font-family: 'Scheherazade New', sans-serif; font-size: 16px; line-height: 1.1; }

/* ── Haut de page (hero) ── */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 72px max(20px, calc((100% - var(--largeur)) / 2)) 88px; color: #fff; background: radial-gradient(circle at 72% 38%, #12543A 0%, #062218 48%, var(--nuit) 100%); }
html[dir='rtl'] .hero { background: radial-gradient(circle at 28% 38%, #12543A 0%, #062218 48%, var(--nuit) 100%); }
.ornement { position: absolute; inset-inline-end: -6%; top: 50%; width: min(760px, 64vw); transform: translateY(-50%); pointer-events: none; }
.hero-texte, .hero-visuel { position: relative; }
.hero h1 { margin-top: 18px; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
html[lang='ar'] .hero h1 { line-height: 1.45; letter-spacing: 0; }
.hero h1 em { font-style: normal; background: linear-gradient(180deg, #FFE9A8, #E6B84E 60%, #C9952B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro { margin-top: 20px; max-width: 34em; color: #D5DFD9; font-size: 1.08em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.bouton { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: .92em; text-decoration: none; line-height: 1.3; }
.bouton svg { width: 22px; height: 22px; flex: none; }
.bouton.plein { background: linear-gradient(180deg, #F6D988, #E6B84E 60%, #D2A03A); color: var(--nuit); box-shadow: 0 8px 24px rgba(230, 184, 78, .22); }
.bouton.plein.inactif { cursor: default; }
.bouton.contour { border: 1.5px solid rgba(243, 223, 164, .55); color: #fff; }
.bouton.contour:hover { background: rgba(243, 223, 164, .1); }
.atouts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: #C9D3CD; font-size: .86em; }
.atouts li { display: flex; align-items: center; gap: 7px; }
.atouts svg { width: 17px; height: 17px; color: var(--or); }

/* ── Téléphone illustré ── */
.hero-visuel { display: flex; flex-direction: column; align-items: center; }
.telephone { width: 268px; padding: 9px; border-radius: 42px; background: #0B0F0D; box-shadow: 0 0 0 1.5px rgba(230, 184, 78, .55), 0 30px 70px rgba(0, 0, 0, .55); }
.tel-ecran { border-radius: 34px; overflow: hidden; background: var(--ivoire); color: var(--texte); font-size: 14px; line-height: 1.35; }
html[lang='ar'] .tel-ecran { font-size: 17px; }
.tel-tete { display: flex; align-items: center; gap: 10px; padding: 26px 16px 16px; background: linear-gradient(100deg, var(--vert-fonce), var(--emeraude)); color: #fff; }
.tel-tete .embleme { width: 36px; height: 36px; }
.tel-tete strong { display: block; font-size: 1.1em; }
.tel-tete span { font-size: .8em; color: var(--or-clair); }
.tel-carte { margin: 14px; padding: 16px; border-radius: 18px; text-align: center; color: #fff; background: radial-gradient(circle at 50% 0, #12543A, var(--nuit-2)); display: grid; gap: 2px; }
.tel-carte span { font-size: .78em; color: #C9D3CD; }
.tel-carte strong { font-size: 1.15em; }
.tel-carte b { font-size: 2.1em; line-height: 1.1; color: var(--or); font-weight: 800; }
.tel-carte em { font-style: normal; font-size: .8em; color: var(--or-clair); }
.tel-liste { padding: 0 14px 18px; display: grid; gap: 6px; }
.tel-liste li { display: flex; justify-content: space-between; padding: 9px 13px; border-radius: 12px; background: #fff; border: 1px solid var(--bord); font-weight: 600; }
.tel-liste .actuelle { background: var(--vert-doux); border-color: var(--emeraude); color: var(--vert-fonce); }
.tel-note { margin-top: 14px; font-size: .72em; color: #8FA097; }

/* ── Blocs de contenu ── */
.bloc { padding: 84px max(20px, calc((100% - var(--largeur)) / 2)); }
.bloc.doux { background: #F3EEDD; }
.bloc.nuit { background: linear-gradient(160deg, var(--nuit-2), var(--nuit)); color: #fff; }
.bloc-tete { max-width: 40em; margin: 0 auto 44px; text-align: center; }
.bloc-tete h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; font-weight: 800; color: var(--vert-fonce); }
html[lang='ar'] .bloc-tete h2 { line-height: 1.5; }
.bloc-tete h2::after { content: ''; display: block; width: 56px; height: 3px; margin: 16px auto 0; border-radius: 3px; background: linear-gradient(90deg, #F6D988, #D2A03A); }
.bloc-tete p { margin-top: 16px; color: var(--gris); }
.bloc.nuit .bloc-tete h2 { color: #fff; }
.bloc.nuit .bloc-tete p { color: #C9D3CD; }
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grille.deux { grid-template-columns: repeat(2, 1fr); }
.carte { padding: 26px; border-radius: 20px; background: var(--carte); border: 1px solid var(--bord); box-shadow: 0 2px 10px rgba(27, 42, 34, .04); }
.pastille { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(140deg, var(--emeraude), var(--vert-fonce)); color: var(--or); }
.pastille svg { width: 28px; height: 28px; }
.carte h3, .valeur h3, .carte-nuit h3 { margin-top: 16px; font-size: 1.1em; line-height: 1.3; font-weight: 700; }
.carte p, .valeur p { margin-top: 8px; color: var(--gris); font-size: .93em; }
.valeur { text-align: center; padding: 8px 12px; }
.etoile-puce { width: 34px; height: 34px; margin: 0 auto; background: linear-gradient(180deg, #F0CB6C, #B8861F); clip-path: polygon(50% 0, 62% 21%, 85% 15%, 79% 38%, 100% 50%, 79% 62%, 85% 85%, 62% 79%, 50% 100%, 38% 79%, 15% 85%, 21% 62%, 0 50%, 21% 38%, 15% 15%, 38% 21%); }
.carte-nuit { display: flex; gap: 18px; padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(230, 184, 78, .28); }
.carte-nuit h3 { margin-top: 0; color: #fff; }
.carte-nuit p { margin-top: 6px; color: #C9D3CD; font-size: .93em; }
.numero { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--or); color: var(--or); font-weight: 800; line-height: 1; }

/* ── Réseaux sociaux ── */
.reseaux { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.reseau { min-width: 210px; padding: 20px 26px; border-radius: 18px; text-align: center; text-decoration: none; background: var(--carte); border: 1px solid var(--bord); border-bottom: 3px solid var(--or); }
.reseau:hover { border-color: var(--emeraude); border-bottom-color: var(--or); transform: translateY(-2px); }
.reseau strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; color: var(--vert-fonce); }
.reseau span { display: block; font-family: 'Montserrat', sans-serif; font-size: 14px; color: var(--gris); }

/* ── Pages de texte (confidentialité, support) ── */
.article { max-width: 780px; margin: 0 auto; padding: 56px 20px 84px; }
.article .slogan { color: var(--or-fonce); }
.article h1 { margin-top: 10px; font-size: clamp(1.9rem, 4.4vw, 2.6rem); line-height: 1.2; font-weight: 800; color: var(--vert-fonce); }
html[lang='ar'] .article h1 { line-height: 1.5; }
.article .date { margin-top: 8px; color: var(--gris); font-size: .85em; }
.article .chapeau { margin-top: 20px; font-size: 1.1em; }
.article section { margin-top: 36px; }
.article h2 { font-size: 1.25em; line-height: 1.3; font-weight: 700; color: var(--vert-fonce); padding-inline-start: 14px; border-inline-start: 4px solid var(--or); }
.article section > p, .article section > ul { margin-top: 12px; }
.article ul { display: grid; gap: 8px; }
.article li { position: relative; padding-inline-start: 22px; }
.article li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .62em; width: 9px; height: 9px; background: var(--or); transform: rotate(45deg); }
.attente { padding: 14px 18px; border-radius: 14px; background: var(--vert-doux); color: var(--vert-fonce); font-weight: 600; }
details { margin-top: 10px; border-radius: 14px; background: var(--carte); border: 1px solid var(--bord); }
summary { padding: 15px 18px; cursor: pointer; font-weight: 600; }
details[open] summary { color: var(--vert-fonce); }
details p { padding: 0 18px 16px; color: var(--gris); }

/* ── Pied de page ── */
.pied { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 22px 36px; padding: 44px max(20px, calc((100% - var(--largeur)) / 2)) 30px; background: var(--nuit); color: #C9D3CD; border-top: 3px solid var(--or); }
.pied-marque { display: flex; align-items: center; gap: 14px; }
.pied-marque .embleme { width: 60px; height: 60px; }
.pied-marque .slogan { margin-top: 9px; font-size: 10.5px; }
html[lang='ar'] .pied-marque .slogan { font-size: 17px; margin-top: 4px; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .88em; }
.pied-liens a { text-decoration: none; }
.pied-liens a:hover { color: var(--or); }
.droits { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78em; color: #8FA097; }

/* ── Tablette et téléphone ── */
@media (max-width: 900px) {
  .menu { display: none; }
  .langues { margin-inline-start: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; text-align: center; }
  .ornement { inset-inline-end: 50%; top: auto; bottom: -6%; width: 760px; transform: translateX(50%); }
  html[dir='rtl'] .ornement { transform: translateX(-50%); }
  .intro { margin-inline: auto; }
  .actions, .atouts { justify-content: center; }
  .grille, .grille.deux { grid-template-columns: repeat(2, 1fr); }
  .grille.trois { grid-template-columns: 1fr; gap: 28px; }
  .bloc { padding-top: 60px; padding-bottom: 60px; }
  .pied { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pied .langues { margin: 0; }
  .pied-liens { justify-content: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  html[lang='ar'] body { font-size: 19px; }
  .barre { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .barre .embleme { width: 36px; height: 36px; }
  .barre .marque { display: none; }
  .langues a, .langues .actif { padding: 5px 9px; }
  .grille, .grille.deux { grid-template-columns: 1fr; }
  .actions .bouton { width: 100%; justify-content: center; }
  .reseau { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reseau:hover { transform: none; } }
