/* ==========================================================================
   ISLAMEDIA.FR — Feuille de style (l'apparence du site)
   --------------------------------------------------------------------------
   Charte Islamedia :
     vert profond #123B2F · ivoire #F4F0E6 · or doux #C5A15B
     vert presque noir #17241E · vert brume #DDE6DE
   Polices : Manrope ExtraBold (titres), Inter (texte), Scheherazade New (arabe)
   Sommaire :
     1. Polices          6. Verset du jour      11. Contact
     2. Couleurs         7. Chiffres            12. Pied de page
     3. Bases            8. Séries              13. Apparitions au défilement
     4. En-tête          9. Méthode             14. Mouvement réduit
     5. Accueil (hero)  10. Bientôt
   ========================================================================== */

/* 1. POLICES ---------------------------------------------------------------
   Les polices sont dans le dossier « polices » du site : aucune connexion à
   Google ou à un autre service, donc rien à déclarer côté RGPD. */
@font-face { font-family: "Manrope"; src: url("polices/manrope-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("polices/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("polices/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Lettres turques (ğ, ş, İ…) et autres lettres latines accentuées : téléchargées seulement si la page en contient */
@font-face { font-family: "Manrope"; src: url("polices/manrope-800-ext.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("polices/inter-400-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("polices/inter-600-ext.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Scheherazade New"; src: url("polices/scheherazade-new.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Avec la chadda, la kasra s’écrit sous la lettre (ٱلدِّينِ), et non sous la chadda : option cv62 de Scheherazade New */
:lang(ar) { font-feature-settings: "cv62" 1; }

/* 2. COULEURS --------------------------------------------------------------
   Mode clair par défaut, mode sombre quand <html data-theme="sombre">. */
:root {
  --vert: #123B2F;
  --nuit: #17241E;
  --ivoire: #F4F0E6;
  --or: #C5A15B;
  --or-clair: #F1DDA4;
  --brume: #DDE6DE;

  --fond: var(--ivoire);
  --fond-alt: var(--brume);
  --carte: #FBF9F3;
  --texte: var(--vert);
  --texte-doux: rgba(18, 59, 47, .76);
  --or-texte: #7D5F27;            /* or assombri : lisible sur l'ivoire */
  --bord: rgba(18, 59, 47, .13);
  --ombre: 0 18px 40px -22px rgba(18, 59, 47, .35);

  --police-titre: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-arabe: "Scheherazade New", "Amiri Quran", "Traditional Arabic", serif;

  --largeur: 1120px;
  --marge: clamp(20px, 5vw, 40px);
  --rayon: 22px;
  --entete: 72px;
  --doux: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme="sombre"] {
  --fond: var(--nuit);
  --fond-alt: #1B2B24;
  --carte: #1F3029;
  --texte: var(--ivoire);
  --texte-doux: rgba(244, 240, 230, .74);
  --or-texte: var(--or);
  --bord: rgba(244, 240, 230, .12);
  --ombre: 0 18px 40px -22px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* 3. BASES ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--police-titre); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
[lang="ar"] { font-family: var(--police-arabe); letter-spacing: 0; font-weight: 400; }
[hidden] { display: none !important; }
.or { color: var(--or-texte); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saut { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--or); color: var(--nuit); font-weight: 600; }
.saut:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 8px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.conteneur { width: min(var(--largeur), 100% - 2 * var(--marge)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(76px, 11vw, 132px); }
.entete-section { display: grid; justify-items: center; text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.surtitre {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--or-texte);
}
.surtitre::before, .surtitre::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.section__titre { margin-top: 14px; font-size: clamp(1.85rem, 3.9vw, 2.75rem); text-wrap: balance; }
.section__intro { margin-top: 16px; max-width: 58ch; color: var(--texte-doux); font-size: 1.08rem; text-wrap: pretty; }

/* Boutons */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 1.55em; border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--police-texte); text-decoration: none; cursor: pointer;
  transition: transform .35s var(--doux), box-shadow .35s, background-color .35s, color .35s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--or { background: var(--or); color: var(--nuit); box-shadow: 0 12px 30px -12px rgba(197, 161, 91, .75); }
.btn--or::after { /* reflet qui traverse le bouton au survol */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s ease;
}
.btn--or:hover::after { transform: translateX(120%); }
.btn--clair { color: var(--ivoire); background: rgba(244, 240, 230, .06); box-shadow: inset 0 0 0 1px rgba(244, 240, 230, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--clair:hover { box-shadow: inset 0 0 0 1px var(--or); color: #fff; }

/* 4. EN-TÊTE ---------------------------------------------------------------- */
.entete {
  position: fixed; z-index: 50; inset: 0 0 auto; height: var(--entete);
  color: var(--ivoire);
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.entete__in { height: 100%; width: min(var(--largeur), 100% - 2 * var(--marge)); margin-inline: auto; display: flex; align-items: center; gap: 18px; }
.entete.est-defile, .menu-ouvert .entete {
  color: var(--texte);
  background: var(--fond);
  background: color-mix(in srgb, var(--fond) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--bord);
}
.logo {
  display: inline-flex; align-items: baseline; padding: .42em 1em .48em; border-radius: 999px;
  background: var(--vert); color: var(--ivoire); box-shadow: inset 0 0 0 1.5px var(--or);
  font: 800 1.06rem/1 var(--police-titre); letter-spacing: -.01em; text-decoration: none;
  transition: opacity .45s, transform .45s var(--doux);
}
.logo__ext { color: var(--or); }
.entete:not(.est-defile) .logo { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.menu-ouvert .entete .logo { opacity: 1; transform: none; pointer-events: auto; }
.menu { margin-left: auto; display: flex; gap: 4px; }
.menu a { padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; opacity: .88; transition: opacity .25s, background-color .25s; }
.menu a:hover { opacity: 1; background: rgba(197, 161, 91, .16); }
.entete__actions { display: flex; align-items: center; gap: 2px; }
.icone-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background-color .25s; }
.icone-btn:hover { background: rgba(197, 161, 91, .18); }
.icone-btn svg { grid-area: 1 / 1; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: opacity .5s, transform .6s var(--doux); }
.ico-soleil { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="sombre"] .ico-lune { opacity: 0; transform: rotate(90deg) scale(.4); }
[data-theme="sombre"] .ico-soleil { opacity: 1; transform: none; }
/* Bouton de langue (FR / TR) */
.lien-langue { font: 700 .8rem/1 var(--police-texte); letter-spacing: .06em; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(197, 161, 91, .6); }
.lien-langue:hover { box-shadow: inset 0 0 0 1.5px var(--or); }
.burger { display: none; }
.burger span { grid-area: 1 / 1; width: 20px; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform .35s var(--doux); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .burger { display: grid; }
  .entete__actions { margin-left: auto; }
  .menu {
    position: fixed; inset: var(--entete) 0 auto; margin: 0;
    flex-direction: column; gap: 2px; padding: 12px var(--marge) 24px;
    background: var(--fond); color: var(--texte); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .45);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s, transform .35s var(--doux), visibility .3s;
    max-height: calc(100vh - var(--entete)); max-height: calc(100dvh - var(--entete)); overflow-y: auto; overscroll-behavior: contain;
  }
  .menu.ouvert { opacity: 1; visibility: visible; transform: none; }
  .menu a { padding: 14px 12px; border-radius: 12px; font-size: 1.05rem; }
}

/* 5. ACCUEIL (HERO) --------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--entete) + 40px) var(--marge) clamp(120px, 15vw, 160px);
  color: var(--ivoire);
  background: radial-gradient(130% 90% at 50% 38%, #1D4C3D 0%, var(--vert) 42%, var(--nuit) 100%);
}
/* Ciel étoilé (les étoiles sont ajoutées par script.js) */
.ciel { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.etoile { position: absolute; width: var(--t, 2px); height: var(--t, 2px); border-radius: 50%; background: var(--ivoire); opacity: .15; animation: scintille var(--d, 4s) ease-in-out var(--r, 0s) infinite alternate; }
.etoile--or { background: var(--or-clair); box-shadow: 0 0 6px rgba(241, 221, 164, .85); }
@keyframes scintille { from { opacity: .1; transform: scale(.7); } to { opacity: .95; transform: scale(1.15); } }
.filante { position: absolute; top: 15%; left: 74%; width: 150px; height: 1.5px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(244, 240, 230, .95), transparent);
  transform: rotate(-28deg); animation: filante 12s ease-in 5s infinite; }
@keyframes filante {
  0% { opacity: 0; transform: rotate(-28deg) translateX(0); }
  2% { opacity: 1; }
  8%, 100% { opacity: 0; transform: rotate(-28deg) translateX(-460px); }
}

/* Animations communes aux fonds */
@keyframes dessine { to { stroke-dashoffset: 0; } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes apparition { to { opacity: 1; } }

/* ---- Fond « Zellige doré » -------------------------------------------------
   Motif étoilé à 8 branches (zellige) qui se déploie depuis le centre, puis un
   reflet doré le parcourt de temps en temps. */
@property --deploie { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.zellige { position: absolute; inset: 0; z-index: -4; overflow: hidden; pointer-events: none; --tuile: 72.43px; }
.zellige__motif, .zellige__eclat { position: absolute; inset: 0; }
.zellige__motif {
  background: url("images/zellige.svg") center / var(--tuile) var(--tuile);
  opacity: .42;
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 var(--deploie), transparent calc(var(--deploie) + 18%)), radial-gradient(78% 58% at 50% 44%, rgba(0, 0, 0, .1) 25%, #000 100%);
  mask-image: radial-gradient(circle at 50% 44%, #000 var(--deploie), transparent calc(var(--deploie) + 18%)), radial-gradient(78% 58% at 50% 44%, rgba(0, 0, 0, .1) 25%, #000 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  animation: deploie 3.8s .1s cubic-bezier(.45, 0, .2, 1) forwards;
}
@keyframes deploie { to { --deploie: 140%; } }
.zellige__eclat {
  background: linear-gradient(112deg, transparent 43%, rgba(255, 238, 196, .95) 50%, transparent 57%) 115% 0 / 330% 100% no-repeat;
  -webkit-mask-image: url("images/zellige-plein.svg"), radial-gradient(78% 58% at 50% 44%, rgba(0, 0, 0, .2) 25%, #000 100%);
  mask-image: url("images/zellige-plein.svg"), radial-gradient(78% 58% at 50% 44%, rgba(0, 0, 0, .2) 25%, #000 100%);
  -webkit-mask-size: var(--tuile) var(--tuile), 100% 100%; mask-size: var(--tuile) var(--tuile), 100% 100%;
  -webkit-mask-position: center, center; mask-position: center, center;
  -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  opacity: .75; animation: balaye 12s 3.6s ease-in-out infinite;
}
@keyframes balaye { 0% { background-position: 115% 0; } 40%, 100% { background-position: -15% 0; } }


/* ---- Fond « Moucharabieh » --------------------------------------------
   Une fenêtre en ogive au treillis étoilé s'illumine ; des rayons de lumière
   descendent en oscillant et des grains de poussière dorée flottent. */
.mouch { position: absolute; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.mouch__rayons { position: absolute; left: 50%; top: calc(var(--entete) + 30px); width: 240vmax; height: 240vmax; margin-left: -120vmax; transform-origin: 50% 0;
  background: repeating-conic-gradient(from 150deg at 50% 0, rgba(241, 221, 164, 0) 0deg, rgba(241, 221, 164, .16) 3deg, rgba(241, 221, 164, 0) 7deg, rgba(241, 221, 164, 0) 11deg);
  -webkit-mask-image: radial-gradient(42% 30% at 50% 0, #000, transparent 100%); mask-image: radial-gradient(42% 30% at 50% 0, #000, transparent 100%);
  opacity: 0; animation: apparition 2.4s 1.2s ease forwards, oscille 16s ease-in-out infinite alternate; }
@keyframes oscille { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.mouch__svg { position: absolute; left: 50%; top: calc(var(--entete) + 6px); height: min(60vh, 560px); width: auto; translate: -50% 0; overflow: visible; }
.mouch__jour { opacity: 0; animation: illumine 2.6s .3s ease forwards, respire-jour 7s 3s ease-in-out infinite alternate; }
@keyframes illumine { to { opacity: .5; } }
@keyframes respire-jour { from { opacity: .5; } to { opacity: .34; } }
.mouch__treillis { fill: none; stroke: #0E241C; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.mouch__cadre { fill: none; stroke: var(--or); stroke-width: 2.2; }
.mouch__cadre--in { stroke-width: 1.2; opacity: .55; }
.hero--moucharabieh .hero__contenu { text-shadow: 0 2px 22px rgba(8, 22, 17, .9); }
.hero--moucharabieh .etoile { background: #F6E7BE; box-shadow: 0 0 4px rgba(246, 231, 190, .9); animation: poussiere var(--d, 6s) linear var(--r, 0s) infinite; }
@keyframes poussiere { 0% { opacity: 0; transform: translate(0, 24px); } 25% { opacity: .85; } 100% { opacity: 0; transform: translate(14px, -70px); } }
.hero--moucharabieh .filante { display: none; }

/* ---- Fond « Mosquée de nuit » (celui du site) ------------------------------------------
   Ciel étoilé (avec un zellige très léger) au-dessus d'une silhouette de mosquée :
   le contour doré se trace, puis les fenêtres s'allument une à une. */
.hero--nuit { background: radial-gradient(110% 62% at 50% 100%, #2E5D4B 0%, var(--vert) 42%, var(--nuit) 100%); padding-bottom: clamp(200px, 33vh, 340px); }
.zellige--ciel .zellige__motif { opacity: .3;
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 var(--deploie), transparent calc(var(--deploie) + 18%)), linear-gradient(#000, rgba(0, 0, 0, .3) 42%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 44%, #000 var(--deploie), transparent calc(var(--deploie) + 18%)), linear-gradient(#000, rgba(0, 0, 0, .3) 42%, transparent 72%); }
.mosquee { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; height: clamp(160px, 27vh, 300px); pointer-events: none; }
.mosquee__svg { width: 100%; height: 100%; }
.mosquee__plein { fill: #0D1B15; }
.mosquee__contour { fill: none; stroke: var(--or); stroke-width: 1.7; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: dessine 3.6s .3s cubic-bezier(.5, 0, .2, 1) forwards; }
.mosquee .fen { fill: #F1DDA4; opacity: 0; animation: allume-fen .9s calc(2.6s + var(--k) * 65ms) ease forwards, vacille 4.5s calc(4s + var(--k) * 120ms) ease-in-out infinite alternate; }
@keyframes allume-fen { to { opacity: .92; } }
@keyframes vacille { from { opacity: .92; } to { opacity: .55; } }
.mosquee .anneau { fill: none; stroke: var(--or); stroke-width: 1.6; opacity: .9; }
.mosquee .alem { fill: var(--or); }
.hero--nuit .defiler, .hero--nuit .arcades { display: none; }
@media (max-width: 700px) { .hero--nuit .lune { top: calc(var(--entete) - 6px); } }

/* Croissant de lune */
.lune { position: absolute; z-index: -1; top: clamp(96px, 17vh, 160px); right: clamp(18px, 9vw, 150px); width: clamp(52px, 7.5vw, 100px);
  filter: drop-shadow(0 0 22px rgba(197, 161, 91, .5)); animation: flotte 8s ease-in-out infinite alternate; }
.lune svg { width: 100%; height: auto; }
@keyframes flotte { from { transform: translateY(-7px) rotate(-5deg); } to { transform: translateY(8px) rotate(3deg); } }

/* Lanternes suspendues qui se balancent */
.lanterne { position: absolute; z-index: -1; top: 0; transform-origin: 50% 0; animation: balance 6.5s ease-in-out infinite alternate; }
.lanterne svg { width: 100%; height: auto; overflow: visible; }
.lanterne--1 { left: clamp(10px, 7vw, 130px); width: clamp(34px, 4.6vw, 60px); animation-delay: -1.4s; }
.lanterne--2 { left: clamp(60px, 14.5vw, 250px); width: clamp(26px, 3.4vw, 46px); animation-duration: 7.6s; animation-delay: -3.2s; }
.lueur { animation: lueur 2.8s ease-in-out infinite alternate; }
@keyframes balance { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
@keyframes lueur { 0% { opacity: .55; } 35% { opacity: .95; } 60% { opacity: .72; } 100% { opacity: 1; } }
@media (max-width: 640px) { .lanterne--2 { display: none; } }

/* Contenu du hero */
.hero__contenu { position: relative; z-index: 1; width: min(820px, 100%); }
.basmala { display: inline-block; padding: .05em .4em .15em; font-size: clamp(1.5rem, 4.2vw, 2.35rem); line-height: 2; color: var(--ivoire); opacity: 0; animation: monte 1.2s .15s var(--doux) forwards; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .basmala__texte {
    background: linear-gradient(100deg, var(--ivoire) 0 40%, var(--or-clair) 50%, var(--ivoire) 60% 100%) 100% 0 / 260% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: reflet 7s 1.8s ease-in-out infinite;
  }
}
@keyframes reflet { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0 0; } }

.logo-zone { position: relative; display: inline-block; margin-top: clamp(4px, 1.4vw, 14px); }
.halo { position: absolute; z-index: -1; inset: -55% -18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(197, 161, 91, .3), transparent 72%);
  opacity: 0; animation: apparition 1.6s 1.2s ease forwards, respire 6s 2.8s ease-in-out infinite alternate; }
@keyframes respire { from { transform: scale(.94); } to { transform: scale(1.06); } }

@property --trace { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.logo-hero {
  position: relative; display: inline-flex; align-items: baseline;
  padding: .32em .9em .4em; border-radius: 999px;
  font: 800 clamp(2.45rem, 9.2vw, 5rem)/1 var(--police-titre); letter-spacing: -.025em;
  color: var(--ivoire); background: rgba(23, 36, 30, .58);
  box-shadow: 0 30px 80px -34px rgba(0, 0, 0, .75);
}
.logo-hero::before { /* bordure dorée qui se trace autour du cartouche */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: clamp(1.6px, .26vw, 2.6px);
  --trace: 0%;
  background: conic-gradient(from 0deg, var(--or) var(--trace), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: trace 1.5s .4s cubic-bezier(.65, .05, .25, 1) forwards;
}
@keyframes trace { to { --trace: 100%; } }
.logo-hero .lettre { display: inline-block; opacity: 0; transform: translateY(.32em); filter: blur(6px);
  animation: lettre .7s var(--doux) forwards; animation-delay: calc(.75s + var(--i) * 55ms); }
.logo-hero__ext { display: inline-block; color: var(--or); opacity: 0; transform: translateY(.32em) scale(.9);
  animation: lettre .8s 1.35s var(--doux) forwards; }
@keyframes lettre { to { opacity: 1; transform: none; filter: none; } }
.brillance { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.brillance::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .17), transparent);
  transform: translateX(-120%) skewX(-18deg); animation: brille 8s 3.2s ease-in-out infinite; }
@keyframes brille { 0% { transform: translateX(-120%) skewX(-18deg); } 28%, 100% { transform: translateX(330%) skewX(-18deg); } }

.hero__slogan { margin: clamp(26px, 4vw, 38px) auto 0; max-width: 19ch; font: 800 clamp(1.65rem, 4.5vw, 3rem)/1.13 var(--police-titre); letter-spacing: -.025em; text-wrap: balance; }
.hero .or { color: var(--or); }
.hero__intro { margin: 18px auto 0; max-width: 54ch; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(244, 240, 230, .8); text-wrap: pretty; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.apparait { opacity: 0; animation: monte 1s var(--doux) forwards; animation-delay: var(--delai, 0s); }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.defiler { position: absolute; left: 50%; bottom: clamp(66px, 9vw, 100px); width: 26px; height: 42px; border-radius: 14px; translate: -50% 0;
  box-shadow: inset 0 0 0 1.5px rgba(244, 240, 230, .45); opacity: 0; animation: monte 1s 2.3s forwards; }
.defiler::before { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--or); animation: molette 1.8s ease-in-out infinite; }
@keyframes molette { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Rangée d'arcades qui ferme le hero */
.arcades { position: absolute; left: 0; bottom: -1px; z-index: 0; width: 100%; height: clamp(30px, 5.4vw, 72px); color: var(--fond); transition: color .5s; }
.arcades .plein { fill: currentColor; }
.arcades .filet { fill: none; stroke: var(--or); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0; animation: apparition 1.4s 1.6s ease forwards; }

/* 6. VERSET DU JOUR --------------------------------------------------------- */
.verset .conteneur { max-width: 840px; }
.mihrab { position: relative; max-width: 700px; margin: 0 auto; }
.mihrab__arc { width: 100%; height: auto; overflow: visible; }
.mihrab__arc path { fill: none; stroke: var(--or); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mihrab__arc .apex { fill: var(--or); transform-box: fill-box; transform-origin: center; }
.mihrab__corps { position: relative; margin-top: -2px; padding: clamp(6px, 2vw, 18px) clamp(24px, 8%, 70px) clamp(36px, 5.5vw, 56px); text-align: center; }
.pilier { position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--or); transform-origin: bottom; }
.pilier--1 { left: .17%; } .pilier--2 { right: .17%; }
.pilier--3 { left: 3.67%; opacity: .55; } .pilier--4 { right: 3.67%; opacity: .55; }
.socle { position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--or); transform-origin: center; }
.js .mihrab .pilier { transform: scaleY(0); transition: transform 1.1s .15s cubic-bezier(.6, .05, .3, 1); }
.js .mihrab .socle { transform: scaleX(0); transition: transform .9s cubic-bezier(.6, .05, .3, 1); }
.js .mihrab .mihrab__arc { clip-path: inset(100% 0 0 0); transition: clip-path 1s 1s cubic-bezier(.6, .05, .3, 1); }
.js .mihrab .apex { opacity: 0; transform: scale(.2) rotate(-90deg); transition: opacity .6s 1.85s, transform .9s 1.85s var(--doux); }
.js .mihrab.visible .pilier { transform: scaleY(1); }
.js .mihrab.visible .socle { transform: scaleX(1); }
.js .mihrab.visible .mihrab__arc { clip-path: inset(0 0 0 0); }
.js .mihrab.visible .apex { opacity: 1; transform: none; }

.verset__bloc { margin: 0; }
.verset__ar { font-size: clamp(1.8rem, 5vw, 2.9rem); line-height: 2.15; color: var(--texte); padding-top: .15em; }
.verset__ar .mot { display: inline-block; opacity: 0; transform: translateY(.3em); filter: blur(4px); animation: lettre .7s var(--doux) forwards; animation-delay: calc(var(--base, .2s) + var(--k) * 90ms); }
.js .mihrab:not(.visible) .mot { animation-play-state: paused; }
.mihrab.visible { --base: 1.2s; }
.mihrab.deja-vu { --base: .05s; }
.verset__fr { margin: 14px auto 0; max-width: 46ch; font-size: clamp(1.05rem, 2vw, 1.22rem); line-height: 1.6; color: var(--texte-doux); text-wrap: balance; }
.verset__ref { display: block; margin-top: 18px; text-wrap: balance; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--or-texte); }
.verset__fr, .verset__ref { transition: opacity .35s, transform .35s; }
.mihrab.change .verset__ar, .mihrab.change .verset__fr, .mihrab.change .verset__ref { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.verset__nav { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.verset__nav button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--carte); color: var(--texte); box-shadow: inset 0 0 0 1px var(--bord); cursor: pointer; transition: box-shadow .25s, color .25s, transform .25s; }
.verset__nav button:hover { box-shadow: inset 0 0 0 1px var(--or); color: var(--or-texte); transform: translateY(-1px); }
.verset__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.points { display: flex; gap: 8px; }
.points span { width: 7px; height: 7px; border-radius: 4px; background: var(--bord); transition: width .35s var(--doux), background-color .35s; }
.points span.actif { width: 22px; background: var(--or); }
.source { margin: 22px auto 0; max-width: 64ch; text-align: center; font-size: .82rem; line-height: 1.6; color: var(--texte-doux); }
.source a { color: var(--or-texte); text-underline-offset: 3px; }

/* 7. CHIFFRES --------------------------------------------------------------- */
.chiffres { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(58px, 8vw, 90px); background: var(--vert); color: var(--ivoire); }
.chiffres::before, .contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("images/motif.svg") 0 0 / 80px 80px; opacity: .07; }
.chiffres__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: center; }
.chiffre__nb { font: 800 clamp(2.7rem, 6vw, 4.2rem)/1 var(--police-titre); letter-spacing: -.03em; color: var(--or); font-variant-numeric: tabular-nums; }
.chiffre__label { margin-top: 10px; color: rgba(244, 240, 230, .82); }
@media (max-width: 640px) { .chiffres__grille { grid-template-columns: 1fr; gap: 34px; } }

/* 8. SÉRIES ------------------------------------------------------------------ */
.grille-series { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 760px) { .grille-series { grid-template-columns: 1fr; } }
.carte { position: relative; overflow: hidden; border-radius: var(--rayon); background: var(--carte); box-shadow: inset 0 0 0 1px var(--bord), var(--ombre); }
.carte:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(197, 161, 91, .6), 0 28px 50px -26px rgba(18, 59, 47, .45); }
.serie { display: flex; flex-direction: column; }
.serie__visuel { position: relative; display: grid; place-items: center; height: 200px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #1D4C3D, var(--vert) 55%, var(--nuit)); }
.serie__visuel::after { content: ""; position: absolute; inset: 0; background: url("images/motif.svg") 0 0 / 60px 60px; opacity: .06; pointer-events: none; }
.serie__visuel svg { width: 240px; height: 180px; overflow: visible; }
.serie__corps { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px 26px 26px; }
.serie__tag { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--or-texte); }
.serie h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }
.serie__texte { color: var(--texte-doux); }
.serie__verset { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; border-top: 1px solid var(--bord); }
.serie__ar { font-size: 1.5rem; line-height: 2; }
.serie__ref { font-size: .8rem; color: var(--texte-doux); }
.serie__lien { display: inline-flex; align-items: center; gap: .4em; margin-top: 6px; font-weight: 600; color: var(--or-texte); text-decoration: none; }
.serie__lien:hover { text-decoration: underline; text-underline-offset: 4px; }
.serie__lien svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Animations des vignettes (dessinées en SVG dans index.html) */
.anim-onde .onde { fill: none; stroke: var(--or); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; opacity: 0; animation: onde 4s cubic-bezier(.2, .6, .3, 1) infinite; animation-delay: calc(var(--i) * -1s); }
@keyframes onde { 0% { transform: scale(.05); opacity: 0; } 12% { opacity: .95; } 100% { transform: scale(1); opacity: 0; } }
.noyau { fill: var(--or-clair); transform-box: fill-box; transform-origin: center; animation: noyau 2s ease-in-out infinite alternate; }
@keyframes noyau { from { transform: scale(.8); } to { transform: scale(1.25); } }
.anim-onde .eclat { fill: var(--ivoire); animation: eclat 4s ease-out infinite; animation-delay: calc(var(--i) * -.33s); }
@keyframes eclat { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(var(--x), var(--y)); opacity: 0; } }

.anim-miel .alveole { fill: rgba(197, 161, 91, 0); stroke: var(--or); stroke-width: 1.2; stroke-linejoin: round; animation: miel 4.2s ease-in-out infinite; animation-delay: calc(var(--i) * .6s); }
@keyframes miel { 0%, 100% { fill: rgba(197, 161, 91, 0); } 18% { fill: rgba(197, 161, 91, .6); } 42% { fill: rgba(197, 161, 91, 0); } }
.anim-miel .abeille { animation: vol 7s ease-in-out infinite; }
@keyframes vol {
  0%, 100% { transform: translate(-62px, -34px) rotate(12deg); }
  25% { transform: translate(44px, -46px) rotate(-8deg); }
  50% { transform: translate(66px, 18px) rotate(14deg); }
  75% { transform: translate(-22px, 44px) rotate(-12deg); }
}
.anim-miel .aile { fill: rgba(244, 240, 230, .7); transform-box: fill-box; transform-origin: 50% 100%; animation: bat .14s ease-in-out infinite alternate; }
@keyframes bat { from { transform: scaleY(1); } to { transform: scaleY(.4); } }

.anim-25 .point { fill: var(--ivoire); opacity: .18; transform-box: fill-box; transform-origin: center; animation: allume 6s ease-in-out infinite; animation-delay: calc(var(--i) * .16s); }
@keyframes allume { 0% { opacity: .18; transform: scale(.7); } 8% { opacity: 1; transform: scale(1.5); fill: var(--or-clair); } 16%, 70% { opacity: .95; transform: scale(1); fill: var(--or); } 86%, 100% { opacity: .18; transform: scale(.7); } }
.anim-25 .nb { font: 800 40px var(--police-titre); fill: var(--or); letter-spacing: -1px; }
.anim-25 .anneau, .anim-un .cercle { fill: none; stroke: rgba(244, 240, 230, .25); stroke-width: 1; stroke-dasharray: 2 6; transform-box: fill-box; transform-origin: center; animation: tourne 50s linear infinite; }

.anim-un .rayon { stroke: var(--or); stroke-width: 1.3; stroke-linecap: round; opacity: .15; animation: rayon 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }
@keyframes rayon { 0%, 100% { opacity: .15; } 50% { opacity: .95; } }
.anim-un .etoile8 { fill: none; stroke: var(--or); stroke-width: 1.2; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: tourne 36s linear infinite; }
.anim-un .cercle { animation-direction: reverse; }

/* 9. MÉTHODE ---------------------------------------------------------------- */
.methode { background: var(--fond-alt); transition: background-color .5s; }
.grille-methode { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .grille-methode { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grille-methode { grid-template-columns: 1fr; } }
.engagement { padding: 28px 24px 26px; }
.pastille { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; background: var(--vert); box-shadow: inset 0 0 0 1px rgba(197, 161, 91, .45); }
.pastille svg { width: 30px; height: 30px; fill: none; stroke: var(--or); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.pastille .trait { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s .35s cubic-bezier(.6, .05, .3, 1); }
.js .engagement:not(.visible) .trait { stroke-dashoffset: 1; }
.engagement h3 { margin-bottom: 8px; font-size: 1.15rem; }
.engagement p { font-size: .98rem; color: var(--texte-doux); }

/* 10. BIENTÔT ---------------------------------------------------------------- */
.bientot { overflow: hidden; }
.bientot__lanterne { width: 40px; margin: 0 auto 12px; transform-origin: 50% 0; animation: balance 5.5s ease-in-out infinite alternate; }
.bientot__lanterne svg { width: 100%; height: auto; overflow: visible; }
.liste-bientot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.prochain { padding: 26px 22px 24px; }
.prochain__ico { width: 42px; height: 42px; margin-bottom: 16px; color: var(--or-texte); }
.prochain__ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.prochain h3 { margin-bottom: 6px; font-size: 1.08rem; }
.prochain p { font-size: .95rem; color: var(--texte-doux); }
.badge { position: absolute; top: 18px; right: 18px; padding: 5px 10px; border-radius: 999px; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--or-texte);
  box-shadow: inset 0 0 0 1px rgba(197, 161, 91, .6);
  background: linear-gradient(100deg, transparent 30%, rgba(197, 161, 91, .28) 50%, transparent 70%) 200% 0 / 250% 100%;
  animation: badge 4.5s ease-in-out infinite; }
@keyframes badge { 0% { background-position: 200% 0; } 60%, 100% { background-position: -60% 0; } }

/* 11. CONTACT ----------------------------------------------------------------- */
.contact { overflow: hidden; isolation: isolate; text-align: center; background: var(--vert); color: var(--ivoire); }
.contact .surtitre { color: var(--or); }
.contact .section__intro { color: rgba(244, 240, 230, .8); margin-inline: auto; }
.contact__boutons { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact__bientot { margin-top: 26px; color: rgba(244, 240, 230, .85); }
.contact__etoile { width: 64px; margin: 0 auto 20px; }
.contact__etoile svg { width: 100%; height: auto; animation: tourne 30s linear infinite; }
.contact__etoile path { fill: none; stroke: var(--or); stroke-width: 1.4; stroke-linejoin: round; }

/* 12. PIED DE PAGE ------------------------------------------------------------- */
.pied { padding: 54px 0 34px; background: var(--nuit); color: rgba(244, 240, 230, .78); font-size: .92rem; border-top: 1px solid rgba(244, 240, 230, .08); }
.pied__haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.pied__slogan { margin-top: 12px; }
.pied__reseaux { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.pied__reseaux span { color: rgba(244, 240, 230, .62); }
.pied__reseaux a { font-weight: 600; }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pied a { color: var(--ivoire); text-decoration: none; }
.pied a:hover { color: var(--or); }
.pied__sources { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(244, 240, 230, .12); font-size: .8rem; line-height: 1.7; color: rgba(244, 240, 230, .62); }
.pied__sources a { color: rgba(244, 240, 230, .85); text-decoration: underline; text-underline-offset: 3px; }

/* Page simple (mentions légales) */
.page-simple .entete { color: var(--texte); background: var(--fond); box-shadow: 0 1px 0 var(--bord); }
.page-simple .entete .logo { opacity: 1; transform: none; pointer-events: auto; }
.page-texte { padding: calc(var(--entete) + 56px) 0 90px; }
.page-texte .conteneur { max-width: 760px; }
.page-texte h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 12px 0 10px; }
.page-texte h2 { margin: 40px 0 10px; font-size: 1.3rem; }
.page-texte p, .page-texte li { color: var(--texte-doux); }
.page-texte p + p { margin-top: 10px; }
.page-texte ul { padding-left: 1.2em; }
.page-texte a { color: var(--or-texte); text-underline-offset: 3px; }
.a-completer { padding: 1px 6px; border-radius: 6px; background: rgba(197, 161, 91, .2); color: var(--texte); }

/* 15. LE CORAN (sommaire et pages de sourate) ------------------------------------ */
.page-coran { background: var(--fond); }
.coran { padding-top: var(--entete); min-height: 70vh; }
.menu a[aria-current="page"] { background: rgba(197, 161, 91, .18); opacity: 1; }

/* Bandeau d'en-tête (sommaire) et cartouche de sourate */
.coran-tete, .sourate-tete { position: relative; isolation: isolate; text-align: center; padding: clamp(34px, 6vw, 64px) 0 clamp(26px, 4vw, 40px); }
.coran-tete::before, .sourate-tete::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background: url("images/zellige.svg") center / 72.43px 72.43px;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
[data-theme="sombre"] .coran-tete::before, [data-theme="sombre"] .sourate-tete::before { opacity: .14; }
.coran-tete__titre, .sourate-tete__titre { margin-top: 12px; font-size: clamp(1.9rem, 5vw, 2.9rem); text-wrap: balance; }
.coran-tete__intro { margin: 14px auto 0; max-width: 52ch; color: var(--texte-doux); text-wrap: pretty; }
.bandeau-provisoire { margin: 18px auto 0; max-width: 620px; padding: 10px 16px; border-radius: 14px; font-size: .9rem; line-height: 1.5;
  background: rgba(197, 161, 91, .16); box-shadow: inset 0 0 0 1px rgba(197, 161, 91, .55); color: var(--texte); }

.recherche-sourate { position: relative; display: block; max-width: 520px; margin: 26px auto 0; }
.recherche-sourate svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; translate: 0 -50%; fill: none; stroke: var(--or-texte); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.recherche-sourate input { width: 100%; height: 52px; padding: 0 18px 0 46px; border: 0; border-radius: 999px; font: inherit; font-size: 1rem; color: var(--texte);
  background: var(--carte); box-shadow: inset 0 0 0 1px var(--bord), var(--ombre); -webkit-appearance: none; appearance: none; }
.recherche-sourate input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--or), var(--ombre); }

.liste-sourates { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.sourate-carte { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; border-radius: 18px; text-decoration: none; color: var(--texte);
  background: var(--carte); box-shadow: inset 0 0 0 1px var(--bord); transition: box-shadow .25s, transform .25s var(--doux); }
.sourate-carte:hover, .sourate-carte:focus-visible { box-shadow: inset 0 0 0 1.5px var(--or), var(--ombre); transform: translateY(-2px); }
.num-etoile { position: relative; display: grid; place-items: center; flex: none; width: 46px; height: 46px; font: 700 .86rem/1 var(--police-texte); color: var(--texte); }
.num-etoile::before, .num-etoile::after { content: ""; position: absolute; inset: 7px; border: 1.5px solid var(--or); border-radius: 3px; }
.num-etoile::after { transform: rotate(45deg); }
.num-etoile span { position: relative; }
.sourate-carte__noms { display: grid; min-width: 0; line-height: 1.3; }
.sourate-carte__nom { font: 800 1.05rem/1.25 var(--police-titre); letter-spacing: -.01em; }
.sourate-carte__sens { color: var(--texte-doux); font-size: .92rem; }
.sourate-carte__meta { margin-top: 3px; font-size: .78rem; letter-spacing: .02em; color: var(--or-texte); }
.sourate-carte__ar { margin-left: auto; font-size: 1.55rem; line-height: 1.4; color: var(--texte); white-space: nowrap; }
.liste-vide { margin: 26px 0; text-align: center; color: var(--texte-doux); }
/* Résultat de la recherche d'un verset (« 3:13 ») */
.resultat-verset { max-width: 520px; margin: 12px auto 0; color: var(--texte-doux); font-size: .95rem; text-wrap: pretty; }
.resultat-verset a { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; padding: 14px 20px; border-radius: 18px;
  text-align: left; text-decoration: none; color: var(--texte); background: var(--carte); box-shadow: inset 0 0 0 1.5px var(--or), var(--ombre); }
.resultat-verset a span { font-weight: 600; color: var(--or-texte); white-space: nowrap; }
.resultat-verset a:hover { transform: translateY(-1px); }

.cartouche-sourate { position: relative; max-width: 440px; margin: 18px auto 0; padding: 14px 40px 18px; }
.cartouche-sourate__cadre { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cartouche-sourate__cadre path { fill: none; stroke: var(--or); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.cartouche-sourate__cadre path + path { opacity: .5; }
.cartouche-sourate__ar { position: relative; font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.6; color: var(--texte); }
.fil { font-size: .85rem; color: var(--texte-doux); }
.fil a { color: var(--or-texte); font-weight: 600; text-decoration: none; }
.sourate-tete__titre { font-size: clamp(1.6rem, 4.6vw, 2.4rem); }
.sourate-tete__num { color: var(--or-texte); }
.sourate-tete__sens { font-weight: 800; color: var(--texte-doux); }
.sourate-tete__meta { margin-top: 10px; font-size: .92rem; color: var(--texte-doux); }
.sourate-tete__meta a { color: var(--or-texte); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Barre de réglages (collée sous l'en-tête) */
.barre-lecture { position: sticky; top: var(--entete); z-index: 20; background: var(--fond); background: color-mix(in srgb, var(--fond) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--bord), 0 -1px 0 var(--bord); }
.barre-lecture__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding-block: 10px; }
.langues, .taille { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--fond-alt); }
.langues button, .taille button { min-width: 44px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; font: 600 .88rem/1 var(--police-texte); color: var(--texte-doux);
  background: transparent; cursor: pointer; transition: background-color .2s, color .2s; }
.langues button [lang="ar"] { font-size: 1.15rem; font-family: var(--police-arabe); }
.langues button[aria-pressed="true"] { background: var(--vert); color: var(--ivoire); }
[data-theme="sombre"] .langues button[aria-pressed="true"] { background: var(--or); color: var(--nuit); }
.taille button { font-size: 1rem; }
.aller select { height: 44px; max-width: 210px; padding: 0 34px 0 14px; border: 0; border-radius: 999px; font: 600 .88rem var(--police-texte); color: var(--texte);
  background: var(--fond-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23C5A15B' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center / 12px no-repeat;
  -webkit-appearance: none; appearance: none; }
.sourate-tete .aller { display: inline-block; margin-top: 16px; }
.sourate-tete .aller select { max-width: 280px; }
@media (max-width: 520px) {
  .barre-lecture__in { flex-wrap: nowrap; gap: 8px; padding-block: 8px; }
  .langues button { min-width: 0; padding: 0 10px; }
  .taille button { min-width: 38px; padding: 0 8px; }
}

/* Versets */
.lecture { max-width: 860px; padding-bottom: 30px; }
.basmala-sourate { margin: 26px 0 8px; padding: 18px 0 22px; text-align: center; border-bottom: 1px solid var(--bord); }
.basmala-sourate .ar { font-size: calc(1.7rem + var(--taille-ar, 2) * .22rem); line-height: 2; }
.basmala-sourate .fr, .basmala-sourate .tr { margin-top: 4px; font-size: .95rem; color: var(--texte-doux); }
.v { padding: 18px 0 22px; border-bottom: 1px solid var(--bord); scroll-margin-top: calc(var(--entete) + 76px); }
.v:target { background: linear-gradient(90deg, transparent, rgba(197, 161, 91, .12), transparent); }
/* Versets traduits ensemble (meal de la Diyanet) : un bloc, l'arabe de chaque verset puis la traduction */
.ayet { scroll-margin-top: calc(var(--entete) + 76px); border-radius: 8px; transition: background-color .4s; }
.ayet:target { background: rgba(197, 161, 91, .2); box-shadow: 0 0 0 4px rgba(197, 161, 91, .2); }
.v__tete { display: flex; align-items: center; gap: 10px; }
.num { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; font: 700 .8rem/1 var(--police-texte); letter-spacing: .02em;
  color: var(--or-texte); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(197, 161, 91, .55); }
.num:hover { background: rgba(197, 161, 91, .14); }
.sajda { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  color: var(--ivoire); background: var(--vert); }
.sajda span { font-family: var(--police-arabe); font-size: 1.1rem; }
.v .ar { margin-top: 8px; font-size: calc(1.55rem + var(--taille-ar, 2) * .3rem); line-height: 2.2; text-align: right; color: var(--texte); }
.fin-ayah { color: var(--or-texte); white-space: nowrap; }
.v .fr, .v .tr { margin-top: 10px; font-size: 1.04rem; line-height: 1.7; color: var(--texte); text-wrap: pretty; }
.note { margin-top: 8px; font-size: .86rem; line-height: 1.55; color: var(--texte-doux); }
.note::before { content: "Note\00a0: "; font-weight: 600; color: var(--or-texte); }
.note--tr::before { content: "Not\00a0: "; }
.sans-ar .lecture .ar, .sans-fr .lecture .fr, .sans-tr .lecture .tr,
.sans-fr .lecture .note--fr, .sans-tr .lecture .note--tr { display: none; }
.repere-juz { display: flex; align-items: center; gap: 14px; margin: 26px 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--or-texte); }
.repere-juz::before, .repere-juz::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--or)); }
.repere-juz::after { transform: scaleX(-1); }
@media (min-width: 900px) { .v .ar { font-size: calc(1.8rem + var(--taille-ar, 2) * .32rem); } }

.voisins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 34px 0 10px; }
.voisin { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; text-decoration: none; color: var(--texte); background: var(--carte); box-shadow: inset 0 0 0 1px var(--bord); }
.voisin:hover { box-shadow: inset 0 0 0 1.5px var(--or); }
.voisin--suiv { text-align: right; grid-column: 2; }
.voisin__dir { font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--or-texte); }
.voisin__nom { font: 800 1.02rem/1.25 var(--police-titre); }
.prochain--dispo { box-shadow: inset 0 0 0 1.5px var(--or), var(--ombre); }
.badge--dispo { background: var(--vert); color: var(--ivoire); }
.lien-carte { color: inherit; text-decoration: none; }
.lien-carte::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.sources-coran { margin: 30px 0 46px; padding: 22px 22px 18px; border-radius: 20px; background: var(--fond-alt); font-size: .9rem; line-height: 1.6; }
.sources-coran h2 { font-size: 1.12rem; }
.sources-coran ul { margin: 12px 0 0; padding-left: 1.1em; display: grid; gap: 8px; }
.sources-coran a { color: var(--or-texte); }
.sources-coran__note { margin-top: 14px; font-style: italic; color: var(--texte-doux); }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80; translate: -50% 0; padding: 12px 18px; border-radius: 999px;
  background: var(--vert); color: var(--ivoire); font-size: .92rem; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }

/* Accueil : bloc « Lire le Coran » */
.coran-accueil { text-align: center; }
.coran-accueil__ar { font-family: var(--police-arabe); font-size: clamp(2rem, 6vw, 3rem); line-height: 1.7; color: var(--texte); }

/* 16. HORAIRES DE PRIÈRE (page et encart de l'accueil) ---------------------------- */
.page-horaires { background: var(--fond); }
.horaires { padding-top: var(--entete); min-height: 70vh; }
.horaires-tete { position: relative; isolation: isolate; text-align: center; padding: clamp(30px, 5vw, 56px) 0 clamp(22px, 3.5vw, 34px); }
.horaires-tete::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background: url("images/zellige.svg") center / 72.43px 72.43px;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
[data-theme="sombre"] .horaires-tete::before { opacity: .14; }
.horaires-tete__titre { margin-top: 12px; font-size: clamp(1.8rem, 5vw, 2.7rem); text-wrap: balance; }
.horaires-tete__intro { margin: 12px auto 0; max-width: 56ch; color: var(--texte-doux); text-wrap: pretty; }

.horaires__grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .horaires__grille { grid-template-columns: minmax(0, 1fr); } }
.h-carte { position: relative; padding: clamp(20px, 3vw, 28px); border-radius: var(--rayon); background: var(--carte); box-shadow: inset 0 0 0 1px var(--bord), var(--ombre); }
.h-carte h2 { font-size: 1.15rem; }

.h-jour__tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--bord); }
.h-jour__ville { font-size: clamp(1.4rem, 3.6vw, 1.75rem) !important; }
.h-jour__meta { margin-top: 4px; color: var(--texte-doux); font-size: .92rem; }
.h-jour__meta span:first-letter { text-transform: uppercase; }
.h-prochaine { display: inline-grid; gap: 2px; padding: 8px 14px; border-radius: 14px; background: rgba(197, 161, 91, .14); box-shadow: inset 0 0 0 1px rgba(197, 161, 91, .5); font-size: .8rem; line-height: 1.3; }
.h-prochaine span { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--or-texte); font-size: .68rem; }
.h-prochaine strong { font-size: .98rem; }
.h-prochaine:has(strong:empty) { display: none; }

.h-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.h-priere { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 11px 12px; transition: background-color .3s; }
.h-priere + .h-priere { border-top: 1px solid var(--bord); }
.h-priere__nom { font: 800 1.06rem/1.2 var(--police-titre); letter-spacing: -.01em; }
.h-priere__nom small { display: block; margin-top: 2px; font: 600 .74rem/1 var(--police-texte); letter-spacing: .06em; color: var(--or-texte); }
.h-priere__ar { font-size: 1.45rem; line-height: 1.2; color: var(--texte-doux); }
.h-priere__heure { min-width: 4.2ch; text-align: right; font: 700 1.35rem/1 var(--police-texte); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.h-priere--lever .h-priere__nom, .h-priere--lever .h-priere__heure { color: var(--texte-doux); font-weight: 600; }
.h-priere--lever .h-priere__nom { font-family: var(--police-texte); font-size: .95rem; }
.h-priere.est-prochaine { border-radius: 14px; background: rgba(197, 161, 91, .16); box-shadow: inset 0 0 0 1.5px var(--or); border-top-color: transparent; }
.h-priere.est-prochaine + .h-priere { border-top-color: transparent; }
.h-priere.est-estimee .h-priere__heure::after { content: "*"; margin-left: 2px; color: var(--or-texte); }
.h-noscript { margin-top: 14px; color: var(--texte-doux); }

.h-reglages { display: grid; gap: 10px; }
.h-reglages label, .h-etiquette { margin-top: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--or-texte); }
.h-ville-actuelle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-weight: 600; }
.h-ville-actuelle span + span { color: var(--texte-doux); font-weight: 400; font-size: .92rem; }
.h-recherche { position: relative; }
.h-recherche svg { position: absolute; left: 15px; top: 50%; width: 19px; height: 19px; translate: 0 -50%; fill: none; stroke: var(--or-texte); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.h-recherche input { width: 100%; height: 50px; padding: 0 16px 0 44px; border: 0; border-radius: 999px; font: inherit; font-size: 1rem; color: var(--texte);
  background: var(--fond); box-shadow: inset 0 0 0 1px var(--bord); -webkit-appearance: none; appearance: none; }
.h-recherche input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--or); }
.h-resultats { position: absolute; z-index: 30; inset: calc(100% + 6px) 0 auto; margin: 0; padding: 6px; list-style: none; border-radius: 18px; background: var(--carte);
  box-shadow: inset 0 0 0 1px var(--bord), 0 22px 40px -18px rgba(0, 0, 0, .45); max-height: 340px; overflow: auto; }
.h-resultats li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.h-resultats li:hover, .h-resultats li.actif { background: rgba(197, 161, 91, .18); }
.h-option__nom { font-weight: 600; }
.h-option__autre { font-weight: 400; color: var(--texte-doux); }
.h-option__region { font-size: .84rem; color: var(--texte-doux); }
.h-resultats .h-vide { cursor: default; color: var(--texte-doux); }
.h-bouton { display: inline-flex; align-items: center; justify-self: start; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 .95rem/1 var(--police-texte); color: var(--texte); background: var(--fond-alt); transition: background-color .25s, box-shadow .25s; }
.h-bouton:hover { box-shadow: inset 0 0 0 1.5px var(--or); }
.h-bouton:disabled { opacity: .6; cursor: progress; }
.h-bouton svg { width: 18px; height: 18px; fill: none; stroke: var(--or-texte); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h-message { padding: 10px 14px; border-radius: 12px; font-size: .9rem; background: rgba(197, 161, 91, .14); }
.h-select { width: 100%; height: 48px; padding: 0 40px 0 16px; border: 0; border-radius: 999px; font: 600 .95rem var(--police-texte); color: var(--texte);
  background: var(--fond) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23C5A15B' stroke-width='1.6'/%3E%3C/svg%3E") right 16px center / 12px no-repeat;
  box-shadow: inset 0 0 0 1px var(--bord); -webkit-appearance: none; appearance: none; }
.h-select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--or); }
.h-info { margin-top: 4px; font-size: .9rem; line-height: 1.6; color: var(--texte-doux); text-wrap: pretty; }

.h-mois { margin-top: clamp(34px, 5vw, 54px); }
.h-mois__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 14px; }
.h-mois__tete h2 { min-width: 9ch; font-size: clamp(1.3rem, 3vw, 1.6rem); text-align: center; }
.h-mois__tete .icone-btn { background: var(--fond-alt); }
.h-mois__tete .icone-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.h-mois__actions { display: flex; gap: 8px; margin-left: auto; }
.h-tableau-zone { overflow-x: auto; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--bord); background: var(--carte); }
.h-tableau { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.h-tableau th, .h-tableau td { padding: 9px 10px; text-align: center; white-space: nowrap; }
.h-tableau thead th { position: sticky; top: 0; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--or-texte); background: var(--carte); box-shadow: 0 1px 0 var(--bord); }
.h-tableau tbody th { text-align: left; font-weight: 600; }
.h-tableau .jour-sem { display: inline-block; min-width: 3.2ch; color: var(--texte-doux); font-weight: 400; text-transform: capitalize; }
.h-tableau tbody tr:nth-child(even) { background: color-mix(in srgb, var(--fond-alt) 45%, transparent); }
.h-tableau tbody tr.est-aujourdhui { background: rgba(197, 161, 91, .2); box-shadow: inset 3px 0 0 var(--or); }
.h-tableau td.est-estimee span { color: var(--or-texte); }
.h-tableau td:nth-child(3) { color: var(--texte-doux); }
.h-legende { margin-top: 10px; font-size: .86rem; color: var(--texte-doux); }

/* Encart « Ramadan » : visible 40 jours avant et pendant le mois (horaires.js) */
.h-ramadan { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 28px; margin: clamp(18px, 3vw, 28px) 0 18px; padding: clamp(20px, 3vw, 28px); border-radius: var(--rayon);
  color: var(--ivoire); background: var(--nuit); box-shadow: inset 0 0 0 1px rgba(197, 161, 91, .45); }
[data-theme="sombre"] .h-ramadan { background: var(--vert); }
.h-ramadan::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("images/zellige.svg") center / 52px 52px; opacity: .22; }
.h-ramadan__texte { flex: 1 1 340px; }
.h-ramadan h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--ivoire); }
.h-ramadan p { margin-top: 8px; max-width: 62ch; font-size: .96rem; line-height: 1.6; color: rgba(244, 240, 230, .82); text-wrap: pretty; }
.h-bouton--or { background: var(--or); color: var(--nuit); }
.h-bouton--or:hover { box-shadow: inset 0 0 0 1.5px var(--ivoire); }
.h-bouton--or svg { stroke: var(--nuit); }

/* 12 bis. FEUILLE IMPRIMÉE DES HORAIRES ------------------------------------------
   Une page A4 « enluminure » remplie par horaires.js juste avant l'impression : le mois affiché,
   ou le calendrier du Ramadan (arc, lanternes, début du verset 2:185). Elle n'apparaît qu'à l'impression.
   Le cadre, le logo, le zellige et le QR code sont en SVG : ils s'impriment même si l'option
   « graphiques d'arrière-plan » du navigateur est décochée. */
.fi { display: none; position: relative; width: 210mm; height: 296mm; overflow: hidden; break-inside: avoid; break-after: avoid;
  font: 400 10pt/1.25 var(--police-texte); color: #123B2F; background: #fff; letter-spacing: 0;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fi * { box-sizing: border-box; }
.fi svg { max-width: none; }
.fi__cadre { position: absolute; left: 9mm; top: 9mm; width: 192mm; height: 279mm; overflow: visible; }
.fi__sceau { position: absolute; left: 50%; top: 5.9mm; transform: translateX(-50%); line-height: 0; }
.fi__page { position: absolute; inset: 17mm 18mm 13.5mm; display: flex; flex-direction: column; }
.fi__page > * { flex: none; }
.fi__page > .fi__ressort { flex: 1 0 3mm; }
.fi__tete { position: relative; text-align: center; }
.fi__tete--ramadan, .fi__verset { display: none; }
.fi--ramadan .fi__tete--mois { display: none; }
.fi--ramadan .fi__tete--ramadan, .fi--ramadan .fi__verset { display: block; }
.fi__ar { font: 400 19pt/1.25 var(--police-arabe); font-feature-settings: "cv62" 1; color: #7D5F27; }
.fi__ville { margin-top: -1mm; font: 800 28pt/1.05 var(--police-titre); letter-spacing: -.01em; overflow-wrap: anywhere; }
.fi__region { margin-top: .6mm; font-size: 9pt; line-height: 1.3; color: #4A5B52; }
.fi__mois { margin-top: 1mm; font-weight: 600; font-size: 11.5pt; line-height: 1.35; }
.fi__hijri { font-size: 9pt; line-height: 1.35; color: #7D5F27; }
.fi__filet { display: block; width: 36mm; height: 3.6mm; margin: 2mm auto 0; }
.fi__tete--ramadan { height: 42mm; padding-top: 9mm; }
.fi__arc { position: absolute; left: 50%; top: 0; width: 120mm; height: 42mm; transform: translateX(-50%); }
.fi__lanternes { position: absolute; left: 0; top: -7.5mm; width: 174mm; height: 36mm; }
.fi__tete--ramadan .fi__ar { position: relative; font-size: 21pt; }
.fi__titre { position: relative; max-width: 100mm; margin: -.5mm auto 0; font: 800 20pt/1.1 var(--police-titre); letter-spacing: -.01em; text-wrap: balance; }
.fi__dates { position: relative; margin-top: 1.4mm; font-size: 10pt; line-height: 1.35; }
.fi__tableau { width: 100%; margin-top: 4mm; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 10pt; line-height: 1.25; }
.fi--ramadan .fi__tableau { margin-top: 3.5mm; font-size: 9.4pt; line-height: 1.18; }
.fi__tableau th { padding: 0 0 1.8mm; font-weight: 600; font-size: 9.5pt; line-height: 1.15; text-align: center; vertical-align: bottom; border-bottom: .6pt solid #C5A15B; }
.fi__tableau th small { display: block; font-weight: 400; font-size: 7pt; color: #7D5F27; }
.fi__tableau th small[lang="ar"] { font-size: 10pt; line-height: 1.3; }
.fi__tableau td { padding: .56mm 0; text-align: center; white-space: nowrap; border-bottom: .25pt solid #DDD5C2; }
.fi--ramadan .fi__tableau td { padding: .4mm 0; }
.fi__tableau .c-date { padding-left: 2mm; text-align: left; }
.fi__tableau .c-jour { width: 11mm; }
.fi__tableau tr.ven td { background: #F8EED2; font-weight: 600; }
.fi__tableau .fort { font-weight: 600; }
.fi__tableau td.fort { background: rgba(248, 238, 210, .6); font-size: 10pt; }
.fi__nj { display: inline-grid; place-items: center; width: 4.1mm; height: 4.1mm; border-radius: 50%; font: 800 7.4pt/1 var(--police-titre); vertical-align: middle; }
.fi__nj--fin { background: #C5A15B; color: #123B2F; }
.fi__note { display: flex; align-items: center; gap: 2mm; margin-top: 2mm; font-size: 8pt; line-height: 1.35; color: #4A5B52; }
.fi__verset { margin: 2.4mm auto 0; max-width: 150mm; text-align: center; }
.fi__verset p { font-size: 8.4pt; line-height: 1.45; color: #34463D; }
.fi__verset .fi__verset-ar { margin-bottom: .6mm; font: 400 14pt/1.5 var(--police-arabe); font-feature-settings: "cv62" 1; color: #123B2F; }
.fi__verset span { font-size: 7.4pt; color: #7D5F27; }
.fi__bandeau { position: relative; display: flex; align-items: center; gap: 4.5mm; padding: 2.6mm 2.8mm 2.6mm 4.4mm; color: #F4F0E6; }
.fi__bandeau > :not(.marque-fond) { position: relative; flex: none; }
.fi .marque-fond { position: absolute; inset: 0; width: 100%; height: 100%; }
.fi__texte { flex: 1 1 auto !important; min-width: 0; }
.fi__texte p { font-size: 8.4pt; line-height: 1.42; color: rgba(244, 240, 230, .84); }
.fi__texte b { font-weight: 600; color: #F4F0E6; }
.fi__texte .fi__or { color: #C5A15B; }
.fi__texte .fi__petit { margin-top: .7mm; font-size: 7pt; line-height: 1.35; color: rgba(244, 240, 230, .6); }
@media (max-width: 520px) {
  .h-tableau { font-size: .82rem; }
  .h-tableau th, .h-tableau td { padding: 8px 3px; }
  .h-tableau thead th { font-size: .6rem; letter-spacing: .02em; }
  .h-tableau tbody th { padding-left: 8px; }
  .h-tableau .jour-sem { display: none; }
  .h-priere { gap: 10px; padding: 10px 8px; }
  .h-priere__heure { font-size: 1.22rem; }
  .h-mois__actions { margin-left: 0; width: 100%; }
}

.h-explications { margin-top: clamp(38px, 6vw, 64px); max-width: 860px; }
.h-explications h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
.h-explications h3 { margin-top: 22px; font-size: 1.05rem; }
.h-explications p { margin-top: 10px; color: var(--texte-doux); text-wrap: pretty; }
.h-explications .sources-coran { margin-top: 26px; }

/* Encart « Horaires du jour » sur l'accueil */
.bande-horaires { position: relative; background: var(--vert); color: var(--ivoire); border-bottom: 1px solid rgba(197, 161, 91, .35); }
.bande-horaires__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 28px; padding-block: 20px; }
.bande-horaires .surtitre { color: var(--or); }
.bande-horaires__ville { margin-top: 6px; font: 800 1.12rem/1.25 var(--police-titre); }
.bande-horaires__ville small { font: 400 .86rem var(--police-texte); color: rgba(244, 240, 230, .72); }
.bande-horaires__prochaine { margin-top: 4px; font-size: .9rem; color: var(--or-clair); }
.bande-horaires__prochaine:not(:empty)::before { content: "Prochaine prière\00a0: "; color: rgba(244, 240, 230, .72); }
/* en turc, le texte se suffit à lui-même (« Öğle vaktine 1 sa 20 dk kaldı ») */
:lang(tr) .bande-horaires__prochaine::before { content: none; }
.bande-horaires__liste { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.bande-horaires__liste li { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: rgba(244, 240, 230, .06); box-shadow: inset 0 0 0 1px rgba(244, 240, 230, .1); }
.bande-horaires__liste span { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(244, 240, 230, .75); }
.bande-horaires__liste time { font: 700 1.12rem/1 var(--police-texte); font-variant-numeric: tabular-nums; }
.bande-horaires__liste li.est-prochaine { background: rgba(197, 161, 91, .22); box-shadow: inset 0 0 0 1.5px var(--or); }
.bande-horaires__liste li.est-prochaine span { color: var(--or-clair); }
.bande-horaires__liste li.h-priere--lever time { color: rgba(244, 240, 230, .7); font-weight: 600; }
.bande-horaires .btn { min-height: 44px; padding: 0 1.2em; font-size: .92rem; }
.bande-horaires__ramadan { display: inline-block; margin-top: 6px; font-size: .9rem; font-weight: 600; color: var(--or-clair); text-underline-offset: 3px; }
.bande-horaires__ramadan:hover { color: var(--ivoire); }
@media (max-width: 960px) {
  .bande-horaires__in { grid-template-columns: minmax(0, 1fr) auto; }
  .bande-horaires__liste { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
  .bande-horaires__in { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 20px 22px; }
  .bande-horaires__liste { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-row: auto; }
  .bande-horaires .btn { justify-self: stretch; }
}

/* Impression du tableau du mois */
/* 18. LECTURE PAGE PAR PAGE (Mushaf de Médine) ---------------------------- */
.mushaf-tete .fil { margin-bottom: 14px; }
.mushaf-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.mushaf-champ { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--fond-alt);
  font: 600 .88rem var(--police-texte); color: var(--texte); }
.mushaf-champ input { width: 4.6em; height: 34px; border: 0; border-radius: 999px; padding: 0 10px; text-align: center; font: 700 .95rem var(--police-texte);
  color: var(--texte); background: var(--carte); -moz-appearance: textfield; }
.mushaf-champ input::-webkit-inner-spin-button, .mushaf-champ input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mushaf { max-width: 760px; padding-bottom: 30px; }
.mushaf-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 18px 0; }
.mushaf-nav__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px;
  font: 600 .88rem/1.2 var(--police-texte); color: var(--texte); background: var(--fond-alt); cursor: pointer; transition: background-color .2s; }
.mushaf-nav__btn:first-child { justify-self: start; }
.mushaf-nav__btn:last-child { justify-self: end; }
.mushaf-nav__btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mushaf-nav__btn:hover:not(:disabled) { background: rgba(197, 161, 91, .25); }
.mushaf-nav__btn:disabled { opacity: .4; cursor: default; }
.mushaf-nav__num { margin: 0; text-align: center; font-size: .9rem; color: var(--texte-doux); line-height: 1.35; }
.mushaf-nav__num strong { color: var(--texte); }
.mushaf-nav__num span { display: block; font-size: .78rem; }
.mushaf-page { position: relative; padding: 14px clamp(14px, 4vw, 34px) 12px; border-radius: 6px; background: var(--carte);
  box-shadow: var(--ombre), inset 0 0 0 1.5px rgba(197, 161, 91, .6), inset 0 0 0 6px var(--carte), inset 0 0 0 7px rgba(197, 161, 91, .35); }
.mushaf-page__tete { display: flex; justify-content: space-between; gap: 12px; padding: 4px 6px 8px; border-bottom: 1px solid rgba(197, 161, 91, .45);
  font-size: 1.15rem; line-height: 1.6; color: var(--or-texte); }
.mushaf-page__corps { min-height: 60vh; padding: 6px 0; }
/* sur téléphone, peu de mots par ligne : alignement à droite (justifier creuserait de grands blancs) */
.mushaf-texte { margin: 0; font-size: calc(1.4rem + var(--taille-ar, 2) * .26rem); line-height: 2.15; text-align: right; color: var(--texte); text-wrap: pretty; }
@media (min-width: 700px) { .mushaf-texte { text-align: justify; text-align-last: center; } }
.mushaf-v { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mushaf-page .fin-ayah { text-decoration: none; border-radius: 6px; }
.mushaf-page .fin-ayah:hover, .mushaf-page .fin-ayah:focus-visible { background: rgba(197, 161, 91, .2); }
.mushaf-sourate { max-width: 400px; margin: 14px auto 6px; padding: 8px 40px 12px; text-align: center; }
.mushaf-sourate .cartouche-sourate__ar { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.mushaf-basmala { margin: 2px 0 4px; text-align: center; font-size: calc(1.45rem + var(--taille-ar, 2) * .24rem); line-height: 2; color: var(--texte); }
.mushaf-page__num { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(197, 161, 91, .45); text-align: center; font-size: 1.15rem; color: var(--or-texte); }
.mushaf-noscript, .mushaf-erreur { margin: 40px 10px; text-align: center; font-family: var(--police-texte); font-size: 1rem; color: var(--texte-doux); }
.tourne-suiv { animation: tourne-suiv .35s var(--doux); }
.tourne-prec { animation: tourne-prec .35s var(--doux); }
@keyframes tourne-suiv { from { opacity: .3; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes tourne-prec { from { opacity: .3; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .mushaf-texte { font-size: calc(1.6rem + var(--taille-ar, 2) * .3rem); } }
@media (max-width: 520px) {
  .mushaf-nav { gap: 6px; }
  .mushaf-nav__btn { padding: 0 10px; font-size: .8rem; }
  .mushaf-nav__btn span { max-width: 6.5em; }
}
.lien-mushaf { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  text-decoration: none; color: var(--texte); background: var(--carte); box-shadow: inset 0 0 0 1.5px var(--or); }
.lien-mushaf:hover { background: rgba(197, 161, 91, .16); }
.lien-mushaf svg { width: 18px; height: 18px; fill: none; stroke: var(--or-texte); stroke-width: 1.8; stroke-linejoin: round; }
.coran-tete .lien-mushaf { margin-top: 16px; }

@media print {
  html, body { background: #fff !important; }
  /* Page des horaires : seule la feuille A4 aux couleurs d'Islamedia est imprimée (voir 12 bis). */
  .page-horaires > :not(.fi) { display: none !important; }
  .page-horaires .fi { display: block; }
}

/* 13. APPARITIONS AU DÉFILEMENT ------------------------------------------------
   script.js ajoute la classe « visible » quand un bloc entre à l'écran. */
.js [data-reveal] {
  opacity: 0; translate: 0 28px;
  transition: opacity .9s var(--doux) var(--delai, 0s), translate .9s var(--doux) var(--delai, 0s), transform .45s var(--doux), box-shadow .45s;
}
.js [data-reveal].visible { opacity: 1; translate: 0 0; }
.carte { transition: transform .45s var(--doux), box-shadow .45s; }

/* 14. MOUVEMENT RÉDUIT ----------------------------------------------------------
   Si le téléphone ou l'ordinateur demande moins d'animations, on les coupe. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
}
