/* Archives Vidéo - Style Retro Gaming 90s */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&display=swap');

:root {
    /* Palette de couleurs principale */
    --bg-color: #16181d;
    --text-color: #d4e4f0;
    --accent-color: #6e91bc;
    --border-color: #2a3240;
    --sidebar-bg: #171b21;
    --content-bg: #1b2026;
    --link-color: #98d0e0;
    --hover-color: #cf616a;
    --active-color: #b3ce9c;
    --header-color: #f5d78b;
    --highlight: #2e3440;
    --section-bg: #232831;
    --soft-shadow: #151820;
    --cyan-accent: #91b1d1;
    --glitch-1: #ff00ea;
    --glitch-2: #00f0ff;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    overflow-x: hidden;
    padding-top: 18px;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAEklEQVQImWNgYGD4z0AswK4SAFXuAf4ATfUSAAAAAElFTkSuQmCC");
    background-repeat: repeat;
    image-rendering: pixelated;
    cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAABnSURBVHjaYvz//z8DFPyH0owQzARlM6LxQQrAAJeC////M4LUMDEQAYCKiAVkaWBBF2QkQgOyWmRaipGRkRXZL4xYnIbsJkYmqAAjlr8ZCQCsfoABRnTnUKyBkZDNhMJCdj4jseEMADnuI6GE+0EbAAAAAElFTkSuQmCC"), auto;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
    cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAABxSURBVHjaYvz//z8DFPyH0owQzARlM6LxQQrAAJeC////M2IVZGRkZMKpAVkRuiCyBpgaZC1M6A5jJOAHrDQzsgS6BmarXYoYGf7sZ2D4z4LMx9TPiEURCwOJAKtCRnyacMqTqgHd2RRpwJrYiMwPAFf0JoGJYuwhAAAAAElFTkSuQmCC"), pointer;
    line-break: anywhere;
}

a:hover {
    color: var(--hover-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--header-color);
    letter-spacing: 0.5px;
}

h1 {
    font-size: 22px;
    letter-spacing: 0.7px;
    position: relative;
    display: inline-block;
    margin-bottom: 5px;
    text-shadow: 2px 2px 0px var(--highlight);
}

h1::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABCAYAAAD5PA/NAAAAFklEQVQIHWP8//8/IwMjIwMDA8P/fwCcAgX9tKU0yAAAAABJRU5ErkJggg==");
    background-repeat: repeat;
    image-rendering: pixelated;
}

h2 {
    font-size: 18px;
    text-transform: lowercase;
    margin-top: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 3px;
    display: inline-block;
    margin-bottom: 8px;
}

h3 {
    font-size: 16px;
    text-transform: lowercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 6px;
}

button {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAABxSURBVHjaYvz//z8DFPyH0owQzARlM6LxQQrAAJeC////M2IVZGRkZMKpAVkRuiCyBpgaZC1M6A5jJOAHrDQzsgS6BmarXYoYGf7sZ2D4z4LMx9TPiEURCwOJAKtCRnyacMqTqgHd2RRpwJrYiMwPAFf0JoGJYuwhAAAAAElFTkSuQmCC"), pointer;
    background: var(--highlight);
    border: 1px solid var(--accent-color);
    padding: 3px 10px;
    margin-right: 5px;
    color: var(--text-color);
    transition: background-color 0.2s;
    position: relative;
    transform: translateY(0);
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 2px 0 var(--soft-shadow);
    image-rendering: pixelated;
}

button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFklEQVQImWNkYGD4z8DAwMDIwMDwHwAFBgKI85h8UwAAAABJRU5ErkJggg==");
    background-repeat: repeat;
    image-rendering: pixelated;
    pointer-events: none;
}

button:hover {
    background-color: var(--section-bg);
    border-color: var(--hover-color);
    color: var(--hover-color);
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 var(--soft-shadow);
}

button.active {
    background-color: var(--section-bg);
    border-color: var(--active-color);
    color: var(--active-color);
}

