/* Feuille de style du site Muslim Waqt.
   Charte : ivoire (fond), émeraude, or, nuit ; polices Montserrat + Scheherazade New.
   Parti pris : haut de page vert nuit et or (couleurs de l'app), lettres arabes en décor, sections claires ensuite. */

/* ── 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;
  --ivoire-2: #F3EEDD;
  --carte: #FFFFFF;
  --texte: #1B2A22;
  --gris: #5C6961;
  --bord: #E6E0CF;
  --largeur: 1120px;
  --police: 'Montserrat', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --arabe: 'Scheherazade New', 'Geeza Pro', 'Segoe UI', Tahoma, 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: var(--arabe); font-size: 21px; line-height: 1.75; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
section[id] { scroll-margin-top: 84px; }
:focus-visible { outline: 3px solid var(--emeraude); outline-offset: 3px; border-radius: 6px; }
[lang='ar'] { font-family: var(--arabe); }

/* ── 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; }
.marque.clair { color: var(--vert-fonce); }
.marque.clair .or { background: linear-gradient(180deg, #C9952B, #8A6410); -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 (nuit) ── */
.barre { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 11px max(20px, calc((100% - var(--largeur)) / 2)); background: rgba(4, 20, 15, .94); backdrop-filter: blur(10px); 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', var(--arabe); 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: var(--arabe); font-size: 16px; line-height: 1.1; }

/* ── Haut de page (hero) : vert nuit et or, avec des lettres arabes en décor ── */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 64px max(20px, calc((100% - var(--largeur)) / 2)) 84px; color: #fff; background: radial-gradient(circle at 74% 38%, #12543A 0%, #062218 48%, var(--nuit) 100%); }
html[dir='rtl'] .hero { background: radial-gradient(circle at 26% 38%, #12543A 0%, #062218 48%, var(--nuit) 100%); }
.hero-lettres { position: absolute; inset: 0; pointer-events: none; font-family: var(--arabe); font-weight: 700; color: var(--or); }
.hero-lettres span { position: absolute; line-height: 1; opacity: .07; }
.hero-lettres span:nth-child(1) { top: 4%; inset-inline-start: 3%; font-size: 150px; }
.hero-lettres span:nth-child(2) { top: 58%; inset-inline-start: 40%; font-size: 120px; opacity: .06; }
.hero-lettres span:nth-child(3) { top: 2%; inset-inline-start: 46%; font-size: 110px; }
.hero-lettres span:nth-child(4) { top: 70%; inset-inline-start: 6%; font-size: 100px; }
.hero-lettres span:nth-child(5) { top: 6%; inset-inline-end: 4%; font-size: 130px; color: #fff; opacity: .05; }
.hero-lettres span:nth-child(6) { top: 66%; inset-inline-end: 2%; font-size: 150px; }
.hero-lettres span:nth-child(7) { top: 36%; inset-inline-end: 38%; font-size: 90px; color: #fff; opacity: .04; }
.hero-lettres span:nth-child(8) { top: 78%; inset-inline-start: 26%; font-size: 90px; color: #fff; opacity: .05; }
.hero-lettres span:nth-child(9) { top: 30%; inset-inline-start: -1%; font-size: 100px; opacity: .05; }
.hero-lettres span:nth-child(10) { top: 40%; inset-inline-end: -1%; font-size: 110px; opacity: .06; }
.hero-texte, .hero-visuel { position: relative; }
.surtitre { font-size: 12.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--or-clair); }
html[lang='ar'] .surtitre { letter-spacing: 0; font-size: 20px; font-weight: 700; }
.hero h1 { margin-top: 18px; font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.14; font-weight: 800; letter-spacing: -.01em; color: #fff; }
html[lang='ar'] .hero h1 { line-height: 1.5; 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é : une leçon d'arabe ── */
.hero-visuel { display: flex; flex-direction: column; align-items: center; }
.telephone { width: 276px; 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; padding-bottom: 16px; }
html[lang='ar'] .tel-ecran { font-size: 17px; }
.tel-tete { display: flex; align-items: center; gap: 10px; padding: 24px 16px 14px; 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-avance { display: flex; align-items: center; gap: 10px; padding: 12px 16px 0; font-size: .76em; color: var(--gris); font-weight: 600; }
.tel-avance i { flex: 1; height: 7px; border-radius: 7px; background: var(--bord); overflow: hidden; }
.tel-avance b { display: block; width: 22%; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #E6B84E, #C9952B); }
.tel-lettre { margin: 12px 14px 0; border-radius: 20px; background: #fff; border: 1px solid var(--bord); text-align: center; }
.tel-lettre span { display: block; font-family: var(--arabe); font-weight: 700; font-size: 96px; line-height: 1.5; color: var(--vert-fonce); }
.tel-consigne { margin: 12px 16px 0; text-align: center; font-weight: 700; }
.tel-choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 14px 0; }
.tel-choix li { padding: 9px 4px; border-radius: 12px; background: #fff; border: 1.5px solid var(--bord); text-align: center; font-weight: 700; }
.tel-choix .juste { background: var(--emeraude); border-color: var(--emeraude); color: #fff; }
.tel-bravo { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 14px 0; padding: 7px; border-radius: 10px; background: var(--vert-doux); color: var(--vert-fonce); font-size: .86em; font-weight: 700; }
.tel-bravo svg { width: 16px; height: 16px; }
.tel-formes { margin: 12px 14px 0; padding: 10px 12px; border-radius: 14px; background: var(--ivoire-2); }
.tel-formes span { font-size: .74em; font-weight: 600; color: var(--gris); }
.tel-formes div { display: flex; justify-content: space-around; font-size: 28px; line-height: 1.5; color: var(--or-fonce); }
.tel-formes b { font-weight: 700; }
.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: var(--ivoire-2); }
.bloc.nuit { background: radial-gradient(circle at 80% 0, #12543A 0%, var(--nuit-2) 46%, var(--nuit) 100%); 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, #E6B84E, #B8861F); }
.bloc-tete p { margin-top: 16px; color: var(--gris); }
.bloc-tete.petit h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.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; }
.carte { padding: 26px; border-radius: 20px; background: var(--carte); border: 1px solid var(--bord); box-shadow: 0 2px 10px rgba(27, 42, 34, .04); }
.carte h3, .valeur h3, .carte-nuit h3, .parcours h3 { font-size: 1.1em; line-height: 1.3; font-weight: 700; }
.carte p, .valeur p, .parcours p { margin-top: 8px; color: var(--gris); font-size: .93em; }
.numero { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(160deg, #F0CB6C, #C9952B); color: var(--nuit); font-family: 'Montserrat', var(--arabe); font-weight: 800; font-size: 16px; line-height: 1; }
.carte.temps h3 { margin-top: 14px; color: var(--vert-fonce); }

/* ── Parcours d'arabe : 4 étapes reliées ── */
.parcours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: etape; }
.parcours li { position: relative; display: flex; flex-direction: column; border-radius: 22px; background: var(--carte); border: 1px solid var(--bord); overflow: hidden; box-shadow: 0 2px 10px rgba(27, 42, 34, .04); }
.parcours-lettres { display: grid; place-items: center; min-height: 128px; padding: 8px 10px; background: linear-gradient(160deg, var(--emeraude), var(--vert-fonce)); color: var(--or-clair); font-family: var(--arabe); font-weight: 700; font-size: 46px; line-height: 1.6; text-align: center; }
.parcours-texte { padding: 0 20px 22px; }
.parcours-texte .numero { margin-top: -19px; box-shadow: 0 0 0 4px var(--carte); }
.parcours h3 { margin-top: 10px; }

/* ── Religion : cartes sur fond nuit, avec le mot arabe en or ── */
.carte-nuit { padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(230, 184, 78, .3); }
.mot-arabe { font-family: var(--arabe); font-weight: 700; font-size: 40px; line-height: 1.5; background: linear-gradient(180deg, #FFE9A8, #E6B84E 60%, #C9952B); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: start; }
html[dir='ltr'] .mot-arabe { text-align: left; direction: ltr; }
.carte-nuit h3 { margin-top: 4px; color: #fff; }
.carte-nuit p { margin-top: 6px; color: #C9D3CD; font-size: .93em; }
.note-bloc { margin: 30px auto 0; max-width: 40em; text-align: center; color: var(--or-clair); font-size: .9em; }

/* ── Outils du quotidien : liste compacte ── */
.outils { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 22px; max-width: 980px; margin: 0 auto; }
.outils li { display: flex; align-items: flex-start; gap: 13px; padding: 14px 16px; border-radius: 16px; background: var(--carte); border: 1px solid var(--bord); }
.pastille { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--vert-doux); color: var(--emeraude); }
.pastille svg { width: 22px; height: 22px; }
.outils h3 { font-size: .98em; line-height: 1.3; font-weight: 700; }
.outils p { margin-top: 2px; color: var(--gris); font-size: .84em; line-height: 1.45; }

/* ── Valeurs ── */
.valeur { text-align: center; padding: 8px 12px; }
.valeur h3 { margin-top: 16px; }
.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%); }

/* ── 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); }

/* ── Bande « le temps » : le verset et l'idée d'investissement ── */
.bloc.temps { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 48px; background: linear-gradient(160deg, var(--emeraude), var(--vert-fonce)); color: #fff; padding-top: 64px; padding-bottom: 64px; }
.temps-verset { text-align: center; padding: 26px 20px; border-radius: 24px; border: 1px solid rgba(243, 223, 164, .4); background: rgba(4, 20, 15, .22); }
.temps-ar { font-family: var(--arabe); font-weight: 700; font-size: 84px; line-height: 1.5; background: linear-gradient(180deg, #FFE9A8, #E6B84E 60%, #C9952B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.temps-trad { font-size: 1.35em; font-weight: 700; color: #fff; }
.temps-ref { margin-top: 6px; font-size: .82em; color: var(--or-clair); }
.temps-texte h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.22; font-weight: 800; }
html[lang='ar'] .temps-texte h2 { line-height: 1.5; }
.temps-texte > p { margin-top: 14px; color: #DCE7E0; font-size: 1.04em; max-width: 36em; }
.temps-texte ul { display: grid; gap: 16px; margin-top: 26px; }
.temps-texte li { display: flex; gap: 14px; align-items: flex-start; }
.temps-texte .etoile-puce { flex: none; width: 26px; height: 26px; margin: 3px 0 0; }
.temps-texte h3 { font-size: 1.04em; line-height: 1.3; font-weight: 700; color: var(--or-clair); }
.temps-texte li p { margin-top: 2px; color: #DCE7E0; font-size: .93em; }

/* ── Pages de texte (confidentialité, support, mentions légales) ── */
.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 (nuit) ── */
.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); }
.pied .langues a { color: #C9D3CD; }
.pied .langues a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.pied .langues .actif { background: var(--or); color: var(--nuit); }
.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: 980px) {
  .parcours { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .menu { display: none; }
  .langues { margin-inline-start: auto; }
  .bloc.temps { grid-template-columns: 1fr; gap: 30px; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 60px; text-align: center; }
  .hero-lettres span:nth-child(2), .hero-lettres span:nth-child(3), .hero-lettres span:nth-child(7), .hero-lettres span:nth-child(8) { display: none; }
  .intro { margin-inline: auto; }
  .actions, .atouts { justify-content: center; }
  .grille, .outils { 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: 9px; padding-bottom: 9px; }
  .barre .embleme { width: 36px; height: 36px; }
  .barre .marque { display: none; }
  .langues a, .langues .actif { padding: 5px 9px; }
  .grille, .outils, .parcours { grid-template-columns: 1fr; }
  .parcours-lettres { min-height: 104px; }
  .temps-ar { font-size: 66px; }
  .actions .bouton { width: 100%; justify-content: center; }
  .reseau { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reseau:hover { transform: none; } }
