/* ===========================================
   Cartographie de la Sunna — Institut Miftah
   Adapté du template Coran
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600;700&display=swap');

/* --- Variables --- */
:root {
  --bg: #ffffff;
  --cream: #faf7f2;
  --card: #ffffff;
  --card-hover: #fdfcf8;
  --border: #e4ddd0;
  --text: #1f3a5f;
  --dim: #6b7280;

  /* Palette Sunna — vert profond dominant */
  --accent: #c9302c;
  --accent-dark: #972121;
  --accent-light: #e0595a;
  --navy: #1f3a5f;

  /* Couleurs thématiques pour sections */
  --green: #c9302c;
  --gold: #c8984a;
  --blue: #3a8fc2;
  --red: #c25b6e;
  --orange: #d4783b;
  --purple: #7b5ea7;
  --teal: #0eb290;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* --- Base --- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* =====================
   SITE HEADER
   ===================== */
.site-header {
  text-align: center;
  padding: 28px 24px 0;
}
.site-header a { text-decoration: none; display: inline-block; }
.site-header img {
  height: 100px;
  margin: 0 auto;
  transition: opacity .2s;
}
.site-header img:hover { opacity: .85; }

/* =====================
   HERO (page d'accueil)
   ===================== */
.hero {
  text-align: center;
  padding: 16px 24px 28px;
}
.hero-bismillah {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: 1.8rem;
  color: var(--accent);
  direction: rtl;
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeDown .8s .1s ease forwards;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  opacity: 0;
  animation: fadeDown .8s .2s ease forwards;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
  font-size: .92rem;
  color: var(--dim);
  margin-top: 10px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  opacity: 0;
  animation: fadeDown .8s .3s ease forwards;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 22px;
  opacity: 0;
  animation: fadeDown .8s .4s ease forwards;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: .78rem;
  color: var(--dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Gold line */
.gold-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 20px auto;
}

/* =====================
   CARTE HADITH INTRO (page accueil)
   ===================== */
.hadith-card-intro {
  max-width: 820px;
  margin: 30px auto;
  padding: 0 20px;
}
.hadith-card-intro-inner {
  background: var(--cream);
  border: 1px solid var(--border);
  border-right: 4px solid var(--accent);
  border-radius: 10px;
  padding: 26px 30px;
}
.hadith-card-intro-inner .ar-text {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: 1.15rem;
  line-height: 2;
  direction: rtl;
  color: var(--navy);
  text-align: right;
  margin-bottom: 14px;
}
.hadith-card-intro-inner .fr-text {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.hadith-card-intro-inner .source {
  font-size: .8rem;
  color: var(--dim);
  margin-top: 10px;
  text-align: right;
}

/* =====================
   SEARCH BAR
   ===================== */
.search-bar {
  max-width: 500px;
  margin: 20px auto;
  padding: 0 20px;
  text-align: center;
}
.search-bar input {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 48, 44, 0.1);
}
.search-count {
  margin-top: 8px;
  font-size: .82rem;
  color: var(--dim);
  font-style: italic;
}

/* =====================
   SECTION TITLES (familles thématiques)
   ===================== */
.section-title {
  text-align: center;
  max-width: 800px;
  margin: 30px auto 20px;
  padding: 0 20px;
}
.section-title h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.section-title .ar-section {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: 1.3rem;
  color: var(--accent);
  direction: rtl;
  margin-bottom: 10px;
}
.section-title p {
  font-size: .88rem;
  color: var(--dim);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* =====================
   GRID + CARDS (hadiths)
   ===================== */
.hadith-grid {
  max-width: 1100px;
  margin: 0 auto 20px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.hadith-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 16px 16px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.hadith-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(31, 58, 95, 0.1);
  border-color: var(--accent-light);
  background: var(--card-hover);
}
.card-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.ready-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: .65rem;
  color: var(--accent);
  font-weight: 600;
  background: rgba(201, 48, 44, 0.08);
  padding: 3px 8px;
  border-radius: 10px;
}

/* Badge "à venir" */
.coming-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: .65rem;
  color: var(--dim);
  font-weight: 600;
  background: rgba(107, 114, 128, 0.12);
  padding: 3px 8px;
  border-radius: 10px;
}

/* Cartes "à venir" : grisées et non cliquables */
.hadith-card.coming-soon {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(30%);
}

.hadith-card.coming-soon:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(31, 58, 95, 0.05);
  border-color: var(--border);
  background: var(--card);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 6px;
  margin-bottom: 10px;
}
.card-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-number .num {
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.card-meta { flex: 1; min-width: 0; }
.card-meta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 2px;
}
.card-meta .ar-name {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: .95rem;
  color: var(--accent-dark);
  direction: rtl;
  display: block;
  margin-bottom: 4px;
}
.card-source {
  font-size: .7rem;
  color: var(--dim);
  font-style: italic;
}
.card-desc {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.5;
  margin-top: auto;
}

