 :root {
    --gold: #605c3c;
    --gold-light: #8a855a;
    --gold-dark: #3d3a25;
    --gold-accent: #e8c97a;
    --surface: #f5f3ee;
    --surface2: #ebe8e0;
    --border: rgba(96,92,60,0.18);
    --text: #2a2820;
    --text-muted: #7a7460;
    --sidebar-w: 280px;
  }
 
  /* ── Stats bar ── */
  .intro-stats {
    position: relative; z-index: 10;
    display: flex; justify-content: center; gap: 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }

  .intro-stat {
    flex: 1; max-width: 200px;
    padding: 24px 20px; text-align: center;
    border-right: 1px solid var(--border);
  }
  .intro-stat:last-child { border-right: none; }

  .intro-stat-n {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 300;
    color: var(--gold); display: block;
  }

  .intro-stat-l {
    font-size: 0.72rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted);
  }
  
  
  /* ══════════════════════════════════════
     TIMELINE INTRO
  ══════════════════════════════════════ */
  .timeline-section {
    position: relative; z-index: 10;
    max-width: 1100px; margin: 0 auto;
    padding: 80px 40px;
  }

  .section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem; font-weight: 300;
    color: var(--text); margin-bottom: 8px;
    display: flex; align-items: center; gap: 16px;
  }

  .section-heading::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
  }

  .section-subheading {
    font-size: 0.78rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 56px;
  }

  .timeline {
    position: relative;
    padding-left: 32px;
  }

  .timeline::before {
    content: '';
    position: absolute; left: 8px; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--gold), rgba(96,92,60,0.1));
  }

  .tl-item {
    position: relative;
    margin-bottom: 32px;
    cursor: pointer;
    transition: transform 0.25s;
  }

  .tl-item:hover { transform: translateX(4px); }

  .tl-item::before {
    content: '';
    position: absolute; left: -27px; top: 8px;
    width: 10px; height: 10px;
    background: var(--gold);
    transform: rotate(45deg);
    transition: background 0.25s;
  }

  .tl-item:hover::before,
  .tl-item.active::before { background: var(--gold-accent); }

  .tl-item.active { transform: translateX(4px); }

  .tl-inner {
    display: flex; align-items: flex-start; gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    padding: 18px 20px;
    transition: all 0.25s;
  }

  .tl-item:hover .tl-inner,
  .tl-item.active .tl-inner {
    border-left-color: var(--gold);
    background: #f0ede5;
  }

  .tl-initial {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Scheherazade New', serif;
    font-size: 1.3rem; color: var(--gold);
  }

  .tl-content {}

  .tl-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; font-weight: 600;
    color: var(--text); margin-bottom: 2px;
    transition: color 0.25s;
  }

  .tl-item:hover .tl-name,
  .tl-item.active .tl-name { color: var(--gold); }

  .tl-arabic {
    font-family: 'Scheherazade New', serif;
    font-size: 0.95rem; color: var(--gold-light);
    display: block; margin-bottom: 4px;
  }

  .tl-desc {
    font-size: 0.82rem; color: var(--text-muted);
    line-height: 1.5;
  }

  .tl-tags {
    display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px;
  }

  .tl-tag {
    font-size: 0.65rem; letter-spacing: 0.05em;
    color: var(--gold); border: 1px solid rgba(96,92,60,0.2);
    padding: 2px 7px; background: rgba(96,92,60,0.05);
  }

  .tl-arrow {
    margin-left: auto; flex-shrink: 0; align-self: center;
    color: rgba(96,92,60,0.2); font-size: 1rem;
    transition: all 0.25s; transform: translateX(-4px);
  }

  .tl-item:hover .tl-arrow { color: var(--gold); transform: translateX(0); }
  
  
  
  /* ── Sidebar ── */
  .prophet-sidebar {
      float: left;
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: #4a4730;
    position: sticky;
    top: 62px;
    height: calc(100vh - 62px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(232,201,122,0.2) transparent;
  }

  .prophet-sidebar::-webkit-scrollbar { width: 4px; }
  .prophet-sidebar::-webkit-scrollbar-thumb { background: rgba(232,201,122,0.2); }

  /* Identité dans la sidebar */
  .sidebar-identity {
    padding: 32px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
  }

  .sidebar-avatar {
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(232,201,122,0.25);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Scheherazade New', serif;
    font-size: 1.8rem; color: var(--gold-accent);
    margin: 0 auto 14px;
    position: relative;
  }

  .sidebar-avatar::after {
    content: ''; position: absolute; inset: -5px;
    border: 1px solid rgba(232,201,122,0.1);
  }

  .sidebar-prophet-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem; font-weight: 400;
    color: #f5f2ea; margin-bottom: 4px;
  }

  .sidebar-prophet-arabic {
    font-family: 'Scheherazade New', serif;
    font-size: 1.1rem; color: var(--gold-accent);
    display: block; margin-bottom: 12px;
  }

  .sidebar-prophet-meta {
    font-size: 0.72rem; color: rgba(245,242,234,0.5);
    letter-spacing: 0.06em; line-height: 1.6;
  }

  /* Navigation prophètes dans sidebar */
  .sidebar-prophets-nav {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .sidebar-nav-label {
    font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(245,242,234,0.35); padding: 0 20px 10px;
  }

  .sidebar-prophet-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 20px;
    cursor: pointer; transition: all 0.2s;
    border: none; background: none;
    width: 100%; text-align: left;
    font-family: 'DM Sans', sans-serif;
    border-left: 2px solid transparent;
  }

  .sidebar-prophet-btn:hover { background: rgba(255,255,255,0.05); border-left-color: rgba(232,201,122,0.3); }
  .sidebar-prophet-btn.active { background: rgba(232,201,122,0.08); border-left-color: var(--gold-accent); }

  .spb-initial {
    width: 28px; height: 28px; flex-shrink: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(232,201,122,0.15);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Scheherazade New', serif;
    font-size: 0.85rem; color: var(--gold-accent);
  }

  .spb-name { font-size: 0.82rem; color: rgba(245,242,234,0.75); transition: color 0.2s; }
  .spb-arabic{ font-family: 'Scheherazade New', serif; font-size:20px;}
  .sidebar-prophet-btn:hover .spb-name,
  .sidebar-prophet-btn.active .spb-name { color: #f5f2ea; }





    /* Hero du prophète */
  .prophet-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 50px 56px 40px;
    border-bottom: 1px solid rgba(96,92,60,0.3);
    position: relative; overflow: hidden;
  }

  .prophet-hero::after {
    content: attr(data-arabic);
    position: absolute; right: -10px; top: -20px;
    font-family: 'Scheherazade New', serif;
    font-size: 12rem; color: rgba(255,255,255,0.03);
    pointer-events: none; line-height: 1;
  }

  .prophet-hero-category {
    font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(232,201,122,0.6); margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px;
  }

  .prophet-hero-category::before {
    content: ''; display: inline-block;
    width: 14px; height: 1px; background: var(--gold-accent);
  }

  .prophet-hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300; color: #f5f2ea; margin-bottom: 6px;
  }

  .prophet-hero-name em { color: var(--gold-accent); font-style: italic; }

  .prophet-hero-arabic {
    font-family: 'Scheherazade New', serif;
    font-size: 1.8rem; color: rgba(232,201,122,0.8);
    display: block; margin-bottom: 20px;
  }

  .prophet-hero-meta {
    display: flex; gap: 28px; flex-wrap: wrap;
  }

  .phm-item { display: flex; flex-direction: column; gap: 3px; }
  .phm-label { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,242,234,0.4); }
  .phm-value { font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; color: #f5f2ea; }
  
  
  
  
  
  .prophet-content {
        margin-left: var(--sidebar-w);
    }
    
    
    /* Section tabs */
  .section-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(96,92,60,0.15);
    margin-bottom: 48px;
    
    
  }

  .sidebar-chapter-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #7a7460;
    padding: 14px 24px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s;
    margin-bottom: -1px;
  }

  .sidebar-chapter-btn:hover { color: var(--text); }
  .sidebar-chapter-btn.active { color: #605c3c; border-bottom-color: #605c3c; }
    

  
   /* Chapitres */
  .chapter-panel { display: none; padding: 52px 56px 80px; }
  .chapter-panel.active { display: block; }

  .chapter-title {
    font-family: 'Cormorant Garamond', serif;
    font-size:2rem; font-weight: 400; color: var(--text);
    margin-bottom: 6px;
    display: flex; align-items: center; gap: 14px;
  }

  .chapter-title::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
  }

  .chapter-sub {
    font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 40px;
  }

  /* Texte narratif */
  .narrative {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; line-height: 1.95;
    color: var(--text); margin-bottom: 22px;
  }
  
  .narrative p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; line-height: 1.95;
    color: var(--text); margin-bottom: 22px;
  }
  
  .narrative h2{
      font-size: 1.8rem;
      font-family: 'Cormorant Garamond', serif;
      font-weight: 800;
  }

  .narrative p em { color: var(--gold); font-style: italic; }
    
