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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Navigation - FOND NOIR UNI */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #0a0a0a;
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    z-index: 1000;
    border-bottom: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

/* Sidebar réseaux sociaux */
.social-sidebar {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 999;
    /* Décalage vers le bas pour éviter d'être cachées par le bandeau */
    margin-top: 40px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Container principal */
.video-container {
    padding: 120px 80px 60px 80px;
    max-width: 1800px;
    margin: 0 auto;
}

/* Portfolio section */
.portfolio {
    width: 100%;
}

.portfolio .container {
    width: 100%;
    max-width: 100%;
}

.portfolio h2 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 40px;
    text-align: center;
}

/* Grille de vidéos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Item vidéo */
.video-item {
    position: relative;
    aspect-ratio: 16/9;
    background: #1a1a1a;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.video-item:hover img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    color: white;
}

.video-item:hover .video-overlay {
    transform: translateY(0);
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.video-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Loading */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    letter-spacing: 1px;
}

/* Modal plein écran */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
}

.modal-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.loader-content {
    text-align: center;
    padding: 40px;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loader-text {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.loader-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 10px;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.loader-percentage {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 10001;
}

.close-modal:hover {
    transform: scale(1.1);
}

.modal-title {
    color: white;
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
    font-weight: 400;
}

/* Pages About et Contact */
.content-container {
    padding: 120px 80px 60px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-section,
.contact-section {
    animation: fadeIn 0.6s ease;
}

.about-section h1,
.contact-section h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: -2px;
    margin-bottom: 40px;
    color: #ffffff;
}

.about-content,
.contact-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 60px;
}

.about-text h2,
.contact-info h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #ffffff;
}

.about-text h3,
.contact-info h3 {
    font-size: 20px;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.about-text p,
.contact-info p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.about-text ul li {
    font-size: 16px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 20px;
    position: relative;
}

.about-text ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
}

/* Contact page styles */
.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.contact-method {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-method h3 {
    margin-top: 0;
}

.contact-method a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.contact-method a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.contact-method a:hover::after {
    width: 100%;
}

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form-note {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.contact-form-note p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1400px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 1024px) {
    .video-container,
    .content-container {
        padding: 100px 40px 40px 40px;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1px;
    }
    
    .social-sidebar {
        right: 20px;
    }
    
    .about-content,
    .contact-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 15px 20px;
    }
    
    .nav-container {
        flex-direction: row;
    }
    
    .nav-logo img {
        height: 30px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 12px;
    }
    
    .video-container,
    .content-container {
        padding: 90px 20px 30px 20px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }
    
    .social-sidebar {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        padding: 20px;
        gap: 20px;
    }
    
    .portfolio h2 {
        font-size: 28px;
    }
    
    .about-section h1,
    .contact-section h1 {
        font-size: 36px;
    }
    
    .about-content,
    .contact-content {
        padding: 30px 20px;
    }
}
/* Cacher visuellement mais garder pour SEO et accessibilité */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}