/* Reset basique */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #000;
    line-height: 1.6;
}

/* Top Banner */
.top-banner {
    background: #333;
    color: white;
    padding: 10px;
    text-align: center;
}

.access-btn {
    background: white;
    color: #333;
    padding: 5px 15px;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

/* Header */
.header {
    background: white;
    border-bottom: 2px solid #333;
    padding: 15px 0;
}

.header-wrapper {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    font-family: Arial, sans-serif;
    letter-spacing: -1px;
}

.logo-text:hover {
    color: #555;
}

.logo-img {
    height: 40px;
}

/* Navigation principale */
.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #666;
}

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

/* Search Bar en dessous du header */
.search-bar-container {
    background: #f5f5f5;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border: 1px solid #333;
    border-radius: 50px;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: #555;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 50px;
}

.search-btn:hover {
    background: #555;
}

.btn {
    padding: 10px 15px;
    border: 1px solid #333;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.btn-login {
    background: white;
    color: #333;
    text-decoration: none;
}

.btn-create {
    background: #333;
    color: white;
    text-decoration: none;
}


/* Container principal */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0px 20px;
}

/* Sections */
.section {
    margin-bottom: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    padding-top: 15px;
}

.view-all {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.view-all:hover {
    color: #333;
}

/* Grille de cartes - SIMPLE */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Carte améliorée */
.card {
    background: white;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    overflow: hidden;
    position: relative;
}


.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-info {
    padding: 18px;
    background: white;
}

.card-username {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-count {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.card-stats {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 18px 18px 18px;
}

.card-tag {
    background: #333;
    color: white;
    padding: 5px 5px;
    font-size: 11px;
    border-radius: 4px;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.card-tag:hover {
    background: #e91e63;
}

/* Badges */
.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.badge-live {
    background: #f00;
    color: white;
}

.badge-new {
    background: #0f0;
    color: white;
}

.viewer-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
}

/* Tags Section */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

.tag-item:hover {
    background: #333;
    color: white;
    border-color: #333;
}

/* Footer */
.footer {
    background: #333;
    border-top: 2px solid #333;
    padding: 0px 20px;
    margin-top: 28px;
}

.footer-bottom {
    text-align: center;
    color: #fff;
}

.footer-copyright {
    margin-bottom: 0px;
    padding: 15px;
}

.footer-copyright span {
    font-weight: 600;
}

.footer-link {
    color: inherit;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.empty-message {
    grid-column: 1/-1;
    text-align: center;
    color: #6b7280;
    padding: 40px;
}

.page-header {
    margin: 30px 0;
}

.category-count {
    color: #6b7280;
    margin-top: 10px;
}

.related-tags-section {
    margin-top: 50px;
}

.tag-count {
    font-size: 11px;
    opacity: 0.7;
}

.breadcrumb {
    padding: 15px 0;
    color: #666;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0px;
    font-size: 14px;
    font-weight: 700;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 10px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
}

.pagination-btn:hover {
    background: #555;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-number {
    padding: 8px 12px;
    background: white;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s;
}

.pagination-number:hover {
    background: #f5f5f5;
    border-color: #333;
}

.pagination-number.active {
    background: #333;
    color: white;
    border-color: #333;
}

.pagination-dots {
    padding: 0 5px;
    color: #666;
}

/* Mobile Only Actions */
.mobile-only-actions {
    display: none;
}

.mobile-only {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive */
@media (max-width: 768px) {
    .top-banner {
        padding: 8px;
        font-size: 13px;
    }

    .container {
        padding: 0 10px !important;
    }

    .header-wrapper {
        flex-wrap: nowrap;
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 8px;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav .nav-link {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .mobile-only-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px 15px 10px;
        border-top: 2px solid #eee;
        margin-top: 10px;
    }

    .mobile-only-actions .btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }

    .header-actions {
        display: none;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .search-bar-container {
        padding: 15px;
    }

    .search-input {
        padding: 12px 50px 12px 15px;
        font-size: 14px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .pagination-number {
        padding: 6px 10px;
        min-width: 35px;
        font-size: 14px;
    }

    .footer {
        padding: 20px 15px;
        margin-top: 30px;
    }

    .footer-bottom {
        font-size: 12px;
        line-height: 1.8;
    }

    .footer-copyright {
        margin-bottom: 10px;
    }
}

/* AUTOCOMPLETE DROPDOWN STYLES */
.autocomplete-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    margin-top: 4px;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #f5f5f5;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.autocomplete-text {
    flex: 1;
    min-width: 0;
}

.autocomplete-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-highlight {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    padding: 1px 2px;
    border-radius: 2px;
}

.autocomplete-count {
    font-size: 13px;
    color: #666;
}

.autocomplete-loading,
.autocomplete-no-results,
.autocomplete-error {
    padding: 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.autocomplete-error {
    color: #ef4444;
}

.autocomplete-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: autocomplete-spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes autocomplete-spin {
    to { transform: rotate(360deg); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .autocomplete-dropdown {
        max-height: 300px;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
    }

    .autocomplete-item {
        padding: 10px 12px;
    }

    .autocomplete-img {
        width: 40px;
        height: 40px;
    }

    .autocomplete-name {
        font-size: 14px;
    }

    .autocomplete-count {
        font-size: 12px;
    }
}

.autocomplete-item:focus {
    outline: 2px solid #333;
    outline-offset: -2px;
}

.autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ================================
   LEGAL PAGES (DMCA, Privacy, Terms, USC2257, Contact)
   ================================ */
.legal-page {
    background: white;
    padding: 40px;
    border-radius: 8px;
    margin: 30px 0;
    line-height: 1.8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.legal-page h1 {
    color: #1a1a1a;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}

.legal-page h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.legal-page h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.legal-page p {
    margin-bottom: 15px;
    color: #555;
    font-size: 15px;
}

.legal-page ul,
.legal-page ol {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-page li {
    margin-bottom: 10px;
    color: #555;
    font-size: 15px;
}

.legal-page a {
    color: #333;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.legal-page a:hover {
    color: #555;
}

.legal-page strong {
    color: #333;
    font-weight: 600;
}

.legal-page blockquote {
    background: #f9f9f9;
    border-left: 4px solid #333;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

.legal-page hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

/* Contact Form Styles */
.legal-page .contact-form {
    margin-top: 30px;
}

.legal-page .contact-form input,
.legal-page .contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 15px;
    transition: border-color 0.2s;
}

.legal-page .contact-form input:focus,
.legal-page .contact-form textarea:focus {
    outline: none;
    border-color: #333;
}

.legal-page .contact-form button {
    background: #333;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.legal-page .contact-form button:hover {
    background: #555;
}

/* Legal Pages - Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 25px 20px;
        margin: 20px 0;
    }

    .legal-page h1 {
        font-size: 22px;
    }

    .legal-page h2 {
        font-size: 20px;
    }

    .legal-page h3 {
        font-size: 16px;
    }

    .legal-page p,
    .legal-page li {
        font-size: 14px;
    }

    .legal-page ul,
    .legal-page ol {
        padding-left: 20px;
    }
}