article aside {
    display: flex;
    width: 400px;
    float: inline-start;
    background: white;
    padding: 12px 8px;
    border: 1px solid var(--primary-color);
    font-size: 16px;
    margin: 20px 20px;
}
    
  .pull-quote, blockquote {
      display: flex;
          flex-direction: column;
    border-left: 3px solid var(--gold);
    padding: 18px 24px; margin: 32px 0;
    background: var(--surface);
  }

  .pull-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; font-style: italic;
    color: var(--text); line-height: 1.7; margin-bottom: 6px !important;
  }

  .pull-quote cite { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
    
.avertissement{
    border-top: 1px solid var(--border);
    padding: 18px 24px;
    margin: 32px 0;
}
  /* Versets coraniques */
  .verses-grid {
    display: grid; gap: 20px; margin-top: 32px;
  }

  .verse-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    padding: 24px 28px;
  }

  .verse-arabic {
    font-family: 'Scheherazade New', serif;
    font-size: 1.6rem; color: var(--gold);
    text-align: right; direction: rtl;
    line-height: 2; margin-bottom: 14px;
    display: block;
  }

  .verse-translation {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem; font-style: italic;
    color: var(--text); line-height: 1.7; margin-bottom: 10px;
  }

  .verse-ref {
    font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gold-light);
  }

  /* Arbre généalogique */
  .tree-wrap {
    margin-top: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 40px;
    overflow-x: auto;
  }

  .tree { display: flex; flex-direction: column; align-items: center; gap: 0; }

  .tree-level { display: flex; justify-content: center; gap: 40px; position: relative; margin-bottom: 0; }

  .tree-node {
    display: flex; flex-direction: column; align-items: center;
    position: relative;
  }

  .tree-node::before {
    content: '';
    position: absolute; top: -24px; left: 50%;
    width: 1px; height: 24px;
    background: var(--border);
  }

  .tree-level:first-child .tree-node::before { display: none; }

  .tree-connector {
    height: 24px; position: relative;
    display: flex; justify-content: center;
  }

  .tree-connector::before {
    content: ''; position: absolute;
    top: 0; left: 50%; width: 1px; height: 100%;
    background: var(--border);
  }

  .tree-branch {
    height: 24px; position: relative; width: 100%;
    display: flex; justify-content: space-between;
    align-items: flex-end;
  }

  .tree-branch::before {
    content: ''; position: absolute;
    top: 0; left: 50%; width: 1px; height: 50%;
    background: var(--border);
  }

  .tree-branch::after {
    content: ''; position: absolute;
    top: 50%; left: calc(var(--branch-left, 0px));
    right: calc(var(--branch-right, 0px));
    height: 1px;
    background: var(--border);
  }

  .tree-box {
    background: #fff; border: 1px solid var(--border);
    padding: 10px 16px; text-align: center; min-width: 120px;
    transition: all 0.25s;
  }

  .tree-box:hover { border-color: var(--gold); background: var(--surface); }
  .tree-box.highlight { border-color: var(--gold); border-width: 2px; background: rgba(96,92,60,0.06); }

  .tree-box-name { font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; font-weight: 600; color: var(--text); }
  .tree-box-arabic { font-family: 'Scheherazade New', serif; font-size: 0.85rem; color: var(--gold); display: block; }
  .tree-box-role { font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }

  /* Carte */
  .map-placeholder {
    margin-top: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 48px; text-align: center;
    position: relative; overflow: hidden;
  }

  .map-placeholder::before {
    content: '🗺';
    font-size: 5rem; display: block; margin-bottom: 16px; opacity: 0.3;
  }

  .map-locations {
    display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
    margin-top: 28px;
  }

  .map-loc {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--border);
    padding: 10px 16px;
  }

  .map-loc-dot {
    width: 8px; height: 8px;
    background: var(--gold); transform: rotate(45deg);
  }

  .map-loc-name { font-size: 0.84rem; color: var(--text); }
  .map-loc-desc { font-size: 0.72rem; color: var(--text-muted); }

  /* Nav prev/next */
  .chapter-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 28px 56px;
    border-top: 1px solid var(--border);
    background: var(--surface);
  }

  .cnav-btn {
    display: flex; align-items: center; gap: 10px;
    background: none; border: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.8rem;
    padding: 10px 18px; cursor: pointer;
    font-family: 'DM Sans', sans-serif; transition: all 0.25s;
    text-decoration: none;
  }

  .cnav-btn:hover { border-color: var(--gold); color: var(--gold); }
  .cnav-btn:disabled { opacity: 0.3; cursor: not-allowed; }


