/* Styles généraux */
:root {
    --primary-color: #ff0090;
    --secondary-color: #5f0fff;
    --dark-bg: #0f0e13;
    --darker-bg: #090810;
    --lighter-bg: #1a1922;
    --text-color: #fff;
    --text-muted: #9e9e9e;
    --header-height: 60px;
    --footer-height: 120px;
    --border-radius: 8px;
    --card-transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* En-tête */
.main-header {
    background-color: var(--darker-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.highlight {
    color: var(--primary-color);
}

.search-container {
    max-width: 400px;
    width: 100%;
}

.search-container form {
    display: flex;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 8px 40px 8px 15px;
    border-radius: 20px;
    border: none;
    background-color: var(--lighter-bg);
    color: var(--text-color);
    font-size: 0.9rem;
}

.search-container button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
}

/* Héro */
.hero-section {
    position: relative;
    height: 300px;
    background-color: #251026;
    background-image: linear-gradient(to right, rgba(15, 14, 19, 0.9), rgba(37, 12, 38, 0.7));
    background-size: cover;
    background-position: center;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 14, 19, 0.8), rgba(37, 12, 38, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-content p {
    max-width: 600px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
}

.stat-item i {
    color: var(--primary-color);
}

/* Boutons de recherche rapide */
.quick-search-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.quick-search-btn {
    background-color: var(--lighter-bg);
    border: none;
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quick-search-btn:hover {
    background-color: var(--primary-color);
}

/* Onglets */
.tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.results-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.content-tabs {
    display: flex;
    gap: 10px;
}

.tab-link {
    background: none;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.tab-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-link.active {
    background-color: var(--primary-color);
}

/* Drapeau français */
.french-flag {
    display: flex;
    height: 12px;
    width: 18px;
    overflow: hidden;
    border-radius: 2px;
}

.french-flag .blue {
    background-color: #002395;
    width: 33.33%;
    height: 100%;
}

.french-flag .white {
    background-color: #ffffff;
    width: 33.33%;
    height: 100%;
}

.french-flag .red {
    background-color: #ED2939;
    width: 33.33%;
    height: 100%;
}

.tab-flag {
    height: 14px;
    width: 21px;
}

/* Grille de vidéos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.video-card {
    background-color: var(--lighter-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--card-transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-poster {
    position: relative;
    padding-top: 56.25%; /* Ratio 16:9 */
    background-color: #000;
    overflow: hidden;
}

.card-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .card-poster img {
    transform: scale(1.05);
}

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.language-badge {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 4px;
    border-radius: 3px;
    display: flex;
    align-items: center;
}

.globe-icon {
    color: #4da6ff;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card:hover .card-overlay {
    opacity: 1;
}

.preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.overlay-content {
    position: relative;
    z-index: 2;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.play-btn:hover {
    background-color: var(--secondary-color);
}

.card-info {
    padding: 15px;
}

.card-info h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;
}

.card-info h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.card-info h3 a:hover {
    color: var(--primary-color);
}

.card-meta {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    gap: 5px;
}

.quality i {
    color: #10b981;
    margin-right: 2px;
}

/* Indicateur de chargement */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--text-muted);
    gap: 10px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 0, 144, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 15px;
}

.pagination-link {
    background-color: var(--lighter-bg);
    color: var(--text-color);
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.pagination-link:hover:not(:disabled) {
    background-color: var(--primary-color);
}

.pagination-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
.main-footer {
    background-color: var(--darker-bg);
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo p {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.disclaimer {
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .tabs-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }
    
    .search-container {
        width: 100%;
        margin-top: 10px;
    }
    
    .hero-section {
        height: 250px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .stat-item {
        font-size: 0.8rem;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
}