/* ===================================================================
   Le-Coran.com — CSS accueil public
   =================================================================== */

/* ===================================================================
   11. ACCUEIL (page_index)
   =================================================================== */
.page_index #lapage { margin: 0; }

/* Hero */
.page_index .zone_titre {
  text-align: center;
  padding: clamp(26px, 5vw, 46px) 16px 6px;
}
.page_index .zone_titre::before {
  content: "\f518"; /* mosque */
  font-family: "Font Awesome 5 Free"; font-weight: 900;
  display: block;
  font-size: 1.7rem;
  color: var(--lc-gold);
  margin-bottom: 10px;
  opacity: .9;
}
.page_index .zone_titre h1 {
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem);
  margin: 0;
}
.lc-hero-tag {
  text-align: center;
  color: var(--lc-ink-soft);
  font-size: 1.05rem;
  margin: 6px auto 0;
}

/* Pills langue */
.lc-pills {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin: 22px 0 6px; max-width: var(--lc-maxw);
}
.choix_langue {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .62em 1.25em; border-radius: var(--lc-pill);
  border: 1px solid var(--lc-line); background: var(--lc-surface);
  color: var(--lc-ink); font-weight: 600; font-size: .95rem;
}
@media (hover: hover) {.choix_langue:hover{ border-color: var(--lc-green); color: var(--lc-green); }}
.choix_langue.lang_active, .lang_active.choix_langue {
  background: var(--lc-green); border-color: var(--lc-green); color: #fff;
}

