/* Styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #FF0000;
    --primary-green: #008000;
    --primary-black: #000000;
    --sidebar-bg: #f0f0f0;
    --main-bg: #ffffff;
    --text-color: #000000;
    --tag-bg: #f8f8f8;
    --tag-border: #e0e0e0;
    --search-bg: #e0e0e0;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --divider-color: #e5e5e5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--main-bg);
    display: flex;
    flex-direction: row;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--sidebar-bg);
    overflow-y: auto;
    padding: 15px 0;
    z-index: 100;
}

.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 20px;
}

/* Logo */
.logo {
    display: block;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.logo img {
    height: 100px;
}

/* Navigation */
.sidebar-nav {
    margin-bottom: 30px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    font-size: 18px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.nav-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-item i, .nav-item img {
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

.nav-divider {
    height: 1px;
    background-color: var(--divider-color);
    margin: 15px 0;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    padding: 10px 15px;
    margin-top: 20px;
}

.tag-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    font-size: 16px;
}

.tag-item .tag-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-red);
    margin-right: 15px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--main-bg);
    position: sticky;
    top: 0;
    z-index: 50;
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.search-container form {
    display: flex;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    background-color: var(--search-bg);
    font-size: 16px;
}

.search-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 18px;
}

.social-icons, .action-icons {
    display: flex;
    align-items: center;
}

.icon-button {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    margin-left: 15px;
    cursor: pointer;
}

/* Hero Section */
.hero-mastodon-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.hero {
    position: relative;
    width: 50%;
    height: 400px;
    background-color: #888;
    overflow: hidden;
    border-radius: 8px;
}

#mt-container {
    width: 50%;
    height: 400px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.mt-header {
    padding: 12px 15px;
    background: linear-gradient(45deg, #000000, #333333);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.mt-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.mt-title i {
    color: var(--primary-red);
}

.mt-body {
    height: calc(100% - 50px);
    overflow-y: auto;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.hero-logo {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-logo .re {
    color: var(--primary-red);
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.play-button i {
    color: white;
    font-size: 36px;
}

/* Tags Section */
.tags-section {
    margin-bottom: 30px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
}

.tag {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 10px;
    border: 1px solid var(--tag-border);
    border-radius: 20px;
    font-size: 14px;
    background-color: var(--tag-bg);
    cursor: pointer;
    transition: background-color 0.2s;
}

.tag:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
}

.section-logo {
    margin-right: 15px;
}

.section-logo img {
    height: 80px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
}

/* Video Sections */
.video-section {
    margin-bottom: 40px;
    position: relative;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 50px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .video-play-icon {
    opacity: 1;
}

.video-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.video-channel {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-metadata {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: auto;
}

.video-metadata i {
    margin-right: 4px;
    font-size: 13px;
    color: var(--primary-red);
}

.video-views, .video-date {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.video-tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

/* Carousel */
.carousel {
    position: relative;
    overflow: hidden;
    margin: 15px 0 30px;
    padding: 10px 0;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    padding-bottom: 10px;
}

.carousel-item {
    flex: 0 0 auto;
    width: 220px;
    margin-right: 20px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background-color: var(--primary-red);
    transform: scale(1.2);
}

/* View More Button */
.view-more {
    display: block;
    width: max-content;
    margin: 25px auto 5px;
    padding: 12px 30px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-more:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.view-more:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Info Section */
.info-section {
    margin: 40px 0;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.info-header {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.info-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-image {
    width: 100%;
    margin: 20px 0;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding: 30px 0;
    background-color: var(--sidebar-bg);
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 100px;
}

.footer-social {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-social a {
    margin: 0 10px;
    font-size: 24px;
    color: var(--text-color);
}

.footer-contact {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-email {
    font-size: 16px;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-color);
    margin-left: 15px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    z-index: 200;
    margin-left: 15px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-bg);
    z-index: 150;
    padding: 60px 20px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 1200px) and (min-width: 1001px) {
    .sidebar {
        width: 70px;
    }
    
    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
    
    .nav-item span {
        display: none;
    }
    
    /* Masquer complètement la section Hashtags */
    .category-title, 
    .tag-item {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 15px 0;
        position: relative;
    }
    
    .nav-item i {
        margin-right: 0;
        font-size: 20px;
    }
    
    /* Tooltip for compact mode */
    .nav-item:hover::after {
        content: attr(data-title);
        position: absolute;
        left: 70px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--sidebar-bg);
        color: var(--text-color);
        padding: 5px 10px;
        border-radius: 4px;
        white-space: nowrap;
        box-shadow: 0 1px 5px rgba(0,0,0,0.2);
        z-index: 100;
    }
    
    .logo {
        text-align: center;
        padding: 10px 0;
    }
    
    .logo img {
        height: 30px;
    }
}

@media (max-width: 1000px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header {
        padding: 10px 15px;
        justify-content: space-between;
    }
    
    .search-container {
        max-width: 50%;
    }
    
    .social-icons {
        display: none;
    }
    
    .action-icons {
        display: flex;
        align-items: center;
    }
    
    .hero-mastodon-wrapper {
        flex-direction: column;
    }
    
    .hero, #mt-container {
        width: 100%;
        height: 300px;
    }
    
    #mt-container {
        height: 600px;
    }
    
    /* Réduire la taille des boutons du footer Mastodon en mobile */
    .mt-footer .mt-btn-violet {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }
    
    .hero-logo {
        font-size: 40px;
    }
}

@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .video-title {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .hero-logo {
        font-size: 36px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 24px;
    }
    
    .video-title {
        font-size: 16px;
    }
} 