.footer-ar {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: 1.2rem;
  color: var(--accent);
  direction: rtl;
  margin-bottom: 14px;
}

/* =====================
   BREADCRUMB
   ===================== */
.breadcrumb {
  max-width: 900px;
  margin: 16px auto;
  padding: 0 24px;
  font-size: .85rem;
  color: var(--dim);
  text-align: center;
}
.breadcrumb a {
  color: var(--accent);
  transition: color .2s;
}
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb span { margin: 0 6px; color: var(--dim); }

/* =====================
   HEADER PAGE HADITH
   ===================== */
.header {
  text-align: center;
  padding: 20px 24px 30px;
  max-width: 900px;
  margin: 0 auto;
}
.bismillah {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: 1.8rem;
  color: var(--accent);
  direction: rtl;
  margin-bottom: 14px;
}
.header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.header h1 span { color: var(--accent); }
.header .ar-title {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: 1.6rem;
  color: var(--accent-dark);
  direction: rtl;
  margin: 10px 0;
}
.header .sub {
  font-size: .95rem;
  color: var(--dim);
  margin-top: 10px;
  line-height: 1.6;
}
.header .sub strong { color: var(--accent-dark); }

/* =====================
   INTRO
   ===================== */
.intro {
  max-width: 820px;
  margin: 0 auto 30px;
  padding: 24px 28px;
  background: var(--cream);
  border-radius: 10px;
  border-right: 3px solid var(--accent);
}
.intro p {
  font-size: .98rem;
  line-height: 1.75;
  color: var(--text);
}

/* =====================
   BOUTON IMPRIMER
   ===================== */
.print-btn-wrap {
  text-align: center;
  margin: 20px auto 30px;
  max-width: 600px;
}
.print-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: .95rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
}
.print-btn:hover { background: var(--accent-dark); }
.print-note {
  font-size: .8rem;
  color: var(--dim);
  margin-top: 8px;
  font-style: italic;
}

/* =====================
   HADITH CARD (arabe + trad)
   ===================== */
.hadith-main {
  max-width: 860px;
  margin: 0 auto 40px;
  padding: 0 20px;
}
.hadith-main-card {
  background: #fff;
  border: 1px solid var(--border);
  border-right: 4px solid var(--accent);
  border-radius: 10px;
  padding: 32px 36px;
  box-shadow: 0 2px 8px rgba(31, 58, 95, 0.06);
}
.hadith-main-card .ar-text {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: 1.4rem;
  line-height: 2.2;
  direction: rtl;
  color: var(--navy);
  text-align: right;
  margin-bottom: 20px;
}
.hadith-main-card .fr-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.hadith-main-card .source {
  font-size: .85rem;
  color: var(--dim);
  margin-top: 14px;
  text-align: right;
}
.hadith-main-card .source strong { color: var(--accent-dark); }

/* =====================
   BIOGRAPHIE + GLOSSAIRE (style Zad)
   ===================== */
.biographie-glossaire {
  max-width: 860px;
  margin: 0 auto 30px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .biographie-glossaire {
    grid-template-columns: 1fr;
  }
}

.biographie-card,
.glossaire-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(31, 58, 95, 0.04);
}

.biographie-header,
.glossaire-header {
  padding: 14px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.biographie-header h3,
.glossaire-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.biographie-icon,
.glossaire-icon {
  font-size: 1.2rem;
}

.biographie-body {
  padding: 18px 22px;
}

.biographie-body p {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--text);
}

.glossaire-body {
  padding: 14px 20px;
}

.glossaire-list {
  margin: 0;
  padding: 0;
}