/* Cartes d'action */
.lc-actions {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  margin: 26px 0 0;
}
.lc-action {
  --accent: var(--lc-green); --accent-tint: var(--lc-green-tint);
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; background: var(--lc-surface);
  border: 1px solid var(--lc-line); border-top: 3px solid var(--accent);
  border-radius: var(--lc-r); box-shadow: var(--lc-shadow-sm);
  color: var(--lc-ink);
  transition: transform var(--lc-trans), box-shadow var(--lc-trans), border-color var(--lc-trans);
}
@media (hover: hover) {.lc-action:hover{ transform: translateY(-3px); box-shadow: var(--lc-shadow); color: var(--lc-ink); }}
.lc-action--blue   { --accent: var(--lc-blue);   --accent-tint: var(--lc-blue-tint); }
.lc-action--orange { --accent: var(--lc-orange); --accent-tint: var(--lc-orange-tint); }
.lc-action--purple { --accent: var(--lc-purple); --accent-tint: var(--lc-purple-tint); }
.lc-action--red    { --accent: var(--lc-red);    --accent-tint: #f8e3df; }
.lc-action-ic {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: var(--accent-tint); color: var(--accent);
}
.lc-action-tx { display: flex; flex-direction: column; }
.lc-action-t { font-weight: 700; line-height: 1.2; }
.lc-action-s { color: var(--lc-ink-soft); font-size: .84rem; }
.lc-action-arrow { margin-left: auto; color: var(--lc-ink-faint); transition: transform var(--lc-trans); }
@media (hover: hover) {.lc-action:hover .lc-action-arrow{ transform: translateX(3px); color: var(--accent); }}

/* Tableau de bord */
.lc-dashboard {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 26px 0 0;
  background: var(--lc-surface); border: 1px solid var(--lc-line);
  border-radius: var(--lc-r); overflow: hidden; box-shadow: var(--lc-shadow-sm);
}
.lc-dash-cell { padding: 22px; border-left: 1px solid var(--lc-line); position: relative; }
.lc-dash-cell:first-child { border-left: 0; }
.lc-dash-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lc-dash-top .lc-dash-head { margin-bottom: 0; }
.lc-dash-top .lc-dash-link { flex: 0 1 auto; margin: 1px 0 0 auto; text-align: right; line-height: 1.25; }
.lc-dash-head { display: flex; align-items: center; gap: 9px; font-weight: 700; margin-bottom: 14px; }
.lc-dash-head i { color: var(--lc-green); }
.lc-dash-head .ic-red { color: var(--lc-red); }
.lc-dash-head .ic-gold { color: var(--lc-gold); }
.lc-dash-line { color: var(--lc-ink-soft); font-size: .9rem; margin: 0 0 6px; }
.lc-dash-line b { color: var(--lc-ink); }
.lc-dash-link { display: inline-block; margin-top: 8px; font-weight: 600; font-size: .88rem; }
.lc-progress { height: 8px; background: var(--lc-line); border-radius: 99px; overflow: hidden; margin: 10px 0 4px; }
.lc-progress > i { display: block; height: 100%; background: var(--lc-green); border-radius: 99px; }
.lc-dash-cell--night {
  background: linear-gradient(135deg, var(--lc-green-dd), #103325);
  color: #dfeee6;
}
.lc-dash-cell--night .lc-dash-head, .lc-dash-cell--night .lc-dash-line { color: #dfeee6; }
.lc-dash-cell--night .lc-dash-head i { color: var(--lc-gold); }
.lc-switch {
  display: inline-flex; align-items: center; cursor: pointer;
  width: 52px; height: 28px; border-radius: 99px; background: rgba(255,255,255,.25);
  padding: 3px; transition: background var(--lc-trans); border: 0; margin-top: 6px;
}
.lc-switch > span { width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform var(--lc-trans); }
html.lc-dark .lc-switch { background: var(--lc-green); }
html.lc-dark .lc-switch > span { transform: translateX(24px); }

/* Section générique accueil */
.lc-home-section { margin: 0; padding: clamp(30px,5vw,52px) 0 0; }
.lc-home-section > h2 { display: flex; align-items: center; gap: 10px; }
.lc-home-section > h2 i { color: var(--lc-green); }

/* En-tête section sourates + nav rapide */
.lc-surah-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.lc-surah-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.lc-surah-head h2 i { color: var(--lc-green); }
.nav_rapide {
  width: auto; max-width: 320px; min-width: 220px;
  border-radius: var(--lc-pill); background: var(--lc-surface); cursor: pointer;
}

/* Grille des sourates (réutilise .sourate_acc / .a_case existants) */
.page_index .order { display: block; }
.page_index #droite { width: 100%; }
.page_index #droite > h2 { display: none; } /* remplacé par .lc-surah-head */
#contenu_s { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.sourate_acc { padding: 8px; }
.a_case {
  display: flex; flex-direction: column; gap: 3px; height: 100%;
  padding: 14px 16px; background: var(--lc-surface);
  border: 1px solid var(--lc-line); border-radius: var(--lc-r-sm);
  color: var(--lc-ink); position: relative;
  transition: transform var(--lc-trans), box-shadow var(--lc-trans), border-color var(--lc-trans);
}
@media (hover: hover) {.a_case:hover{ transform: translateY(-2px); box-shadow: var(--lc-shadow); border-color: var(--lc-green); color: var(--lc-ink); }}
.a_case .nom { font-family: var(--lc-arab); font-size: 1.5rem; line-height: 1.4; color: var(--lc-green); text-align: right; direction: rtl; }
.a_case .transcription { font-weight: 700; font-size: .95rem; color: var(--lc-ink); }
.a_case .traduction { color: var(--lc-ink-soft); font-size: .85rem; }
.a_case .nb_versets { color: var(--lc-ink-faint); font-size: .78rem; margin-top: 2px; }

/* Cartes "Apprendre et approfondir" */
.lc-cards { display: grid; gap: 16px; }
.lc-cards--5 { grid-template-columns: repeat(5, 1fr); }
.lc-cards--6 { grid-template-columns: repeat(6, 1fr); }
.lc-cards--3 { grid-template-columns: repeat(3, 1fr); }
.lc-learn-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 20px;
  background: var(--lc-surface); border: 1px solid var(--lc-line);
  border-radius: var(--lc-r); box-shadow: var(--lc-shadow-sm); color: var(--lc-ink);
  transition: transform var(--lc-trans), box-shadow var(--lc-trans);
}
@media (hover: hover) {.lc-learn-card:hover{ transform: translateY(-3px); box-shadow: var(--lc-shadow); color: var(--lc-ink); }}
.lc-learn-ic { --accent: var(--lc-green); --accent-tint: var(--lc-green-tint);
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent); font-size: 1.15rem; }
.lc-learn-card--blue   .lc-learn-ic { --accent: var(--lc-blue);   --accent-tint: var(--lc-blue-tint); }
.lc-learn-card--orange .lc-learn-ic { --accent: var(--lc-orange); --accent-tint: var(--lc-orange-tint); }
.lc-learn-card--purple .lc-learn-ic { --accent: var(--lc-purple); --accent-tint: var(--lc-purple-tint); }
.lc-learn-card--gold   .lc-learn-ic { --accent: var(--lc-gold);   --accent-tint: var(--lc-gold-soft); }
.lc-learn-t { font-weight: 700; }
.lc-learn-d { color: var(--lc-ink-soft); font-size: .85rem; flex: 1; }
.lc-learn-link { font-weight: 700; font-size: .85rem; color: var(--lc-green); }
.lc-learn-card--orange .lc-learn-link { color: var(--lc-orange); }

/* Téléchargements */
.lc-dl {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--lc-surface); border: 1px solid var(--lc-line);
  border-radius: var(--lc-r-sm); box-shadow: var(--lc-shadow-sm); color: var(--lc-ink);
  transition: border-color var(--lc-trans), box-shadow var(--lc-trans);
}
@media (hover: hover) {.lc-dl:hover{ border-color: var(--lc-green); box-shadow: var(--lc-shadow); color: var(--lc-ink); }}
.lc-dl i { font-size: 1.5rem; color: var(--lc-green); }
.lc-dl-tx { display: flex; flex-direction: column; line-height: 1.3; }
.lc-dl-t { font-weight: 600; font-size: .9rem; }
.lc-dl-s { font-size: .8rem; color: var(--lc-green); font-weight: 700; }

/* Bloc infos bas de page */
.lc-info-card { padding: 24px; background: var(--lc-surface); border: 1px solid var(--lc-line); border-radius: var(--lc-r); box-shadow: var(--lc-shadow-sm); }
.lc-info-card h3 { margin-top: 0; }
.lc-check { list-style: none; padding: 0; margin: 0; }
.lc-check li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--lc-ink-soft); }
.lc-check li::before { content: "\f058"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; color: var(--lc-green); }
.lc-ayah-card { text-align: center; }
.lc-ayah-ar { font-family: var(--lc-arab); font-size: 1.7rem; color: var(--lc-green); direction: rtl; line-height: 2; margin-bottom: 10px; }
.lc-ayah-tr { font-style: italic; color: var(--lc-ink-soft); }
.lc-ayah-ref { font-weight: 700; margin: 8px 0 14px; }

/* "Voir tout" */
.lc-seeall { display: flex; justify-content: center; margin-top: 22px; }

