:root {
    --white: #e7e7e7;
    --doc-card-bg: #ffffff;
    --doc-text-main: #2c3e50;
    --doc-primary: #2e5c46; /* Vert Forêt */
    --doc-accent: #7ab596;  /* Vert Sauge */
}

/* --- LAYOUT ARTICLE --- */
.article-section {
    background: var(--white);
}

.article {
    max-width: 800px;
    margin: 0 auto;
}

.container {
    background-color: white;
    padding-bottom: 0.5rem;
}

.article-category {
    display: inline-block;
    background: var(--doc-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.5rem 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.article-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 3rem;
    font-weight: bolder;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.article-chapeau {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--dark-color);
    margin-top: -10px;
}

.article-author, .article-date {
    font-style: italic;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.article-author a {
    color: var(--text-light);
    text-decoration: none;
}

.article-author a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.article-content {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p { margin-bottom: 1.5rem; }
.article-content h3 { font-size: 1.8rem; font-weight: 800; margin: 3rem 0 1.5rem; color: var(--dark-color); }
.subtitle-text { font-style: italic; color: var(--text-light); margin-top: -1rem; margin-bottom: 2rem; }

/* --- IMAGES & MEDIA --- */
.image-container { margin: 3rem 0; }
.article-image { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }
.image-caption { text-align: center; font-size: 0.9rem; color: var(--text-light); font-style: italic; margin-top: 1rem; }

.video-container {
    margin: 3rem 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--light-color);
}
.video-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* --- QUOTES & INTERVIEW --- */
.quote {
    background: var(--light-color);
    border-left: 4px solid var(--doc-primary);
    padding: 2rem;
    margin: 3rem 0;
    font-style: italic;
}
.quote p { font-size: 1.3rem; margin-bottom: 1rem; color: var(--dark-color); }
.quote cite { display: block; text-align: right; font-size: 1rem; color: var(--text-light); }

.interview-section {
    background: #ffffff;
    padding: 3rem;
    margin: 3rem 0;
    border-radius: 8px;
}

.article-conclusion {
    background: var(--doc-primary);
    color: var(--white);
    padding: 3rem;
    margin: 3rem 0;
    border-radius: 8px;
}

/* --- BOUTONS & PARTAGE (Top Bar) --- */
.top-bar {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 30px;
    gap: 10px;
}

.btn-pill {
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-pill.saved { background-color: #FFD700; color: #000; border-color: #FFD700; }
.btn-pill:hover, .btn-round:hover { background-color: #e9ecef; }

.share-wrapper { position: relative; }

.btn-round {
    background: #f8f9fa;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    font-size: 16px; color: #555;
    transition: background 0.2s;
}

.share-popup {
    display: none;
    position: absolute;
    top: 50px; left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    width: max-content;
    z-index: 100;
    flex-direction: row; align-items: center; gap: 12px;
    border: 1px solid #eee;
}

.share-popup.active { display: flex; animation: fadeIn 0.2s ease-out; }
.share-popup::before {
    content: ""; position: absolute; top: -6px; left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px; border-style: solid;
    border-color: transparent transparent white transparent;
}

.social-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid #eee; background: white;
    display: flex; justify-content: center; align-items: center;
    color: #555; cursor: pointer; text-decoration: none; transition: 0.2s;
}
.social-btn:hover { background-color: #f0f2f5; color: #333; }

.copy-link-btn {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid #ddd; background: white;
    border-radius: 20px; padding: 8px 16px;
    font-size: 14px; color: #444; cursor: pointer;
    white-space: nowrap; transition: all 0.2s ease;
}
.copy-link-btn.success { border-color: #2ecc71; color: #27ae60; background-color: #f0fff4; }

@media (max-width: 768px) {
    .article-title { font-size: 2rem; }
    .interview-section { padding: 2rem; }
}

.webdoc-player {
    display: flex;
    background-color: var(--doc-card-bg);
    width: 100%; /* S'adapte à la largeur de l'article */
    margin: 2rem 0; /* Espacement vertical */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.player-visual {
    width: 35%;
    /* Image générique de panneaux solaires pour le contexte */
    background-image: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
}

.player-visual::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom right, rgba(46, 92, 70, 0.4), rgba(0,0,0,0.1));
}

.player-content {
    width: 65%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chapter-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--doc-accent);
    font-weight: 700;
    margin-bottom: 5px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.track-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin: 0 0 5px 0;
    color: var(--doc-primary);
    line-height: 1.2;
}

.track-desc {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.4;
    font-family: 'Lato', sans-serif;
    font-style: italic;
}

.controls-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-play {
    background-color: var(--doc-primary);
    color: white;
    border: none;
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(46, 92, 70, 0.3);
    flex-shrink: 0;
}

.btn-play:hover { transform: scale(1.05); background-color: #244a38; }
.btn-play svg { width: 16px; height: 16px; fill: white; margin-left: 2px; }
.btn-play.playing svg { margin-left: 0; }

.timeline {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%; height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none; cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px; width: 12px;
    border-radius: 50%;
    background: var(--doc-primary);
    cursor: pointer;
    margin-top: 0;
    transition: transform 0.1s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.3); }

.time-info {
    display: flex; justify-content: space-between;
    font-size: 0.7rem; color: #888; margin-top: 6px;
    font-family: 'Lato', sans-serif;
}

.btn-mute {
    background: none; border: none; cursor: pointer;
    padding: 5px; opacity: 0.5; transition: opacity 0.2s;
}
.btn-mute:hover { opacity: 1; }
.btn-mute svg { width: 18px; fill: var(--doc-text-main); }

@media (max-width: 600px) {
    .webdoc-player { flex-direction: column; }
    .player-visual { width: 100%; height: 120px; }
    .player-content { width: 100%; padding: 20px; }
}

/* --- SCROLL PROGRESS BAR --- */
.progress-container {
    width: 100%;
    height: 4px;
    background: #f1f1f1;
    position: fixed;
    top: 70px; /* Juste sous le header (qui fait 70px) */
    left: 0;
    z-index: 998; /* Sous le header mais au-dessus du contenu */
}

.progress-bar {
    height: 4px;
    background: linear-gradient(to right, #2e5c46, #7ab596); /* Vos couleurs vertes */
    width: 0%;
    transition: width 0.1s ease-out;
}