/* Structure principale */
.container {
    display: flex;
    max-width: 100%;
    min-height: 100vh;
    position: relative;
}

/* Sidebar à gauche */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    padding: 20px;
    border-right: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Texture pixelisée de la barre latérale */
.texture {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAEklEQVQImWNgYGD4z0AswK4SAFXuAf4ATfUSAAAAAElFTkSuQmCC");
    background-repeat: repeat;
    opacity: 0.1;
    pointer-events: none;
    image-rendering: pixelated;
    z-index: -1;
}

/* Badge ARCHIVES */
.archives-badge {
    position: relative;
    font-size: 9px;
    font-family: "VT323", monospace;
    color: var(--active-color);
    background-color: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    animation: blink 2s infinite;
    width: fit-content;
    margin-bottom: 5px;
}

.home-button {
    margin-bottom: 20px;
}

.home-button a {
    font-size: 12px;
    color: var(--header-color);
    transition: transform 0.3s;
    display: inline-block;
}

.home-button a:hover {
    transform: translateX(-3px);
    color: var(--hover-color);
}

.video-list-container {
    flex-grow: 1;
}

.video-list-container h3 {
    padding-bottom: 10px;
}

.video-list {
    margin-top: 15px;
}

.video-list li {
    padding: 0;
    position: relative;
    transition: background-color 0.2s;
    border-left: 2px solid transparent;
}

.video-list li:hover, .video-list li.active {
    background-color: var(--highlight);
    border-left: 2px solid var(--accent-color);
}

.video-list li.active a {
    color: var(--active-color);
}

.video-list li a {
    position: relative;
    z-index: 1;
    display: block;
    padding: 5px 8px;
    width: 100%;
    text-decoration: none;
}

/* Style pour le message "De nouvelles vidéos bientôt !" */
.video-list li.coming-soon {
    opacity: 0.7;
    font-style: italic;
    border-left: 2px dashed var(--border-color);
    cursor: default;
}

.video-list li.coming-soon span {
    display: block;
    padding: 5px 8px;
    color: var(--text-color);
    position: relative;
}

.video-list li.coming-soon::before {
    content: "★";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: var(--accent-color);
    opacity: 0.6;
}

.sidebar-footer {
    margin-top: 20px;
    font-size: 10px;
    color: rgba(196, 212, 224, 0.6);
    text-align: center;
    line-height: 1.6;
}

.counter {
    margin-bottom: 5px;
    opacity: 0.85;
    background-color: rgba(20, 25, 30, 0.6);
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-family: 'VT323', monospace, 'Courier New';
    letter-spacing: 1px;
    color: var(--active-color);
}

/* Contenu principal à droite */
.main-content {
    flex-grow: 1;
    background-color: var(--content-bg);
    padding: 25px 30px;
    position: relative;
    overflow-x: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAEklEQVQImWNgYGD4z0AswK4SAFXuAf4ATfUSAAAAAElFTkSuQmCC");
    background-repeat: repeat;
    opacity: 0.05;
    pointer-events: none;
    image-rendering: pixelated;
}

/* Conteneur interne pour limiter la largeur du contenu */
.content-wrapper {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.video-header {
    margin-bottom: 6px;
}

.publish-date {
    font-size: 12px;
    color: rgba(196, 212, 224, 0.8);
    margin-top: 2px;
}

.publish-date::before {
    content: "•";
    display: inline-block;
    color: var(--accent-color);
    margin-right: 4px;
    font-size: 14px;
    animation: blink 2s infinite;
}

.mirrors-container {
    margin-top: 0;
}

.mirrors-container h2 {
    font-size: 14px;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-bottom: 3px;
    border-bottom: none;
    display: inline-block;
}

.mirrors-buttons {
    margin: 4px 0 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
}

.mirror-btn {
    position: relative;
    border: 1px solid var(--accent-color);
    box-shadow: 2px 2px 0 var(--soft-shadow);
    transition: all 0.1s;
    transform-origin: center;
    padding: 3px 8px;
    margin: 0 3px;
}

.mirror-btn:active {
    transform: scale(0.95);
    box-shadow: 1px 1px 0 var(--soft-shadow);
}

.mirror-btn.active {
    background-color: var(--section-bg);
    border-color: var(--active-color);
    color: var(--active-color);
    text-shadow: 0 0 4px rgba(179, 206, 156, 0.2);
}

.mirror-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}