/* SEO repliable */
.lc-seo { margin: 36px 0 0; }
.lc-seo > summary { cursor: pointer; font-family: var(--lc-serif); font-size: 1.2rem; color: var(--lc-ink); padding: 14px 0; list-style: none; display: flex; align-items: center; gap: 10px; }
.lc-seo > summary::-webkit-details-marker { display: none; }
.lc-seo > summary::before { content: "\f078"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--lc-green); font-size: .8rem; transition: transform var(--lc-trans); }
.lc-seo[open] > summary::before { transform: rotate(180deg); }
.lc-seo-body { color: var(--lc-ink-soft); }
.lc-seo-body h2 { font-size: 1.4rem; margin-top: 1.4em; }
.lc-seo-body .spannom { color: var(--lc-green); }

/* Responsive accueil */
@media (max-width: 991px) {
  .lc-actions { grid-template-columns: repeat(2, 1fr); }
  .lc-dashboard { grid-template-columns: repeat(2, 1fr); }
  .lc-dash-cell:nth-child(3) { border-left: 0; }
  .lc-dashboard .lc-dash-cell { border-top: 1px solid var(--lc-line); }
  .lc-dashboard .lc-dash-cell:nth-child(1), .lc-dashboard .lc-dash-cell:nth-child(2) { border-top: 0; }
  .lc-cards--5 { grid-template-columns: repeat(3, 1fr); }
  .lc-cards--6 { grid-template-columns: repeat(3, 1fr); }
  .lc-cards--3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lc-actions { grid-template-columns: 1fr; }
  .lc-dashboard { grid-template-columns: 1fr; }
  .lc-dashboard .lc-dash-cell { border-left: 0; }
  .lc-cards--5, .lc-cards--6 { grid-template-columns: repeat(2, 1fr); }
}

/* nav rapide dans la grille + divers accueil */
.lc-surah-nav { flex: 0 0 auto; }
.lc-surah-nav .nav_rapide { margin: 0; }
.lc-surah-hint { color: var(--lc-ink-soft); font-size: .9rem; }
.lc-home-top { width: 100%; padding-left: 0 !important; padding-right: 0 !important; }
.lc-bottom { padding-top: 8px; }

/* ===================================================================
   12. RAFFINEMENTS PIXEL-PERFECT (override) — d'après maquette
   =================================================================== */

/* ---- Hero ---- */
.page_index .zone_titre { padding-top: clamp(30px, 5vw, 54px); position: relative; }
.page_index .zone_titre::before { content: none; }
.lc-ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 auto 16px; color: var(--lc-green);
}
.lc-ornament span {
  height: 1px; width: clamp(48px, 9vw, 96px);
  background: linear-gradient(90deg, transparent, var(--lc-gold));
}
.lc-ornament span:last-child { background: linear-gradient(90deg, var(--lc-gold), transparent); }
.lc-ornament i { font-size: 1.7rem; color: var(--lc-green); }
.page_index .zone_titre h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }

/* ---- Pills (ombre douce) ---- */
.choix_langue { box-shadow: var(--lc-shadow-sm); }

