:root {
    --gold: #605c3c;
    --gold-light: #8a855a;
    --gold-dark: #3d3a25;
    --deep: #605c3c;
    --surface: #f5f3ee;
    --surface2: #ebe8e0;
    --border: rgba(96,92,60,0.18);
    --text: #2a2820;
    --text-muted: #7a7460;
    --sidebar: 320px;
  }

/* Hero */
  .hero {
    position: relative;
    z-index: 10;
    padding: 60px 40px 0;
    background: #4a4730;
    border-bottom: 1px solid rgba(96,92,60,0.3);
    overflow: hidden;
  }

  .hero-bg-arabic {
    position: absolute;
    right: -20px;
    top: -20px;
    font-family: 'Scheherazade New', serif;
    font-size: 18rem;
    color: rgba(255,255,255,0.04);
    pointer-events: none;
    line-height: 1;
    z-index: 0;
  }

  .hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 60px;
    align-items: flex-end;
    max-width: 1200px;
  }

  .hero-portrait {
    flex-shrink: 0;
    width: 160px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    position: relative;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
  }

  .hero-portrait::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(255,255,255,0.08);
  }

  .portrait-initial {
    font-family: 'Scheherazade New', serif;
    font-size: 4rem;
    color: #e8c97a;
    line-height: 1;
  }

  .portrait-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245,242,234,0.55);
  }

  .hero-text { flex: 1; padding-bottom: 40px; }

  .hero-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e8c97a;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeDown 0.8s ease forwards 0.25s;
  }

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

  .hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 8px;
    color: #f5f2ea;
    opacity: 0;
    animation: fadeDown 0.8s ease forwards 0.35s;
  }

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

  .hero-arabic {
    font-family: 'Scheherazade New', serif;
    font-size: 2rem;
    color: rgba(232,201,122,0.8);
    display: block;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeDown 0.8s ease forwards 0.45s;
  }

  .hero-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeDown 0.8s ease forwards 0.55s;
  }

  .meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .meta-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245,242,234,0.5);
  }

  .meta-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: #f5f2ea;
  }

  .meta-value a { color: #e8c97a; text-decoration: none; }

  /* Tags */
  .hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
    opacity: 0;
    animation: fadeDown 0.8s ease forwards 0.65s;
  }

  .htag {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: rgba(232,201,122,0.8);
    border: 1px solid rgba(232,201,122,0.2);
    padding: 5px 12px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
  }

  .htag:hover { background: rgba(232,201,122,0.15); border-color: #e8c97a; color: #e8c97a; }
  
  /* Quick actions */
  .quick-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.75s;
  }

  .action-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(245,242,234,0.65);
    padding: 8px 18px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s;
    text-transform: uppercase;
  }

  .action-btn:hover { border-color: #e8c97a; color: #e8c97a; }
  .action-btn.primary {
    background: rgba(232,201,122,0.12);
    border-color: #e8c97a;
    color: #e8c97a;
  }
  
    /* Main layout */
  .main-layout {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr var(--sidebar);
    max-width: 1400px;
    margin: 0 auto;
  }

  /* Content column */
  .content-col {
    padding: 56px 60px 80px 40px;
    border-right: 1px solid rgba(96,92,60,0.12);
  }

  /* Section tabs */
  .section-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(96,92,60,0.15);
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.9s;
  }

  .tab-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;
  }

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

  /* Biographie */
  .bio-section {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1s;
  }

  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #2a2820;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(96,92,60,0.2), transparent);
  }

  .bio-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.12rem;
    line-height: 1.9;
    color: #2a2820;
    margin-bottom: 20px;
  }

  .bio-text em { color: #605c3c; font-style: italic; }

  .pull-quote {
    border-left: 3px solid #605c3c;
    padding: 20px 28px;
    margin: 32px 0;
    background: rgba(96,92,60,0.04);
  }

  .pull-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #2a2820;
    line-height: 1.7;
    margin-bottom: 8px;
  }

  .pull-quote cite {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a7460;
  }

  /* Intérêts / Domaines */
  .interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 32px 0 48px;
  }

  .interest-item {
    background: #f5f3ee;
    border: 1px solid rgba(96,92,60,0.15);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .interest-icon { font-size: 1.2rem; }

  .interest-name {
    font-size: 0.88rem;
    color: #2a2820;
    font-weight: 500;
  }

  .interest-level {
    height: 2px;
    background: rgba(96,92,60,0.1);
    margin-top: 4px;
  }

  .interest-level-fill {
    height: 100%;
    background: linear-gradient(90deg, #3d3a25, #605c3c);
  }

  /* Maîtres / Étudiants */
  .network-section { margin: 48px 0; }

  .network-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .network-col h4 {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a7460;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(96,92,60,0.15);
  }

  .person-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(96,92,60,0.06);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
  }

  .person-link:hover .person-name { color: #605c3c; }
  .person-link:hover { border-bottom-color: rgba(96,92,60,0.15); }

  .person-avatar-sm {
    width: 32px;
    height: 32px;
    background: #ebe8e0;
    border: 1px solid rgba(96,92,60,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Scheherazade New', serif;
    font-size: 0.9rem;
    color: #605c3c;
    flex-shrink: 0;
  }

  .person-name {
    font-size: 0.9rem;
    color: #2a2820;
    transition: color 0.25s;
  }

  .person-dates {
    font-size: 0.72rem;
    color: #7a7460;
    margin-left: auto;
  }

  /* Œuvres */
  .works-section { margin: 48px 0; }

  .work-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(96,92,60,0.08);
  }

  .work-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(96,92,60,0.2);
    width: 40px;
    flex-shrink: 0;
    text-align: right;
    line-height: 1;
  }

  .work-info {}

  .work-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #2a2820;
    margin-bottom: 4px;
  }

  .work-arabic {
    font-family: 'Scheherazade New', serif;
    font-size: 0.95rem;
    color: #605c3c;
    margin-bottom: 6px;
    display: block;
  }

  .work-desc {
    font-size: 0.84rem;
    color: #7a7460;
    line-height: 1.6;
  }

  /* 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;
  }

  /* Sidebar */
  .sidebar {
    padding: 48px 32px;
    background: #faf9f6;
    border-left: none;
    position: sticky;
    top: 62px;
    height: calc(100vh - 62px);
    overflow-y: auto;
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar { display: none; }
    
    img.calligraphy {
        width: 200px;
        /* text-align: center; */
        display: block;
        margin: 0 auto;
        margin-bottom: 20px;
    }
  .sidebar-block {
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
  }

  .sidebar-block:nth-child(1) { animation-delay: 0.9s; }
  .sidebar-block:nth-child(2) { animation-delay: 1.0s; }
  .sidebar-block:nth-child(3) { animation-delay: 1.1s; }
  .sidebar-block:nth-child(4) { animation-delay: 1.2s; }
  .sidebar-block:nth-child(5) { animation-delay: 1.3s; }

  .sb-title {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7a7460;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(96,92,60,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .sb-title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 1px;
    background: #605c3c;
  }

  /* Fiche identitaire */
  .id-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    font-size: 0.84rem;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid rgba(96,92,60,0.06);
  }

  .id-label { color: #7a7460; font-size: 0.73rem; white-space: nowrap; }
  .id-value { color: #2a2820; }
  .id-value a { color: #605c3c; text-decoration: none; }

  /* Nuage de tags */
  .tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .cloud-tag {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: #605c3c;
    border: 1px solid rgba(96,92,60,0.2);
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.25s;
    background: rgba(96,92,60,0.05);
  }

  .cloud-tag:hover { background: rgba(96,92,60,0.1); color: #3d3a25; border-color: #605c3c; }

  /* Timeline mini */
  .timeline {
    position: relative;
    padding-left: 20px;
  }

  .timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(180deg, #605c3c, transparent);
  }

  .tl-item {
    position: relative;
    margin-bottom: 20px;
  }

  .tl-item::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 6px;
    width: 7px;
    height: 7px;
    background: #605c3c;
    transform: rotate(45deg);
  }

  .tl-date {
    font-size: 0.7rem;
    color: #605c3c;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
  }

  .tl-event {
    font-size: 0.84rem;
    color: #2a2820;
    line-height: 1.4;
  }

  /* Nav prev/next */
  .nav-figures {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 40px;
    background: #f5f3ee;
    border-top: 1px solid rgba(96,92,60,0.15);
  }

  .nav-fig-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #7a7460;
    font-size: 0.85rem;
    transition: color 0.3s;
    padding: 12px 20px;
    border: 1px solid transparent;
  }

  .nav-fig-btn:hover { color: #605c3c; border-color: rgba(96,92,60,0.2); }

  .nav-fig-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #2a2820;
    display: block;
    transition: color 0.3s;
  }

  .nav-fig-btn:hover .nav-fig-name { color: #605c3c; }

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

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

  @media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr; }
    .content-col { border-right: none; padding: 36px 24px 60px; }
    .sidebar { position: static; height: auto; padding: 0 24px 40px; }
    .network-grid { grid-template-columns: 1fr; }
    .book-grid { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 768px) {
    .top-nav { padding: 16px 20px; }
    .breadcrumb { padding: 12px 20px; }
    .hero { padding: 40px 20px 0; }
    .interests-grid { grid-template-columns: repeat(2, 1fr); }
    .book-grid { grid-template-columns: 1fr; }
    nav { gap: 16px; font-size: 0.72rem; }
  }
  
