/* kaayxol.ma/Al-quran-H24 : mise en page sombre, motion design doux */
:root { --fond: #03130d; --encre: #f2f6f3; --doux: #a9bdb3; --or: #e3b04b; --or2: #f6d27e; --vert: #14a374; --ligne: rgba(255, 255, 255, .08); --verre: rgba(12, 38, 28, .55);
  --ease: cubic-bezier(.2, .8, .2, 1); color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; background: var(--fond); color: var(--encre); font: 16px/1.55 Inter, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--or2); text-underline-offset: .18em; }
a:hover { color: #fff; }

/* Ciel : trois halos qui dérivent lentement + motif d'étoiles à huit branches */
.ciel { position: fixed; inset: -20%; z-index: -2; filter: blur(90px) saturate(130%); opacity: .6; pointer-events: none; }
.ciel i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: derive 30s var(--ease) infinite alternate; }
.ciel i:nth-child(1) { width: 60vw; height: 60vw; left: 0; top: -5%; background: radial-gradient(circle, #0b6e4f, transparent 65%); }
.ciel i:nth-child(2) { width: 45vw; height: 45vw; right: -5%; top: 25%; background: radial-gradient(circle, #8a5f12, transparent 65%); animation-duration: 36s; animation-delay: -10s; }
.ciel i:nth-child(3) { width: 40vw; height: 40vw; left: 30%; bottom: -10%; background: radial-gradient(circle, #0d4f63, transparent 65%); animation-duration: 42s; animation-delay: -20s; }
@keyframes derive { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(7vw, -5vh) scale(1.12); } 100% { transform: translate(-5vw, 7vh) scale(.94); } }
.motif { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='84'%3E%3Cg fill='none' stroke='%23e3b04b' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M48 11l10.8 26.4L85 48 58.8 58.6 48 85 37.2 58.6 11 48l26.2-10.6z'/%3E%3Crect x='26.4' y='26.4' width='43.2' height='43.2' transform='rotate(45 48 48)'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }

.haut, main, .bas { width: min(100% - 32px, 1200px); margin-inline: auto; }
.haut { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(18px, env(safe-area-inset-top)) 0 10px; }
.marque { display: flex; align-items: center; gap: 12px; color: var(--encre); text-decoration: none; }
.marque .etoile { width: 38px; height: 38px; color: var(--or); animation: tourne 60s linear infinite; }
.marque b { display: block; font-size: 1.05rem; letter-spacing: -.01em; }
.marque small { display: block; color: var(--doux); font-size: .78rem; }
.haut-direct { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #ff9a9d; background: rgba(229, 72, 77, .12); border: 1px solid rgba(229, 72, 77, .25); }
.haut-direct i { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: pouls 1.8s ease-out infinite; }
.cl-hors-antenne .haut-direct { color: var(--doux); background: rgba(255, 255, 255, .05); border-color: var(--ligne); }
.cl-hors-antenne .haut-direct i { background: #888; animation: none; }

.intro { text-align: center; padding: clamp(10px, 3vh, 34px) 0 clamp(14px, 3vh, 26px); }
.surtitre { margin: 0 0 8px; color: var(--or); font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(100deg, var(--or2), var(--or) 45%, #fff3d0 55%, var(--or) 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: reflet 7s ease-in-out infinite; }

/* Le lecteur occupe le plus de place possible sans jamais déborder de l'écran */
.scene { width: min(100%, calc((100svh - 230px) * 16 / 9)); min-width: min(100%, 560px); margin: 0 auto; }

.programme { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin: 22px auto 0; width: min(100%, 1000px); }
.carte { position: relative; padding: 20px 22px; border-radius: 18px; background: var(--verre); border: 1px solid var(--ligne); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; }
.carte::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 176, 75, .18), transparent 70%); pointer-events: none; }
.carte-k { display: flex; align-items: center; gap: 9px; margin: 0 0 6px; color: var(--doux); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.vu { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.vu i, .vu::before, .vu::after { content: ""; width: 3px; border-radius: 2px; background: var(--or); animation: vu 1.1s ease-in-out infinite; }
.vu::before { animation-delay: -.4s; } .vu::after { animation-delay: -.7s; }
.carte h2 { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.2; letter-spacing: -.02em; }
.carte-sens { margin: 2px 0 0; color: var(--or2); font-weight: 600; }
.carte-sens:empty { display: none; }
.carte-rec { margin: 10px 0 0; color: var(--doux); font-size: .95rem; }
.carte-restant { margin: 4px 0 0; color: var(--doux); font-size: .85rem; font-variant-numeric: tabular-nums; }
.carte-ensuite h2 { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #dfe9e4; }
.carte-ensemble { margin: 10px 0 0; color: var(--or2); font-size: .88rem; }
.carte-ensemble:empty { display: none; }
.carte[hidden] { display: none; }

.partage { margin: 30px auto 0; text-align: center; }
.partage > p { margin: 0 0 12px; color: var(--doux); font-size: .9rem; }
.partage-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pb { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 99px; border: 1px solid var(--ligne); background: rgba(255, 255, 255, .05); color: var(--encre); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background .2s, border-color .2s; }
.pb svg { width: 20px; height: 20px; }
.pb:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .1); }
.pb-wa:hover { background: #1faa52; border-color: #1faa52; }
.pb-fb:hover { background: #1877f2; border-color: #1877f2; }
.pb.copie { background: var(--vert); border-color: var(--vert); }
.pb[hidden] { display: none; }
.pb:focus-visible { outline: 3px solid var(--or2); outline-offset: 3px; }

.atouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(100%, 1000px); margin: 34px auto 0; }
.atouts div { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--ligne); background: rgba(255, 255, 255, .025); }
.atouts b { display: block; margin-bottom: 4px; font-size: .95rem; }
.atouts span { color: var(--doux); font-size: .86rem; }

.bas { padding: 40px 0 max(30px, env(safe-area-inset-bottom)); text-align: center; color: var(--doux); font-size: .9rem; }
.bas p { margin: 0 0 6px; }
.bas-petit { font-size: .78rem; opacity: .8; }

/* Entrées en cascade */
.intro > *, .scene, .programme, .partage, .atouts { animation: monte .9s var(--ease) both; }
.intro > :nth-child(2) { animation-delay: .08s; } .scene { animation-delay: .16s; } .programme { animation-delay: .28s; } .partage { animation-delay: .38s; } .atouts { animation-delay: .46s; }
@keyframes monte { from { opacity: 0; transform: translateY(22px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .7); } 70% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
@keyframes reflet { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes vu { 0%, 100% { height: 3px; } 50% { height: 12px; } }

@media (max-width: 760px) {
  .programme, .atouts { grid-template-columns: 1fr; }
  .scene { width: 100%; min-width: 0; }
  .haut-direct { display: none; }
  .ciel { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