/* ---- Dashboard : panneau divisé + mode nuit clair ---- */
.lc-dashboard { grid-template-columns: 1.25fr 1fr 1fr 1.25fr; }
.lc-dash-head .fa-book-reader, .lc-dash-head .fa-moon { color: var(--lc-ink); }
.lc-progress-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; }
.lc-progress-row .lc-progress { flex: 1; margin: 0; }
.lc-progress-pct { font-size: .78rem; color: var(--lc-ink-soft); font-weight: 700; }
.lc-dash-cell--night {
  background: var(--lc-surface); color: inherit; overflow: hidden;
}
.lc-dash-cell--night .lc-dash-head, .lc-dash-cell--night .lc-dash-line { color: inherit; }
.lc-dash-cell--night .lc-dash-head i { color: var(--lc-ink); }
.lc-dash-cell--night::after {
  content: "\f678"; font-family: "Font Awesome 5 Free"; font-weight: 900;
  position: absolute; right: -14px; bottom: -26px; font-size: 130px;
  color: var(--lc-line); opacity: .45; pointer-events: none; z-index: 0;
}
.lc-dash-cell--night > * { position: relative; z-index: 1; }
.lc-switch { background: #cdd6cf; }
.lc-switch > span { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
html.lc-dark .lc-switch { background: var(--lc-green); }

/* ---- Section Sourates : en-tête + panneau cellulé ---- */
.lc-surah-head h2 { font-size: 1.5rem; }
.lc-surah-nav { display: flex; align-items: center; gap: 10px; }
.lc-surah-nav::before { content: "Navigation rapide"; color: var(--lc-ink-soft); font-size: .92rem; white-space: nowrap; }
.lc-surah-nav .nav_rapide { min-width: 220px; }

#contenu_s {
  margin: 0; border: 1px solid var(--lc-line); border-radius: var(--lc-r);
  background: var(--lc-surface); overflow: hidden; box-shadow: var(--lc-shadow-sm);
}
.sourate_acc { padding: 0; }
.a_case {
  flex-direction: row; align-items: flex-start; gap: 13px;
  height: 100%; border: 0; border-right: 1px solid var(--lc-line-2);
  border-bottom: 1px solid var(--lc-line-2); border-radius: 0;
  box-shadow: none; padding: 15px 18px; background: transparent;
}
@media (hover: hover) {.a_case:hover{ transform: none; box-shadow: none; border-color: var(--lc-line-2); background: var(--lc-green-tint); }}
.lc-snum {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 2px;
  background: var(--lc-surface-2); border: 1px solid var(--lc-line);
  color: var(--lc-ink-soft); font-weight: 700; font-size: .82rem;
}
.a_case .lc-case-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.a_case .nom { font-size: 1.25rem; line-height: 1.5; text-align: right; }
.a_case .transcription { font-weight: 700; font-size: .95rem; color: var(--lc-ink); }
.a_case .traduction { color: var(--lc-ink-soft); font-size: .85rem; }
.a_case .nb_versets { color: var(--lc-ink-faint); font-size: .78rem; }

/* masquer la dernière colonne / dernière ligne de bordure */
@media (min-width: 768px) {
  .sourate_acc:nth-child(4n) .a_case { border-right: 0; }
}

/* Collapse à 24 + bouton */
#contenu_s.lc-collapsed .sourate_acc:nth-child(n+25) { display: none; }
.lc-seeall { margin-top: 22px; }

/* "Apprendre" & "Téléchargements" : un peu plus proches de la maquette */
.lc-learn-card { box-shadow: var(--lc-shadow-sm); }

/* Accueil : la grande .row globale en bloc pleine largeur (hero centré) */
.page_index .row { display: block; margin-inline: 0; }
.page_index .zone_titre, .page_index #lapage { width: 100%; }

/* Accueil : masquer l'ancien bandeau de reprise (#marquepage), doublon de la cellule "Continuer ma lecture" */
.page_index #marquepage { display: none !important; }

/* ===================================================================
   15. Ajustements demandés : dashboard compact + grille 6 colonnes
   =================================================================== */
/* Dashboard : hauteur réduite */
.lc-dashboard .lc-dash-cell { padding: 14px 18px; }
.lc-dashboard .lc-dash-head { margin-bottom: 6px; font-size: .98rem; }
.lc-dashboard .lc-dash-line { margin: 0 0 2px; font-size: .85rem; line-height: 1.4; }
.lc-dashboard .lc-progress-row { margin: 6px 0; }
.lc-dashboard .lc-progress { height: 6px; }
.lc-dashboard .btn-primary { padding: .5em 1.1em; margin-top: 7px; font-size: .9rem; }
.lc-dashboard .lc-dash-link { margin-top: 6px; font-size: .85rem; }
.lc-dash-cell--night::after { font-size: 92px; right: -8px; bottom: -16px; }

/* Grille des sourates : 6 par ligne sur grand écran */
@media (min-width: 1100px) {
  .page_index #contenu_s .sourate_acc { width: 16.6667%; }
  .page_index #contenu_s .sourate_acc:nth-child(4n) .a_case { border-right: 1px solid var(--lc-line-2); }
  .page_index #contenu_s .sourate_acc:nth-child(6n) .a_case { border-right: 0; }
}

/* SEO réintégré en section visible (non masqué) */
.lc-seo { display: block; }
.lc-seo > .lc-seo-title { font-family: var(--lc-serif); font-size: 1.5rem; color: var(--lc-ink); margin: 0 0 14px; }
.lc-seo .lc-seo-body { display: block !important; color: var(--lc-ink-soft); max-width: 1000px; }
.lc-seo .lc-seo-body h2 { color: var(--lc-ink); }

/* ===================================================================
   16. Section SEO — pleine largeur, mise en page "magazine"
   =================================================================== */
.lc-seo { margin: 46px 0 0 !important; padding: 42px 0 0; border-top: 1px solid var(--lc-line); }
.lc-seo > .lc-seo-title {
  text-align: center; font-family: var(--lc-serif);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); color: var(--lc-ink); margin: 0 auto 8px;
}
.lc-seo > .lc-seo-title::after {
  content: ""; display: block; width: 70px; height: 3px; margin: 14px auto 0;
  background: var(--lc-green); border-radius: 3px;
}
.lc-seo .lc-seo-body { max-width: none !important; color: var(--lc-ink-soft); margin-top: 26px; }
/* premier h2 (Étudier…) — pleine largeur */
.lc-seo .lc-seo-body > h2 {
  font-family: var(--lc-serif); font-size: 1.5rem; color: var(--lc-ink);
  margin: 0 0 .7em; text-align: left;
}
.lc-seo .lc-seo-body .spannom { color: var(--lc-green); }
/* corps en 2 colonnes "magazine" */
.lc-seo .lc-seo-body > div { columns: 2; column-gap: 60px; }
@media (max-width: 820px) { .lc-seo .lc-seo-body > div { columns: 1; } }
.lc-seo .lc-seo-body > div > h2 {
  column-span: all; font-family: var(--lc-serif); font-size: 1.35rem; color: var(--lc-ink);
  margin: 1.4em 0 .6em; padding-top: .5em; border-top: 2px solid var(--lc-green-tint);
}
.lc-seo .lc-seo-body p { margin: 0 0 1em; line-height: 1.8; break-inside: avoid; }
.lc-seo .lc-seo-body ul { break-inside: avoid; margin: 0 0 1em; }
.lc-seo .lc-seo-body blockquote {
  break-inside: avoid; background: var(--lc-surface);
  border-left: 4px solid var(--lc-green); border-radius: 0 var(--lc-r-sm) var(--lc-r-sm) 0;
  box-shadow: var(--lc-shadow-sm); padding: 14px 18px; margin: 0 0 1.1em;
  color: var(--lc-ink); font-style: italic;
}
.lc-seo .lc-seo-body a { font-weight: 600; }
/* bloc contributeur (sonia) en pleine largeur en bas */
.lc-seo .contributeur {
  column-span: all; break-inside: avoid; margin-top: 26px; padding: 16px 20px;
  background: var(--lc-surface-2); border: 1px solid var(--lc-line); border-radius: var(--lc-r);
}
.lc-seo .contributeur .nom_contributeur { font-weight: 700; color: var(--lc-ink); margin: 0 0 4px; }
.lc-seo .contributeur .description_contributeur { margin: 0; font-size: .9rem; }