.glossaire-entry {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.glossaire-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.glossaire-entry:first-child {
  padding-top: 0;
}

.glossaire-entry dt {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.mot-ar {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: 1.15rem;
  color: var(--accent-dark);
  direction: rtl;
  font-weight: 600;
}

.mot-fr {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  color: var(--dim);
  font-style: italic;
}

.glossaire-entry dd {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text);
  margin-left: 0;
  padding-left: 0;
}

/* =====================
   SECTIONS DÉPLIABLES
   ===================== */
.sections {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.block:hover {
  border-color: var(--accent-light);
  box-shadow: 0 3px 12px rgba(31, 58, 95, 0.08);
}

.b-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.b-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.b-meta { flex: 1; }
.b-meta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 4px;
}
.bv {
  font-size: .8rem;
  color: var(--dim);
  margin-bottom: 6px;
  font-style: italic;
}
.b-summary {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.6;
  margin-top: 8px;
}
.b-tags {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.btag {
  font-size: .72rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}
.btag-theme {
  background: rgba(201, 48, 44, 0.1);
  color: var(--accent-dark);
}
.btag-key {
  background: rgba(200, 152, 74, 0.15);
  color: #8a6625;
}
.b-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform .3s;
  flex-shrink: 0;
}
.block.open .b-arrow {
  transform: rotate(180deg);
}

.b-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.block.open .b-detail {
  max-height: 3000px;
}
.detail-inner {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 0;
}

.d-section {
  margin-bottom: 24px;
}
.d-section:last-child { margin-bottom: 0; }
.d-section h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.d-section p {
  font-size: .94rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 12px;
}

.ayah {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: 1.05rem;
  line-height: 2;
  direction: rtl;
  text-align: right;
  padding: 14px 18px;
  border-right: 3px solid var(--accent);
  background: rgba(201, 48, 44, 0.06);
  border-radius: 6px;
  margin: 12px 0;
  color: var(--navy);
}

.rules-list {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}
.rules-list li {
  position: relative;
  padding: 10px 14px 10px 32px;
  margin-bottom: 8px;
  background: var(--cream);
  border-radius: 6px;
  font-size: .92rem;
  line-height: 1.6;
}
.rules-list li::before {
  content: "◆";
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--accent);
  font-size: .8rem;
}

.link-box {
  background: rgba(201, 48, 44, 0.08);
  border-right: 3px solid var(--accent);
  padding: 12px 16px;
  margin-top: 14px;
  border-radius: 6px;
  font-size: .88rem;
  line-height: 1.6;
}
.link-box strong { color: var(--accent-dark); }

/* =====================
   GRILLE MNÉMOTECHNIQUE
   ===================== */
.mnemonic {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 20px;
}
.mnemonic-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.mnemonic-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin-bottom: 20px;
}
.m-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.m-item {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid;
  text-align: center;
}
.m-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.m-label {
  font-size: .88rem;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 500;
}
.m-verses {
  font-size: .75rem;
  color: var(--dim);
  font-style: italic;
}

/* =====================
   NAVIGATION HADITH
   ===================== */
.nav-hadith {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.nav-hadith > *:nth-child(1) { justify-self: start; }
.nav-hadith > *:nth-child(2) { justify-self: center; }
.nav-hadith > *:nth-child(3) { justify-self: end; }
.nav-hadith a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  transition: all .2s;
  min-height: 44px;
}
.nav-hadith a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--cream);
}
.nav-home {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent) !important;
}
.nav-home:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
}
/* Placeholder span pour les fiches "à venir" */
.nav-hadith > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px !important;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #fafafa;
  color: var(--dim) !important;
  font-size: .82rem !important;
  font-style: italic;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  text-align: center;
  padding: 40px 24px 30px;
  font-size: .85rem;
  color: var(--dim);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer a {
  color: var(--accent);
}
.footer p {
  line-height: 1.7;
}

/* =====================
   PROGRESS BAR + SCROLL TOP
   ===================== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 999;
  transition: width .2s ease;
}
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .2s;
  box-shadow: 0 4px 12px rgba(31, 58, 95, 0.2);
  z-index: 998;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

/* =====================
   IMPRESSION PDF
   ===================== */
