/* Charte Sabiqu : orange #FF6B35, fond crème, Poppins (titres) et Inter (texte). */
@import url("/statique/polices-ui/polices.css");

:root {
  --primaire: #FF6B35;
  --primaire-fonce: #E8560C;
  --primaire-clair: #FFB088;
  --halo: rgba(255, 107, 53, 0.3);
  --fond: #FFF8F0;
  --surface: #FFFFFF;
  --texte: #1A1D2E;
  --texte-2: #6B7280;
  --texte-3: #9CA3AF;
  --bord: #E5E7EB;
  --succes: #00D9A3;
  --info: #4A90E2;
  --lu: rgba(255, 107, 53, 0.16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0F172A;
    --surface: #1E293B;
    --texte: #F1F5F9;
    --texte-2: #CBD5E1;
    --texte-3: #94A3B8;
    --bord: #334155;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fond); color: var(--texte); }
body { font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.5; min-height: 100vh; }
h1, h2, h3 { font-family: Poppins, Inter, sans-serif; margin: 0 0 8px; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
.discret { color: var(--texte-2); font-size: 14px; }
.cache { display: none !important; }

main { max-width: 760px; margin: 0 auto; padding: 16px; }
.carte {
  background: var(--surface); border-radius: 24px; padding: 24px; margin: 16px auto;
  box-shadow: 0 2px 8px rgba(26, 29, 46, 0.05); border: 1px solid rgba(255, 107, 53, 0.1);
}
.centre { text-align: center; max-width: 520px; }

.points { list-style: none; padding: 0; margin: 16px 0; }
.points li { margin: 0 0 12px; padding-left: 28px; position: relative; color: var(--texte-2); font-size: 15px; }
.points li::before { content: "●"; color: var(--primaire); position: absolute; left: 6px; top: 0; }
.points strong { color: var(--texte); }

.case { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-weight: 500; cursor: pointer; }
.case input { width: 22px; height: 22px; accent-color: var(--primaire); flex: none; margin-top: 2px; }

button {
  font-family: Poppins, Inter, sans-serif; font-weight: 600; font-size: 16px; border-radius: 16px;
  min-height: 52px; padding: 0 20px; border: 2px solid var(--primaire); cursor: pointer;
  background: transparent; color: var(--primaire); transition: transform .15s ease-out;
}
button:active { transform: scale(0.98); }
button.primaire { background: linear-gradient(135deg, var(--primaire), var(--primaire-fonce)); color: #fff;
  border: none; box-shadow: 0 4px 16px var(--halo); }
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
button.lien { border: none; min-height: 0; padding: 4px 0; font-size: 14px; color: var(--texte-2); text-decoration: underline; }
.boutons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.boutons > button { flex: 1 1 140px; }

input[type=search], input[type=number] {
  width: 100%; min-height: 52px; border-radius: 12px; border: 2px solid var(--bord); padding: 0 14px;
  font-size: 16px; background: var(--surface); color: var(--texte);
}
input:focus { outline: none; border-color: var(--primaire); }

.sourates { list-style: none; padding: 0; margin: 12px 0 0; max-height: 60vh; overflow: auto; }
.sourates li { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--bord); cursor: pointer; border-radius: 12px; }
.sourates li:hover, .sourates li.choisie { background: var(--lu); }
.sourates .num { width: 34px; height: 34px; border-radius: 50%; background: var(--fond); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.sourates .noms { flex: 1; }
.sourates .ar { font-family: "Amiri Quran", serif; font-size: 22px; direction: rtl; }

.entete-lecture { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.etat { display: flex; align-items: center; gap: 8px; color: var(--texte-2); font-size: 14px; margin: 8px 0; }
.pastille { width: 10px; height: 10px; border-radius: 50%; background: var(--texte-3); flex: none; }
.pastille.ecoute { background: var(--succes); animation: pulse 1.4s infinite; }
.pastille.attente { background: var(--info); }
@keyframes pulse { 50% { opacity: .35; } }

/* Le verset reste sur fond clair : les couleurs du tajwid sont faites pour un fond clair. */
.mushaf { background: #FFFDF8; color: #1A1D2E; border-radius: 24px; padding: 20px 16px; direction: rtl; text-align: center;
  border: 1px solid rgba(255, 107, 53, 0.15); }
.basmala { font-family: "Amiri Quran", serif; font-size: 26px; color: #1A1D2E; margin-bottom: 8px; }
.verset { font-size: clamp(30px, 7.5vw, 46px); line-height: 2.1; word-spacing: 0.05em; }
.verset .mot { border-radius: 10px; padding: 0 2px; transition: background-color .3s; }
.verset .mot.lu { background: var(--lu); }
.suivant-apercu { font-size: clamp(20px, 5vw, 28px); line-height: 2; opacity: .35; margin-top: 12px; border-top: 1px dashed #E5E7EB; padding-top: 8px; }
.aide { text-align: center; color: var(--texte-2); font-size: 14px; margin: 12px 0 0; }
.merci { color: var(--succes); font-weight: 600; }
.erreur { color: var(--primaire-fonce); font-weight: 500; }