/* "Continuer ma lecture" plus compact + cellule élargie (réduit la hauteur de la ligne) */
.lc-dashboard { grid-template-columns: 1.7fr 1fr 1fr 1.25fr; }
.lc-continue-meta { font-size: .9rem; }
.lc-continue-meta b { color: var(--lc-ink); }
.lc-continue-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.lc-continue-actions .btn-primary { margin-top: 0; }
.lc-continue-actions .lc-dash-link { margin-top: 0; }

/* Continuer ma lecture : actions en haut à droite (card encore plus basse) */
.lc-dashboard { grid-template-columns: 1.85fr 1fr 1fr 1.15fr; }
.lc-continue-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.lc-continue-top .lc-dash-head { margin-bottom: 0; }
.lc-continue-cell .lc-continue-actions { margin-top: 0; gap: 14px; }
.lc-continue-cell .lc-continue-meta { margin-bottom: 8px; }

/* Dashboard desktop : Mode nuit réduit, Favoris/Mémorisation agrandis, lignes sur 1 ligne */
@media (min-width: 992px) {
  .lc-dashboard { grid-template-columns: 2fr 1.1fr 1.1fr 0.8fr; }
  .lc-dashboard .lc-dash-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.lc-dash-cell--night .lc-continue-top { margin-bottom: 8px; }
.lc-dash-cell--night .lc-switch { margin-top: 0; }
.lc-dash-cell--night::after { font-size: 80px; right: -6px; bottom: -14px; }

/* ===================================================================
   19. Hero en ligne : titre à gauche, pills à droite
   =================================================================== */
.page_index .zone_titre {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; text-align: left; flex-wrap: wrap;
  padding: clamp(26px, 4vw, 48px) 0 8px;
}
.page_index .zone_titre::before { content: none; }
.lc-hero-text { flex: 1 1 360px; }
.lc-hero-text .lc-ornament { justify-content: flex-start; margin: 0 0 10px; }
.page_index .zone_titre h1 { margin: 0; }
.page_index .lc-pills { flex: 0 1 auto; flex-wrap: nowrap; justify-content: flex-end; margin: 0; max-width: none; gap: 8px; }
.page_index .zone_titre .choix_langue { padding: .55em 1em; font-size: .9rem; white-space: nowrap; }
@media (max-width: 860px) {
  .page_index .zone_titre { flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 18px; }
  .lc-hero-text { flex: 0 0 auto; width: 100%; }
  .lc-hero-text .lc-ornament { justify-content: center; }
  .page_index .lc-pills { flex: 0 0 auto; flex-wrap: wrap; justify-content: center; }
  .page_index .lc-surah-head { min-height: 145px; }
  .lc-modern-variant .lc-hero-text { min-height: 0; display: block; }
  .lc-modern-variant .lc-dashboard { min-height: 360px; }
}

/* ===================================================================
   20. Hero icône inline + dropdown "Aller à une sourate" designé
   =================================================================== */
/* Icône livre à côté du titre (gain de hauteur) */
.page_index .zone_titre h1 { display: flex; align-items: center; gap: 14px; }
.lc-hero-icon { flex: 0 0 auto; display: inline-flex; color: var(--lc-green); font-size: .82em; }
.lc-ornament { display: none; } /* ancien ornement non utilisé */

/* Pills parfaitement centrées verticalement avec le titre */
.page_index .zone_titre { align-items: center; }
.page_index .lc-pills { align-items: center; }

/* --- Dropdown custom "Aller à une sourate" (pur CSS) --- */
.lc-surah-nav::before { content: none; }
.lc-jump { position: relative; display: inline-block; }
.lc-jump-cb { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lc-jump-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 11px 18px; border-radius: var(--lc-pill);
  border: 1px solid var(--lc-line); background: var(--lc-surface);
  box-shadow: var(--lc-shadow-sm); font-weight: 600; color: var(--lc-ink);
  min-width: 230px; transition: border-color var(--lc-trans), box-shadow var(--lc-trans);
}
.lc-jump-btn > span { margin-right: auto; }
.lc-jump-btn > i:first-child { color: var(--lc-green); }
@media (hover: hover) {.lc-jump-btn:hover{ border-color: var(--lc-green); box-shadow: var(--lc-shadow); }}
.lc-jump-caret { color: var(--lc-ink-faint); font-size: .78rem; transition: transform var(--lc-trans); }
.lc-jump-cb:checked ~ .lc-jump-btn { border-color: var(--lc-green); box-shadow: 0 0 0 3px var(--lc-green-tint); }
.lc-jump-cb:checked ~ .lc-jump-btn .lc-jump-caret { transform: rotate(180deg); }

.lc-jump-backdrop { display: none; position: fixed; inset: 0; z-index: 40; cursor: default; }
.lc-jump-cb:checked ~ .lc-jump-backdrop { display: block; }

.lc-jump-panel {
  display: none; position: absolute; top: calc(100% + 10px); right: 0; z-index: 50;
  width: 360px; max-height: 60vh; overflow-y: auto; padding: 8px;
  background: var(--lc-surface); border: 1px solid var(--lc-line);
  border-radius: var(--lc-r); box-shadow: var(--lc-shadow-lg);
  animation: lcDrop .16s ease;
}
.lc-jump-cb:checked ~ .lc-jump-panel { display: block; }
.lc-jump-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--lc-r-xs); color: var(--lc-ink); }
@media (hover: hover) {.lc-jump-item:hover{ background: var(--lc-green-tint); color: var(--lc-ink); }}
.lc-jump-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lc-surface-2); border: 1px solid var(--lc-line); font-weight: 700; font-size: .78rem; color: var(--lc-ink-soft); }
.lc-jump-tx { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.lc-jump-tx b { font-weight: 700; font-size: .92rem; }
.lc-jump-tx small { color: var(--lc-ink-soft); font-size: .78rem; }
.lc-jump-ar { margin-left: auto; font-family: var(--lc-arab); color: var(--lc-green); font-size: 1.3rem; white-space: nowrap; }

@media (max-width: 991px) {
  .lc-jump { display: block; flex: 1 1 auto; }
  .lc-jump-btn { width: 100%; min-width: 0; justify-content: center; }
  .lc-jump-btn > span { margin-right: 0; }
  .lc-jump-panel { left: 0; right: 0; width: auto; }
}
@media (max-width: 860px) {
  .page_index .zone_titre h1 { justify-content: center; }
}

/* Card sourate : structure 2 lignes (translit+arabe / français+versets) */
.a_case .lc-case-tx { flex: 1 1 auto; min-width: 0; gap: 5px; }
.a_case .lc-case-r1, .a_case .lc-case-r2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.a_case .lc-case-r1 .transcription { font-weight: 700; font-size: .98rem; color: var(--lc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a_case .lc-case-r1 .nom { font-size: 1.2rem; line-height: 1.4; white-space: nowrap; }
.a_case .lc-case-r2 .traduction { color: var(--lc-ink-soft); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a_case .lc-case-r2 .nb_versets { color: var(--lc-ink-faint); font-size: .76rem; white-space: nowrap; margin-top: 0; }

/* H1 hero : sous-titre plus léger */
.page_index .zone_titre h1 { flex-wrap: wrap; align-items: center; }
.lc-h1-sub { font-size: .58em; font-weight: 400; color: var(--lc-ink-soft); letter-spacing: 0; }

/* Continuer ma lecture : méta + barre de progression sur la même ligne */
.lc-continue-bottom { display: flex; align-items: center; gap: 16px; }
.lc-continue-bottom .lc-continue-meta { margin: 0; white-space: nowrap; flex: 0 0 auto; }
.lc-continue-bottom .lc-progress-row { flex: 1 1 auto; margin: 0; min-width: 80px; }
@media (max-width: 600px) {
  .lc-continue-bottom { flex-direction: column; align-items: stretch; gap: 8px; }
}

/* Cards sourates : plus de padding (respiration) */
.a_case { padding: 19px 21px; }
.a_case .lc-case-tx { gap: 6px; }
@media (max-width: 600px) { .a_case { padding: 15px 16px; } }

/* H1 : aligner le sous-titre sur la baseline du titre */
.page_index .zone_titre h1 { align-items: baseline; }
.lc-hero-icon { align-self: center; }
.lc-h1-sub { align-self: baseline; }

/* Variantes accueil arabe / phonétique / anglais : même niveau visuel que l'accueil français */
.lc-modern-variant .zone_titre {
  box-sizing: border-box;
  margin-top: 10px;
}
.lc-modern-variant .lc-hero-text {
  min-height: 93px;
  display: flex;
  align-items: center;
}
.lc-modern-variant .lc-dashboard {
  min-height: 127px;
}
.lc-modern-variant .order {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.lc-modern-variant #droite {
  order: 1;
  width: 100%;
}
.lc-modern-variant .presentation {
  order: 3;
  width: 100%;
  max-width: none;
  margin-top: 46px;
  padding: clamp(28px, 4vw, 60px) !important;
  background: var(--lc-surface);
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-r);
  box-shadow: var(--lc-shadow-sm);
  color: var(--lc-ink-soft);
}
.lc-modern-variant .presentation::after {
  content: "";
  display: block;
  clear: both;
}
.lc-modern-variant .presentation > h2:first-child {
  text-align: center;
  margin: 0 auto 26px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--lc-green);
  width: fit-content;
  max-width: 100%;
}
.lc-modern-variant .presentation {
  columns: 2;
  column-gap: 60px;
}
.lc-modern-variant .presentation > h2 {
  column-span: all;
  font-family: var(--lc-serif);
  font-size: 1.35rem;
  color: var(--lc-ink);
  margin: 1.4em 0 .6em;
  padding-top: .5em;
  border-top: 2px solid var(--lc-green-tint);
}
.lc-modern-variant .presentation > h2:first-child {
  border-top: 0;
}
.lc-modern-variant .presentation p,
.lc-modern-variant .presentation ul,
.lc-modern-variant .presentation blockquote {
  break-inside: avoid;
}
.lc-modern-variant .presentation p {
  margin: 0 0 1em;
  line-height: 1.8;
}
.lc-modern-variant .presentation blockquote {
  background: var(--lc-surface-2);
  border-left: 4px solid var(--lc-green);
  border-radius: 0 var(--lc-r-sm) var(--lc-r-sm) 0;
  box-shadow: var(--lc-shadow-sm);
  padding: 14px 18px;
  margin: 0 0 1.1em;
  color: var(--lc-ink);
  font-style: italic;
}
.lc-modern-variant .presentation .contributeur {
  column-span: all;
  break-inside: avoid;
  margin-top: 26px;
  padding: 16px 20px;
  background: var(--lc-surface-2);
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-r);
}
.lc-modern-variant .order > .lc-bottom {
  order: 2;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
}
.lc-modern-variant #droite > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: clamp(30px,5vw,52px) 0 18px;
  font-size: 1.5rem;
}
.lc-modern-variant #droite > h2::before {
  content: "\f02d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--lc-green);
}
.lc-modern-variant #droite > .lc-surah-head {
  margin-top: clamp(30px,5vw,52px);
}
.lc-modern-variant #droite > .lc-surah-head h2 {
  font-size: 1.5rem;
}
.lc-modern-variant #contenu_s > .nav_rapide {
  display: none;
}
.lc-modern-variant .presentation h2 {
  color: var(--lc-ink);
}
@media (max-width: 820px) {
  .lc-modern-variant .presentation {
    columns: 1;
  }
}