/* Bouton mirror "bientôt disponible" */
.mirror-btn.soon-mirror {
    opacity: 0.7;
    cursor: default;
    border-style: dashed;
    position: relative;
}

.mirror-btn.soon-mirror:active {
    transform: none;
    box-shadow: 2px 2px 0 var(--soft-shadow);
}

.mirror-btn.soon-mirror::before {
    content: "SOON…";
    position: absolute;
    top: -13px;
    left: calc(100% - 30px);
    background-color: var(--accent-color);
    color: var(--content-bg);
    font-size: 9px;
    padding: 3px;
    border-radius: 2px;
    transform: rotate(3deg);
    z-index: 2;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 900;
    letter-spacing: 0.5px;
    opacity: 1;
    width: fit-content;
    height: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* SECTION EMBED VIDÉO - SIMPLIFIÉ */
.video-embed-container {
    margin-bottom: 15px;
    position: relative;
    border: 2px solid var(--accent-color);
    aspect-ratio: 4/3;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    background-color: #000;
    padding-top: 75%;
    height: 0;
}

.video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none;
}

.video-embed.active {
    display: block;
}

.video-embed iframe, 
.video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Suppression de tous les effets visuels sur les vidéos */
.video-embed-container::before,
.video-embed-container::after,
.video-embed-container.initial-load::before,
.video-embed.loading::before,
.video-embed.loading::after {
    display: none;
}

/* Message minimaliste pour les vidéos en chargement */
.lazy-video {
    position: relative;
}

.lazy-video::after {
    content: "•";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-color);
    font-size: 20px;
    animation: blink 1s infinite;
    pointer-events: none;
}

/* SECTION LIEN */
.video-link-container {
    margin-bottom: 20px;
    font-size: 12px;
    color: rgba(196, 212, 224, 0.8);
    padding: 6px 10px;
    background-color: var(--highlight);
    display: inline-block;
    border-left: 3px solid var(--accent-color);
}

/* SECTION DESCRIPTION ET SOURCES */
.description-container, .sources-container {
    padding: 15px;
    margin-bottom: 20px;
    background-color: var(--section-bg);
    position: relative;
    border: 1px solid var(--border-color);
}

.description-container::before, .sources-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAEklEQVQImWNgYGD4z0AswK4SAFXuAf4ATfUSAAAAAElFTkSuQmCC");
    opacity: 0.05;
    pointer-events: none;
    image-rendering: pixelated;
}

.description-content, .sources-content {
    position: relative;
    z-index: 1;
}

.description-content p, .sources-content p {
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--text-color);
}

.description-content ul, .sources-content ul {
    margin-bottom: 12px;
    padding-left: 15px;
}

.description-content ul li, .sources-content ul li {
    position: relative;
}

.description-content ul li:before, .sources-content ul li:before {
    content: "•";
    color: var(--accent-color);
    opacity: 1;
    display: inline-block;
    width: 12px;
    margin-left: -12px;
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Listes ordonnées */
.description-content ol, .sources-content ol {
    margin-bottom: 12px;
    padding-left: 20px;
    list-style: none;
    counter-reset: item;
}

.description-content ol li, .sources-content ol li {
    position: relative;
    counter-increment: item;
    padding-left: 8px;
    margin-bottom: 4px;
}

.description-content ol li::before, .sources-content ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: -20px;
    color: rgba(196, 212, 224, 0.9);
    font-size: 90%;
    font-family: var(--font-family, monospace);
    font-weight: 500;
}