@media print {
  body { background: #fff; }
  .site-header, .breadcrumb, .print-btn-wrap, .nav-hadith, .footer,
  .progress-bar, .scroll-top { display: none !important; }
  .block { page-break-inside: avoid; }
  .b-detail { max-height: none !important; }
  .b-arrow { display: none; }
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 640px) {
  .header h1 { font-size: 1.9rem; }
  .header .ar-title { font-size: 1.3rem; }
  .hadith-main-card { padding: 22px 20px; }
  .hadith-main-card .ar-text { font-size: 1.2rem; }
  .b-header { padding: 16px 18px; gap: 12px; }
  .b-icon { width: 36px; height: 36px; font-size: 1rem; }
  .b-meta h3 { font-size: 1.1rem; }
  .detail-inner { padding: 20px 18px; }
  .mnemonic-card { padding: 20px; }

  /* Bottom nav réorganisée en grille 2 lignes : prev|next puis Accueil pleine largeur */
  .nav-hadith {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "prev next"
      "home home";
    gap: 10px;
    margin: 30px auto 50px;
  }
  .nav-hadith > *:nth-child(1) {
    grid-area: prev;
    justify-self: stretch;
    text-align: center;
    font-size: .82rem;
    padding: 12px 10px;
  }
  .nav-hadith > *:nth-child(2) {
    grid-area: home;
    justify-self: stretch;
    text-align: center;
    padding: 14px 18px;
    font-size: .95rem;
    font-weight: 600;
  }
  .nav-hadith > *:nth-child(3) {
    grid-area: next;
    justify-self: stretch;
    text-align: center;
    font-size: .82rem;
    padding: 12px 10px;
  }

  /* Footer + bouton scroll-top : éviter le chevauchement avec le hadîth */
  .footer { padding: 30px 20px 90px; }
  .footer-ar { font-size: 1.05rem; }
  .scroll-top {
    bottom: 18px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
}

/* =====================================================
   CARTOGRAPHIE — ACCORDÉONS PAR KITAB (page d'accueil)
   ===================================================== */
.legend {
  max-width: 900px;
  margin: 6px auto 18px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  gap: 16px 22px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--dim);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.fondation { background: #2d7d4b; }
.legend-dot.pratique  { background: #3a8fc2; }
.legend-dot.avance    { background: #7b5ea7; }
.legend-dot.dispo     { background: var(--accent); }
.legend-dot.venir     { background: #cbcfd6; border: 1px solid #b3b8c1; }

.kitab-list {
  max-width: 1100px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

details.kitab {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--kitab-color, var(--accent));
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(31, 58, 95, 0.04);
  transition: box-shadow .2s, border-color .2s;
}
details.kitab[open] {
  box-shadow: 0 6px 22px rgba(31, 58, 95, 0.10);
}

.kitab-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.kitab-head::-webkit-details-marker { display: none; }
.kitab-head::marker { display: none; content: ""; }

.kitab-letter {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--kitab-color, var(--accent));
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kitab-titles { min-width: 0; }
.kitab-titles h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 2px;
}
.kitab-ar {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: 1.2rem;
  color: var(--kitab-color, var(--accent-dark));
  direction: rtl;
  margin-bottom: 6px;
}
.kitab-desc {
  font-size: .88rem;
  color: var(--dim);
  line-height: 1.55;
  margin: 0;
}

.kitab-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  text-align: right;
  min-width: 130px;
}
.kitab-count {
  font-size: .8rem;
  color: var(--dim);
}
.kitab-count strong {
  color: var(--navy);
  font-size: 1rem;
  font-family: 'Cormorant Garamond', serif;
}
.kitab-progress {
  font-size: .72rem;
  color: var(--kitab-color, var(--accent));
  font-weight: 600;
  background: rgba(0,0,0,0.04);
  padding: 3px 8px;
  border-radius: 10px;
}
.kitab-toggle {
  font-size: .8rem;
  color: var(--kitab-color, var(--accent));
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.kitab-arrow {
  display: inline-block;
  transition: transform .25s ease;
}
details.kitab[open] .kitab-arrow { transform: rotate(180deg); }
details.kitab[open] .kitab-toggle::before { content: "Fermer"; }
details.kitab[open] .kitab-toggle .k-text { display: none; }
/* simpler: hide the word "Ouvrir" only via JS-less swap is tricky — rely on visual cue */

.kitab-body {
  padding: 4px 22px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  border-top: 1px dashed var(--border);
}

/* === Cartes fiche === */
.fiche-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: transform .18s ease, border-color .18s, box-shadow .18s;
  cursor: default;
  text-decoration: none;
  color: inherit;
}
.fiche-card.available {
  cursor: pointer;
  border-color: #d8d2c2;
}
.fiche-card.available:hover {
  transform: translateY(-2px);
  border-color: var(--accent-light);
  box-shadow: 0 8px 22px rgba(31, 58, 95, 0.08);
}
.fiche-card.coming {
  background: #fafafa;
  opacity: .78;
}

.fiche-num {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: .85rem;
  color: var(--dim);
  letter-spacing: .5px;
}
.fiche-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  padding-right: 40px;
  margin: 0;
}
.fiche-card h3 em {
  font-style: italic;
  color: var(--accent-dark);
  font-weight: 600;
}
.fiche-ar {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: 1rem;
  color: var(--accent-dark);
  direction: rtl;
}
.fiche-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.tag-level, .tag-status {
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: .3px;
}
.tag-level.fondation { background: rgba(45,125,75,.12);  color: #1e5d35; }
.tag-level.pratique  { background: rgba(58,143,194,.12); color: #1f6694; }
.tag-level.avance    { background: rgba(123,94,167,.14); color: #5a3f86; }
.tag-status.dispo    { background: rgba(201,48,44,.12);  color: var(--accent-dark); }
.tag-status.venir    { background: rgba(107,114,128,.12); color: #4a5260; }

.fiche-skill {
  font-size: .82rem;
  line-height: 1.5;
  color: var(--text);
  margin-top: 4px;
  font-style: italic;
}
.fiche-cta {
  align-self: flex-start;
  margin-top: 4px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
}
.fiche-card.available:hover .fiche-cta { color: var(--accent-dark); }

@media (max-width: 720px) {
  .kitab-head {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }
  .kitab-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    text-align: left;
    min-width: 0;
    margin-top: 4px;
    padding-left: 56px;
  }
  .kitab-titles h2 { font-size: 1.25rem; }
  .kitab-ar { font-size: 1.05rem; }
  .kitab-body {
    padding: 4px 14px 16px;
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   FICHES CHAPITRE — MÉTHODE PRATIQUE & COMPOSANTS PÉDAGOGIQUES
   ===================================================== */

/* Objectif de la fiche */
.objectif {
  max-width: 820px;
  margin: 0 auto 26px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(201,48,44,.05), rgba(31,58,95,.04));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}
.objectif h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--accent-dark);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.objectif p {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

/* Méthode pratique : appliquer le fiqh — 5 étapes */
.method {
  max-width: 860px;
  margin: 36px auto;
  padding: 0 20px;
}
.method-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 28px 22px;
  box-shadow: 0 2px 10px rgba(31,58,95,.05);
}
.method-card > h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  margin: 0 0 4px;
}
.method-sub {
  text-align: center;
  font-size: .82rem;
  color: var(--dim);
  font-style: italic;
  margin-bottom: 22px;
}
.method-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.method-step {
  position: relative;
  padding: 16px 18px 16px 64px;
  background: var(--cream);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}
.method-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.method-step h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--accent-dark);
  margin: 0 0 6px;
}
.method-step ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.method-step ul li {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text);
  padding: 3px 0 3px 18px;
  position: relative;
}
.method-step ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.method-step .case-answer {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px dashed var(--accent-light);
  border-radius: 6px;
  font-size: .88rem;
  line-height: 1.6;
}
.method-step .case-answer strong { color: var(--accent-dark); }

/* Erreurs fréquentes */
.errors {
  max-width: 860px;
  margin: 30px auto;
  padding: 0 20px;
}
.errors-card {
  background: #fff;
  border: 1px solid #e9ccc9;
  border-left: 4px solid #c25b6e;
  border-radius: 10px;
  padding: 22px 24px;
}
.errors-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: #8a2a3c;
  margin: 0 0 12px;
}
.errors-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.errors-list li {
  position: relative;
  padding: 8px 8px 8px 30px;
  font-size: .92rem;
  line-height: 1.6;
  border-bottom: 1px dashed #f0d8d6;
}
.errors-list li:last-child { border-bottom: none; }
.errors-list li::before {
  content: "✗";
  position: absolute;
  left: 8px;
  top: 8px;
  color: #c25b6e;
  font-weight: 700;
}

/* Mini quiz */
.quiz {
  max-width: 860px;
  margin: 30px auto;
  padding: 0 20px;
}
.quiz-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid #2d7d4b;
  border-radius: 10px;
  padding: 22px 24px;
}
.quiz-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: #1e5d35;
  margin: 0 0 14px;
}
.quiz-q {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.quiz-q:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.quiz-q .q {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.quiz-q .q::before {
  content: "Q. ";
  color: #2d7d4b;
  font-weight: 700;
}
.quiz-q details {
  margin-top: 4px;
}
.quiz-q summary {
  font-size: .85rem;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: inline-block;
  padding: 4px 0;
}
.quiz-q summary::-webkit-details-marker { display: none; }
.quiz-q summary:hover { color: var(--accent-dark); }
.quiz-q summary::before { content: "▸ "; }
.quiz-q details[open] summary::before { content: "▾ "; }
.quiz-q .a {
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--cream);
  border-radius: 6px;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text);
}

