/* ============================================================
   BIOGRAPHIE — charte reprise de /page/accueil/accueil.css
   Variables CSS héritées : --primary-color, --bg-dark,
   --bg-card, --text-main, --text-muted, --primary-glow.
   Police : 'Segoe UI', Roboto, sans-serif.
   ============================================================ */

/* ----- LAYOUT GÉNÉRAL ----- */
.bio-main {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 6% 60px;
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, sans-serif;
    z-index: 1;
}

.bio-intro {
    text-align: center;
    margin-bottom: 60px;
}

.bio-intro h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 20px 0;
    line-height: 1.15;
    text-shadow: 0 0 18px rgba(138, 43, 226, 0.4);
}

.bio-intro p {
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ----- NAV DE CHAPITRES FIXE À GAUCHE ----- */
.chapter-nav {
    position: fixed;
    top: 110px;
    left: 24px;
    width: 220px;
    padding: 18px 18px 22px;
    background: rgba(7, 5, 15, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(138, 43, 226, 0.25);
    border-radius: 14px;
    z-index: 50;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chapter-nav-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.chapter-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chapter-link {
    display: block;
    padding: 9px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.chapter-link:hover,
.chapter-link:focus-visible {
    background: rgba(138, 43, 226, 0.12);
    color: var(--text-main);
    outline: none;
}

.chapter-link.is-active {
    background: rgba(138, 43, 226, 0.2);
    color: var(--text-main);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* ----- ARTICLE + CHAPITRES ----- */
.bio-article {
    max-width: 760px;
    margin: 0 auto;
}

.bio-chapter {
    background: rgba(20, 15, 38, 0.55);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
    scroll-margin-top: 120px;
}

.chapter-header {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.15);
}

.chapter-number {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(138, 43, 226, 0.12);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.chapter-header h2 {
    font-size: 2rem;
    margin: 0 0 6px;
    background: linear-gradient(90deg, var(--primary-color), #b06bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.chapter-date {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
}

.bio-chapter p {
    line-height: 1.75;
    margin-bottom: 16px;
    color: var(--text-main);
}

.bio-chapter p:last-child {
    margin-bottom: 0;
}

/* ----- CITES « ! » AVEC TOOLTIP HOVER/FOCUS ----- */
.cite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 50%;
    cursor: help;
    position: relative;
    vertical-align: middle;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.cite:hover,
.cite:focus-visible {
    background: var(--primary-color);
    color: #fff;
    outline: none;
}

.cite-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: max-content;
    max-width: 260px;
    padding: 10px 14px;
    background: var(--bg-dark);
    color: var(--text-main);
    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 400;
    font-style: normal;
    text-align: left;
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 60;
}

.cite-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--bg-dark);
}

.cite:hover .cite-tooltip,
.cite:focus-visible .cite-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cite-tooltip a {
    color: #b06bff;
    text-decoration: underline;
}

/* ----- CHAPITRE COMING SOON ----- */
.chapitre-coming-soon {
    background: rgba(15, 12, 28, 0.4);
    border-style: dashed;
}

.coming-soon-large {
    text-align: center;
    padding: 50px 30px;
}

.coming-soon-large h3 {
    font-size: 1.4rem;
    margin: 14px 0 10px;
    color: var(--text-main);
}

.coming-soon-large p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.coming-soon-large .placeholder-icon {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 10px;
}

.coming-soon-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(138, 43, 226, 0.2);
    color: var(--primary-color);
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* ----- SECTION NOTES ----- */
.bio-notes {
    background: rgba(20, 15, 38, 0.4);
    border: 1px solid rgba(138, 43, 226, 0.15);
    border-radius: 16px;
    padding: 30px 40px;
    scroll-margin-top: 120px;
}

.bio-notes h2 {
    font-size: 1.5rem;
    margin: 0 0 14px;
    color: var(--text-main);
}

.bio-notes p {
    color: var(--text-muted);
    line-height: 1.7;
}

.notes-list {
    margin-top: 14px;
    padding-left: 20px;
    color: var(--text-muted);
}

.notes-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ----- RESPONSIVE : nav masquée sur mobile ----- */
@media (max-width: 900px) {
    .chapter-nav {
        position: static;
        width: auto;
        margin: 0 0 30px;
    }
    .bio-main {
        padding: 120px 5% 40px;
    }
    .bio-chapter {
        padding: 24px 22px;
    }
}

@media (max-width: 560px) {
    .bio-chapter {
        padding: 20px 16px;
    }
    .chapter-header h2 {
        font-size: 1.5rem;
    }
}