/* Listes imbriquées */
.description-content ol ol, .sources-content ol ol,
.description-content ul ul, .sources-content ul ul,
.description-content ol ul, .sources-content ol ul,
.description-content ul ol, .sources-content ul ol {
    margin-top: 6px;
    margin-bottom: 6px;
    padding-left: 18px;
}

/* Style spécifique pour les listes imbriquées */
.description-content ol ol li::before, .sources-content ol ol li::before {
    content: counter(item, lower-alpha) ".";
    left: -18px;
}

/* Style pour les textes en gras (remplace timestamps-header) */
.description-content strong, .sources-content strong {
    color: var(--accent-color);
    font-size: 12px;
    margin-top: 15px;
    display: inline-block;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Style pour les h3 dans les contenus (remplace subtle-header) */
.description-content h3, .sources-content h3 {
    font-size: 17px;
    margin-top: 16px;
    margin-bottom: 9px;
    text-transform: lowercase;
    color: rgba(110, 145, 188, 1);
    letter-spacing: 0.6px;
    padding-bottom: 2px;
}

/* Styles supplémentaires pour les éléments de markdown */
.description-content a, .sources-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Style spécifique pour les liens externes */
.description-content a[target="_blank"], 
.sources-content a[target="_blank"],
.description-content a.external, 
.sources-content a.external {
    position: relative;
}

.description-content a[target="_blank"]::after, 
.sources-content a[target="_blank"]::after,
.description-content a.external::after, 
.sources-content a.external::after {
    content: "↗";
    text-decoration: none;
    display: inline-block;
    font-size: 90%;
    margin-left: 3px;
    opacity: 0.8;
    color: var(--cyan-accent, var(--accent-color));
}

.description-content a:hover, .sources-content a:hover {
    color: var(--cyan-accent, var(--accent-color));
    opacity: 0.9;
}

.description-content blockquote, .sources-content blockquote {
    border-left: 2px solid var(--accent-color);
    padding-left: 10px;
    margin-left: 5px;
    font-style: italic;
    color: rgba(196, 212, 224, 0.9);
}

.description-content code, .sources-content code {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 90%;
}

.description-content pre, .sources-content pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 12px;
}

.description-content pre code, .sources-content pre code {
    background-color: transparent;
    padding: 0;
}

.description-content img, .sources-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--accent-color);
}

.description-content h2, .sources-content h2 {
    margin-top: 22px;
    margin-bottom: 10px;
    font-size: 19px;
    text-transform: lowercase;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 3px;
    display: inline-block;
    color: var(--header-color);
}

.description-content h1, .sources-content h1 {
    font-size: 21px;
    margin-top: 25px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--header-color);
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 0px var(--highlight);
}

.description-content h1::after, .sources-content h1::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABCAYAAAD5PA/NAAAAFklEQVQIHWP8//8/IwMjIwMDA8P/fwCcAgX9tKU0yAAAAABJRU5ErkJggg==");
    background-repeat: repeat;
    image-rendering: pixelated;
}

.description-content h4, .sources-content h4 {
    font-size: 15px;
    color: var(--accent-color);
    margin-top: 14px;
    margin-bottom: 8px;
    text-transform: lowercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-left: 2px solid var(--accent-color);
    padding-left: 8px;
}

.description-content h5, .sources-content h5 {
    font-size: 14px;
    color: var(--active-color);
    margin-top: 12px;
    margin-bottom: 6px;
    text-transform: lowercase;
    font-weight: 400;
    letter-spacing: 0.4px;
    padding-left: 10px;
    position: relative;
}

.description-content h5::before, .sources-content h5::before {
    content: "◆";
    position: absolute;
    left: 0;
    font-size: 8px;
    color: var(--accent-color);
    opacity: 0.9;
    top: 50%;
    transform: translateY(-50%);
}

.description-content h6, .sources-content h6 {
    font-size: 13px;
    color: var(--accent-color);
    margin-top: 10px;
    margin-bottom: 5px;
    text-transform: lowercase;
    font-weight: 400;
    letter-spacing: 0.3px;
    font-style: italic;
    padding-left: 12px;
    opacity: 0.85;
}