/* Cas pratique */
.case-study {
  max-width: 860px;
  margin: 30px auto;
  padding: 0 20px;
}
.case-study-card {
  background: linear-gradient(180deg, #fff, var(--cream));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 26px;
}
.case-study-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 4px;
}
.case-tag {
  display: inline-block;
  font-size: .7rem;
  background: rgba(58,143,194,.15);
  color: #1f6694;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 600;
}
.case-study-card .scenario {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 14px;
  padding: 12px 16px;
  background: #fff;
  border-left: 3px solid #3a8fc2;
  border-radius: 6px;
}
.case-study-card .reponse {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text);
}
.case-study-card .reponse strong { color: var(--accent-dark); }

/* Section "Règles à retenir" — réutilise rules-list existante avec un wrapper */
.rules-section {
  max-width: 860px;
  margin: 30px auto;
  padding: 0 20px;
}
.rules-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 22px 24px;
}
.rules-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: #8a6625;
  margin: 0 0 12px;
}

/* Petit raffinement responsive pour les fiches */
@media (max-width: 640px) {
  .method-card { padding: 22px 18px 16px; }
  .method-step { padding: 14px 14px 14px 56px; }
  .method-step::before { left: 12px; top: 12px; width: 30px; height: 30px; font-size: 1rem; }
  .errors-card, .quiz-card, .case-study-card, .rules-card { padding: 18px 18px; }
  .objectif { padding: 16px 18px; }
}