@media (max-width: 860px) {
  .lc-modern-variant .lc-hero-text {
    min-height: 0 !important;
    display: block !important;
  }
  .lc-modern-variant .zone_titre {
    min-height: 0 !important;
  }
  .lc-modern-variant .lc-dashboard {
    min-height: 360px !important;
  }
}

/* ===================================================================
   24. Grande recherche centrale (accueil)
   =================================================================== */
.lc-search-hero { max-width: 840px; margin: 6px auto 0; }
.lc-search-box { position: relative; display: flex; align-items: center; gap: 6px; background: var(--lc-surface); border: 2px solid var(--lc-line); border-radius: var(--lc-pill); box-shadow: var(--lc-shadow); padding: 6px 8px 6px 22px; }
.lc-search-box:focus-within { border-color: var(--lc-green); box-shadow: 0 0 0 4px var(--lc-green-tint), var(--lc-shadow); }
.lc-search-ic { color: var(--lc-green); font-size: 1.15rem; flex: 0 0 auto; }
#lc-central-search { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font-size: 1.08rem; padding: 13px 12px; outline: none; color: var(--lc-ink); font-family: var(--lc-sans); }
.lc-search-btn { flex: 0 0 auto; border: 0; background: var(--lc-green); color: #fff; font-weight: 700; font-size: .98rem; padding: 13px 26px; border-radius: var(--lc-pill); cursor: pointer; transition: background var(--lc-trans); }
@media (hover: hover) {.lc-search-btn:hover{ background: var(--lc-green-d); }}
.lc-search-suggest { display: none; position: absolute; top: calc(100% + 12px); left: 0; right: 0; z-index: 60; background: var(--lc-surface); border: 1px solid var(--lc-line); border-radius: var(--lc-r); box-shadow: var(--lc-shadow-lg); max-height: 72vh; overflow: auto; text-align: left; }
@media (max-width: 600px) {
  .lc-search-box { padding-left: 16px; }
  .lc-search-btn span { display: none; }
  .lc-search-btn::after { content: "\f002"; font-family: "Font Awesome 5 Free"; font-weight: 900; }
  #lc-central-search { font-size: 1rem; }
}

/* ===================================================================
   25. QA mobile 2026-07 — grille sourates lisible, cartes orphelines,
       SEO repliable en « Lire la suite »
   =================================================================== */
/* Grille des 114 sourates : 1 colonne sur mobile (fini les noms tronqués) */
@media (max-width: 600px) {
  .page_index #contenu_s .sourate_acc { width: 100%; }
  .page_index #contenu_s .sourate_acc .a_case { border-right: 0; }
}

/* Dernière carte seule sur sa ligne : pleine largeur (actions + apprendre) */
@media (max-width: 700px) {
  .lc-actions .lc-action:nth-child(5) { grid-column: 1 / -1; }
  .lc-cards--5 > :nth-child(5),
  .lc-cards--6 > :nth-child(5) { grid-column: 1 / -1; }
}

/* SEO : replié sur mobile avec bouton « Lire la suite » (contenu conservé
   dans le DOM pour le référencement — simple max-height CSS) */
.lc-seo-more-cb { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lc-seo-more-btn { display: none; }
@media (max-width: 700px) {
  .lc-modern-variant .presentation { position: relative; max-height: 430px; overflow: hidden; }
  .lc-seo-more-cb:checked ~ .presentation { max-height: none; }
  .lc-modern-variant .presentation::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 130px;
    background: linear-gradient(180deg, transparent, var(--lc-surface));
    pointer-events: none; z-index: 2;
  }
  .lc-seo-more-cb:checked ~ .presentation::before { content: none; }
  .lc-seo-more-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 14px auto 0; padding: 11px 26px; width: fit-content;
    border: 1px solid var(--lc-line); border-radius: var(--lc-pill);
    background: var(--lc-surface); color: var(--lc-green);
    font-weight: 700; font-size: .95rem; cursor: pointer;
    box-shadow: var(--lc-shadow-sm);
  }
  .lc-seo-more-btn::after { content: "\f078"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: .8rem; }
  .lc-seo-more-cb:checked ~ .lc-seo-more-btn::after { content: "\f077"; }
  .lc-seo-more-btn .lc-seo-less { display: none; }
  .lc-seo-more-cb:checked ~ .lc-seo-more-btn .lc-seo-more { display: none; }
  .lc-seo-more-cb:checked ~ .lc-seo-more-btn .lc-seo-less { display: inline; }
}