/* FOOTER */
.main-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: rgba(196, 212, 224, 0.6);
    padding-top: 40px;
    border-top: 1px dotted var(--border-color);
    position: relative;
}

.marquee {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 11px;
    white-space: nowrap;
    position: absolute;
    top: -27px;
    left: 0;
    right: 0;
    width: fit-content;
    overflow: hidden;
    color: var(--active-color);
    opacity: 0.9;
    animation: marquee 20s linear infinite;
    padding: 3px 0;
}

#empty_footer {
    position: relative;
    display: block;
    height: 2px;
    background-color: #b2cd9b;
}

/* DÉGRADÉ PIXELISÉ SUR LA BARRE LATÉRALE */
.sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-image: linear-gradient(to bottom, 
        var(--bg-color) 0%, 
        var(--accent-color) 20%, 
        var(--accent-color) 80%, 
        var(--bg-color) 100%);
    opacity: 0.6;
    image-rendering: pixelated;
}

/* TEXTE DÉFILANT PIXELISÉ */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* TEXTE SURLIGNÉ */
::selection {
    background: var(--accent-color);
    color: #fff;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}
 
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* RESPONSIVITÉ */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar, .main-content {
        width: 100%;
    }
    
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
    }
    
    .video-list {
        display: none;
    }
    
    .video-list.expanded {
        display: block;
    }
    
    .toggle-videos-btn {
        display: inline-block !important;
    }
    
    .video-list-container h3 {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* AJUSTEMENTS SPÉCIFIQUES POUR MOBILE */
    body::before {
        font-size: 9px;
    }
    
    /* MEILLEURE DISPOSITION DES BOUTONS DE MIROIR SUR MOBILE */
    .mirrors-buttons {
        justify-content: center;
    }
    
    /* RÉDUCTION DES ESPACEMENTS LATÉRAUX */
    .content-wrapper {
        padding: 0;
    }
    
    /* ÉLIMINATION DE CERTAINS ÉLÉMENTS DÉCORATIFS POUR GAGNER DE L'ESPACE */
    .sidebar-footer::before,
    .sidebar-footer::after {
        display: none;
    }
    
    /* ADAPTATION DE LA BARRE DE TITRE */
    .video-header {
        padding: 5px 10px;
    }
    
    .video-header::before,
    .video-header::after {
        display: none;
    }
    
    /* AMÉLIORATIONS SPÉCIFIQUES POUR PETITS ÉCRANS */
    body::after {
        opacity: 0.1;
    }
}

/* DÉCORATIONS ET SÉPARATEURS RÉTRO */
.content-wrapper::after {
    content: "· · · · · · · · · · · · · · · · · · · · · · ·";
    display: block;
    text-align: center;
    color: var(--accent-color);
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 25px;
    margin-bottom: -15px;
    opacity: 0.7;
}

.video-header::before {
    content: "◢◣";
    position: absolute;
    left: -25px;
    top: 8px;
    color: var(--border-color);
    font-size: 12px;
    opacity: 0.7;
    transform: rotate(90deg);
}

.video-header::after {
    content: "◥◤";
    position: absolute;
    right: -25px;
    top: 8px;
    color: var(--border-color);
    font-size: 12px;
    opacity: 0.7;
    transform: rotate(90deg);
}

/* BADGES ET TAGS COOL */
.video-list li.active::after {
    content: "< lecture >";
    position: absolute;
    left: 0;
    top: -14px;
    font-size: 8px;
    color: var(--active-color);
    opacity: 0.9;
    background-color: rgba(30, 35, 41, 0.7);
    padding: 1px 4px;
    border-radius: 2px;
}

/* BARRE SUPÉRIEURE AVEC TITRE DE LA MACHINE */
body::before {
    /* Contenu désactivé pour être remplacé par un élément cliquable */
    content: none;
}

#header-bar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-size: 11px;
    letter-spacing: 1px;
    padding: 2px 0;
    text-align: center;
    z-index: 10000;
    font-family: monospace;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: bold;
}