/* Animation d'entrée légère pour les details ouverts */
@keyframes detailFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
details.kitab[open] .kitab-body { animation: detailFade .25s ease; }

/* =====================================================
   V2 — ACCUEIL PÉDAGOGIQUE
   ===================================================== */

/* Phrase directrice du projet (sous le hero) */
.tagline {
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 0 24px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent-dark);
  line-height: 1.5;
}

/* Cartes "Parcours" sur l'accueil (2 colonnes) */
.parcours-grid {
  max-width: 980px;
  margin: 30px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.parcours-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.parcours-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--parcours-color, var(--accent));
}
.parcours-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(31, 58, 95, .1);
  border-color: var(--parcours-color, var(--accent-light));
}
.parcours-card .parcours-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--parcours-color, var(--accent));
  color: #fff;
  margin-bottom: 6px;
}
.parcours-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.parcours-card .parcours-tagline {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 6px;
}
.parcours-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.parcours-card ul li {
  font-size: .88rem;
  color: var(--dim);
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.55;
}
.parcours-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--parcours-color, var(--accent));
  font-weight: 700;
}
.parcours-card .parcours-cta {
  align-self: flex-start;
  margin-top: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--parcours-color, var(--accent));
}

@media (max-width: 720px) {
  .parcours-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .parcours-card { padding: 22px 20px; }
}

/* Section "Comment utiliser ?" — encadré explicatif */
.howto {
  max-width: 820px;
  margin: 30px auto 12px;
  padding: 0 20px;
  text-align: center;
}
.howto h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.howto p {
  font-size: .95rem;
  color: var(--dim);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}

/* Section générique avec titre h2 (méthodo, par où commencer, etc.) */
.section-v2 {
  max-width: 900px;
  margin: 36px auto 12px;
  padding: 0 20px;
  text-align: center;
}
.section-v2 h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.section-v2 .ar-section {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: 1.2rem;
  color: var(--accent);
  direction: rtl;
  margin-bottom: 8px;
}
.section-v2 p.lead {
  font-size: .95rem;
  color: var(--dim);
  line-height: 1.7;
  max-width: 660px;
  margin: 0 auto 14px;
}

