* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Bread';
    src: url('fonts/BBBReadMe-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Bread', sans-serif;
    background: #fafafa;
    color: #333;
    line-height: 1.6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fafafa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    padding-bottom: 100px;
}

header {
    text-align: center;
    margin-bottom: 100px;
    padding: 80px 20px 0;
}

h1 {
    font-size: 38px;
    font-weight: 300;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    color: #111;
}

.subtitle {
    font-size: 14px;
    color: #aaa;
    font-style: italic;
    letter-spacing: 0.3px;
    font-weight: 300;
}

/* INTRO SECTION */
.intro-section {
    background: white;
    padding: 50px 60px;
    margin-bottom: 80px;
    border: 1px solid #f0f0f0;
}

.intro-section h2 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #111;
    letter-spacing: 0.5px;
}

.intro-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

/* TABLE OF CONTENTS */
.table-of-contents {
    margin: 100px 0;
    padding: 50px 60px;
    background: white;
    border: 1px solid #f0f0f0;
}

.table-of-contents h2 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 40px;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.interviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.interview-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
}

.interview-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.interview-card h3 {
    font-size: 15px;
    font-weight: 500;
    color: #111;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.interview-card p {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
    line-height: 1.6;
}

.interview-card .fragment-count {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

/* MAIN VIEW - LECTURE LINÉAIRE */
.fragments-view {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.fragment-container {
    background: white;
    padding: 80px 70px;
    position: relative;
    scroll-margin-top: 100px;
    border: 1px solid #f5f5f5;
}

.fragment-number {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 60px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

.audio-player-wrapper {
    margin: 70px 0;
    background: transparent;
    padding: 0;
}

.audio-player {
    display: none;
}

.timeline-container {
    margin: 0 0 80px 0;
}

.timeline-visual {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.play-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.play-btn:hover {
    color: #000;
}

.timeline-time-inline {
    font-size: 10px;
    color: #aaa;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.timeline-bar {
    flex: 1;
    height: 5px;
    background: #ddd;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.timeline-progress {
    height: 100%;
    background: #333;
    width: 0%;
    transition: width 0.1s linear;
}

.timeline-markers {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.timeline-marker {
    width: 2px;
    height: 9px;
    background: #ccc;
    border-radius: 0;
}

.timeline-time {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #aaa;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.speaker-name {
    font-size: 13px;
    font-weight: 400;
    color: #333;
    margin: 120px 0 0 0;
    text-align: left;
    letter-spacing: 0.3px;
}

.fragment-text {
    font-size: 14px;
    line-height: 1.9;
    color: #777;
    margin: 55px 0 0 0;
    text-align: left;
    max-width: 900px;
}

.themes-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.themes-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.theme-tag {
    font-size: 11px;
    color: #aaa;
    letter-spacing: 0.3px;
}

.connexions-toggle {
    background: none;
    border: none;
    font-size: 11px;
    color: #bbb;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.connexions-toggle:hover {
    color: #888;
}

.connexions-panel {
    display: none;
    margin-top: 24px;
}

.themes-section.open .connexions-panel {
    display: block;
}

.themes-section.open .connexions-toggle {
    color: #888;
}

.connection-block {
    margin-bottom: 24px;
}

.connection-theme {
    font-size: 10px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.theme-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.theme-table td {
    padding: 6px 0;
    border: none;
}

.theme-table .person-col {
    width: 28%;
    color: #555;
    font-weight: 400;
}

.theme-table .fragments-col {
    color: #999;
    padding-left: 30px;
}

.fragment-link {
    display: inline-block;
    color: #888;
    cursor: pointer;
    margin-right: 10px;
    transition: color 0.2s;
    font-size: 11px;
}

.fragment-link:hover {
    color: #333;
    text-decoration: underline;
}

/* FLOATING NAVIGATION - FLÈCHES GAUCHE/DROITE */
.floating-navigation {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 100;
    pointer-events: none;
}

.arrow-btn {
    background: transparent;
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #333;
    flex-shrink: 0;
    font-weight: 300;
    pointer-events: auto;
}

.arrow-btn:hover:not(:disabled) {
    transform: scale(1.15);
    color: #111;
}

.arrow-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.floating-counter {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 12px;
    color: #888;
    min-width: 60px;
    letter-spacing: 0.5px;
    background: rgba(250, 250, 250, 0.98);
    padding: 10px 20px;
    border: 1px solid #f0f0f0;
    border-radius: 0;
    z-index: 100;
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    .container {
        padding: 30px 15px;
    }

    header {
        margin-bottom: 60px;
        padding: 60px 15px 0;
    }

    .fragment-container {
        padding: 50px 40px;
    }

    .intro-section {
        padding: 35px 30px;
    }

    .table-of-contents {
        padding: 35px 30px;
    }

    .floating-navigation {
        gap: 30px;
        padding: 15px 30px;
        bottom: 30px;
    }

    .arrow-btn {
        width: 44px;
        height: 44px;
        font-size: 26px;
    }

    .interviews-grid {
        grid-template-columns: 1fr;
    }

    .theme-table .fragments-col {
        padding-left: 30px;
    }
}
