@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    --bg-color: #121212;
    --text-color: #F5F5F7;
    --text-secondary: #A1A1A6;
    --accent-color: #409CFF; 
    --success-color: #30D158; 
    --glass-bg: rgba(22, 22, 24, 0.85); 
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    --glass-blur: blur(20px) saturate(180%);
}


body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: url('Medias/Photos/background.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.btn-start {
    display: inline-block;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF !important;
    background: rgba(64, 156, 255, 0.2);
    border: 1px solid rgba(64, 156, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 30px;
}
.btn-start:hover {
    background: var(--accent-color);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(64, 156, 255, 0.4);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
    color: #60B5FF;
}

a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 18px;
    color: var(--text-color);
}

.main-header {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    height: 60px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    box-sizing: border-box;
    gap: 20px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
}

.main-nav a.active {
    color: var(--accent-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.main-nav a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-btn:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.header-btn svg {
    width: 20px;
    height: 20px;
}

.icon-search {
    width: 24px;
    height: 24px;
    cursor: pointer;
    fill: var(--text-color);
    transition: fill 0.2s;
}

.icon-search:hover {
    fill: var(--accent-color);
}

.home-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: calc(100vh - 90px);
}

.home-content { 
    text-align: center; 
    z-index: 2;
    width: 90%; 
    max-width: 900px; 
    position: relative;
}

.bg-video {
    position: absolute;
    filter: blur(0.5rem);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

@media (max-width: 768px) {
    .bg-video {
        object-position: 35% center;
    }
}

.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.big-title svg {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.big-title {
    width: 100%;
    margin-bottom: 20px;
}

.title-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.svg-word {
    height: auto;
    display: block;
}


.word-motion {
    width: 38%;
    max-width: 400px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.word-designer {
    width: 50%;
    max-width: 520px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.big-title svg path { fill: #FFFFFF !important; }

.main-plan{
    padding: 40px 40px 120px 40px;
}

.video-layout {
    display: flex;
    flex: 1;
    padding: 90px 40px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.sidebar-btn {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-btn.active {
    background: rgba(64, 156, 255, 0.15);
    border-color: var(--accent-color);
    color: #FFFFFF;
}

.sidebar-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    z-index: 10;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.video-wrapper {
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
    padding: 0; 
}
.video-wrapper iframe, video { width: 100%; height: 100%; border: none; }

.info-bar {
    padding: 24px;
}

.video-header h1 { 
    margin: 0 0 8px 0; 
    font-size: 24px; 
    color: var(--text-color);
}
.video-header p { 
    margin: 0; 
    font-size: 14px; 
    color: var(--text-secondary);
}

.theme-controls {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.theme-btn {
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    color: white;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: 0.2s;
}
.theme-btn:hover, .theme-btn:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--text-color);
}

.sitemap-container {
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1200px;
}
.sitemap-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    cursor: pointer;
    transition: transform 0.2s;
}
.sitemap-card:hover {
    transform: translateY(-4px);
    background: rgba(30, 30, 35, 0.9);
}
.sitemap-card h2 {
    color: var(--accent-color);
    margin-top: 0;
    font-size: 20px;
}
.sitemap-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.viewed-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(48, 209, 88, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-btn.viewed::after {
    content: '✓';
    color: var(--success-color);
    flex-shrink: 0;
    margin-left: auto;
}

.content-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 10px 120px 10px;
}
.content-box {
    width: 100%;
    max-width: 900px;
    padding: 40px;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.credits-grid {
    width: 100%;
}
.credits-column h2 {
    color: var(--accent-color);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}
.credits-column h3 {
    margin-top: 24px;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none; 
    flex-direction: column; 
    align-items: center; 
    padding-top: 120px;
}
.close-search { 
    position: absolute; 
    top: 30px; 
    right: 40px; 
    font-size: 40px; 
    cursor: pointer; 
    color: var(--text-color);
    background: none;
    border: none;
}
.search-box input {
    width: 80%; 
    max-width: 600px; 
    padding: 20px; 
    font-size: 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--glass-border);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    outline: none;
}
.search-box input:focus {
    border-color: var(--accent-color);
}

#resetProgressBtn {
    display: block;
    margin: 30px auto 0 auto;
    text-align: center;
}
#searchResults {
    margin-top: 40px;
    width: 80%;
    max-width: 600px;
}
.result-item {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: background 0.2s;
}
.result-item:hover {
    background: rgba(255,255,255,0.05);
}
.result-item h3 { margin: 0; font-size: 18px; color: var(--accent-color); }

.podcast-page {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.podcast-wrapper {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 10px 100px 10px;
    text-align: center;
    margin: 0 auto;
}

.podcast-wrapper .video-wrapper {
    max-height: 60vh;
    aspect-ratio: 16/9;
}

.podcast-player-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.podcast-player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.podcast-player-container {
    position: relative;
}

.podcast-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.podcast-info {
    color: var(--text-color);
    text-align: center;
}

.podcast-info h1 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.podcast-info p {
    font-size: 16px;
    opacity: 0.8;
    line-height: 1.6;
    color: var(--text-secondary);
}

.podcast-themes {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@media screen and (max-width: 768px) {
    .podcast-info h1 { font-size: 22px; }
    .podcast-page { align-items: flex-start; padding-top: 40px; }
    .podcast-themes { gap: 8px; }
}

/* Fullscreen Video Layout - YouTube Style */
.video-fullscreen-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
}

.fullscreen-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #000;
    overflow: hidden;
}

.fullscreen-player {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.fullscreen-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.mouse-capture-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
    pointer-events: none;
}

.mouse-capture-layer.active {
    pointer-events: auto;
}

.video-overlay-ui {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    z-index: 1000;
}

.video-overlay-ui.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.play-pause-btn:hover {
    background: rgba(64, 156, 255, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: var(--accent-color);
}

.play-pause-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}

.fullscreen-video-container .main-header.video-overlay-ui.hidden {
    transform: translateY(100%);
}

.sidebar-overlay {
    left: 20px;
    right: 20px;
    top: 20px;
    width: auto;
    max-width: none;
    max-height: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 12px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 18px;
}

.sidebar-overlay.hidden {
    transform: translateY(-100px);
}

.sidebar-overlay .sidebar-btn {
    min-width: 140px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sidebar-overlay::-webkit-scrollbar {
    width: 8px;
}

.sidebar-overlay::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.sidebar-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.sidebar-overlay::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.video-info-overlay {
    top: auto;
    right: 20px;
    left: calc(77.5vw);
    bottom: 145px;
    width: auto;
    height: auto;
    max-height: 40vh;
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.video-info-overlay::-webkit-scrollbar {
    width: 6px;
}

.video-info-overlay::-webkit-scrollbar-track {
    background: transparent;
}

.video-info-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.video-info-overlay::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.video-info-overlay.hidden {
    transform: translateX(120%);
}

.video-info-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.video-info-logo {
    height: 38px;
    width: auto;
    flex-shrink: 0;
}

.video-info-text {
    flex: 1;
}

.video-info-text h1 {
    margin: 0;
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.2;
}

.video-info-text p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.video-info-overlay .theme-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-popup {
    position: fixed;
    right: 20px;
    bottom: 145px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 12px;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    min-width: 200px;
}

.share-popup.active {
    display: flex;
}

.share-option {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    text-decoration: none;
}

.share-option:hover {
    background: var(--accent-color);
    transform: translateX(-2px);
}

.share-option svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .title-flex {
        gap: 0;          
    }

    .svg-word {
        width: 100%; 
        max-width: 100%;
        height: auto;
    }

    .word-motion {
        margin-bottom: -10px;
        width: 80%;
    }


    .main-header {
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        border-radius: 14px;
        padding: 0 12px;
        box-sizing: border-box;
        z-index: 10001;
        height: 50px;
        gap: 10px;
    }

    .main-nav ul {
        gap: 12px;
    }

    .main-nav a {
        font-size: 12px;
        letter-spacing: 0.3px;
    }

    .header-actions {
        gap: 6px;
    }

    .video-layout {
        flex-direction: column;
        padding: 10px 15px;
    }
    .sidebar { width: 100%; height: auto; overflow-x: auto; flex-direction: row; padding-bottom: 10px;}
    .sidebar-btn { min-width: 160px; white-space: nowrap; }

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

    .content-page {
        padding: 20px 15px 80px 15px;
        box-sizing: border-box;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .content-box {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .credits-column p,
    .credits-column a {
        word-break: normal;
        overflow-wrap: break-word;
    }

    .main-plan {
        padding: 20px 15px 80px 15px;
    }

    .main-plan > div[style] {
        padding: 20px 15px 0 15px !important;
    }

    .sitemap-container {
        padding: 20px 0;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sitemap-card {
        min-height: auto;
        padding: 20px;
    }

    #resetProgressBtn {
        width: 100%;
        margin-top: 10px;
    }

    body { padding-bottom: 70px; padding-top: 0; }

    .btn-start {
        padding: 14px 30px;
        font-size: 16px;
    }

    .sidebar-overlay {
        left: 10px;
        right: 10px;
        top: 10px;
        width: auto;
        max-width: none;
        max-height: 50px;
        transform: translateY(0);
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px;
        gap: 8px;
        border-radius: 14px;
    }

    .sidebar-overlay .sidebar-btn {
        min-width: 120px;
        padding: 10px 14px;
        font-size: 12px;
    }

    .sidebar-overlay::-webkit-scrollbar {
        height: 6px;
    }

    .sidebar-overlay.hidden {
        transform: translateY(-100%);
    }

    .video-info-overlay {
        top: auto;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        transform: none;
        bottom: 115px;
        bottom: calc(115px + env(safe-area-inset-bottom, 0px));
        padding: 12px;
        box-sizing: border-box;
        max-height: none;
        height: auto;
        overflow: visible;
        gap: 8px;
        border-radius: 14px;
    }

    .video-info-header {
        gap: 10px;
    }

    .video-info-logo {
        height: 32px;
    }

    .video-info-text h1 {
        font-size: 14px;
    }

    .video-info-text p {
        font-size: 11px;
        margin-top: 2px;
    }

    .video-info-overlay .theme-controls {
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .video-info-overlay .theme-btn {
        padding: 8px 14px;
        font-size: 11px;
        line-height: 1;
        white-space: nowrap;
    }

    .video-info-overlay.hidden {
        transform: translateY(150%);
    }

    .share-popup {
        left: auto;
        right: 10px;
        transform: none;
        bottom: 120px;
        min-width: 220px;
        width: auto;
    }

    .header-btn {
        padding: 6px;
    }

    .header-btn svg {
        width: 18px;
        height: 18px;
    }

    .video-fullscreen-body .main-header {
        width: auto;
        bottom: 10px;
        left: 10px;
        right: 10px;
        z-index: 10001;
    }

    .video-fullscreen-body .main-header.hidden {
        transform: translateY(100%);
    }

    .play-pause-btn {
        width: 60px;
        height: 60px;
    }

    .play-pause-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Mode paysage mobile et tablette */
@media screen and (max-width: 1200px) and (orientation: landscape) {
    .sidebar-overlay {
        left: 10px;
        top: 10px;
        right: auto;
        width: auto;
        max-width: 35%;
        max-height: calc(100vh - 110px);
        max-height: calc(100dvh - 110px);
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 6px;
        gap: 4px;
        border-radius: 10px;
    }

    .sidebar-overlay .sidebar-btn {
        min-width: 80px;
        padding: 6px 10px;
        font-size: 10px;
    }

    .sidebar-overlay.hidden {
        transform: translateX(-120%);
    }

    .video-info-overlay {
        left: auto;
        right: 10px;
        top: auto;
        bottom: 100px;
        width: fit-content;
        max-width: 22%;
        height: auto;
        max-height: calc(100dvh - 120px);
        padding: 6px;
        border-radius: 10px;
        gap: 4px;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .video-info-overlay.hidden {
        transform: translateX(120%);
    }

    .video-info-header {
        gap: 10px;
    }

    .video-info-logo {
        height: 30px;
        flex-shrink: 0;
    }

    .video-info-text h1 {
        font-size: 11px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .video-info-text p {
        font-size: 9px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .video-info-text {
        min-width: 0;
    }

    .video-info-overlay .theme-controls {
        gap: 5px;
        flex-wrap: wrap;
    }

    .theme-btn {
        padding: 5px 8px;
        font-size: 9px;
    }

    .main-header {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        max-width: none;
        height: 45px;
        padding: 0 10px;
        border-radius: 12px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .fullscreen-video-container .main-header.video-overlay-ui.hidden {
        transform: translateY(100%);
    }

    .main-nav ul {
        gap: 8px;
        flex-shrink: 0;
    }

    .main-nav a {
        font-size: 10px;
    }

    .header-actions {
        gap: 4px;
    }

    .header-btn {
        padding: 4px;
    }

    .header-btn svg {
        width: 16px;
        height: 16px;
    }

    .icon-search {
        width: 18px;
        height: 18px;
    }

    .share-popup {
        bottom: 100px;
        right: 10px;
    }

    .play-pause-btn {
        width: 50px;
        height: 50px;
    }

    .play-pause-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Styles pour les sous-chapitres (themes) vus */
.theme-btn.theme-viewed {
    background: rgba(48, 209, 88, 0.15);
    border-color: var(--success-color);
    color: var(--success-color);
}

.theme-btn.theme-viewed:hover {
    background: rgba(48, 209, 88, 0.25);
}

.theme-check {
    margin-left: 4px;
    font-size: 11px;
}

/* Styles pour la page plan - sous-chapitres */
.plan-themes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.plan-theme-btn {
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.plan-theme-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.plan-theme-btn.theme-viewed {
    background: rgba(48, 209, 88, 0.15);
    border-color: var(--success-color);
    color: var(--success-color);
}

.plan-theme-btn.theme-viewed:hover {
    background: rgba(48, 209, 88, 0.25);
}

/* Badge de progression */
.progress-badge {
    background: rgba(64, 156, 255, 0.2) !important;
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* Styles pour les cartes de la page plan */
.sitemap-card {
    position: relative;
}

.sitemap-card .card-header {
    cursor: pointer;
}

.sitemap-card .card-header:hover h2 {
    color: #60B5FF;
}

.sitemap-card .card-link {
    font-size: 12px;
    text-decoration: underline;
    margin-top: 10px;
    color: var(--accent-color);
    cursor: pointer;
    display: inline-block;
}

.sitemap-card .card-link:hover {
    color: #60B5FF;
}

/* Responsive pour les sous-chapitres dans le plan */
@media screen and (max-width: 768px) {
    .plan-themes-container {
        gap: 6px;
    }

    .plan-theme-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* ========== BARRE DE PROGRESSION VIDÉO ========== */

.video-progress-bar {
    position: absolute;
    bottom: 90px;
    left: 20px;
    right: 20px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    z-index: 1001;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-progress-bar.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.progress-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    min-width: 45px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.progress-track-container {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 10px 0;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    cursor: pointer;
    overflow: visible;
}

.progress-track:hover {
    height: 8px;
}

.progress-track:hover .progress-fill,
.progress-track:hover .progress-buffered {
    border-radius: 4px;
}

.progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    pointer-events: none;
    transition: width 0.1s ease;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    pointer-events: none;
    transition: width 0.1s ease;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.progress-thumb:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 3px 12px rgba(64, 156, 255, 0.5);
}

.progress-thumb:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.3);
}

.progress-hotspots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.progress-hotspot {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    z-index: 5;
    transition: all 0.2s ease;
    padding: 0;
}

.progress-hotspot:hover {
    transform: translate(-50%, -50%) scale(1.4);
    background: var(--accent-color);
    border-color: #fff;
    z-index: 15;
}

.progress-hotspot.hotspot-viewed {
    background: var(--success-color);
    border-color: var(--success-color);
}

.progress-hotspot.hotspot-viewed:hover {
    background: var(--success-color);
    border-color: #fff;
}

.hotspot-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.hotspot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--glass-bg);
}

.progress-hotspot:hover .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ========== RESPONSIVE BARRE DE PROGRESSION ========== */

/* Mobile portrait */
@media screen and (max-width: 768px) {
    .video-progress-bar {
        bottom: 70px;
        left: 10px;
        right: 10px;
        height: 36px;
        gap: 8px;
        padding: 0 12px;
        border-radius: 18px;
    }

    .progress-time {
        font-size: 11px;
        min-width: 38px;
    }

    .progress-track {
        height: 5px;
    }

    .progress-track:hover {
        height: 7px;
    }

    .progress-thumb {
        width: 14px;
        height: 14px;
    }

    .progress-hotspot {
        width: 10px;
        height: 10px;
    }

    .hotspot-tooltip {
        font-size: 10px;
        padding: 5px 8px;
    }
}

/* Mobile paysage et tablette paysage */
@media screen and (max-width: 1200px) and (orientation: landscape) {
    .video-progress-bar {
        bottom: 60px;
        left: 10px;
        right: 10px;
        height: 32px;
        gap: 8px;
        padding: 0 10px;
        border-radius: 16px;
        z-index: 1001;
    }

    .progress-time {
        font-size: 10px;
        min-width: 35px;
    }

    .progress-track {
        height: 4px;
    }

    .progress-track:hover {
        height: 6px;
    }

    .progress-thumb {
        width: 12px;
        height: 12px;
    }

    .progress-hotspot {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }

    .hotspot-tooltip {
        font-size: 9px;
        padding: 4px 6px;
        margin-bottom: 6px;
    }
}

/* Tablette portrait */
@media screen and (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .video-progress-bar {
        bottom: 85px;
        left: 15px;
        right: 15px;
        height: 38px;
        gap: 10px;
        padding: 0 14px;
    }

    .progress-time {
        font-size: 11px;
        min-width: 42px;
    }

    .progress-thumb {
        width: 15px;
        height: 15px;
    }

    .progress-hotspot {
        width: 11px;
        height: 11px;
    }
}

/* Grand écran */
@media screen and (min-width: 1400px) {
    .video-progress-bar {
        left: 40px;
        right: 40px;
        height: 44px;
        gap: 16px;
        padding: 0 20px;
    }

    .progress-time {
        font-size: 13px;
        min-width: 50px;
    }

    .progress-track {
        height: 7px;
    }

    .progress-track:hover {
        height: 9px;
    }

    .progress-thumb {
        width: 18px;
        height: 18px;
    }

    .progress-hotspot {
        width: 14px;
        height: 14px;
    }

    .hotspot-tooltip {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ========== CONTRÔLE DU VOLUME ========== */

.volume-popup {
    position: fixed;
    right: 70px;
    bottom: 145px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 12px;
    padding: 12px 16px;
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 1002;
    min-width: 200px;
}

.volume-popup.active {
    display: flex;
}

.volume-mute-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.volume-mute-btn:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.volume-slider-container {
    position: relative;
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.volume-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    pointer-events: none;
    z-index: 1;
    transition: width 0.1s ease;
}

.volume-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    min-width: 40px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Responsive volume */
@media screen and (max-width: 768px) {
    .volume-popup {
        right: 10px;
        bottom: 120px;
        padding: 10px 12px;
        gap: 10px;
        min-width: 180px;
    }

    .volume-slider::-webkit-slider-thumb {
        width: 12px;
        height: 12px;
    }

    .volume-value {
        font-size: 11px;
        min-width: 35px;
    }
}

@media screen and (max-width: 1200px) and (orientation: landscape) {
    .volume-popup {
        right: 10px;
        bottom: 100px;
        padding: 8px 10px;
        gap: 8px;
        min-width: 160px;
    }

    .volume-mute-btn {
        padding: 4px;
    }

    .volume-mute-btn svg {
        width: 16px;
        height: 16px;
    }

    .volume-slider-container {
        height: 5px;
    }

    .volume-slider::-webkit-slider-thumb {
        width: 10px;
        height: 10px;
    }

    .volume-value {
        font-size: 10px;
        min-width: 30px;
    }
}