/* Tablette (768-991px) : 3 colonnes au lieu de 4 (noms complets lisibles) */
@media (min-width: 768px) and (max-width: 991px) {
  .page_index #contenu_s .sourate_acc { width: 33.3333%; }
  .page_index #contenu_s .sourate_acc:nth-child(4n) .a_case { border-right: 1px solid var(--lc-line-2); }
  .page_index #contenu_s .sourate_acc:nth-child(3n) .a_case { border-right: 0; }
}

/* ===================================================================
   26. Accueil mobile compact — la liste des sourates visible sans scroller
   =================================================================== */
.lc-dash-cb { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lc-dash-toggle { display: none; }

@media (max-width: 600px) {
  /* Cartes d'action -> rangée horizontale scrollable de pastilles (app-like) */
  .lc-actions {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 2px 2px 8px;
    margin-inline: -2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .lc-actions::-webkit-scrollbar { display: none; }
  .lc-actions .lc-action {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    scroll-snap-align: start;
    padding: 9px 14px;
    border-radius: var(--lc-pill);
    border-top-width: 1px;
    border-left: 3px solid var(--accent);
    grid-column: auto !important;
  }
  .lc-actions .lc-action-ic { width: 30px; height: 30px; font-size: .95rem; border-radius: 9px; }
  .lc-actions .lc-action-t { font-size: .9rem; white-space: nowrap; }
  .lc-actions .lc-action-s { display: none; }

  /* Tableau de bord replié : la pastille « Ma lecture » vit dans la rangée d'actions */
  .lc-actions .lc-action--dash { display: inline-flex; cursor: pointer; }
  .lc-actions .lc-action--dash .lc-dash-caret { color: var(--lc-ink-faint); font-size: .75rem; transition: transform var(--lc-trans); }
  .lc-home-top:has(.lc-dash-cb:checked) .lc-action--dash .lc-dash-caret { transform: rotate(180deg); }
  .lc-home-top:has(.lc-dash-cb:checked) .lc-action--dash { border-color: var(--lc-green); background: var(--lc-green-tint); }
  .lc-dash-cb:not(:checked) ~ .lc-dashboard { display: none; }
  .lc-dash-cb:checked ~ .lc-dashboard { margin-top: 10px; }

  /* Pills de langue : une ligne défilable */
  .page_index .lc-pills {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 2px 6px;
    margin-inline: -2px;
  }
  .page_index .lc-pills::-webkit-scrollbar { display: none; }
  .page_index .lc-pills .choix_langue { flex: 0 0 auto; white-space: nowrap; }

  /* Resserrer les espacements au-dessus de la liste */
  .lc-home-section { padding-top: 18px; }
  .lc-surah-head { margin-bottom: 12px; }
}

/* La pastille « Ma lecture » n'existe que sur mobile (desktop = dashboard toujours visible) */
.lc-action--dash { display: none; }
.lc-dash-toggle { display: none; }

/* Mobile : moins d'air entre le titre de section et « Choisir une sourate » */
@media (max-width: 860px) {
  .page_index .lc-surah-head { min-height: 0; gap: 8px; }
  .lc-home-section { padding-top: 14px; }
}

/* Affordance de scroll : fondu au bord droit des rangées défilables (mobile) */
@media (max-width: 600px) {
  .lc-actions, .page_index .lc-pills {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent);
  }
}

/* ===================================================================
   27. Accueil mobile : 2 sourates par ligne SANS troncature
   (empilement vertical dans la carte + retour à la ligne partout)
   =================================================================== */
@media (max-width: 600px) {
  .page_index #contenu_s .sourate_acc { width: 50%; }
  .page_index #contenu_s .sourate_acc:nth-child(odd) .a_case { border-right: 1px solid var(--lc-line-2); }
  .page_index #contenu_s .sourate_acc:nth-child(even) .a_case { border-right: 0; }
  .a_case { padding: 11px 12px 12px; gap: 8px; }
  .lc-snum { width: 24px; height: 24px; font-size: .7rem; margin-top: 1px; }
  .a_case .lc-case-tx { gap: 3px; }
  /* nom + arabe empilés, wrap libre */
  .a_case .lc-case-r1 { flex-direction: column; align-items: flex-start; gap: 1px; }
  .a_case .lc-case-r1 .transcription {
    white-space: normal; overflow: visible; text-overflow: clip;
    overflow-wrap: anywhere; font-size: .88rem; line-height: 1.25;
  }
  .a_case .lc-case-r1 .nom { white-space: normal; font-size: 1.02rem; line-height: 1.35; }
  /* traduction + nb versets empilés, wrap libre */
  .a_case .lc-case-r2 { flex-direction: column; align-items: flex-start; gap: 1px; }
  .a_case .lc-case-r2 .traduction {
    white-space: normal; overflow: visible; text-overflow: clip;
    overflow-wrap: anywhere; font-size: .74rem; line-height: 1.3;
  }
  .a_case .lc-case-r2 .nb_versets { font-size: .69rem; }
}