#header-bar:hover {
    background-color: var(--active-color);
}

body {
    padding-top: 18px;
}

/* TEXTURES SUPPLÉMENTAIRES */
.description-container, .sources-container {
    position: relative;
}

.description-container::after,
.sources-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFklEQVQIHWNgYGD4D8UMDMwMDAz/AQ4DAO5BCw2BKuLdAAAAAElFTkSuQmCC");
    background-repeat: repeat;
    image-rendering: pixelated;
    z-index: -1;
}

/* ÉLÉMENTS ASCII MINIMALISTES */
.sidebar-footer::before {
    content: "┌────────────────────┐";
    display: block;
    font-size: 10px;
    color: var(--border-color);
    margin-bottom: 5px;
    font-family: monospace;
}

.sidebar-footer::after {
    content: "└────────────────────┘";
    display: block;
    font-size: 10px;
    color: var(--border-color);
    margin-top: 5px;
    font-family: monospace;
}

/* EFFET SCAN LINE SUBTIL */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 1px,
        rgba(0, 0, 0, 0.05) 1px,
        rgba(0, 0, 0, 0.05) 2px
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.15;
}

/* MOT-CLÉ CLIGNOTANT DANS LA DESCRIPTION */
.description-content p:first-of-type::after {
    content: "_";
    display: inline-block;
    color: var(--accent-color);
    animation: blink 1s infinite;
    margin-left: 2px;
}

/* PETITE BOÎTE DE VÉRIFICATION COOL */
.timestamps li {
    position: relative;
}

.timestamps li::after {
    content: "[✓]";
    position: absolute;
    right: 5px;
    color: var(--cyan-accent);
    font-size: 10px;
    opacity: 0.7;
}

/* CARACTÉRISTIQUES TV RÉTRO POUR LA VIDÉO */
.video-embed-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 2;
}

.video-embed-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* CLASSE DE GLITCH POUR LE TITRE */
h1.glitch {
    /* Animation supprimée pour enlever l'effet de glitch */
    position: relative;
}

@keyframes glitch-effect {
    /* Animation conservée mais non utilisée */
    0% {
        text-shadow: 1px 0 0 var(--glitch-1), -1px 0 0 var(--glitch-2);
    }
    25% {
        text-shadow: -1px 0 0 var(--glitch-1), 1px 0 0 var(--glitch-2);
    }
    50% {
        text-shadow: 2px 0 0 var(--glitch-1), -2px 0 0 var(--glitch-2);
    }
    75% {
        text-shadow: -2px 0 0 var(--glitch-1), 2px 0 0 var(--glitch-2);
    }
}

/* EFFECT BRUIT DE FOND SUBTIL POUR AJOUTER DE LA TEXTURE */
.main-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAEoSURBVHja7JixTsMwEIbP1zZtlaUUUPMC9MXhAdiYmbr2WRhYeAZG2JmQGBgQA6JSXiCpElqJkQQTYhvf+e5f+mXTOZ9iOwrcLYqCQqxnmOTtKbC4BrADYCHO/AQwV5JuT+NJtR1F5WYIwFpyGUmA3gFcGDnvC7Cz/rc7JenXKVhfIdY9L3QZJ5SkmVLUDDTGKJgFM8YomAczxiioATNGUVALZoyioCbMGEVBbZgxioIWMGMUA61gxigGWsKMUUw5l4JFobamYrErxrZyvpUITgPDrFpVzFfFAK83jrBQyQqIJQ3GWMcBWPUZUbE+Av0EYqnGGJsX5jxA2haMsXnR6nEVWoKf7veQY6kxxiCCn0mOMdZx8PPvMcbY3Dxh9F48jVEU3AwA93/2xoLXzIwAAAAASUVORK5CYII=");
    background-position: center;
    background-size: 100% 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* PIXELS COLORÉS DANS LES COINS */
.container::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 0;
    width: 4px;
    height: 4px;
    background-color: var(--accent-color);
    z-index: 9998;
}