/* Cartes "phare" pour "Par où commencer ?" */
.phare-grid {
  max-width: 1000px;
  margin: 14px auto 30px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.phare-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--phare-color, var(--accent));
  border-radius: 10px;
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s, box-shadow .18s;
}
.phare-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31, 58, 95, .08);
}
.phare-card .phare-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--phare-color, var(--accent));
  letter-spacing: .5px;
}
.phare-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin: 2px 0;
}
.phare-card p {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.55;
  margin-top: 2px;
}

/* Encadré méthodologie (teaser) */
.methodologie-teaser {
  max-width: 820px;
  margin: 28px auto 30px;
  padding: 28px 32px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: 12px;
}
.methodologie-teaser h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.methodologie-teaser p {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 10px;
}
.methodologie-teaser .methodo-link {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.methodologie-teaser .methodo-link:hover {
  background: #142845;
}

/* Parcours pratique : étapes numérotées en liste */
.journey {
  max-width: 860px;
  margin: 30px auto;
  padding: 0 20px;
}
.journey-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px 18px 70px;
  margin-bottom: 12px;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.journey-step:hover {
  transform: translateX(2px);
  border-color: var(--accent-light);
  box-shadow: 0 4px 14px rgba(31, 58, 95, .06);
}
.journey-step .step-num {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.journey-step h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 3px;
}
.journey-step .step-ar {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: .95rem;
  color: var(--accent-dark);
  direction: rtl;
  display: block;
  margin-bottom: 4px;
}
.journey-step p {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.55;
}
.journey-step .step-meta {
  display: inline-block;
  margin-top: 6px;
  font-size: .75rem;
  color: var(--dim);
}

/* Séparateur de groupe dans le parcours (étape de groupe) */
.journey-group {
  max-width: 860px;
  margin: 24px auto 8px;
  padding: 0 20px;
  text-align: center;
}
.journey-group h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--accent-dark);
  margin-bottom: 4px;
  display: inline-block;
  padding: 0 14px;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.journey-group::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--border);
  margin-top: -14px;
  position: relative;
  z-index: 0;
}

/* Méthodologie — page complète */
.methodologie-content {
  max-width: 820px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.methodologie-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-top: 30px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.methodologie-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--accent-dark);
  margin-top: 20px;
  margin-bottom: 6px;
}
.methodologie-content p {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 12px;
}
.methodologie-content ul {
  margin: 8px 0 14px 22px;
  padding: 0;
}
.methodologie-content ul li {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text);
  padding: 3px 0;
}
.methodologie-content blockquote {
  margin: 16px 0;
  padding: 14px 20px;
  background: var(--cream);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-style: italic;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.7;
}

/* Titre de section V2 dans une fiche : "Ce que tu dois savoir", "Comment pratiquer", etc. */
.fiche-step-title {
  max-width: 860px;
  margin: 36px auto 14px;
  padding: 0 20px;
}
.fiche-step-title h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.2;
}
.fiche-step-title h2::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.fiche-step-title .step-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--cream);
  color: var(--accent-dark);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.fiche-step-title p.intro {
  margin-top: 6px;
  font-size: .92rem;
  color: var(--dim);
  line-height: 1.6;
  max-width: 700px;
}
@media (max-width: 640px) {
  .fiche-step-title h2 { font-size: 1.35rem; }
  .fiche-step-title h2::before { width: 24px; height: 3px; }
}

/* Bloc "Contexte français/européen" — identifiable visuellement */
.contexte-eu {
  max-width: 860px;
  margin: 30px auto;
  padding: 0 20px;
}
.contexte-eu-card {
  background: linear-gradient(180deg, #fff, #f4f7fa);
  border: 1px solid var(--border);
  border-left: 4px solid #3a8fc2;
  border-radius: 10px;
  padding: 22px 26px;
}
.contexte-eu-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: #1f6694;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contexte-eu-card h3::before {
  content: "🇪🇺";
  font-size: 1.2rem;
}
.contexte-eu-card p {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 8px;
}
.contexte-eu-card ul {
  margin: 8px 0 0 22px;
  padding: 0;
}
.contexte-eu-card ul li {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text);
  padding: 3px 0;
}