/* Ressources tabs section */
  .resources-section {
    margin-top: 56px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.2s;
  }

  .res-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 28px;
  }

  .res-tab {
    background: #f5f3ee;
    border: 1px solid rgba(96,92,60,0.2);
    border-bottom: none;
    color: #7a7460;
    padding: 10px 24px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s;
  }

  .res-tab.active {
    background: #ffffff;
    border-color: #605c3c;
    color: #605c3c;
  }

  .res-tab:hover:not(.active) { color: #2a2820; border-color: rgba(96,92,60,0.3); }

  .res-container {
    background: #faf9f6;
    border: 1px solid rgba(96,92,60,0.15);
    border-top: 1px solid #605c3c;
    padding: 28px;
  }

  .res-panel { display: none; }
  .res-panel.active { display: block; }



/* Articles */
  .article-item {
    display: flex;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(96,92,60,0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
  }

  .article-item:last-child { border-bottom: none; padding-bottom: 0; }
  .article-item:hover .art-title { color: #605c3c; }

  .art-date {
    font-size: 0.72rem;
    color: #7a7460;
    white-space: nowrap;
    padding-top: 3px;
  }

  .art-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: #2a2820;
    margin-bottom: 4px;
    transition: color 0.25s;
  }

  .art-source {
    font-size: 0.75rem;
    color: #605c3c;
    letter-spacing: 0.06em;
  }

  /* Videos */
  .video-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(96,92,60,0.08);
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
  }

  .video-item:last-child { border-bottom: none; }
  .video-item:hover .vid-title { color: #605c3c; }

  .video-thumb {
    width: 100px;
    height: 60px;
    background: #ebe8e0;
    border: 1px solid rgba(96,92,60,0.15);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .play-icon {
    width: 0;
    height: 0;
    border-left: 14px solid #605c3c;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    margin-left: 3px;
    opacity: 0.8;
  }

  .vid-title {
    font-size: 0.9rem;
    color: #2a2820;
    margin-bottom: 6px;
    transition: color 0.25s;
    line-height: 1.4;
  }

  .vid-meta {
    font-size: 0.72rem;
    color: #7a7460;
  }

  /* Livres */
  .book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .book-card {
    background: #f5f3ee;
    border: 1px solid rgba(96,92,60,0.15);
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .book-card:hover { border-color: rgba(96,92,60,0.4); transform: translateY(-2px); }

  .book-cover {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #605c3c, #4a4730);
    border: 1px solid rgba(96,92,60,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .book-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-style: italic;
    color: #2a2820;
    margin-bottom: 4px;
    line-height: 1.4;
  }

  .book-author {
    font-size: 0.72rem;
    color: #7a7460;
    margin-bottom: 4px;
  }

  .book-type {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #605c3c;
    border: 1px solid rgba(96,92,60,0.2);
    padding: 2px 8px;
    display: inline-block;
    margin-top: 6px;
  }
  
  

    /* ══════════════════════════════════════
     ANIMATIONS
  ══════════════════════════════════════ */
  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ══════════════════════════════════════
     RESPONSIVE
  ══════════════════════════════════════ */
  @media (max-width: 900px) {
      .prophet-content {margin-left: 0px;}
    .prophet-layout { flex-direction: column; }
    .prophet-sidebar { width: 100%; height: auto; position: relative; top: 0; }
    .prophet-hero, .chapter-panel, .chapter-nav { padding-left: 24px; padding-right: 24px; }
    .intro-hero { padding: 60px 24px 50px; }
    .timeline-section { padding: 50px 24px; }
    header { padding: 0 20px; }
  }