.container::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 4px;
    height: 4px;
    background-color: var(--active-color);
    z-index: 9998;
}

/* VERSION BADGE */
.main-footer::after {
    content: "v0.0.1";
    position: absolute;
    bottom: 23px;
    right: 0;
    font-size: 9px;
    color: var(--accent-color);
    opacity: 0.7;
    font-family: monospace;
}

/* SÉPARATEUR ASCII POUR LES MIROIRS */
.mirrors-container::after {
    content: "───◊───";
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--border-color);
    margin: 10px 0;
    letter-spacing: 2px;
}

/* NOTIFICATION "NOUVEAU" */
.video-list li:first-child::before {
    content: "NEW!";
    position: absolute;
    top: -1px;
    right: 5px;
    background-color: var(--active-color);
    color: var(--content-bg);
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 2px;
    transform: rotate(3deg);
    z-index: 2;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* EFFET SCANLINES TEMPORAIRE AU CHANGEMENT DE MIROIR */
@keyframes scan {
    0% { opacity: 0; }
    10% { opacity: 0.8; }
    35% { opacity: 0; }
    100% { opacity: 0; }
}

.video-embed.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(255, 255, 255, 0.03) 3px,
        rgba(255, 255, 255, 0.03) 6px
    );
    z-index: 3;
    animation: scan 2s ease-out forwards;
    pointer-events: none;
}

/* ANIMATION DE CHARGEMENT */
@keyframes loading {
    0%, 100% { content: "Loading."; }
    33% { content: "Loading.."; }
    66% { content: "Loading..."; }
}

.video-embed.loading::after {
    content: "Chargement...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-color);
    font-family: monospace;
    z-index: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

/* AJOUT DE CLASSE JS POUR LA TRANSITION */
.js-loading {
    animation: scan 2s ease-out;
}

/* ANIMATIONS POUR L'EFFET DE CHARGEMENT INITIAL */
.video-embed-container.initial-load::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0) 100%);
    background-size: 100% 5px;
    animation: scanline 6s linear infinite;
    z-index: 5;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes scanline {
    0% { background-position: 0 -100%; }
    100% { background-position: 0 300%; }
}

/* STYLE POUR LE LIEN DIRECT */
#direct-link {
    position: relative;
    padding-left: 16px;
    word-break: break-all;
}

#direct-link::before {
    content: "⟹";
    position: absolute;
    left: 0;
    font-size: 12px;
    color: var(--accent-color);
    top: 2px;
}

.toggle-videos-btn {
    display: none;
    font-size: 10px;
    padding: 2px 8px;
    margin-left: 10px;
    background-color: var(--accent-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    vertical-align: middle;
    border-radius: 2px;
    white-space: nowrap;
}

.toggle-videos-btn:hover {
    background-color: var(--highlight);
}

/* Suppression des classes non utilisées et optimisation des animations */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes scan {
    0% { opacity: 0; }
    10% { opacity: 0.8; }
    35% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes scanline {
    0% { background-position: 0 -100%; }
    100% { background-position: 0 300%; }
}

/* Optimisation des sélecteurs répétés */
.description-content,
.sources-content {
    position: relative;
    z-index: 1;
}

.description-content p,
.sources-content p {
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--text-color);
}

/* Suppression des styles redondants et non utilisés */
.video-embed-container::before,
.video-embed-container::after,
.video-embed-container.initial-load::before,
.video-embed.loading::before,
.video-embed.loading::after {
    display: none;
}

/* Optimisation des media queries */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar,
    .main-content {
        width: 100%;
    }
    
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
    }
    
    .video-list {
        display: none;
    }
    
    .video-list.expanded {
        display: block;
    }
    
    .toggle-videos-btn {
        display: inline-block !important;
    }
    
    .content-wrapper {
        padding: 0;
    }
    
    .sidebar-footer::before,
    .sidebar-footer::after {
        display: none;
    }
    
    body::after {
        opacity: 0.1;
    }
}
